Subversion Repositories SmartDukaan

Rev

Rev 8445 | Rev 11173 | 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);
8445 vikram.rag 37
  private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
8532 vikram.rag 38
  private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField OUR_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField SALE_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)16);
8282 kshitij.so 42
 
43
  private long dateOfSale; // required
44
  private long item_id; // required
8363 vikram.rag 45
  private int totalOrderCount; // required
8282 kshitij.so 46
  private long amazonFbaInventory; // required
47
  private boolean isOutOfStock; // required
48
  private double salePrice; // required
49
  private double minFbaPrice; // required
50
  private double minMfnPrice; // required
8363 vikram.rag 51
  private double totalSale; // required
52
  private double promotionSale; // required
53
  private int promotionOrderCount; // required
8445 vikram.rag 54
  private double ourPrice; // required
8532 vikram.rag 55
  private long minFbaPriceSnapshotDate; // required
56
  private long minMfnPriceSnapshotDate; // required
57
  private long ourPriceSnapshotDate; // required
58
  private long salePriceSnapshotDate; // required
8282 kshitij.so 59
 
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62
    DATE_OF_SALE((short)1, "dateOfSale"),
63
    ITEM_ID((short)2, "item_id"),
8363 vikram.rag 64
    TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
8282 kshitij.so 65
    AMAZON_FBA_INVENTORY((short)4, "amazonFbaInventory"),
66
    IS_OUT_OF_STOCK((short)5, "isOutOfStock"),
67
    SALE_PRICE((short)6, "salePrice"),
68
    MIN_FBA_PRICE((short)7, "minFbaPrice"),
8363 vikram.rag 69
    MIN_MFN_PRICE((short)8, "minMfnPrice"),
70
    TOTAL_SALE((short)9, "totalSale"),
71
    PROMOTION_SALE((short)10, "promotionSale"),
8445 vikram.rag 72
    PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount"),
8532 vikram.rag 73
    OUR_PRICE((short)12, "ourPrice"),
74
    MIN_FBA_PRICE_SNAPSHOT_DATE((short)13, "minFbaPriceSnapshotDate"),
75
    MIN_MFN_PRICE_SNAPSHOT_DATE((short)14, "minMfnPriceSnapshotDate"),
76
    OUR_PRICE_SNAPSHOT_DATE((short)15, "ourPriceSnapshotDate"),
77
    SALE_PRICE_SNAPSHOT_DATE((short)16, "salePriceSnapshotDate");
8282 kshitij.so 78
 
79
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
80
 
81
    static {
82
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
83
        byName.put(field.getFieldName(), field);
84
      }
85
    }
86
 
87
    /**
88
     * Find the _Fields constant that matches fieldId, or null if its not found.
89
     */
90
    public static _Fields findByThriftId(int fieldId) {
91
      switch(fieldId) {
92
        case 1: // DATE_OF_SALE
93
          return DATE_OF_SALE;
94
        case 2: // ITEM_ID
95
          return ITEM_ID;
8363 vikram.rag 96
        case 3: // TOTAL_ORDER_COUNT
97
          return TOTAL_ORDER_COUNT;
8282 kshitij.so 98
        case 4: // AMAZON_FBA_INVENTORY
99
          return AMAZON_FBA_INVENTORY;
100
        case 5: // IS_OUT_OF_STOCK
101
          return IS_OUT_OF_STOCK;
102
        case 6: // SALE_PRICE
103
          return SALE_PRICE;
104
        case 7: // MIN_FBA_PRICE
105
          return MIN_FBA_PRICE;
106
        case 8: // MIN_MFN_PRICE
107
          return MIN_MFN_PRICE;
8363 vikram.rag 108
        case 9: // TOTAL_SALE
109
          return TOTAL_SALE;
110
        case 10: // PROMOTION_SALE
111
          return PROMOTION_SALE;
112
        case 11: // PROMOTION_ORDER_COUNT
113
          return PROMOTION_ORDER_COUNT;
8445 vikram.rag 114
        case 12: // OUR_PRICE
115
          return OUR_PRICE;
8532 vikram.rag 116
        case 13: // MIN_FBA_PRICE_SNAPSHOT_DATE
117
          return MIN_FBA_PRICE_SNAPSHOT_DATE;
118
        case 14: // MIN_MFN_PRICE_SNAPSHOT_DATE
119
          return MIN_MFN_PRICE_SNAPSHOT_DATE;
120
        case 15: // OUR_PRICE_SNAPSHOT_DATE
121
          return OUR_PRICE_SNAPSHOT_DATE;
122
        case 16: // SALE_PRICE_SNAPSHOT_DATE
123
          return SALE_PRICE_SNAPSHOT_DATE;
8282 kshitij.so 124
        default:
125
          return null;
126
      }
127
    }
128
 
129
    /**
130
     * Find the _Fields constant that matches fieldId, throwing an exception
131
     * if it is not found.
132
     */
133
    public static _Fields findByThriftIdOrThrow(int fieldId) {
134
      _Fields fields = findByThriftId(fieldId);
135
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
136
      return fields;
137
    }
138
 
139
    /**
140
     * Find the _Fields constant that matches name, or null if its not found.
141
     */
142
    public static _Fields findByName(String name) {
143
      return byName.get(name);
144
    }
145
 
146
    private final short _thriftId;
147
    private final String _fieldName;
148
 
149
    _Fields(short thriftId, String fieldName) {
150
      _thriftId = thriftId;
151
      _fieldName = fieldName;
152
    }
153
 
154
    public short getThriftFieldId() {
155
      return _thriftId;
156
    }
157
 
158
    public String getFieldName() {
159
      return _fieldName;
160
    }
161
  }
162
 
163
  // isset id assignments
164
  private static final int __DATEOFSALE_ISSET_ID = 0;
165
  private static final int __ITEM_ID_ISSET_ID = 1;
8363 vikram.rag 166
  private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
8282 kshitij.so 167
  private static final int __AMAZONFBAINVENTORY_ISSET_ID = 3;
168
  private static final int __ISOUTOFSTOCK_ISSET_ID = 4;
169
  private static final int __SALEPRICE_ISSET_ID = 5;
170
  private static final int __MINFBAPRICE_ISSET_ID = 6;
171
  private static final int __MINMFNPRICE_ISSET_ID = 7;
8363 vikram.rag 172
  private static final int __TOTALSALE_ISSET_ID = 8;
173
  private static final int __PROMOTIONSALE_ISSET_ID = 9;
174
  private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
8445 vikram.rag 175
  private static final int __OURPRICE_ISSET_ID = 11;
8532 vikram.rag 176
  private static final int __MINFBAPRICESNAPSHOTDATE_ISSET_ID = 12;
177
  private static final int __MINMFNPRICESNAPSHOTDATE_ISSET_ID = 13;
178
  private static final int __OURPRICESNAPSHOTDATE_ISSET_ID = 14;
179
  private static final int __SALEPRICESNAPSHOTDATE_ISSET_ID = 15;
180
  private BitSet __isset_bit_vector = new BitSet(16);
8282 kshitij.so 181
 
