Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
8282 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.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class AmazonFbaSalesSnapshot implements org.apache.thrift.TBase<AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaSalesSnapshot");
25
 
26
  private static final org.apache.thrift.protocol.TField DATE_OF_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfSale", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
8363 vikram.rag 28
  private static final org.apache.thrift.protocol.TField TOTAL_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalOrderCount", org.apache.thrift.protocol.TType.I32, (short)3);
8282 kshitij.so 29
  private static final org.apache.thrift.protocol.TField AMAZON_FBA_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonFbaInventory", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)5);
31
  private static final org.apache.thrift.protocol.TField SALE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
8363 vikram.rag 34
  private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField PROMOTION_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionSale", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField PROMOTION_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionOrderCount", org.apache.thrift.protocol.TType.I32, (short)11);
8282 kshitij.so 37
 
38
  private long dateOfSale; // required
39
  private long item_id; // required
8363 vikram.rag 40
  private int totalOrderCount; // required
8282 kshitij.so 41
  private long amazonFbaInventory; // required
42
  private boolean isOutOfStock; // required
43
  private double salePrice; // required
44
  private double minFbaPrice; // required
45
  private double minMfnPrice; // required
8363 vikram.rag 46
  private double totalSale; // required
47
  private double promotionSale; // required
48
  private int promotionOrderCount; // required
8282 kshitij.so 49
 
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52
    DATE_OF_SALE((short)1, "dateOfSale"),
53
    ITEM_ID((short)2, "item_id"),
8363 vikram.rag 54
    TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
8282 kshitij.so 55
    AMAZON_FBA_INVENTORY((short)4, "amazonFbaInventory"),
56
    IS_OUT_OF_STOCK((short)5, "isOutOfStock"),
57
    SALE_PRICE((short)6, "salePrice"),
58
    MIN_FBA_PRICE((short)7, "minFbaPrice"),
8363 vikram.rag 59
    MIN_MFN_PRICE((short)8, "minMfnPrice"),
60
    TOTAL_SALE((short)9, "totalSale"),
61
    PROMOTION_SALE((short)10, "promotionSale"),
62
    PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount");
8282 kshitij.so 63
 
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
 
66
    static {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
68
        byName.put(field.getFieldName(), field);
69
      }
70
    }
71
 
72
    /**
73
     * Find the _Fields constant that matches fieldId, or null if its not found.
74
     */
75
    public static _Fields findByThriftId(int fieldId) {
76
      switch(fieldId) {
77
        case 1: // DATE_OF_SALE
78
          return DATE_OF_SALE;
79
        case 2: // ITEM_ID
80
          return ITEM_ID;
8363 vikram.rag 81
        case 3: // TOTAL_ORDER_COUNT
82
          return TOTAL_ORDER_COUNT;
8282 kshitij.so 83
        case 4: // AMAZON_FBA_INVENTORY
84
          return AMAZON_FBA_INVENTORY;
85
        case 5: // IS_OUT_OF_STOCK
86
          return IS_OUT_OF_STOCK;
87
        case 6: // SALE_PRICE
88
          return SALE_PRICE;
89
        case 7: // MIN_FBA_PRICE
90
          return MIN_FBA_PRICE;
91
        case 8: // MIN_MFN_PRICE
92
          return MIN_MFN_PRICE;
8363 vikram.rag 93
        case 9: // TOTAL_SALE
94
          return TOTAL_SALE;
95
        case 10: // PROMOTION_SALE
96
          return PROMOTION_SALE;
97
        case 11: // PROMOTION_ORDER_COUNT
98
          return PROMOTION_ORDER_COUNT;
8282 kshitij.so 99
        default:
100
          return null;
101
      }
102
    }
103
 
104
    /**
105
     * Find the _Fields constant that matches fieldId, throwing an exception
106
     * if it is not found.
107
     */
108
    public static _Fields findByThriftIdOrThrow(int fieldId) {
109
      _Fields fields = findByThriftId(fieldId);
110
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
111
      return fields;
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches name, or null if its not found.
116
     */
117
    public static _Fields findByName(String name) {
118
      return byName.get(name);
119
    }
120
 
121
    private final short _thriftId;
122
    private final String _fieldName;
123
 
124
    _Fields(short thriftId, String fieldName) {
125
      _thriftId = thriftId;
126
      _fieldName = fieldName;
127
    }
128
 
129
    public short getThriftFieldId() {
130
      return _thriftId;
131
    }
132
 
133
    public String getFieldName() {
134
      return _fieldName;
135
    }
136
  }
137
 
138
  // isset id assignments
139
  private static final int __DATEOFSALE_ISSET_ID = 0;
140
  private static final int __ITEM_ID_ISSET_ID = 1;
8363 vikram.rag 141
  private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
8282 kshitij.so 142
  private static final int __AMAZONFBAINVENTORY_ISSET_ID = 3;
143
  private static final int __ISOUTOFSTOCK_ISSET_ID = 4;
144
  private static final int __SALEPRICE_ISSET_ID = 5;
145
  private static final int __MINFBAPRICE_ISSET_ID = 6;
146
  private static final int __MINMFNPRICE_ISSET_ID = 7;
8363 vikram.rag 147
  private static final int __TOTALSALE_ISSET_ID = 8;
148
  private static final int __PROMOTIONSALE_ISSET_ID = 9;
149
  private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
150
  private BitSet __isset_bit_vector = new BitSet(11);
8282 kshitij.so 151
 
