Subversion Repositories SmartDukaan

Rev

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