182
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
183
  static {
184
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
185
    tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
187
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
188
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8363 vikram.rag 189
    tmpMap.put(_Fields.TOTAL_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("totalOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8282 kshitij.so 190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
191
    tmpMap.put(_Fields.AMAZON_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("amazonFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
193
    tmpMap.put(_Fields.IS_OUT_OF_STOCK, new org.apache.thrift.meta_data.FieldMetaData("isOutOfStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
194
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
195
    tmpMap.put(_Fields.SALE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("salePrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
197
    tmpMap.put(_Fields.MIN_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
199
    tmpMap.put(_Fields.MIN_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8363 vikram.rag 201
    tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
203
    tmpMap.put(_Fields.PROMOTION_SALE, new org.apache.thrift.meta_data.FieldMetaData("promotionSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
205
    tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8445 vikram.rag 207
    tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8532 vikram.rag 209
    tmpMap.put(_Fields.MIN_FBA_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
211
    tmpMap.put(_Fields.MIN_MFN_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
213
    tmpMap.put(_Fields.OUR_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("ourPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
215
    tmpMap.put(_Fields.SALE_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("salePriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8282 kshitij.so 217
    metaDataMap = Collections.unmodifiableMap(tmpMap);
218
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
219
  }
220
 
221
  public AmazonFbaSalesSnapshot() {
222
  }
223
 
224
  public AmazonFbaSalesSnapshot(
225
    long dateOfSale,
226
    long item_id,
8363 vikram.rag 227
    int totalOrderCount,
8282 kshitij.so 228
    long amazonFbaInventory,
229
    boolean isOutOfStock,
230
    double salePrice,
231
    double minFbaPrice,
8363 vikram.rag 232
    double minMfnPrice,
233
    double totalSale,
234
    double promotionSale,
8445 vikram.rag 235
    int promotionOrderCount,
8532 vikram.rag 236
    double ourPrice,
237
    long minFbaPriceSnapshotDate,
238
    long minMfnPriceSnapshotDate,
239
    long ourPriceSnapshotDate,
240
    long salePriceSnapshotDate)
8282 kshitij.so 241
  {
242
    this();
243
    this.dateOfSale = dateOfSale;
244
    setDateOfSaleIsSet(true);
245
    this.item_id = item_id;
246
    setItem_idIsSet(true);
8363 vikram.rag 247
    this.totalOrderCount = totalOrderCount;
248
    setTotalOrderCountIsSet(true);
8282 kshitij.so 249
    this.amazonFbaInventory = amazonFbaInventory;
250
    setAmazonFbaInventoryIsSet(true);
251
    this.isOutOfStock = isOutOfStock;
252
    setIsOutOfStockIsSet(true);
253
    this.salePrice = salePrice;
254
    setSalePriceIsSet(true);
255
    this.minFbaPrice = minFbaPrice;
256
    setMinFbaPriceIsSet(true);
257
    this.minMfnPrice = minMfnPrice;
258
    setMinMfnPriceIsSet(true);
8363 vikram.rag 259
    this.totalSale = totalSale;
260
    setTotalSaleIsSet(true);
261
    this.promotionSale = promotionSale;
262
    setPromotionSaleIsSet(true);
263
    this.promotionOrderCount = promotionOrderCount;
264
    setPromotionOrderCountIsSet(true);
8445 vikram.rag 265
    this.ourPrice = ourPrice;
266
    setOurPriceIsSet(true);
8532 vikram.rag 267
    this.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate;
268
    setMinFbaPriceSnapshotDateIsSet(true);
269
    this.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate;
270
    setMinMfnPriceSnapshotDateIsSet(true);
271
    this.ourPriceSnapshotDate = ourPriceSnapshotDate;
272
    setOurPriceSnapshotDateIsSet(true);
273
    this.salePriceSnapshotDate = salePriceSnapshotDate;
274
    setSalePriceSnapshotDateIsSet(true);
8282 kshitij.so 275
  }
276
 
277
  /**
278
   * Performs a deep copy on <i>other</i>.
279
   */
280
  public AmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot other) {
281
    __isset_bit_vector.clear();
282
    __isset_bit_vector.or(other.__isset_bit_vector);
283
    this.dateOfSale = other.dateOfSale;
284
    this.item_id = other.item_id;
8363 vikram.rag 285
    this.totalOrderCount = other.totalOrderCount;
8282 kshitij.so 286
    this.amazonFbaInventory = other.amazonFbaInventory;
287
    this.isOutOfStock = other.isOutOfStock;
288
    this.salePrice = other.salePrice;
289
    this.minFbaPrice = other.minFbaPrice;
290
    this.minMfnPrice = other.minMfnPrice;
8363 vikram.rag 291
    this.totalSale = other.totalSale;
292
    this.promotionSale = other.promotionSale;
293
    this.promotionOrderCount = other.promotionOrderCount;
8445 vikram.rag 294
    this.ourPrice = other.ourPrice;
8532 vikram.rag 295
    this.minFbaPriceSnapshotDate = other.minFbaPriceSnapshotDate;
296
    this.minMfnPriceSnapshotDate = other.minMfnPriceSnapshotDate;
297
    this.ourPriceSnapshotDate = other.ourPriceSnapshotDate;
298
    this.salePriceSnapshotDate = other.salePriceSnapshotDate;
8282 kshitij.so 299
  }
300
 
301
  public AmazonFbaSalesSnapshot deepCopy() {
302
    return new AmazonFbaSalesSnapshot(this);
303
  }
304
 
305
  @Override
306
  public void clear() {
307
    setDateOfSaleIsSet(false);
308
    this.dateOfSale = 0;
309
    setItem_idIsSet(false);
310
    this.item_id = 0;
8363 vikram.rag 311
    setTotalOrderCountIsSet(false);
312
    this.totalOrderCount = 0;
8282 kshitij.so 313
    setAmazonFbaInventoryIsSet(false);
314
    this.amazonFbaInventory = 0;
315
    setIsOutOfStockIsSet(false);
316
    this.isOutOfStock = false;
317
    setSalePriceIsSet(false);
318
    this.salePrice = 0.0;
319
    setMinFbaPriceIsSet(false);
320
    this.minFbaPrice = 0.0;
321
    setMinMfnPriceIsSet(false);
322
    this.minMfnPrice = 0.0;
8363 vikram.rag 323
    setTotalSaleIsSet(false);
324
    this.totalSale = 0.0;
325
    setPromotionSaleIsSet(false);
326
    this.promotionSale = 0.0;
327
    setPromotionOrderCountIsSet(false);
328
    this.promotionOrderCount = 0;
8445 vikram.rag 329
    setOurPriceIsSet(false);
330
    this.ourPrice = 0.0;
8532 vikram.rag 331
    setMinFbaPriceSnapshotDateIsSet(false);
332
    this.minFbaPriceSnapshotDate = 0;
333
    setMinMfnPriceSnapshotDateIsSet(false);
334
    this.minMfnPriceSnapshotDate = 0;
335
    setOurPriceSnapshotDateIsSet(false);
336
    this.ourPriceSnapshotDate = 0;
337
    setSalePriceSnapshotDateIsSet(false);
338
    this.salePriceSnapshotDate = 0;
8282 kshitij.so 339
  }
340
 
341
  public long getDateOfSale() {
342
    return this.dateOfSale;
343
  }
344
 
345
  public void setDateOfSale(long dateOfSale) {
346
    this.dateOfSale = dateOfSale;
347
    setDateOfSaleIsSet(true);
348
  }
349
 
350
  public void unsetDateOfSale() {
351
    __isset_bit_vector.clear(__DATEOFSALE_ISSET_ID);
352
  }
353
 
354
  /** Returns true if field dateOfSale is set (has been assigned a value) and false otherwise */
355
  public boolean isSetDateOfSale() {
356
    return __isset_bit_vector.get(__DATEOFSALE_ISSET_ID);
357
  }
358
 
359
  public void setDateOfSaleIsSet(boolean value) {
360
    __isset_bit_vector.set(__DATEOFSALE_ISSET_ID, value);
361
  }
362
 
363
  public long getItem_id() {
364
    return this.item_id;
365
  }
366
 
367
  public void setItem_id(long item_id) {
368
    this.item_id = item_id;
369
    setItem_idIsSet(true);
370
  }
371
 
372
  public void unsetItem_id() {
373
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
374
  }
375
 
376
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
377
  public boolean isSetItem_id() {
378
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
379
  }
380
 
381
  public void setItem_idIsSet(boolean value) {
382
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
383
  }
384
 
8363 vikram.rag 385
  public int getTotalOrderCount() {
386
    return this.totalOrderCount;
8282 kshitij.so 387
  }
388
 
8363 vikram.rag 389
  public void setTotalOrderCount(int totalOrderCount) {
390
    this.totalOrderCount = totalOrderCount;
391
    setTotalOrderCountIsSet(true);
8282 kshitij.so 392
  }
393
 
8363 vikram.rag 394
  public void unsetTotalOrderCount() {
395
    __isset_bit_vector.clear(__TOTALORDERCOUNT_ISSET_ID);
8282 kshitij.so 396
  }
397
 
8363 vikram.rag 398
  /** Returns true if field totalOrderCount is set (has been assigned a value) and false otherwise */
399
  public boolean isSetTotalOrderCount() {
400
    return __isset_bit_vector.get(__TOTALORDERCOUNT_ISSET_ID);
8282 kshitij.so 401
  }
402
 
8363 vikram.rag 403
  public void setTotalOrderCountIsSet(boolean value) {
404
    __isset_bit_vector.set(__TOTALORDERCOUNT_ISSET_ID, value);
8282 kshitij.so 405
  }
406
 
407
  public long getAmazonFbaInventory() {
408
    return this.amazonFbaInventory;
409
  }
410
 
411
  public void setAmazonFbaInventory(long amazonFbaInventory) {
412
    this.amazonFbaInventory = amazonFbaInventory;
413
    setAmazonFbaInventoryIsSet(true);
414
  }
415
 
416
  public void unsetAmazonFbaInventory() {
417
    __isset_bit_vector.clear(__AMAZONFBAINVENTORY_ISSET_ID);
418
  }
419
 
420
  /** Returns true if field amazonFbaInventory is set (has been assigned a value) and false otherwise */
421
  public boolean isSetAmazonFbaInventory() {
422
    return __isset_bit_vector.get(__AMAZONFBAINVENTORY_ISSET_ID);
423
  }
424
 
425
  public void setAmazonFbaInventoryIsSet(boolean value) {
426
    __isset_bit_vector.set(__AMAZONFBAINVENTORY_ISSET_ID, value);
427
  }
428
 
429
  public boolean isIsOutOfStock() {
430
    return this.isOutOfStock;
431
  }
432
 
433
  public void setIsOutOfStock(boolean isOutOfStock) {
434
    this.isOutOfStock = isOutOfStock;
435
    setIsOutOfStockIsSet(true);
436
  }
437
 
438
  public void unsetIsOutOfStock() {
439
    __isset_bit_vector.clear(__ISOUTOFSTOCK_ISSET_ID);
440
  }
441
 
442
  /** Returns true if field isOutOfStock is set (has been assigned a value) and false otherwise */
443
  public boolean isSetIsOutOfStock() {
444
    return __isset_bit_vector.get(__ISOUTOFSTOCK_ISSET_ID);
445
  }
446
 
447
  public void setIsOutOfStockIsSet(boolean value) {
448
    __isset_bit_vector.set(__ISOUTOFSTOCK_ISSET_ID, value);
449
  }
450
 
451
  public double getSalePrice() {
452
    return this.salePrice;
453
  }
454
 
455
  public void setSalePrice(double salePrice) {
456
    this.salePrice = salePrice;
457
    setSalePriceIsSet(true);
458
  }
459
 
460
  public void unsetSalePrice() {
461
    __isset_bit_vector.clear(__SALEPRICE_ISSET_ID);
462
  }
463
 
464
  /** Returns true if field salePrice is set (has been assigned a value) and false otherwise */
465
  public boolean isSetSalePrice() {
466
    return __isset_bit_vector.get(__SALEPRICE_ISSET_ID);
467
  }
468
 
469
  public void setSalePriceIsSet(boolean value) {
470
    __isset_bit_vector.set(__SALEPRICE_ISSET_ID, value);
471
  }
472
 
473
  public double getMinFbaPrice() {
474
    return this.minFbaPrice;
475
  }
476
 
477
  public void setMinFbaPrice(double minFbaPrice) {
478
    this.minFbaPrice = minFbaPrice;
479
    setMinFbaPriceIsSet(true);
480
  }
481
 
482
  public void unsetMinFbaPrice() {
483
    __isset_bit_vector.clear(__MINFBAPRICE_ISSET_ID);
484
  }
485
 
486
  /** Returns true if field minFbaPrice is set (has been assigned a value) and false otherwise */
487
  public boolean isSetMinFbaPrice() {
488
    return __isset_bit_vector.get(__MINFBAPRICE_ISSET_ID);
489
  }
490
 
491
  public void setMinFbaPriceIsSet(boolean value) {
492
    __isset_bit_vector.set(__MINFBAPRICE_ISSET_ID, value);
493
  }
494
 
495
  public double getMinMfnPrice() {
496
    return this.minMfnPrice;
497
  }
498
 
499
  public void setMinMfnPrice(double minMfnPrice) {
500
    this.minMfnPrice = minMfnPrice;
501
    setMinMfnPriceIsSet(true);
502
  }
503
 
504
  public void unsetMinMfnPrice() {
505
    __isset_bit_vector.clear(__MINMFNPRICE_ISSET_ID);
506
  }
507
 
508
  /** Returns true if field minMfnPrice is set (has been assigned a value) and false otherwise */
509
  public boolean isSetMinMfnPrice() {
510
    return __isset_bit_vector.get(__MINMFNPRICE_ISSET_ID);
511
  }
512
 
513
  public void setMinMfnPriceIsSet(boolean value) {
514
    __isset_bit_vector.set(__MINMFNPRICE_ISSET_ID, value);
515
  }
516
 
8363 vikram.rag 517
  public double getTotalSale() {
518
    return this.totalSale;
519
  }
520
 
521
  public void setTotalSale(double totalSale) {
522
    this.totalSale = totalSale;
523
    setTotalSaleIsSet(true);
524
  }
525
 
526
  public void unsetTotalSale() {
527
    __isset_bit_vector.clear(__TOTALSALE_ISSET_ID);
528
  }
529
 
530
  /** Returns true if field totalSale is set (has been assigned a value) and false otherwise */
531
  public boolean isSetTotalSale() {
532
    return __isset_bit_vector.get(__TOTALSALE_ISSET_ID);
533
  }
534
 
535
  public void setTotalSaleIsSet(boolean value) {
536
    __isset_bit_vector.set(__TOTALSALE_ISSET_ID, value);
537
  }
538
 
539
  public double getPromotionSale() {
540
    return this.promotionSale;
541
  }
542
 
543
  public void setPromotionSale(double promotionSale) {
544
    this.promotionSale = promotionSale;
545
    setPromotionSaleIsSet(true);
546
  }
547
 
548
  public void unsetPromotionSale() {
549
    __isset_bit_vector.clear(__PROMOTIONSALE_ISSET_ID);
550
  }
551
 
552
  /** Returns true if field promotionSale is set (has been assigned a value) and false otherwise */
553
  public boolean isSetPromotionSale() {
554
    return __isset_bit_vector.get(__PROMOTIONSALE_ISSET_ID);
555
  }
556
 
557
  public void setPromotionSaleIsSet(boolean value) {
558
    __isset_bit_vector.set(__PROMOTIONSALE_ISSET_ID, value);
559
  }
560
 
561
  public int getPromotionOrderCount() {
562
    return this.promotionOrderCount;
563
  }
564
 
565
  public void setPromotionOrderCount(int promotionOrderCount) {
566
    this.promotionOrderCount = promotionOrderCount;
567
    setPromotionOrderCountIsSet(true);
568
  }
569
 
570
  public void unsetPromotionOrderCount() {
571
    __isset_bit_vector.clear(__PROMOTIONORDERCOUNT_ISSET_ID);
572
  }
573
 
574
  /** Returns true if field promotionOrderCount is set (has been assigned a value) and false otherwise */
575
  public boolean isSetPromotionOrderCount() {
576
    return __isset_bit_vector.get(__PROMOTIONORDERCOUNT_ISSET_ID);
577
  }
578
 
579
  public void setPromotionOrderCountIsSet(boolean value) {
580
    __isset_bit_vector.set(__PROMOTIONORDERCOUNT_ISSET_ID, value);
581
  }
582
 
8445 vikram.rag 583
  public double getOurPrice() {
584
    return this.ourPrice;
585
  }
586
 
587
  public void setOurPrice(double ourPrice) {
588
    this.ourPrice = ourPrice;
589
    setOurPriceIsSet(true);
590
  }
591
 
592
  public void unsetOurPrice() {
593
    __isset_bit_vector.clear(__OURPRICE_ISSET_ID);
594
  }
595
 
596
  /** Returns true if field ourPrice is set (has been assigned a value) and false otherwise */
597
  public boolean isSetOurPrice() {
598
    return __isset_bit_vector.get(__OURPRICE_ISSET_ID);
599
  }
600
 
601
  public void setOurPriceIsSet(boolean value) {
602
    __isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
603
  }
604
 
8532 vikram.rag 605
  public long getMinFbaPriceSnapshotDate() {
606
    return this.minFbaPriceSnapshotDate;
607
  }
608
 
609
  public void setMinFbaPriceSnapshotDate(long minFbaPriceSnapshotDate) {
610
    this.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate;
611
    setMinFbaPriceSnapshotDateIsSet(true);
612
  }
613
 
614
  public void unsetMinFbaPriceSnapshotDate() {
615
    __isset_bit_vector.clear(__MINFBAPRICESNAPSHOTDATE_ISSET_ID);
616
  }
617
 
618
  /** Returns true if field minFbaPriceSnapshotDate is set (has been assigned a value) and false otherwise */
619
  public boolean isSetMinFbaPriceSnapshotDate() {
620
    return __isset_bit_vector.get(__MINFBAPRICESNAPSHOTDATE_ISSET_ID);
621
  }
622
 
623
  public void setMinFbaPriceSnapshotDateIsSet(boolean value) {
624
    __isset_bit_vector.set(__MINFBAPRICESNAPSHOTDATE_ISSET_ID, value);
625
  }
626
 
627
  public long getMinMfnPriceSnapshotDate() {
628
    return this.minMfnPriceSnapshotDate;
629
  }
630
 
631
  public void setMinMfnPriceSnapshotDate(long minMfnPriceSnapshotDate) {
632
    this.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate;
633
    setMinMfnPriceSnapshotDateIsSet(true);
634
  }
635
 
636
  public void unsetMinMfnPriceSnapshotDate() {
637
    __isset_bit_vector.clear(__MINMFNPRICESNAPSHOTDATE_ISSET_ID);
638
  }
639
 
640
  /** Returns true if field minMfnPriceSnapshotDate is set (has been assigned a value) and false otherwise */
641
  public boolean isSetMinMfnPriceSnapshotDate() {
642
    return __isset_bit_vector.get(__MINMFNPRICESNAPSHOTDATE_ISSET_ID);
643
  }
644
 
645
  public void setMinMfnPriceSnapshotDateIsSet(boolean value) {
646
    __isset_bit_vector.set(__MINMFNPRICESNAPSHOTDATE_ISSET_ID, value);
647
  }
648
 
649
  public long getOurPriceSnapshotDate() {
650
    return this.ourPriceSnapshotDate;
651
  }
652
 
653
  public void setOurPriceSnapshotDate(long ourPriceSnapshotDate) {
654
    this.ourPriceSnapshotDate = ourPriceSnapshotDate;
655
    setOurPriceSnapshotDateIsSet(true);
656
  }
657
 
658
  public void unsetOurPriceSnapshotDate() {
659
    __isset_bit_vector.clear(__OURPRICESNAPSHOTDATE_ISSET_ID);
660
  }
661
 
662
  /** Returns true if field ourPriceSnapshotDate is set (has been assigned a value) and false otherwise */
663
  public boolean isSetOurPriceSnapshotDate() {
664
    return __isset_bit_vector.get(__OURPRICESNAPSHOTDATE_ISSET_ID);
665
  }
666
 
667
  public void setOurPriceSnapshotDateIsSet(boolean value) {
668
    __isset_bit_vector.set(__OURPRICESNAPSHOTDATE_ISSET_ID, value);
669
  }
670
 
671
  public long getSalePriceSnapshotDate() {
672
    return this.salePriceSnapshotDate;
673
  }
674
 
675
  public void setSalePriceSnapshotDate(long salePriceSnapshotDate) {
676
    this.salePriceSnapshotDate = salePriceSnapshotDate;
677
    setSalePriceSnapshotDateIsSet(true);
678
  }
679
 
680
  public void unsetSalePriceSnapshotDate() {
681
    __isset_bit_vector.clear(__SALEPRICESNAPSHOTDATE_ISSET_ID);
682
  }
683
 
684
  /** Returns true if field salePriceSnapshotDate is set (has been assigned a value) and false otherwise */
685
  public boolean isSetSalePriceSnapshotDate() {
686
    return __isset_bit_vector.get(__SALEPRICESNAPSHOTDATE_ISSET_ID);
687
  }
688
 
689
  public void setSalePriceSnapshotDateIsSet(boolean value) {
690
    __isset_bit_vector.set(__SALEPRICESNAPSHOTDATE_ISSET_ID, value);
691
  }
692
 
8282 kshitij.so 693
  public void setFieldValue(_Fields field, Object value) {
694
    switch (field) {
695
    case DATE_OF_SALE:
696
      if (value == null) {
697
        unsetDateOfSale();
698
      } else {
699
        setDateOfSale((Long)value);
700
      }
701
      break;
702
 
703
    case ITEM_ID:
704
      if (value == null) {
705
        unsetItem_id();
706
      } else {
707
        setItem_id((Long)value);
708
      }
709
      break;
710
 
8363 vikram.rag 711
    case TOTAL_ORDER_COUNT:
8282 kshitij.so 712
      if (value == null) {
8363 vikram.rag 713
        unsetTotalOrderCount();
8282 kshitij.so 714
      } else {
8363 vikram.rag 715
        setTotalOrderCount((Integer)value);
8282 kshitij.so 716
      }
717
      break;
718
 
719
    case AMAZON_FBA_INVENTORY:
720
      if (value == null) {
721
        unsetAmazonFbaInventory();
722
      } else {
723
        setAmazonFbaInventory((Long)value);
724
      }
725
      break;
726
 
727
    case IS_OUT_OF_STOCK:
728
      if (value == null) {
729
        unsetIsOutOfStock();
730
      } else {
731
        setIsOutOfStock((Boolean)value);
732
      }
733
      break;
734
 
735
    case SALE_PRICE:
736
      if (value == null) {
737
        unsetSalePrice();
738
      } else {
739
        setSalePrice((Double)value);
740
      }
741
      break;
742
 
743
    case MIN_FBA_PRICE:
744
      if (value == null) {
745
        unsetMinFbaPrice();
746
      } else {
747
        setMinFbaPrice((Double)value);
748
      }
749
      break;
750
 
751
    case MIN_MFN_PRICE:
752
      if (value == null) {
753
        unsetMinMfnPrice();
754
      } else {
755
        setMinMfnPrice((Double)value);
756
      }
757
      break;
758
 
8363 vikram.rag 759
    case TOTAL_SALE:
760
      if (value == null) {
761
        unsetTotalSale();
762
      } else {
763
        setTotalSale((Double)value);
764
      }
765
      break;
766
 
767
    case PROMOTION_SALE:
768
      if (value == null) {
769
        unsetPromotionSale();
770
      } else {
771
        setPromotionSale((Double)value);
772
      }
773
      break;
774
 
775
    case PROMOTION_ORDER_COUNT:
776
      if (value == null) {
777
        unsetPromotionOrderCount();
778
      } else {
779
        setPromotionOrderCount((Integer)value);
780
      }
781
      break;
782
 
8445 vikram.rag 783
    case OUR_PRICE:
784
      if (value == null) {
785
        unsetOurPrice();
786
      } else {
787
        setOurPrice((Double)value);
788
      }
789
      break;
790
 
8532 vikram.rag 791
    case MIN_FBA_PRICE_SNAPSHOT_DATE:
792
      if (value == null) {
793
        unsetMinFbaPriceSnapshotDate();
794
      } else {
795
        setMinFbaPriceSnapshotDate((Long)value);
796
      }
797
      break;
798
 
799
    case MIN_MFN_PRICE_SNAPSHOT_DATE:
800
      if (value == null) {
801
        unsetMinMfnPriceSnapshotDate();
802
      } else {
803
        setMinMfnPriceSnapshotDate((Long)value);
804
      }
805
      break;
806
 
807
    case OUR_PRICE_SNAPSHOT_DATE:
808
      if (value == null) {
809
        unsetOurPriceSnapshotDate();
810
      } else {
811
        setOurPriceSnapshotDate((Long)value);
812
      }
813
      break;
814
 
815
    case SALE_PRICE_SNAPSHOT_DATE:
816
      if (value == null) {
817
        unsetSalePriceSnapshotDate();
818
      } else {
819
        setSalePriceSnapshotDate((Long)value);
820
      }
821
      break;
822
 
8282 kshitij.so 823
    }
824
  }
825
 
826
  public Object getFieldValue(_Fields field) {
827
    switch (field) {
828
    case DATE_OF_SALE:
829
      return Long.valueOf(getDateOfSale());
830
 
831
    case ITEM_ID:
832
      return Long.valueOf(getItem_id());
833
 
8363 vikram.rag 834
    case TOTAL_ORDER_COUNT:
835
      return Integer.valueOf(getTotalOrderCount());
8282 kshitij.so 836
 
837
    case AMAZON_FBA_INVENTORY:
838
      return Long.valueOf(getAmazonFbaInventory());
839
 
840
    case IS_OUT_OF_STOCK:
841
      return Boolean.valueOf(isIsOutOfStock());
842
 
843
    case SALE_PRICE:
844
      return Double.valueOf(getSalePrice());
845
 
846
    case MIN_FBA_PRICE:
847
      return Double.valueOf(getMinFbaPrice());
848
 
849
    case MIN_MFN_PRICE:
850
      return Double.valueOf(getMinMfnPrice());
851
 
8363 vikram.rag 852
    case TOTAL_SALE:
853
      return Double.valueOf(getTotalSale());
854
 
855
    case PROMOTION_SALE:
856
      return Double.valueOf(getPromotionSale());
857
 
858
    case PROMOTION_ORDER_COUNT:
859
      return Integer.valueOf(getPromotionOrderCount());
860
 
8445 vikram.rag 861
    case OUR_PRICE:
862
      return Double.valueOf(getOurPrice());
863
 
8532 vikram.rag 864
    case MIN_FBA_PRICE_SNAPSHOT_DATE:
865
      return Long.valueOf(getMinFbaPriceSnapshotDate());
866
 
867
    case MIN_MFN_PRICE_SNAPSHOT_DATE:
868
      return Long.valueOf(getMinMfnPriceSnapshotDate());
869
 
870
    case OUR_PRICE_SNAPSHOT_DATE:
871
      return Long.valueOf(getOurPriceSnapshotDate());
872
 
873
    case SALE_PRICE_SNAPSHOT_DATE:
874
      return Long.valueOf(getSalePriceSnapshotDate());
875
 
8282 kshitij.so 876
    }
877
    throw new IllegalStateException();
878
  }
879
 
880
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
881
  public boolean isSet(_Fields field) {
882
    if (field == null) {
883
      throw new IllegalArgumentException();
884
    }
885
 
886
    switch (field) {
887
    case DATE_OF_SALE:
888
      return isSetDateOfSale();
889
    case ITEM_ID:
890
      return isSetItem_id();
8363 vikram.rag 891
    case TOTAL_ORDER_COUNT:
892
      return isSetTotalOrderCount();
8282 kshitij.so 893
    case AMAZON_FBA_INVENTORY:
894
      return isSetAmazonFbaInventory();
895
    case IS_OUT_OF_STOCK:
896
      return isSetIsOutOfStock();
897
    case SALE_PRICE:
898
      return isSetSalePrice();
899
    case MIN_FBA_PRICE:
900
      return isSetMinFbaPrice();
901
    case MIN_MFN_PRICE:
902
      return isSetMinMfnPrice();
8363 vikram.rag 903
    case TOTAL_SALE:
904
      return isSetTotalSale();
905
    case PROMOTION_SALE:
906
      return isSetPromotionSale();
907
    case PROMOTION_ORDER_COUNT:
908
      return isSetPromotionOrderCount();
8445 vikram.rag 909
    case OUR_PRICE:
910
      return isSetOurPrice();
8532 vikram.rag 911
    case MIN_FBA_PRICE_SNAPSHOT_DATE:
912
      return isSetMinFbaPriceSnapshotDate();
913
    case MIN_MFN_PRICE_SNAPSHOT_DATE:
914
      return isSetMinMfnPriceSnapshotDate();
915
    case OUR_PRICE_SNAPSHOT_DATE:
916
      return isSetOurPriceSnapshotDate();
917
    case SALE_PRICE_SNAPSHOT_DATE:
918
      return isSetSalePriceSnapshotDate();
8282 kshitij.so 919
    }
920
    throw new IllegalStateException();
921
  }
922
 
923
  @Override
924
  public boolean equals(Object that) {
925
    if (that == null)
926
      return false;
927
    if (that instanceof AmazonFbaSalesSnapshot)
928
      return this.equals((AmazonFbaSalesSnapshot)that);
929
    return false;
930
  }
931
 
932
  public boolean equals(AmazonFbaSalesSnapshot that) {
933
    if (that == null)
934
      return false;
935
 
936
    boolean this_present_dateOfSale = true;
937
    boolean that_present_dateOfSale = true;
938
    if (this_present_dateOfSale || that_present_dateOfSale) {
939
      if (!(this_present_dateOfSale && that_present_dateOfSale))
940
        return false;
941
      if (this.dateOfSale != that.dateOfSale)
942
        return false;
943
    }
944
 
945
    boolean this_present_item_id = true;
946
    boolean that_present_item_id = true;
947
    if (this_present_item_id || that_present_item_id) {
948
      if (!(this_present_item_id && that_present_item_id))
949
        return false;
950
      if (this.item_id != that.item_id)
951
        return false;
952
    }
953
 
8363 vikram.rag 954
    boolean this_present_totalOrderCount = true;
955
    boolean that_present_totalOrderCount = true;
956
    if (this_present_totalOrderCount || that_present_totalOrderCount) {
957
      if (!(this_present_totalOrderCount && that_present_totalOrderCount))
8282 kshitij.so 958
        return false;
8363 vikram.rag 959
      if (this.totalOrderCount != that.totalOrderCount)
8282 kshitij.so 960
        return false;
961
    }
962
 
963
    boolean this_present_amazonFbaInventory = true;
964
    boolean that_present_amazonFbaInventory = true;
965
    if (this_present_amazonFbaInventory || that_present_amazonFbaInventory) {
966
      if (!(this_present_amazonFbaInventory && that_present_amazonFbaInventory))
967
        return false;
968
      if (this.amazonFbaInventory != that.amazonFbaInventory)
969
        return false;
970
    }
971
 
972
    boolean this_present_isOutOfStock = true;
973
    boolean that_present_isOutOfStock = true;
974
    if (this_present_isOutOfStock || that_present_isOutOfStock) {
975
      if (!(this_present_isOutOfStock && that_present_isOutOfStock))
976
        return false;
977
      if (this.isOutOfStock != that.isOutOfStock)
978
        return false;
979
    }
980
 
981
    boolean this_present_salePrice = true;
982
    boolean that_present_salePrice = true;
983
    if (this_present_salePrice || that_present_salePrice) {
984
      if (!(this_present_salePrice && that_present_salePrice))
985
        return false;
986
      if (this.salePrice != that.salePrice)
987
        return false;
988
    }
989
 
990
    boolean this_present_minFbaPrice = true;
991
    boolean that_present_minFbaPrice = true;
992
    if (this_present_minFbaPrice || that_present_minFbaPrice) {
993
      if (!(this_present_minFbaPrice && that_present_minFbaPrice))
994
        return false;
995
      if (this.minFbaPrice != that.minFbaPrice)
996
        return false;
997
    }
998
 
999
    boolean this_present_minMfnPrice = true;
1000
    boolean that_present_minMfnPrice = true;
1001
    if (this_present_minMfnPrice || that_present_minMfnPrice) {
1002
      if (!(this_present_minMfnPrice && that_present_minMfnPrice))
1003
        return false;
1004
      if (this.minMfnPrice != that.minMfnPrice)
1005
        return false;
1006
    }
1007
 
8363 vikram.rag 1008
    boolean this_present_totalSale = true;
1009
    boolean that_present_totalSale = true;
1010
    if (this_present_totalSale || that_present_totalSale) {
1011
      if (!(this_present_totalSale && that_present_totalSale))
1012
        return false;
1013
      if (this.totalSale != that.totalSale)
1014
        return false;
1015
    }
1016
 
1017
    boolean this_present_promotionSale = true;
1018
    boolean that_present_promotionSale = true;
1019
    if (this_present_promotionSale || that_present_promotionSale) {
1020
      if (!(this_present_promotionSale && that_present_promotionSale))
1021
        return false;
1022
      if (this.promotionSale != that.promotionSale)
1023
        return false;
1024
    }
1025
 
1026
    boolean this_present_promotionOrderCount = true;
1027
    boolean that_present_promotionOrderCount = true;
1028
    if (this_present_promotionOrderCount || that_present_promotionOrderCount) {
1029
      if (!(this_present_promotionOrderCount && that_present_promotionOrderCount))
1030
        return false;
1031
      if (this.promotionOrderCount != that.promotionOrderCount)
1032
        return false;
1033
    }
1034
 
8445 vikram.rag 1035
    boolean this_present_ourPrice = true;
1036
    boolean that_present_ourPrice = true;
1037
    if (this_present_ourPrice || that_present_ourPrice) {
1038
      if (!(this_present_ourPrice && that_present_ourPrice))
1039
        return false;
1040
      if (this.ourPrice != that.ourPrice)
1041
        return false;
1042
    }
1043
 
8532 vikram.rag 1044
    boolean this_present_minFbaPriceSnapshotDate = true;
1045
    boolean that_present_minFbaPriceSnapshotDate = true;
1046
    if (this_present_minFbaPriceSnapshotDate || that_present_minFbaPriceSnapshotDate) {
1047
      if (!(this_present_minFbaPriceSnapshotDate && that_present_minFbaPriceSnapshotDate))
1048
        return false;
1049
      if (this.minFbaPriceSnapshotDate != that.minFbaPriceSnapshotDate)
1050
        return false;
1051
    }
1052
 
1053
    boolean this_present_minMfnPriceSnapshotDate = true;
1054
    boolean that_present_minMfnPriceSnapshotDate = true;
1055
    if (this_present_minMfnPriceSnapshotDate || that_present_minMfnPriceSnapshotDate) {
1056
      if (!(this_present_minMfnPriceSnapshotDate && that_present_minMfnPriceSnapshotDate))
1057
        return false;
1058
      if (this.minMfnPriceSnapshotDate != that.minMfnPriceSnapshotDate)
1059
        return false;
1060
    }
1061
 
1062
    boolean this_present_ourPriceSnapshotDate = true;
1063
    boolean that_present_ourPriceSnapshotDate = true;
1064
    if (this_present_ourPriceSnapshotDate || that_present_ourPriceSnapshotDate) {
1065
      if (!(this_present_ourPriceSnapshotDate && that_present_ourPriceSnapshotDate))
1066
        return false;
1067
      if (this.ourPriceSnapshotDate != that.ourPriceSnapshotDate)
1068
        return false;
1069
    }
1070
 
1071
    boolean this_present_salePriceSnapshotDate = true;
1072
    boolean that_present_salePriceSnapshotDate = true;
1073
    if (this_present_salePriceSnapshotDate || that_present_salePriceSnapshotDate) {
1074
      if (!(this_present_salePriceSnapshotDate && that_present_salePriceSnapshotDate))
1075
        return false;
1076
      if (this.salePriceSnapshotDate != that.salePriceSnapshotDate)
1077
        return false;
1078
    }
1079
 
8282 kshitij.so 1080
    return true;
1081
  }
1082
 
1083
  @Override
1084
  public int hashCode() {
1085
    return 0;
1086
  }
1087
 
1088
  public int compareTo(AmazonFbaSalesSnapshot other) {
1089
    if (!getClass().equals(other.getClass())) {
1090
      return getClass().getName().compareTo(other.getClass().getName());
1091
    }
1092
 
1093
    int lastComparison = 0;
1094
    AmazonFbaSalesSnapshot typedOther = (AmazonFbaSalesSnapshot)other;
1095
 
1096
    lastComparison = Boolean.valueOf(isSetDateOfSale()).compareTo(typedOther.isSetDateOfSale());
1097
    if (lastComparison != 0) {
1098
      return lastComparison;
1099
    }
1100
    if (isSetDateOfSale()) {
1101
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfSale, typedOther.dateOfSale);
1102
      if (lastComparison != 0) {
1103
        return lastComparison;
1104
      }
1105
    }
1106
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1107
    if (lastComparison != 0) {
1108
      return lastComparison;
1109
    }
1110
    if (isSetItem_id()) {
1111
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1112
      if (lastComparison != 0) {
1113
        return lastComparison;
1114
      }
1115
    }
8363 vikram.rag 1116
    lastComparison = Boolean.valueOf(isSetTotalOrderCount()).compareTo(typedOther.isSetTotalOrderCount());
8282 kshitij.so 1117
    if (lastComparison != 0) {
1118
      return lastComparison;
1119
    }
8363 vikram.rag 1120
    if (isSetTotalOrderCount()) {
1121
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalOrderCount, typedOther.totalOrderCount);
8282 kshitij.so 1122
      if (lastComparison != 0) {
1123
        return lastComparison;
1124
      }
1125
    }
1126
    lastComparison = Boolean.valueOf(isSetAmazonFbaInventory()).compareTo(typedOther.isSetAmazonFbaInventory());
1127
    if (lastComparison != 0) {
1128
      return lastComparison;
1129
    }
1130
    if (isSetAmazonFbaInventory()) {
1131
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonFbaInventory, typedOther.amazonFbaInventory);
1132
      if (lastComparison != 0) {
1133
        return lastComparison;
1134
      }
1135
    }
1136
    lastComparison = Boolean.valueOf(isSetIsOutOfStock()).compareTo(typedOther.isSetIsOutOfStock());
1137
    if (lastComparison != 0) {
1138
      return lastComparison;
1139
    }
1140
    if (isSetIsOutOfStock()) {
1141
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isOutOfStock, typedOther.isOutOfStock);
1142
      if (lastComparison != 0) {
1143
        return lastComparison;
1144
      }
1145
    }
1146
    lastComparison = Boolean.valueOf(isSetSalePrice()).compareTo(typedOther.isSetSalePrice());
1147
    if (lastComparison != 0) {
1148
      return lastComparison;
1149
    }
1150
    if (isSetSalePrice()) {
1151
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salePrice, typedOther.salePrice);
1152
      if (lastComparison != 0) {
1153
        return lastComparison;
1154
      }
1155
    }
1156
    lastComparison = Boolean.valueOf(isSetMinFbaPrice()).compareTo(typedOther.isSetMinFbaPrice());
1157
    if (lastComparison != 0) {
1158
      return lastComparison;
1159
    }
1160
    if (isSetMinFbaPrice()) {
1161
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minFbaPrice, typedOther.minFbaPrice);
1162
      if (lastComparison != 0) {
1163
        return lastComparison;
1164
      }
1165
    }
1166
    lastComparison = Boolean.valueOf(isSetMinMfnPrice()).compareTo(typedOther.isSetMinMfnPrice());
1167
    if (lastComparison != 0) {
1168
      return lastComparison;
1169
    }
1170
    if (isSetMinMfnPrice()) {
1171
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPrice, typedOther.minMfnPrice);
1172
      if (lastComparison != 0) {
1173
        return lastComparison;
1174
      }
1175
    }
8363 vikram.rag 1176
    lastComparison = Boolean.valueOf(isSetTotalSale()).compareTo(typedOther.isSetTotalSale());
1177
    if (lastComparison != 0) {
1178
      return lastComparison;
1179
    }
1180
    if (isSetTotalSale()) {
1181
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSale, typedOther.totalSale);
1182
      if (lastComparison != 0) {
1183
        return lastComparison;
1184
      }
1185
    }
1186
    lastComparison = Boolean.valueOf(isSetPromotionSale()).compareTo(typedOther.isSetPromotionSale());
1187
    if (lastComparison != 0) {
1188
      return lastComparison;
1189
    }
1190
    if (isSetPromotionSale()) {
1191
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionSale, typedOther.promotionSale);
1192
      if (lastComparison != 0) {
1193
        return lastComparison;
1194
      }
1195
    }
1196
    lastComparison = Boolean.valueOf(isSetPromotionOrderCount()).compareTo(typedOther.isSetPromotionOrderCount());
1197
    if (lastComparison != 0) {
1198
      return lastComparison;
1199
    }
1200
    if (isSetPromotionOrderCount()) {
1201
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionOrderCount, typedOther.promotionOrderCount);
1202
      if (lastComparison != 0) {
1203
        return lastComparison;
1204
      }
1205
    }
8445 vikram.rag 1206
    lastComparison = Boolean.valueOf(isSetOurPrice()).compareTo(typedOther.isSetOurPrice());
1207
    if (lastComparison != 0) {
1208
      return lastComparison;
1209
    }
1210
    if (isSetOurPrice()) {
1211
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
1212
      if (lastComparison != 0) {
1213
        return lastComparison;
1214
      }
1215
    }
8532 vikram.rag 1216
    lastComparison = Boolean.valueOf(isSetMinFbaPriceSnapshotDate()).compareTo(typedOther.isSetMinFbaPriceSnapshotDate());
1217
    if (lastComparison != 0) {
1218
      return lastComparison;
1219
    }
1220
    if (isSetMinFbaPriceSnapshotDate()) {
1221
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minFbaPriceSnapshotDate, typedOther.minFbaPriceSnapshotDate);
1222
      if (lastComparison != 0) {
1223
        return lastComparison;
1224
      }
1225
    }
1226
    lastComparison = Boolean.valueOf(isSetMinMfnPriceSnapshotDate()).compareTo(typedOther.isSetMinMfnPriceSnapshotDate());
1227
    if (lastComparison != 0) {
1228
      return lastComparison;
1229
    }
1230
    if (isSetMinMfnPriceSnapshotDate()) {
1231
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPriceSnapshotDate, typedOther.minMfnPriceSnapshotDate);
1232
      if (lastComparison != 0) {
1233
        return lastComparison;
1234
      }
1235
    }
1236
    lastComparison = Boolean.valueOf(isSetOurPriceSnapshotDate()).compareTo(typedOther.isSetOurPriceSnapshotDate());
1237
    if (lastComparison != 0) {
1238
      return lastComparison;
1239
    }
1240
    if (isSetOurPriceSnapshotDate()) {
1241
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPriceSnapshotDate, typedOther.ourPriceSnapshotDate);
1242
      if (lastComparison != 0) {
1243
        return lastComparison;
1244
      }
1245
    }
1246
    lastComparison = Boolean.valueOf(isSetSalePriceSnapshotDate()).compareTo(typedOther.isSetSalePriceSnapshotDate());
1247
    if (lastComparison != 0) {
1248
      return lastComparison;
1249
    }
1250
    if (isSetSalePriceSnapshotDate()) {
1251
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salePriceSnapshotDate, typedOther.salePriceSnapshotDate);
1252
      if (lastComparison != 0) {
1253
        return lastComparison;
1254
      }
1255
    }
8282 kshitij.so 1256
    return 0;
1257
  }
1258
 
1259
  public _Fields fieldForId(int fieldId) {
1260
    return _Fields.findByThriftId(fieldId);
1261
  }
1262
 
1263
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1264
    org.apache.thrift.protocol.TField field;
1265
    iprot.readStructBegin();
1266
    while (true)
1267
    {
1268
      field = iprot.readFieldBegin();
1269
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1270
        break;
1271
      }
1272
      switch (field.id) {
1273
        case 1: // DATE_OF_SALE
1274
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1275
            this.dateOfSale = iprot.readI64();
1276
            setDateOfSaleIsSet(true);
1277
          } else { 
1278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1279
          }
1280
          break;
1281
        case 2: // ITEM_ID
1282
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1283
            this.item_id = iprot.readI64();
1284
            setItem_idIsSet(true);
1285
          } else { 
1286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1287
          }
1288
          break;
8363 vikram.rag 1289
        case 3: // TOTAL_ORDER_COUNT
8282 kshitij.so 1290
          if (field.type == org.apache.thrift.protocol.TType.I32) {
8363 vikram.rag 1291
            this.totalOrderCount = iprot.readI32();
1292
            setTotalOrderCountIsSet(true);
8282 kshitij.so 1293
          } else { 
1294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1295
          }
1296
          break;
1297
        case 4: // AMAZON_FBA_INVENTORY
1298
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1299
            this.amazonFbaInventory = iprot.readI64();
1300
            setAmazonFbaInventoryIsSet(true);
1301
          } else { 
1302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1303
          }
1304
          break;
1305
        case 5: // IS_OUT_OF_STOCK
1306
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1307
            this.isOutOfStock = iprot.readBool();
1308
            setIsOutOfStockIsSet(true);
1309
          } else { 
1310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1311
          }