152
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
153
  static {
154
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
155
    tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
157
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8363 vikram.rag 159
    tmpMap.put(_Fields.TOTAL_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("totalOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8282 kshitij.so 160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
161
    tmpMap.put(_Fields.AMAZON_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("amazonFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.IS_OUT_OF_STOCK, new org.apache.thrift.meta_data.FieldMetaData("isOutOfStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
165
    tmpMap.put(_Fields.SALE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("salePrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
167
    tmpMap.put(_Fields.MIN_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
169
    tmpMap.put(_Fields.MIN_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8363 vikram.rag 171
    tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
173
    tmpMap.put(_Fields.PROMOTION_SALE, new org.apache.thrift.meta_data.FieldMetaData("promotionSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
175
    tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8282 kshitij.so 177
    metaDataMap = Collections.unmodifiableMap(tmpMap);
178
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
179
  }
180
 
181
  public AmazonFbaSalesSnapshot() {
182
  }
183
 
184
  public AmazonFbaSalesSnapshot(
185
    long dateOfSale,
186
    long item_id,
8363 vikram.rag 187
    int totalOrderCount,
8282 kshitij.so 188
    long amazonFbaInventory,
189
    boolean isOutOfStock,
190
    double salePrice,
191
    double minFbaPrice,
8363 vikram.rag 192
    double minMfnPrice,
193
    double totalSale,
194
    double promotionSale,
195
    int promotionOrderCount)
8282 kshitij.so 196
  {
197
    this();
198
    this.dateOfSale = dateOfSale;
199
    setDateOfSaleIsSet(true);
200
    this.item_id = item_id;
201
    setItem_idIsSet(true);
8363 vikram.rag 202
    this.totalOrderCount = totalOrderCount;
203
    setTotalOrderCountIsSet(true);
8282 kshitij.so 204
    this.amazonFbaInventory = amazonFbaInventory;
205
    setAmazonFbaInventoryIsSet(true);
206
    this.isOutOfStock = isOutOfStock;
207
    setIsOutOfStockIsSet(true);
208
    this.salePrice = salePrice;
209
    setSalePriceIsSet(true);
210
    this.minFbaPrice = minFbaPrice;
211
    setMinFbaPriceIsSet(true);
212
    this.minMfnPrice = minMfnPrice;
213
    setMinMfnPriceIsSet(true);
8363 vikram.rag 214
    this.totalSale = totalSale;
215
    setTotalSaleIsSet(true);
216
    this.promotionSale = promotionSale;
217
    setPromotionSaleIsSet(true);
218
    this.promotionOrderCount = promotionOrderCount;
219
    setPromotionOrderCountIsSet(true);
8282 kshitij.so 220
  }
221
 
222
  /**
223
   * Performs a deep copy on <i>other</i>.
224
   */
225
  public AmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot other) {
226
    __isset_bit_vector.clear();
227
    __isset_bit_vector.or(other.__isset_bit_vector);
228
    this.dateOfSale = other.dateOfSale;
229
    this.item_id = other.item_id;
8363 vikram.rag 230
    this.totalOrderCount = other.totalOrderCount;
8282 kshitij.so 231
    this.amazonFbaInventory = other.amazonFbaInventory;
232
    this.isOutOfStock = other.isOutOfStock;
233
    this.salePrice = other.salePrice;
234
    this.minFbaPrice = other.minFbaPrice;
235
    this.minMfnPrice = other.minMfnPrice;
8363 vikram.rag 236
    this.totalSale = other.totalSale;
237
    this.promotionSale = other.promotionSale;
238
    this.promotionOrderCount = other.promotionOrderCount;
8282 kshitij.so 239
  }
240
 
241
  public AmazonFbaSalesSnapshot deepCopy() {
242
    return new AmazonFbaSalesSnapshot(this);
243
  }
244
 
245
  @Override
246
  public void clear() {
247
    setDateOfSaleIsSet(false);
248
    this.dateOfSale = 0;
249
    setItem_idIsSet(false);
250
    this.item_id = 0;
8363 vikram.rag 251
    setTotalOrderCountIsSet(false);
252
    this.totalOrderCount = 0;
8282 kshitij.so 253
    setAmazonFbaInventoryIsSet(false);
254
    this.amazonFbaInventory = 0;
255
    setIsOutOfStockIsSet(false);
256
    this.isOutOfStock = false;
257
    setSalePriceIsSet(false);
258
    this.salePrice = 0.0;
259
    setMinFbaPriceIsSet(false);
260
    this.minFbaPrice = 0.0;
261
    setMinMfnPriceIsSet(false);
262
    this.minMfnPrice = 0.0;
8363 vikram.rag 263
    setTotalSaleIsSet(false);
264
    this.totalSale = 0.0;
265
    setPromotionSaleIsSet(false);
266
    this.promotionSale = 0.0;
267
    setPromotionOrderCountIsSet(false);
268
    this.promotionOrderCount = 0;
8282 kshitij.so 269
  }
270
 
271
  public long getDateOfSale() {
272
    return this.dateOfSale;
273
  }
274
 
275
  public void setDateOfSale(long dateOfSale) {
276
    this.dateOfSale = dateOfSale;
277
    setDateOfSaleIsSet(true);
278
  }
279
 
280
  public void unsetDateOfSale() {
281
    __isset_bit_vector.clear(__DATEOFSALE_ISSET_ID);
282
  }
283
 
284
  /** Returns true if field dateOfSale is set (has been assigned a value) and false otherwise */
285
  public boolean isSetDateOfSale() {
286
    return __isset_bit_vector.get(__DATEOFSALE_ISSET_ID);
287
  }
288
 
289
  public void setDateOfSaleIsSet(boolean value) {
290
    __isset_bit_vector.set(__DATEOFSALE_ISSET_ID, value);
291
  }
292
 
293
  public long getItem_id() {
294
    return this.item_id;
295
  }
296
 
297
  public void setItem_id(long item_id) {
298
    this.item_id = item_id;
299
    setItem_idIsSet(true);
300
  }
301
 
302
  public void unsetItem_id() {
303
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
304
  }
305
 
306
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
307
  public boolean isSetItem_id() {
308
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
309
  }
310
 
311
  public void setItem_idIsSet(boolean value) {
312
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
313
  }
314
 
8363 vikram.rag 315
  public int getTotalOrderCount() {
316
    return this.totalOrderCount;
8282 kshitij.so 317
  }
318
 
8363 vikram.rag 319
  public void setTotalOrderCount(int totalOrderCount) {
320
    this.totalOrderCount = totalOrderCount;
321
    setTotalOrderCountIsSet(true);
8282 kshitij.so 322
  }
323
 
8363 vikram.rag 324
  public void unsetTotalOrderCount() {
325
    __isset_bit_vector.clear(__TOTALORDERCOUNT_ISSET_ID);
8282 kshitij.so 326
  }
327
 
8363 vikram.rag 328
  /** Returns true if field totalOrderCount is set (has been assigned a value) and false otherwise */
329
  public boolean isSetTotalOrderCount() {
330
    return __isset_bit_vector.get(__TOTALORDERCOUNT_ISSET_ID);
8282 kshitij.so 331
  }
332
 
8363 vikram.rag 333
  public void setTotalOrderCountIsSet(boolean value) {
334
    __isset_bit_vector.set(__TOTALORDERCOUNT_ISSET_ID, value);
8282 kshitij.so 335
  }
336
 
337
  public long getAmazonFbaInventory() {
338
    return this.amazonFbaInventory;
339
  }
340
 
341
  public void setAmazonFbaInventory(long amazonFbaInventory) {
342
    this.amazonFbaInventory = amazonFbaInventory;
343
    setAmazonFbaInventoryIsSet(true);
344
  }
345
 
346
  public void unsetAmazonFbaInventory() {
347
    __isset_bit_vector.clear(__AMAZONFBAINVENTORY_ISSET_ID);
348
  }
349
 
350
  /** Returns true if field amazonFbaInventory is set (has been assigned a value) and false otherwise */
351
  public boolean isSetAmazonFbaInventory() {
352
    return __isset_bit_vector.get(__AMAZONFBAINVENTORY_ISSET_ID);
353
  }
354
 
355
  public void setAmazonFbaInventoryIsSet(boolean value) {
356
    __isset_bit_vector.set(__AMAZONFBAINVENTORY_ISSET_ID, value);
357
  }
358
 
359
  public boolean isIsOutOfStock() {
360
    return this.isOutOfStock;
361
  }
362
 
363
  public void setIsOutOfStock(boolean isOutOfStock) {
364
    this.isOutOfStock = isOutOfStock;
365
    setIsOutOfStockIsSet(true);
366
  }
367
 
368
  public void unsetIsOutOfStock() {
369
    __isset_bit_vector.clear(__ISOUTOFSTOCK_ISSET_ID);
370
  }
371
 
372
  /** Returns true if field isOutOfStock is set (has been assigned a value) and false otherwise */
373
  public boolean isSetIsOutOfStock() {
374
    return __isset_bit_vector.get(__ISOUTOFSTOCK_ISSET_ID);
375
  }
376
 
377
  public void setIsOutOfStockIsSet(boolean value) {
378
    __isset_bit_vector.set(__ISOUTOFSTOCK_ISSET_ID, value);
379
  }
380
 
381
  public double getSalePrice() {
382
    return this.salePrice;
383
  }
384
 
385
  public void setSalePrice(double salePrice) {
386
    this.salePrice = salePrice;
387
    setSalePriceIsSet(true);
388
  }
389
 
390
  public void unsetSalePrice() {
391
    __isset_bit_vector.clear(__SALEPRICE_ISSET_ID);
392
  }
393
 
394
  /** Returns true if field salePrice is set (has been assigned a value) and false otherwise */
395
  public boolean isSetSalePrice() {
396
    return __isset_bit_vector.get(__SALEPRICE_ISSET_ID);
397
  }
398
 
399
  public void setSalePriceIsSet(boolean value) {
400
    __isset_bit_vector.set(__SALEPRICE_ISSET_ID, value);
401
  }
402
 
403
  public double getMinFbaPrice() {
404
    return this.minFbaPrice;
405
  }
406
 
407
  public void setMinFbaPrice(double minFbaPrice) {
408
    this.minFbaPrice = minFbaPrice;
409
    setMinFbaPriceIsSet(true);
410
  }
411
 
412
  public void unsetMinFbaPrice() {
413
    __isset_bit_vector.clear(__MINFBAPRICE_ISSET_ID);
414
  }
415
 
416
  /** Returns true if field minFbaPrice is set (has been assigned a value) and false otherwise */
417
  public boolean isSetMinFbaPrice() {
418
    return __isset_bit_vector.get(__MINFBAPRICE_ISSET_ID);
419
  }
420
 
421
  public void setMinFbaPriceIsSet(boolean value) {
422
    __isset_bit_vector.set(__MINFBAPRICE_ISSET_ID, value);
423
  }
424
 
425
  public double getMinMfnPrice() {
426
    return this.minMfnPrice;
427
  }
428
 
429
  public void setMinMfnPrice(double minMfnPrice) {
430
    this.minMfnPrice = minMfnPrice;
431
    setMinMfnPriceIsSet(true);
432
  }
433
 
434
  public void unsetMinMfnPrice() {
435
    __isset_bit_vector.clear(__MINMFNPRICE_ISSET_ID);
436
  }
437
 
438
  /** Returns true if field minMfnPrice is set (has been assigned a value) and false otherwise */
439
  public boolean isSetMinMfnPrice() {
440
    return __isset_bit_vector.get(__MINMFNPRICE_ISSET_ID);
441
  }
442
 
443
  public void setMinMfnPriceIsSet(boolean value) {
444
    __isset_bit_vector.set(__MINMFNPRICE_ISSET_ID, value);
445
  }
446
 
8363 vikram.rag 447
  public double getTotalSale() {
448
    return this.totalSale;
449
  }
450
 
451
  public void setTotalSale(double totalSale) {
452
    this.totalSale = totalSale;
453
    setTotalSaleIsSet(true);
454
  }
455
 
456
  public void unsetTotalSale() {
457
    __isset_bit_vector.clear(__TOTALSALE_ISSET_ID);
458
  }
459
 
460
  /** Returns true if field totalSale is set (has been assigned a value) and false otherwise */
461
  public boolean isSetTotalSale() {
462
    return __isset_bit_vector.get(__TOTALSALE_ISSET_ID);
463
  }
464
 
465
  public void setTotalSaleIsSet(boolean value) {
466
    __isset_bit_vector.set(__TOTALSALE_ISSET_ID, value);
467
  }
468
 
469
  public double getPromotionSale() {
470
    return this.promotionSale;
471
  }
472
 
473
  public void setPromotionSale(double promotionSale) {
474
    this.promotionSale = promotionSale;
475
    setPromotionSaleIsSet(true);
476
  }
477
 
478
  public void unsetPromotionSale() {
479
    __isset_bit_vector.clear(__PROMOTIONSALE_ISSET_ID);
480
  }
481
 
482
  /** Returns true if field promotionSale is set (has been assigned a value) and false otherwise */
483
  public boolean isSetPromotionSale() {
484
    return __isset_bit_vector.get(__PROMOTIONSALE_ISSET_ID);
485
  }
486
 
487
  public void setPromotionSaleIsSet(boolean value) {
488
    __isset_bit_vector.set(__PROMOTIONSALE_ISSET_ID, value);
489
  }
490
 
491
  public int getPromotionOrderCount() {
492
    return this.promotionOrderCount;
493
  }
494
 
495
  public void setPromotionOrderCount(int promotionOrderCount) {
496
    this.promotionOrderCount = promotionOrderCount;
497
    setPromotionOrderCountIsSet(true);
498
  }
499
 
500
  public void unsetPromotionOrderCount() {
501
    __isset_bit_vector.clear(__PROMOTIONORDERCOUNT_ISSET_ID);
502
  }
503
 
504
  /** Returns true if field promotionOrderCount is set (has been assigned a value) and false otherwise */
505
  public boolean isSetPromotionOrderCount() {
506
    return __isset_bit_vector.get(__PROMOTIONORDERCOUNT_ISSET_ID);
507
  }
508
 
509
  public void setPromotionOrderCountIsSet(boolean value) {
510
    __isset_bit_vector.set(__PROMOTIONORDERCOUNT_ISSET_ID, value);
511
  }
512
 
8282 kshitij.so 513
  public void setFieldValue(_Fields field, Object value) {
514
    switch (field) {
515
    case DATE_OF_SALE:
516
      if (value == null) {
517
        unsetDateOfSale();
518
      } else {
519
        setDateOfSale((Long)value);
520
      }
521
      break;
522
 
523
    case ITEM_ID:
524
      if (value == null) {
525
        unsetItem_id();
526
      } else {
527
        setItem_id((Long)value);
528
      }
529
      break;
530
 
8363 vikram.rag 531
    case TOTAL_ORDER_COUNT:
8282 kshitij.so 532
      if (value == null) {
8363 vikram.rag 533
        unsetTotalOrderCount();
8282 kshitij.so 534
      } else {
8363 vikram.rag 535
        setTotalOrderCount((Integer)value);
8282 kshitij.so 536
      }
537
      break;
538
 
539
    case AMAZON_FBA_INVENTORY:
540
      if (value == null) {
541
        unsetAmazonFbaInventory();
542
      } else {
543
        setAmazonFbaInventory((Long)value);
544
      }
545
      break;
546
 
547
    case IS_OUT_OF_STOCK:
548
      if (value == null) {
549
        unsetIsOutOfStock();
550
      } else {
551
        setIsOutOfStock((Boolean)value);
552
      }
553
      break;
554
 
555
    case SALE_PRICE:
556
      if (value == null) {
557
        unsetSalePrice();
558
      } else {
559
        setSalePrice((Double)value);
560
      }
561
      break;
562
 
563
    case MIN_FBA_PRICE:
564
      if (value == null) {
565
        unsetMinFbaPrice();
566
      } else {
567
        setMinFbaPrice((Double)value);
568
      }
569
      break;
570
 
571
    case MIN_MFN_PRICE:
572
      if (value == null) {
573
        unsetMinMfnPrice();
574
      } else {
575
        setMinMfnPrice((Double)value);
576
      }
577
      break;
578
 
8363 vikram.rag 579
    case TOTAL_SALE:
580
      if (value == null) {
581
        unsetTotalSale();
582
      } else {
583
        setTotalSale((Double)value);
584
      }
585
      break;
586
 
587
    case PROMOTION_SALE:
588
      if (value == null) {
589
        unsetPromotionSale();
590
      } else {
591
        setPromotionSale((Double)value);
592
      }
593
      break;
594
 
595
    case PROMOTION_ORDER_COUNT:
596
      if (value == null) {
597
        unsetPromotionOrderCount();
598
      } else {
599
        setPromotionOrderCount((Integer)value);
600
      }
601
      break;
602
 
8282 kshitij.so 603
    }
604
  }
605
 
606
  public Object getFieldValue(_Fields field) {
607
    switch (field) {
608
    case DATE_OF_SALE:
609
      return Long.valueOf(getDateOfSale());
610
 
611
    case ITEM_ID:
612
      return Long.valueOf(getItem_id());
613
 
8363 vikram.rag 614
    case TOTAL_ORDER_COUNT:
615
      return Integer.valueOf(getTotalOrderCount());
8282 kshitij.so 616
 
617
    case AMAZON_FBA_INVENTORY:
618
      return Long.valueOf(getAmazonFbaInventory());
619
 
620
    case IS_OUT_OF_STOCK:
621
      return Boolean.valueOf(isIsOutOfStock());
622
 
623
    case SALE_PRICE:
624
      return Double.valueOf(getSalePrice());
625
 
626
    case MIN_FBA_PRICE:
627
      return Double.valueOf(getMinFbaPrice());
628
 
629
    case MIN_MFN_PRICE:
630
      return Double.valueOf(getMinMfnPrice());
631
 
8363 vikram.rag 632
    case TOTAL_SALE:
633
      return Double.valueOf(getTotalSale());
634
 
635
    case PROMOTION_SALE:
636
      return Double.valueOf(getPromotionSale());
637
 
638
    case PROMOTION_ORDER_COUNT:
639
      return Integer.valueOf(getPromotionOrderCount());
640
 
8282 kshitij.so 641
    }
642
    throw new IllegalStateException();
643
  }
644
 
645
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
646
  public boolean isSet(_Fields field) {
647
    if (field == null) {
648
      throw new IllegalArgumentException();
649
    }
650
 
651
    switch (field) {
652
    case DATE_OF_SALE:
653
      return isSetDateOfSale();
654
    case ITEM_ID:
655
      return isSetItem_id();
8363 vikram.rag 656
    case TOTAL_ORDER_COUNT:
657
      return isSetTotalOrderCount();
8282 kshitij.so 658
    case AMAZON_FBA_INVENTORY:
659
      return isSetAmazonFbaInventory();
660
    case IS_OUT_OF_STOCK:
661
      return isSetIsOutOfStock();
662
    case SALE_PRICE:
663
      return isSetSalePrice();
664
    case MIN_FBA_PRICE:
665
      return isSetMinFbaPrice();
666
    case MIN_MFN_PRICE:
667
      return isSetMinMfnPrice();
8363 vikram.rag 668
    case TOTAL_SALE:
669
      return isSetTotalSale();
670
    case PROMOTION_SALE:
671
      return isSetPromotionSale();
672
    case PROMOTION_ORDER_COUNT:
673
      return isSetPromotionOrderCount();
8282 kshitij.so 674
    }
675
    throw new IllegalStateException();
676
  }
677
 
678
  @Override
679
  public boolean equals(Object that) {
680
    if (that == null)
681
      return false;
682
    if (that instanceof AmazonFbaSalesSnapshot)
683
      return this.equals((AmazonFbaSalesSnapshot)that);
684
    return false;
685
  }
686
 
687
  public boolean equals(AmazonFbaSalesSnapshot that) {
688
    if (that == null)
689
      return false;
690
 
691
    boolean this_present_dateOfSale = true;
692
    boolean that_present_dateOfSale = true;
693
    if (this_present_dateOfSale || that_present_dateOfSale) {
694
      if (!(this_present_dateOfSale && that_present_dateOfSale))
695
        return false;
696
      if (this.dateOfSale != that.dateOfSale)
697
        return false;
698
    }
699
 
700
    boolean this_present_item_id = true;
701
    boolean that_present_item_id = true;
702
    if (this_present_item_id || that_present_item_id) {
703
      if (!(this_present_item_id && that_present_item_id))
704
        return false;
705
      if (this.item_id != that.item_id)
706
        return false;
707
    }
708
 
8363 vikram.rag 709
    boolean this_present_totalOrderCount = true;
710
    boolean that_present_totalOrderCount = true;
711
    if (this_present_totalOrderCount || that_present_totalOrderCount) {
712
      if (!(this_present_totalOrderCount && that_present_totalOrderCount))
8282 kshitij.so 713
        return false;
8363 vikram.rag 714
      if (this.totalOrderCount != that.totalOrderCount)
8282 kshitij.so 715
        return false;
716
    }
717
 
718
    boolean this_present_amazonFbaInventory = true;
719
    boolean that_present_amazonFbaInventory = true;
720
    if (this_present_amazonFbaInventory || that_present_amazonFbaInventory) {
721
      if (!(this_present_amazonFbaInventory && that_present_amazonFbaInventory))
722
        return false;
723
      if (this.amazonFbaInventory != that.amazonFbaInventory)
724
        return false;
725
    }
726
 
727
    boolean this_present_isOutOfStock = true;
728
    boolean that_present_isOutOfStock = true;
729
    if (this_present_isOutOfStock || that_present_isOutOfStock) {
730
      if (!(this_present_isOutOfStock && that_present_isOutOfStock))
731
        return false;
732
      if (this.isOutOfStock != that.isOutOfStock)
733
        return false;
734
    }
735
 
736
    boolean this_present_salePrice = true;
737
    boolean that_present_salePrice = true;
738
    if (this_present_salePrice || that_present_salePrice) {
739
      if (!(this_present_salePrice && that_present_salePrice))
740
        return false;
741
      if (this.salePrice != that.salePrice)
742
        return false;
743
    }
744
 
745
    boolean this_present_minFbaPrice = true;
746
    boolean that_present_minFbaPrice = true;
747
    if (this_present_minFbaPrice || that_present_minFbaPrice) {
748
      if (!(this_present_minFbaPrice && that_present_minFbaPrice))
749
        return false;
750
      if (this.minFbaPrice != that.minFbaPrice)
751
        return false;
752
    }
753
 
754
    boolean this_present_minMfnPrice = true;
755
    boolean that_present_minMfnPrice = true;
756
    if (this_present_minMfnPrice || that_present_minMfnPrice) {
757
      if (!(this_present_minMfnPrice && that_present_minMfnPrice))
758
        return false;
759
      if (this.minMfnPrice != that.minMfnPrice)
760
        return false;
761
    }
762
 
8363 vikram.rag 763
    boolean this_present_totalSale = true;
764
    boolean that_present_totalSale = true;
765
    if (this_present_totalSale || that_present_totalSale) {
766
      if (!(this_present_totalSale && that_present_totalSale))
767
        return false;
768
      if (this.totalSale != that.totalSale)
769
        return false;
770
    }
771
 
772
    boolean this_present_promotionSale = true;
773
    boolean that_present_promotionSale = true;
774
    if (this_present_promotionSale || that_present_promotionSale) {
775
      if (!(this_present_promotionSale && that_present_promotionSale))
776
        return false;
777
      if (this.promotionSale != that.promotionSale)
778
        return false;
779
    }
780
 
781
    boolean this_present_promotionOrderCount = true;
782
    boolean that_present_promotionOrderCount = true;
783
    if (this_present_promotionOrderCount || that_present_promotionOrderCount) {
784
      if (!(this_present_promotionOrderCount && that_present_promotionOrderCount))
785
        return false;
786
      if (this.promotionOrderCount != that.promotionOrderCount)
787
        return false;
788
    }
789
 
8282 kshitij.so 790
    return true;
791
  }
792
 
793
  @Override
794
  public int hashCode() {
795
    return 0;
796
  }
797
 
798
  public int compareTo(AmazonFbaSalesSnapshot other) {
799
    if (!getClass().equals(other.getClass())) {
800
      return getClass().getName().compareTo(other.getClass().getName());
801
    }
802
 
803
    int lastComparison = 0;
804
    AmazonFbaSalesSnapshot typedOther = (AmazonFbaSalesSnapshot)other;
805
 
806
    lastComparison = Boolean.valueOf(isSetDateOfSale()).compareTo(typedOther.isSetDateOfSale());
807
    if (lastComparison != 0) {
808
      return lastComparison;
809
    }
810
    if (isSetDateOfSale()) {
811
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfSale, typedOther.dateOfSale);
812
      if (lastComparison != 0) {
813
        return lastComparison;
814
      }
815
    }
816
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
817
    if (lastComparison != 0) {
818
      return lastComparison;
819
    }
820
    if (isSetItem_id()) {
821
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
822
      if (lastComparison != 0) {
823
        return lastComparison;
824
      }
825
    }
8363 vikram.rag 826
    lastComparison = Boolean.valueOf(isSetTotalOrderCount()).compareTo(typedOther.isSetTotalOrderCount());
8282 kshitij.so 827
    if (lastComparison != 0) {
828
      return lastComparison;
829
    }
8363 vikram.rag 830
    if (isSetTotalOrderCount()) {
831
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalOrderCount, typedOther.totalOrderCount);
8282 kshitij.so 832
      if (lastComparison != 0) {
833
        return lastComparison;
834
      }
835
    }
836
    lastComparison = Boolean.valueOf(isSetAmazonFbaInventory()).compareTo(typedOther.isSetAmazonFbaInventory());
837
    if (lastComparison != 0) {
838
      return lastComparison;
839
    }
840
    if (isSetAmazonFbaInventory()) {
841
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonFbaInventory, typedOther.amazonFbaInventory);
842
      if (lastComparison != 0) {
843
        return lastComparison;
844
      }
845
    }
846
    lastComparison = Boolean.valueOf(isSetIsOutOfStock()).compareTo(typedOther.isSetIsOutOfStock());
847
    if (lastComparison != 0) {
848
      return lastComparison;
849
    }
850
    if (isSetIsOutOfStock()) {
851
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isOutOfStock, typedOther.isOutOfStock);
852
      if (lastComparison != 0) {
853
        return lastComparison;
854
      }
855
    }
856
    lastComparison = Boolean.valueOf(isSetSalePrice()).compareTo(typedOther.isSetSalePrice());
857
    if (lastComparison != 0) {
858
      return lastComparison;
859
    }
860
    if (isSetSalePrice()) {
861
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salePrice, typedOther.salePrice);
862
      if (lastComparison != 0) {
863
        return lastComparison;
864
      }
865
    }
866
    lastComparison = Boolean.valueOf(isSetMinFbaPrice()).compareTo(typedOther.isSetMinFbaPrice());
867
    if (lastComparison != 0) {
868
      return lastComparison;
869
    }
870
    if (isSetMinFbaPrice()) {
871
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minFbaPrice, typedOther.minFbaPrice);
872
      if (lastComparison != 0) {
873
        return lastComparison;
874
      }
875
    }
876
    lastComparison = Boolean.valueOf(isSetMinMfnPrice()).compareTo(typedOther.isSetMinMfnPrice());
877
    if (lastComparison != 0) {
878
      return lastComparison;
879
    }
880
    if (isSetMinMfnPrice()) {
881
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPrice, typedOther.minMfnPrice);
882
      if (lastComparison != 0) {
883
        return lastComparison;
884
      }
885
    }
8363 vikram.rag 886
    lastComparison = Boolean.valueOf(isSetTotalSale()).compareTo(typedOther.isSetTotalSale());
887
    if (lastComparison != 0) {
888
      return lastComparison;
889
    }
890
    if (isSetTotalSale()) {
891
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSale, typedOther.totalSale);
892
      if (lastComparison != 0) {
893
        return lastComparison;
894
      }
895
    }
896
    lastComparison = Boolean.valueOf(isSetPromotionSale()).compareTo(typedOther.isSetPromotionSale());
897
    if (lastComparison != 0) {
898
      return lastComparison;
899
    }
900
    if (isSetPromotionSale()) {
901
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionSale, typedOther.promotionSale);
902
      if (lastComparison != 0) {
903
        return lastComparison;
904
      }
905
    }
906
    lastComparison = Boolean.valueOf(isSetPromotionOrderCount()).compareTo(typedOther.isSetPromotionOrderCount());
907
    if (lastComparison != 0) {
908
      return lastComparison;
909
    }
910
    if (isSetPromotionOrderCount()) {
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionOrderCount, typedOther.promotionOrderCount);
912
      if (lastComparison != 0) {
913
        return lastComparison;
914
      }
915
    }
