Subversion Repositories SmartDukaan

Rev

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