1312
          break;
1313
        case 6: // SALE_PRICE
1314
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1315
            this.salePrice = iprot.readDouble();
1316
            setSalePriceIsSet(true);
1317
          } else { 
1318
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1319
          }
1320
          break;
1321
        case 7: // MIN_FBA_PRICE
1322
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1323
            this.minFbaPrice = iprot.readDouble();
1324
            setMinFbaPriceIsSet(true);
1325
          } else { 
1326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1327
          }
1328
          break;
1329
        case 8: // MIN_MFN_PRICE
1330
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1331
            this.minMfnPrice = iprot.readDouble();
1332
            setMinMfnPriceIsSet(true);
1333
          } else { 
1334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1335
          }
1336
          break;
8363 vikram.rag 1337
        case 9: // TOTAL_SALE
1338
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1339
            this.totalSale = iprot.readDouble();
1340
            setTotalSaleIsSet(true);
1341
          } else { 
1342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1343
          }
1344
          break;
1345
        case 10: // PROMOTION_SALE
1346
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1347
            this.promotionSale = iprot.readDouble();
1348
            setPromotionSaleIsSet(true);
1349
          } else { 
1350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1351
          }
1352
          break;
1353
        case 11: // PROMOTION_ORDER_COUNT
1354
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1355
            this.promotionOrderCount = iprot.readI32();