8282 kshitij.so 916
    return 0;
917
  }
918
 
919
  public _Fields fieldForId(int fieldId) {
920
    return _Fields.findByThriftId(fieldId);
921
  }
922
 
923
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
924
    org.apache.thrift.protocol.TField field;
925
    iprot.readStructBegin();
926
    while (true)
927
    {
928
      field = iprot.readFieldBegin();
929
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
930
        break;
931
      }
932
      switch (field.id) {
933
        case 1: // DATE_OF_SALE
934
          if (field.type == org.apache.thrift.protocol.TType.I64) {
935
            this.dateOfSale = iprot.readI64();
936
            setDateOfSaleIsSet(true);
937
          } else { 
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
          }
940
          break;
941
        case 2: // ITEM_ID
942
          if (field.type == org.apache.thrift.protocol.TType.I64) {
943
            this.item_id = iprot.readI64();
944
            setItem_idIsSet(true);
945
          } else { 
946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
947
          }
948
          break;
8363 vikram.rag 949
        case 3: // TOTAL_ORDER_COUNT
8282 kshitij.so 950
          if (field.type == org.apache.thrift.protocol.TType.I32) {
8363 vikram.rag 951
            this.totalOrderCount = iprot.readI32();
952
            setTotalOrderCountIsSet(true);
8282 kshitij.so 953
          } else { 
954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
955
          }
956
          break;
957
        case 4: // AMAZON_FBA_INVENTORY
958
          if (field.type == org.apache.thrift.protocol.TType.I64) {
959
            this.amazonFbaInventory = iprot.readI64();
960
            setAmazonFbaInventoryIsSet(true);
961
          } else { 
962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
963
          }
964
          break;
965
        case 5: // IS_OUT_OF_STOCK
966
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
967
            this.isOutOfStock = iprot.readBool();
968
            setIsOutOfStockIsSet(true);
969
          } else { 
970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
971
          }