1356
            setPromotionOrderCountIsSet(true);
1357
          } else { 
1358
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1359
          }
1360
          break;
8445 vikram.rag 1361
        case 12: // OUR_PRICE
1362
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1363
            this.ourPrice = iprot.readDouble();
1364
            setOurPriceIsSet(true);
1365
          } else { 
1366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1367
          }
1368
          break;
8532 vikram.rag 1369
        case 13: // MIN_FBA_PRICE_SNAPSHOT_DATE
1370
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1371
            this.minFbaPriceSnapshotDate = iprot.readI64();
1372
            setMinFbaPriceSnapshotDateIsSet(true);
1373
          } else { 
1374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1375
          }
1376
          break;
1377
        case 14: // MIN_MFN_PRICE_SNAPSHOT_DATE
1378
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1379
            this.minMfnPriceSnapshotDate = iprot.readI64();
1380
            setMinMfnPriceSnapshotDateIsSet(true);
1381
          } else { 
1382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1383
          }
1384
          break;
1385
        case 15: // OUR_PRICE_SNAPSHOT_DATE
1386
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1387
            this.ourPriceSnapshotDate = iprot.readI64();
1388
            setOurPriceSnapshotDateIsSet(true);
1389
          } else { 
1390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1391
          }
1392
          break;
1393
        case 16: // SALE_PRICE_SNAPSHOT_DATE
1394
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1395
            this.salePriceSnapshotDate = iprot.readI64();
1396
            setSalePriceSnapshotDateIsSet(true);
1397
          } else { 
1398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1399
          }
1400
          break;
8282 kshitij.so 1401
        default:
1402
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1403
      }
1404
      iprot.readFieldEnd();
1405
    }
1406
    iprot.readStructEnd();
1407
    validate();
1408
  }
1409
 
1410
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1411
    validate();
1412
 
1413
    oprot.writeStructBegin(STRUCT_DESC);
1414
    oprot.writeFieldBegin(DATE_OF_SALE_FIELD_DESC);
1415
    oprot.writeI64(this.dateOfSale);
1416
    oprot.writeFieldEnd();
1417
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1418
    oprot.writeI64(this.item_id);
1419
    oprot.writeFieldEnd();
8363 vikram.rag 1420
    oprot.writeFieldBegin(TOTAL_ORDER_COUNT_FIELD_DESC);
1421
    oprot.writeI32(this.totalOrderCount);
8282 kshitij.so 1422
    oprot.writeFieldEnd();
1423
    oprot.writeFieldBegin(AMAZON_FBA_INVENTORY_FIELD_DESC);
1424
    oprot.writeI64(this.amazonFbaInventory);