972
          break;
973
        case 6: // SALE_PRICE
974
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
975
            this.salePrice = iprot.readDouble();
976
            setSalePriceIsSet(true);
977
          } else { 
978
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
979
          }
980
          break;
981
        case 7: // MIN_FBA_PRICE
982
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
983
            this.minFbaPrice = iprot.readDouble();
984
            setMinFbaPriceIsSet(true);
985
          } else { 
986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
987
          }
988
          break;
989
        case 8: // MIN_MFN_PRICE
990
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
991
            this.minMfnPrice = iprot.readDouble();
992
            setMinMfnPriceIsSet(true);
993
          } else { 
994
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
995
          }
996
          break;
8363 vikram.rag 997
        case 9: // TOTAL_SALE
998
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
999
            this.totalSale = iprot.readDouble();
1000
            setTotalSaleIsSet(true);
1001
          } else { 
1002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1003
          }
1004
          break;
1005
        case 10: // PROMOTION_SALE
1006
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1007
            this.promotionSale = iprot.readDouble();
1008
            setPromotionSaleIsSet(true);
1009
          } else { 
1010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1011
          }
1012
          break;
1013
        case 11: // PROMOTION_ORDER_COUNT
1014
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1015
            this.promotionOrderCount = iprot.readI32();
1016
            setPromotionOrderCountIsSet(true);
1017
          } else { 
1018
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1019
          }
1020
          break;
8282 kshitij.so 1021
        default:
1022
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1023
      }
1024
      iprot.readFieldEnd();
1025
    }
1026
    iprot.readStructEnd();
1027
    validate();
1028
  }
1029
 
1030
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1031
    validate();
1032
 
1033
    oprot.writeStructBegin(STRUCT_DESC);
1034
    oprot.writeFieldBegin(DATE_OF_SALE_FIELD_DESC);
1035
    oprot.writeI64(this.dateOfSale);
1036
    oprot.writeFieldEnd();
1037
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1038
    oprot.writeI64(this.item_id);
1039
    oprot.writeFieldEnd();
8363 vikram.rag 1040
    oprot.writeFieldBegin(TOTAL_ORDER_COUNT_FIELD_DESC);
1041
    oprot.writeI32(this.totalOrderCount);
8282 kshitij.so 1042
    oprot.writeFieldEnd();
1043
    oprot.writeFieldBegin(AMAZON_FBA_INVENTORY_FIELD_DESC);
1044
    oprot.writeI64(this.amazonFbaInventory);
1045
    oprot.writeFieldEnd();
1046
    oprot.writeFieldBegin(IS_OUT_OF_STOCK_FIELD_DESC);
1047
    oprot.writeBool(this.isOutOfStock);