1425
    oprot.writeFieldEnd();
1426
    oprot.writeFieldBegin(IS_OUT_OF_STOCK_FIELD_DESC);
1427
    oprot.writeBool(this.isOutOfStock);
1428
    oprot.writeFieldEnd();
1429
    oprot.writeFieldBegin(SALE_PRICE_FIELD_DESC);
1430
    oprot.writeDouble(this.salePrice);
1431
    oprot.writeFieldEnd();
1432
    oprot.writeFieldBegin(MIN_FBA_PRICE_FIELD_DESC);
1433
    oprot.writeDouble(this.minFbaPrice);
1434
    oprot.writeFieldEnd();
1435
    oprot.writeFieldBegin(MIN_MFN_PRICE_FIELD_DESC);
1436
    oprot.writeDouble(this.minMfnPrice);
1437
    oprot.writeFieldEnd();
8363 vikram.rag 1438
    oprot.writeFieldBegin(TOTAL_SALE_FIELD_DESC);
1439
    oprot.writeDouble(this.totalSale);
1440
    oprot.writeFieldEnd();
1441
    oprot.writeFieldBegin(PROMOTION_SALE_FIELD_DESC);
1442
    oprot.writeDouble(this.promotionSale);
1443
    oprot.writeFieldEnd();
1444
    oprot.writeFieldBegin(PROMOTION_ORDER_COUNT_FIELD_DESC);