1048
    oprot.writeFieldEnd();
1049
    oprot.writeFieldBegin(SALE_PRICE_FIELD_DESC);
1050
    oprot.writeDouble(this.salePrice);
1051
    oprot.writeFieldEnd();
1052
    oprot.writeFieldBegin(MIN_FBA_PRICE_FIELD_DESC);
1053
    oprot.writeDouble(this.minFbaPrice);
1054
    oprot.writeFieldEnd();
1055
    oprot.writeFieldBegin(MIN_MFN_PRICE_FIELD_DESC);
1056
    oprot.writeDouble(this.minMfnPrice);
1057
    oprot.writeFieldEnd();
8363 vikram.rag 1058
    oprot.writeFieldBegin(TOTAL_SALE_FIELD_DESC);
1059
    oprot.writeDouble(this.totalSale);
1060
    oprot.writeFieldEnd();
1061
    oprot.writeFieldBegin(PROMOTION_SALE_FIELD_DESC);
1062
    oprot.writeDouble(this.promotionSale);
1063
    oprot.writeFieldEnd();
1064
    oprot.writeFieldBegin(PROMOTION_ORDER_COUNT_FIELD_DESC);
1065
    oprot.writeI32(this.promotionOrderCount);
1066
    oprot.writeFieldEnd();
8282 kshitij.so 1067
    oprot.writeFieldStop();
1068
    oprot.writeStructEnd();
1069
  }
1070
 
1071
  @Override
1072
  public String toString() {
1073
    StringBuilder sb = new StringBuilder("AmazonFbaSalesSnapshot(");
1074
    boolean first = true;
1075
 
1076
    sb.append("dateOfSale:");
1077
    sb.append(this.dateOfSale);
1078
    first = false;
1079
    if (!first) sb.append(", ");
1080
    sb.append("item_id:");
1081
    sb.append(this.item_id);
1082
    first = false;
1083
    if (!first) sb.append(", ");
8363 vikram.rag 1084
    sb.append("totalOrderCount:");
1085
    sb.append(this.totalOrderCount);
8282 kshitij.so 1086
    first = false;
1087
    if (!first) sb.append(", ");
1088
    sb.append("amazonFbaInventory:");
1089
    sb.append(this.amazonFbaInventory);
1090
    first = false;
1091
    if (!first) sb.append(", ");
1092
    sb.append("isOutOfStock:");
1093
    sb.append(this.isOutOfStock);
1094
    first = false;
1095
    if (!first) sb.append(", ");
1096
    sb.append("salePrice:");
1097
    sb.append(this.salePrice);
1098
    first = false;
1099
    if (!first) sb.append(", ");
1100
    sb.append("minFbaPrice:");
1101
    sb.append(this.minFbaPrice);
1102
    first = false;
1103
    if (!first) sb.append(", ");
1104
    sb.append("minMfnPrice:");
1105
    sb.append(this.minMfnPrice);
1106
    first = false;
8363 vikram.rag 1107
    if (!first) sb.append(", ");
1108
    sb.append("totalSale:");
1109
    sb.append(this.totalSale);
1110
    first = false;
1111
    if (!first) sb.append(", ");
1112
    sb.append("promotionSale:");
1113
    sb.append(this.promotionSale);
1114
    first = false;
1115
    if (!first) sb.append(", ");
1116
    sb.append("promotionOrderCount:");
1117
    sb.append(this.promotionOrderCount);
1118
    first = false;
8282 kshitij.so 1119
    sb.append(")");
1120
    return sb.toString();
1121
  }
1122
 
1123
  public void validate() throws org.apache.thrift.TException {
1124
    // check for required fields
1125
  }
1126
 
1127
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1128
    try {
1129
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1130
    } catch (org.apache.thrift.TException te) {
1131
      throw new java.io.IOException(te);
1132
    }
1133
  }
1134
 
1135
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1136
    try {
1137
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1138
      __isset_bit_vector = new BitSet(1);
1139
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1140
    } catch (org.apache.thrift.TException te) {
1141
      throw new java.io.IOException(te);
1142
    }
1143
  }
1144
 
1145
}
1146