1445
    oprot.writeI32(this.promotionOrderCount);
1446
    oprot.writeFieldEnd();
8445 vikram.rag 1447
    oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
1448
    oprot.writeDouble(this.ourPrice);
1449
    oprot.writeFieldEnd();
8532 vikram.rag 1450
    oprot.writeFieldBegin(MIN_FBA_PRICE_SNAPSHOT_DATE_FIELD_DESC);
1451
    oprot.writeI64(this.minFbaPriceSnapshotDate);
1452
    oprot.writeFieldEnd();
1453
    oprot.writeFieldBegin(MIN_MFN_PRICE_SNAPSHOT_DATE_FIELD_DESC);
1454
    oprot.writeI64(this.minMfnPriceSnapshotDate);
1455
    oprot.writeFieldEnd();
1456
    oprot.writeFieldBegin(OUR_PRICE_SNAPSHOT_DATE_FIELD_DESC);
1457
    oprot.writeI64(this.ourPriceSnapshotDate);
1458
    oprot.writeFieldEnd();
1459
    oprot.writeFieldBegin(SALE_PRICE_SNAPSHOT_DATE_FIELD_DESC);
1460
    oprot.writeI64(this.salePriceSnapshotDate);
1461
    oprot.writeFieldEnd();
8282 kshitij.so 1462
    oprot.writeFieldStop();
1463
    oprot.writeStructEnd();
1464
  }
1465
 
1466
  @Override
1467
  public String toString() {
1468
    StringBuilder sb = new StringBuilder("AmazonFbaSalesSnapshot(");
1469
    boolean first = true;
1470
 
1471
    sb.append("dateOfSale:");
1472
    sb.append(this.dateOfSale);
1473
    first = false;
1474
    if (!first) sb.append(", ");
1475
    sb.append("item_id:");
1476
    sb.append(this.item_id);
1477
    first = false;
1478
    if (!first) sb.append(", ");
8363 vikram.rag 1479
    sb.append("totalOrderCount:");
1480
    sb.append(this.totalOrderCount);
8282 kshitij.so 1481
    first = false;
1482
    if (!first) sb.append(", ");
1483
    sb.append("amazonFbaInventory:");
1484
    sb.append(this.amazonFbaInventory);
1485
    first = false;
1486
    if (!first) sb.append(", ");
1487
    sb.append("isOutOfStock:");
1488
    sb.append(this.isOutOfStock);
1489
    first = false;
1490
    if (!first) sb.append(", ");
1491
    sb.append("salePrice:");
1492
    sb.append(this.salePrice);
1493
    first = false;
1494
    if (!first) sb.append(", ");
1495
    sb.append("minFbaPrice:");
1496
    sb.append(this.minFbaPrice);
1497
    first = false;
1498
    if (!first) sb.append(", ");
1499
    sb.append("minMfnPrice:");
1500
    sb.append(this.minMfnPrice);
1501
    first = false;
8363 vikram.rag 1502
    if (!first) sb.append(", ");
1503
    sb.append("totalSale:");
1504
    sb.append(this.totalSale);
1505
    first = false;
1506
    if (!first) sb.append(", ");
1507
    sb.append("promotionSale:");
1508
    sb.append(this.promotionSale);
1509
    first = false;
1510
    if (!first) sb.append(", ");
1511
    sb.append("promotionOrderCount:");
1512
    sb.append(this.promotionOrderCount);
1513
    first = false;
8445 vikram.rag 1514
    if (!first) sb.append(", ");
1515
    sb.append("ourPrice:");
1516
    sb.append(this.ourPrice);
1517
    first = false;
8532 vikram.rag 1518
    if (!first) sb.append(", ");
1519
    sb.append("minFbaPriceSnapshotDate:");
1520
    sb.append(this.minFbaPriceSnapshotDate);
1521
    first = false;
1522
    if (!first) sb.append(", ");
1523
    sb.append("minMfnPriceSnapshotDate:");
1524
    sb.append(this.minMfnPriceSnapshotDate);
1525
    first = false;
1526
    if (!first) sb.append(", ");
1527
    sb.append("ourPriceSnapshotDate:");
1528
    sb.append(this.ourPriceSnapshotDate);
1529
    first = false;
1530
    if (!first) sb.append(", ");
1531
    sb.append("salePriceSnapshotDate:");
1532
    sb.append(this.salePriceSnapshotDate);
1533
    first = false;
8282 kshitij.so 1534
    sb.append(")");
1535
    return sb.toString();
1536
  }
1537
 
1538
  public void validate() throws org.apache.thrift.TException {
1539
    // check for required fields
1540
  }
1541
 
1542
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1543
    try {
1544
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1545
    } catch (org.apache.thrift.TException te) {
1546
      throw new java.io.IOException(te);
1547
    }
1548
  }
1549
 
1550
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1551
    try {
1552
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1553
      __isset_bit_vector = new BitSet(1);
1554
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1555
    } catch (org.apache.thrift.TException te) {
1556
      throw new java.io.IOException(te);
1557
    }
1558
  }
1559
 
1560
}
1561