Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
12244 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.catalog;
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 CompetitorPricing implements org.apache.thrift.TBase<CompetitorPricing, CompetitorPricing._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CompetitorPricing");
25
 
26
  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)1);
27
  private static final org.apache.thrift.protocol.TField IS_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isSnapdeal", org.apache.thrift.protocol.TType.BOOL, (short)2);
28
  private static final org.apache.thrift.protocol.TField IS_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("isFlipkart", org.apache.thrift.protocol.TType.BOOL, (short)3);
29
  private static final org.apache.thrift.protocol.TField IS_AMAZON_FIELD_DESC = new org.apache.thrift.protocol.TField("isAmazon", org.apache.thrift.protocol.TType.BOOL, (short)4);
30
  private static final org.apache.thrift.protocol.TField LOWEST_SNAPDEAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSnapdealPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField LOWEST_FLIPKART_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestFlipkartPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
12256 kshitij.so 32
  private static final org.apache.thrift.protocol.TField PROCESSED_FIELD_DESC = new org.apache.thrift.protocol.TField("processed", org.apache.thrift.protocol.TType.BOOL, (short)7);
33
  private static final org.apache.thrift.protocol.TField UPLOAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadId", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField USER_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmail", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField OUR_SNAPDEAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourSnapdealPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField OUR_SNAPDEAL_OFFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourSnapdealOfferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField OUR_SNAPDEAL_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ourSnapdealInventory", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField LOWEST_SNAPDEAL_OFFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSnapdealOfferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
39
  private static final org.apache.thrift.protocol.TField LOWEST_SNAPDEAL_SELLER_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSnapdealSeller", org.apache.thrift.protocol.TType.STRING, (short)14);
40
  private static final org.apache.thrift.protocol.TField LOWEST_SNAPDEAL_SELLER_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSnapdealSellerInventory", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField OUR_FLIPKART_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourFlipkartPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)16);
42
  private static final org.apache.thrift.protocol.TField OUR_FLIPKART_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ourFlipkartInventory", org.apache.thrift.protocol.TType.I64, (short)17);
43
  private static final org.apache.thrift.protocol.TField LOWEST_FLIPKART_SELLER_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestFlipkartSeller", org.apache.thrift.protocol.TType.STRING, (short)18);
44
  private static final org.apache.thrift.protocol.TField OUR_MFN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourMfnPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField OUR_FBA_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourFbaPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
46
  private static final org.apache.thrift.protocol.TField OUR_MFN_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ourMfnInventory", org.apache.thrift.protocol.TType.I64, (short)21);
47
  private static final org.apache.thrift.protocol.TField OUR_FBA_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ourFbaInventory", org.apache.thrift.protocol.TType.I64, (short)22);
48
  private static final org.apache.thrift.protocol.TField LOWEST_AMAZON_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestAmazonPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
49
  private static final org.apache.thrift.protocol.TField LOWEST_AMAZON_SELLER_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestAmazonSeller", org.apache.thrift.protocol.TType.STRING, (short)24);
50
  private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)25);
12244 kshitij.so 51
 
52
  private long item_id; // required
53
  private boolean isSnapdeal; // required
54
  private boolean isFlipkart; // required
55
  private boolean isAmazon; // required
56
  private double lowestSnapdealPrice; // required
57
  private double lowestFlipkartPrice; // required
58
  private boolean processed; // required
59
  private long uploadId; // required
12256 kshitij.so 60
  private String userEmail; // required
61
  private double ourSnapdealPrice; // required
62
  private double ourSnapdealOfferPrice; // required
63
  private long ourSnapdealInventory; // required
64
  private double lowestSnapdealOfferPrice; // required
65
  private String lowestSnapdealSeller; // required
66
  private long lowestSnapdealSellerInventory; // required
67
  private double ourFlipkartPrice; // required
68
  private long ourFlipkartInventory; // required
69
  private String lowestFlipkartSeller; // required
70
  private double ourMfnPrice; // required
71
  private double ourFbaPrice; // required
72
  private long ourMfnInventory; // required
73
  private long ourFbaInventory; // required
74
  private double lowestAmazonPrice; // required
75
  private String lowestAmazonSeller; // required
76
  private String productName; // required
12244 kshitij.so 77
 
78
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
79
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
80
    ITEM_ID((short)1, "item_id"),
81
    IS_SNAPDEAL((short)2, "isSnapdeal"),
82
    IS_FLIPKART((short)3, "isFlipkart"),
83
    IS_AMAZON((short)4, "isAmazon"),
84
    LOWEST_SNAPDEAL_PRICE((short)5, "lowestSnapdealPrice"),
85
    LOWEST_FLIPKART_PRICE((short)6, "lowestFlipkartPrice"),
12256 kshitij.so 86
    PROCESSED((short)7, "processed"),
87
    UPLOAD_ID((short)8, "uploadId"),
88
    USER_EMAIL((short)9, "userEmail"),
89
    OUR_SNAPDEAL_PRICE((short)10, "ourSnapdealPrice"),
90
    OUR_SNAPDEAL_OFFER_PRICE((short)11, "ourSnapdealOfferPrice"),
91
    OUR_SNAPDEAL_INVENTORY((short)12, "ourSnapdealInventory"),
92
    LOWEST_SNAPDEAL_OFFER_PRICE((short)13, "lowestSnapdealOfferPrice"),
93
    LOWEST_SNAPDEAL_SELLER((short)14, "lowestSnapdealSeller"),
94
    LOWEST_SNAPDEAL_SELLER_INVENTORY((short)15, "lowestSnapdealSellerInventory"),
95
    OUR_FLIPKART_PRICE((short)16, "ourFlipkartPrice"),
96
    OUR_FLIPKART_INVENTORY((short)17, "ourFlipkartInventory"),
97
    LOWEST_FLIPKART_SELLER((short)18, "lowestFlipkartSeller"),
98
    OUR_MFN_PRICE((short)19, "ourMfnPrice"),
99
    OUR_FBA_PRICE((short)20, "ourFbaPrice"),
100
    OUR_MFN_INVENTORY((short)21, "ourMfnInventory"),
101
    OUR_FBA_INVENTORY((short)22, "ourFbaInventory"),
102
    LOWEST_AMAZON_PRICE((short)23, "lowestAmazonPrice"),
103
    LOWEST_AMAZON_SELLER((short)24, "lowestAmazonSeller"),
104
    PRODUCT_NAME((short)25, "productName");
12244 kshitij.so 105
 
106
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
107
 
108
    static {
109
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
110
        byName.put(field.getFieldName(), field);
111
      }
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches fieldId, or null if its not found.
116
     */
117
    public static _Fields findByThriftId(int fieldId) {
118
      switch(fieldId) {
119
        case 1: // ITEM_ID
120
          return ITEM_ID;
121
        case 2: // IS_SNAPDEAL
122
          return IS_SNAPDEAL;
123
        case 3: // IS_FLIPKART
124
          return IS_FLIPKART;
125
        case 4: // IS_AMAZON
126
          return IS_AMAZON;
127
        case 5: // LOWEST_SNAPDEAL_PRICE
128
          return LOWEST_SNAPDEAL_PRICE;
129
        case 6: // LOWEST_FLIPKART_PRICE
130
          return LOWEST_FLIPKART_PRICE;
12256 kshitij.so 131
        case 7: // PROCESSED
12244 kshitij.so 132
          return PROCESSED;
12256 kshitij.so 133
        case 8: // UPLOAD_ID
12244 kshitij.so 134
          return UPLOAD_ID;
12256 kshitij.so 135
        case 9: // USER_EMAIL
136
          return USER_EMAIL;
137
        case 10: // OUR_SNAPDEAL_PRICE
138
          return OUR_SNAPDEAL_PRICE;
139
        case 11: // OUR_SNAPDEAL_OFFER_PRICE
140
          return OUR_SNAPDEAL_OFFER_PRICE;
141
        case 12: // OUR_SNAPDEAL_INVENTORY
142
          return OUR_SNAPDEAL_INVENTORY;
143
        case 13: // LOWEST_SNAPDEAL_OFFER_PRICE
144
          return LOWEST_SNAPDEAL_OFFER_PRICE;
145
        case 14: // LOWEST_SNAPDEAL_SELLER
146
          return LOWEST_SNAPDEAL_SELLER;
147
        case 15: // LOWEST_SNAPDEAL_SELLER_INVENTORY
148
          return LOWEST_SNAPDEAL_SELLER_INVENTORY;
149
        case 16: // OUR_FLIPKART_PRICE
150
          return OUR_FLIPKART_PRICE;
151
        case 17: // OUR_FLIPKART_INVENTORY
152
          return OUR_FLIPKART_INVENTORY;
153
        case 18: // LOWEST_FLIPKART_SELLER
154
          return LOWEST_FLIPKART_SELLER;
155
        case 19: // OUR_MFN_PRICE
156
          return OUR_MFN_PRICE;
157
        case 20: // OUR_FBA_PRICE
158
          return OUR_FBA_PRICE;
159
        case 21: // OUR_MFN_INVENTORY
160
          return OUR_MFN_INVENTORY;
161
        case 22: // OUR_FBA_INVENTORY
162
          return OUR_FBA_INVENTORY;
163
        case 23: // LOWEST_AMAZON_PRICE
164
          return LOWEST_AMAZON_PRICE;
165
        case 24: // LOWEST_AMAZON_SELLER
166
          return LOWEST_AMAZON_SELLER;
167
        case 25: // PRODUCT_NAME
168
          return PRODUCT_NAME;
12244 kshitij.so 169
        default:
170
          return null;
171
      }
172
    }
173
 
174
    /**
175
     * Find the _Fields constant that matches fieldId, throwing an exception
176
     * if it is not found.
177
     */
178
    public static _Fields findByThriftIdOrThrow(int fieldId) {
179
      _Fields fields = findByThriftId(fieldId);
180
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
181
      return fields;
182
    }
183
 
184
    /**
185
     * Find the _Fields constant that matches name, or null if its not found.
186
     */
187
    public static _Fields findByName(String name) {
188
      return byName.get(name);
189
    }
190
 
191
    private final short _thriftId;
192
    private final String _fieldName;
193
 
194
    _Fields(short thriftId, String fieldName) {
195
      _thriftId = thriftId;
196
      _fieldName = fieldName;
197
    }
198
 
199
    public short getThriftFieldId() {
200
      return _thriftId;
201
    }
202
 
203
    public String getFieldName() {
204
      return _fieldName;
205
    }
206
  }
207
 
208
  // isset id assignments
209
  private static final int __ITEM_ID_ISSET_ID = 0;
210
  private static final int __ISSNAPDEAL_ISSET_ID = 1;
211
  private static final int __ISFLIPKART_ISSET_ID = 2;
212
  private static final int __ISAMAZON_ISSET_ID = 3;
213
  private static final int __LOWESTSNAPDEALPRICE_ISSET_ID = 4;
214
  private static final int __LOWESTFLIPKARTPRICE_ISSET_ID = 5;
12256 kshitij.so 215
  private static final int __PROCESSED_ISSET_ID = 6;
216
  private static final int __UPLOADID_ISSET_ID = 7;
217
  private static final int __OURSNAPDEALPRICE_ISSET_ID = 8;
218
  private static final int __OURSNAPDEALOFFERPRICE_ISSET_ID = 9;
219
  private static final int __OURSNAPDEALINVENTORY_ISSET_ID = 10;
220
  private static final int __LOWESTSNAPDEALOFFERPRICE_ISSET_ID = 11;
221
  private static final int __LOWESTSNAPDEALSELLERINVENTORY_ISSET_ID = 12;
222
  private static final int __OURFLIPKARTPRICE_ISSET_ID = 13;
223
  private static final int __OURFLIPKARTINVENTORY_ISSET_ID = 14;
224
  private static final int __OURMFNPRICE_ISSET_ID = 15;
225
  private static final int __OURFBAPRICE_ISSET_ID = 16;
226
  private static final int __OURMFNINVENTORY_ISSET_ID = 17;
227
  private static final int __OURFBAINVENTORY_ISSET_ID = 18;
228
  private static final int __LOWESTAMAZONPRICE_ISSET_ID = 19;
229
  private BitSet __isset_bit_vector = new BitSet(20);
12244 kshitij.so 230
 
231
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
232
  static {
233
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
234
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
236
    tmpMap.put(_Fields.IS_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("isSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
238
    tmpMap.put(_Fields.IS_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("isFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT, 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
240
    tmpMap.put(_Fields.IS_AMAZON, new org.apache.thrift.meta_data.FieldMetaData("isAmazon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
242
    tmpMap.put(_Fields.LOWEST_SNAPDEAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestSnapdealPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
244
    tmpMap.put(_Fields.LOWEST_FLIPKART_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestFlipkartPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
246
    tmpMap.put(_Fields.PROCESSED, new org.apache.thrift.meta_data.FieldMetaData("processed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
248
    tmpMap.put(_Fields.UPLOAD_ID, new org.apache.thrift.meta_data.FieldMetaData("uploadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
249
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12256 kshitij.so 250
    tmpMap.put(_Fields.USER_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("userEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
251
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
252
    tmpMap.put(_Fields.OUR_SNAPDEAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourSnapdealPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
253
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
254
    tmpMap.put(_Fields.OUR_SNAPDEAL_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourSnapdealOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
255
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
256
    tmpMap.put(_Fields.OUR_SNAPDEAL_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourSnapdealInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
257
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
258
    tmpMap.put(_Fields.LOWEST_SNAPDEAL_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestSnapdealOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
259
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
260
    tmpMap.put(_Fields.LOWEST_SNAPDEAL_SELLER, new org.apache.thrift.meta_data.FieldMetaData("lowestSnapdealSeller", org.apache.thrift.TFieldRequirementType.DEFAULT, 
261
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
262
    tmpMap.put(_Fields.LOWEST_SNAPDEAL_SELLER_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("lowestSnapdealSellerInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
263
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
264
    tmpMap.put(_Fields.OUR_FLIPKART_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourFlipkartPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
266
    tmpMap.put(_Fields.OUR_FLIPKART_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourFlipkartInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
268
    tmpMap.put(_Fields.LOWEST_FLIPKART_SELLER, new org.apache.thrift.meta_data.FieldMetaData("lowestFlipkartSeller", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
270
    tmpMap.put(_Fields.OUR_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
271
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
272
    tmpMap.put(_Fields.OUR_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
273
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
274
    tmpMap.put(_Fields.OUR_MFN_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourMfnInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
276
    tmpMap.put(_Fields.OUR_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
278
    tmpMap.put(_Fields.LOWEST_AMAZON_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestAmazonPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
280
    tmpMap.put(_Fields.LOWEST_AMAZON_SELLER, new org.apache.thrift.meta_data.FieldMetaData("lowestAmazonSeller", org.apache.thrift.TFieldRequirementType.DEFAULT, 
281
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
282
    tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
283
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12244 kshitij.so 284
    metaDataMap = Collections.unmodifiableMap(tmpMap);
285
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CompetitorPricing.class, metaDataMap);
286
  }
287
 
288
  public CompetitorPricing() {
289
  }
290
 
291
  public CompetitorPricing(
292
    long item_id,
293
    boolean isSnapdeal,
294
    boolean isFlipkart,
295
    boolean isAmazon,
296
    double lowestSnapdealPrice,
297
    double lowestFlipkartPrice,
298
    boolean processed,
12256 kshitij.so 299
    long uploadId,
300
    String userEmail,
301
    double ourSnapdealPrice,
302
    double ourSnapdealOfferPrice,
303
    long ourSnapdealInventory,
304
    double lowestSnapdealOfferPrice,
305
    String lowestSnapdealSeller,
306
    long lowestSnapdealSellerInventory,
307
    double ourFlipkartPrice,
308
    long ourFlipkartInventory,
309
    String lowestFlipkartSeller,
310
    double ourMfnPrice,
311
    double ourFbaPrice,
312
    long ourMfnInventory,
313
    long ourFbaInventory,
314
    double lowestAmazonPrice,
315
    String lowestAmazonSeller,
316
    String productName)
12244 kshitij.so 317
  {
318
    this();
319
    this.item_id = item_id;
320
    setItem_idIsSet(true);
321
    this.isSnapdeal = isSnapdeal;
322
    setIsSnapdealIsSet(true);
323
    this.isFlipkart = isFlipkart;
324
    setIsFlipkartIsSet(true);
325
    this.isAmazon = isAmazon;
326
    setIsAmazonIsSet(true);
327
    this.lowestSnapdealPrice = lowestSnapdealPrice;
328
    setLowestSnapdealPriceIsSet(true);
329
    this.lowestFlipkartPrice = lowestFlipkartPrice;
330
    setLowestFlipkartPriceIsSet(true);
331
    this.processed = processed;
332
    setProcessedIsSet(true);
333
    this.uploadId = uploadId;
334
    setUploadIdIsSet(true);
12256 kshitij.so 335
    this.userEmail = userEmail;
336
    this.ourSnapdealPrice = ourSnapdealPrice;
337
    setOurSnapdealPriceIsSet(true);
338
    this.ourSnapdealOfferPrice = ourSnapdealOfferPrice;
339
    setOurSnapdealOfferPriceIsSet(true);
340
    this.ourSnapdealInventory = ourSnapdealInventory;
341
    setOurSnapdealInventoryIsSet(true);
342
    this.lowestSnapdealOfferPrice = lowestSnapdealOfferPrice;
343
    setLowestSnapdealOfferPriceIsSet(true);
344
    this.lowestSnapdealSeller = lowestSnapdealSeller;
345
    this.lowestSnapdealSellerInventory = lowestSnapdealSellerInventory;
346
    setLowestSnapdealSellerInventoryIsSet(true);
347
    this.ourFlipkartPrice = ourFlipkartPrice;
348
    setOurFlipkartPriceIsSet(true);
349
    this.ourFlipkartInventory = ourFlipkartInventory;
350
    setOurFlipkartInventoryIsSet(true);
351
    this.lowestFlipkartSeller = lowestFlipkartSeller;
352
    this.ourMfnPrice = ourMfnPrice;
353
    setOurMfnPriceIsSet(true);
354
    this.ourFbaPrice = ourFbaPrice;
355
    setOurFbaPriceIsSet(true);
356
    this.ourMfnInventory = ourMfnInventory;
357
    setOurMfnInventoryIsSet(true);
358
    this.ourFbaInventory = ourFbaInventory;
359
    setOurFbaInventoryIsSet(true);
360
    this.lowestAmazonPrice = lowestAmazonPrice;
361
    setLowestAmazonPriceIsSet(true);
362
    this.lowestAmazonSeller = lowestAmazonSeller;
363
    this.productName = productName;
12244 kshitij.so 364
  }
365
 
366
  /**
367
   * Performs a deep copy on <i>other</i>.
368
   */
369
  public CompetitorPricing(CompetitorPricing other) {
370
    __isset_bit_vector.clear();
371
    __isset_bit_vector.or(other.__isset_bit_vector);
372
    this.item_id = other.item_id;
373
    this.isSnapdeal = other.isSnapdeal;
374
    this.isFlipkart = other.isFlipkart;
375
    this.isAmazon = other.isAmazon;
376
    this.lowestSnapdealPrice = other.lowestSnapdealPrice;
377
    this.lowestFlipkartPrice = other.lowestFlipkartPrice;
378
    this.processed = other.processed;
379
    this.uploadId = other.uploadId;
12256 kshitij.so 380
    if (other.isSetUserEmail()) {
381
      this.userEmail = other.userEmail;
382
    }
383
    this.ourSnapdealPrice = other.ourSnapdealPrice;
384
    this.ourSnapdealOfferPrice = other.ourSnapdealOfferPrice;
385
    this.ourSnapdealInventory = other.ourSnapdealInventory;
386
    this.lowestSnapdealOfferPrice = other.lowestSnapdealOfferPrice;
387
    if (other.isSetLowestSnapdealSeller()) {
388
      this.lowestSnapdealSeller = other.lowestSnapdealSeller;
389
    }
390
    this.lowestSnapdealSellerInventory = other.lowestSnapdealSellerInventory;
391
    this.ourFlipkartPrice = other.ourFlipkartPrice;
392
    this.ourFlipkartInventory = other.ourFlipkartInventory;
393
    if (other.isSetLowestFlipkartSeller()) {
394
      this.lowestFlipkartSeller = other.lowestFlipkartSeller;
395
    }
396
    this.ourMfnPrice = other.ourMfnPrice;
397
    this.ourFbaPrice = other.ourFbaPrice;
398
    this.ourMfnInventory = other.ourMfnInventory;
399
    this.ourFbaInventory = other.ourFbaInventory;
400
    this.lowestAmazonPrice = other.lowestAmazonPrice;
401
    if (other.isSetLowestAmazonSeller()) {
402
      this.lowestAmazonSeller = other.lowestAmazonSeller;
403
    }
404
    if (other.isSetProductName()) {
405
      this.productName = other.productName;
406
    }
12244 kshitij.so 407
  }
408
 
409
  public CompetitorPricing deepCopy() {
410
    return new CompetitorPricing(this);
411
  }
412
 
413
  @Override
414
  public void clear() {
415
    setItem_idIsSet(false);
416
    this.item_id = 0;
417
    setIsSnapdealIsSet(false);
418
    this.isSnapdeal = false;
419
    setIsFlipkartIsSet(false);
420
    this.isFlipkart = false;
421
    setIsAmazonIsSet(false);
422
    this.isAmazon = false;
423
    setLowestSnapdealPriceIsSet(false);
424
    this.lowestSnapdealPrice = 0.0;
425
    setLowestFlipkartPriceIsSet(false);
426
    this.lowestFlipkartPrice = 0.0;
427
    setProcessedIsSet(false);
428
    this.processed = false;
429
    setUploadIdIsSet(false);
430
    this.uploadId = 0;
12256 kshitij.so 431
    this.userEmail = null;
432
    setOurSnapdealPriceIsSet(false);
433
    this.ourSnapdealPrice = 0.0;
434
    setOurSnapdealOfferPriceIsSet(false);
435
    this.ourSnapdealOfferPrice = 0.0;
436
    setOurSnapdealInventoryIsSet(false);
437
    this.ourSnapdealInventory = 0;
438
    setLowestSnapdealOfferPriceIsSet(false);
439
    this.lowestSnapdealOfferPrice = 0.0;
440
    this.lowestSnapdealSeller = null;
441
    setLowestSnapdealSellerInventoryIsSet(false);
442
    this.lowestSnapdealSellerInventory = 0;
443
    setOurFlipkartPriceIsSet(false);
444
    this.ourFlipkartPrice = 0.0;
445
    setOurFlipkartInventoryIsSet(false);
446
    this.ourFlipkartInventory = 0;
447
    this.lowestFlipkartSeller = null;
448
    setOurMfnPriceIsSet(false);
449
    this.ourMfnPrice = 0.0;
450
    setOurFbaPriceIsSet(false);
451
    this.ourFbaPrice = 0.0;
452
    setOurMfnInventoryIsSet(false);
453
    this.ourMfnInventory = 0;
454
    setOurFbaInventoryIsSet(false);
455
    this.ourFbaInventory = 0;
456
    setLowestAmazonPriceIsSet(false);
457
    this.lowestAmazonPrice = 0.0;
458
    this.lowestAmazonSeller = null;
459
    this.productName = null;
12244 kshitij.so 460
  }
461
 
462
  public long getItem_id() {
463
    return this.item_id;
464
  }
465
 
466
  public void setItem_id(long item_id) {
467
    this.item_id = item_id;
468
    setItem_idIsSet(true);
469
  }
470
 
471
  public void unsetItem_id() {
472
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
473
  }
474
 
475
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
476
  public boolean isSetItem_id() {
477
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
478
  }
479
 
480
  public void setItem_idIsSet(boolean value) {
481
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
482
  }
483
 
484
  public boolean isIsSnapdeal() {
485
    return this.isSnapdeal;
486
  }
487
 
488
  public void setIsSnapdeal(boolean isSnapdeal) {
489
    this.isSnapdeal = isSnapdeal;
490
    setIsSnapdealIsSet(true);
491
  }
492
 
493
  public void unsetIsSnapdeal() {
494
    __isset_bit_vector.clear(__ISSNAPDEAL_ISSET_ID);
495
  }
496
 
497
  /** Returns true if field isSnapdeal is set (has been assigned a value) and false otherwise */
498
  public boolean isSetIsSnapdeal() {
499
    return __isset_bit_vector.get(__ISSNAPDEAL_ISSET_ID);
500
  }
501
 
502
  public void setIsSnapdealIsSet(boolean value) {
503
    __isset_bit_vector.set(__ISSNAPDEAL_ISSET_ID, value);
504
  }
505
 
506
  public boolean isIsFlipkart() {
507
    return this.isFlipkart;
508
  }
509
 
510
  public void setIsFlipkart(boolean isFlipkart) {
511
    this.isFlipkart = isFlipkart;
512
    setIsFlipkartIsSet(true);
513
  }
514
 
515
  public void unsetIsFlipkart() {
516
    __isset_bit_vector.clear(__ISFLIPKART_ISSET_ID);
517
  }
518
 
519
  /** Returns true if field isFlipkart is set (has been assigned a value) and false otherwise */
520
  public boolean isSetIsFlipkart() {
521
    return __isset_bit_vector.get(__ISFLIPKART_ISSET_ID);
522
  }
523
 
524
  public void setIsFlipkartIsSet(boolean value) {
525
    __isset_bit_vector.set(__ISFLIPKART_ISSET_ID, value);
526
  }
527
 
528
  public boolean isIsAmazon() {
529
    return this.isAmazon;
530
  }
531
 
532
  public void setIsAmazon(boolean isAmazon) {
533
    this.isAmazon = isAmazon;
534
    setIsAmazonIsSet(true);
535
  }
536
 
537
  public void unsetIsAmazon() {
538
    __isset_bit_vector.clear(__ISAMAZON_ISSET_ID);
539
  }
540
 
541
  /** Returns true if field isAmazon is set (has been assigned a value) and false otherwise */
542
  public boolean isSetIsAmazon() {
543
    return __isset_bit_vector.get(__ISAMAZON_ISSET_ID);
544
  }
545
 
546
  public void setIsAmazonIsSet(boolean value) {
547
    __isset_bit_vector.set(__ISAMAZON_ISSET_ID, value);
548
  }
549
 
550
  public double getLowestSnapdealPrice() {
551
    return this.lowestSnapdealPrice;
552
  }
553
 
554
  public void setLowestSnapdealPrice(double lowestSnapdealPrice) {
555
    this.lowestSnapdealPrice = lowestSnapdealPrice;
556
    setLowestSnapdealPriceIsSet(true);
557
  }
558
 
559
  public void unsetLowestSnapdealPrice() {
560
    __isset_bit_vector.clear(__LOWESTSNAPDEALPRICE_ISSET_ID);
561
  }
562
 
563
  /** Returns true if field lowestSnapdealPrice is set (has been assigned a value) and false otherwise */
564
  public boolean isSetLowestSnapdealPrice() {
565
    return __isset_bit_vector.get(__LOWESTSNAPDEALPRICE_ISSET_ID);
566
  }
567
 
568
  public void setLowestSnapdealPriceIsSet(boolean value) {
569
    __isset_bit_vector.set(__LOWESTSNAPDEALPRICE_ISSET_ID, value);
570
  }
571
 
572
  public double getLowestFlipkartPrice() {
573
    return this.lowestFlipkartPrice;
574
  }
575
 
576
  public void setLowestFlipkartPrice(double lowestFlipkartPrice) {
577
    this.lowestFlipkartPrice = lowestFlipkartPrice;
578
    setLowestFlipkartPriceIsSet(true);
579
  }
580
 
581
  public void unsetLowestFlipkartPrice() {
582
    __isset_bit_vector.clear(__LOWESTFLIPKARTPRICE_ISSET_ID);
583
  }
584
 
585
  /** Returns true if field lowestFlipkartPrice is set (has been assigned a value) and false otherwise */
586
  public boolean isSetLowestFlipkartPrice() {
587
    return __isset_bit_vector.get(__LOWESTFLIPKARTPRICE_ISSET_ID);
588
  }
589
 
590
  public void setLowestFlipkartPriceIsSet(boolean value) {
591
    __isset_bit_vector.set(__LOWESTFLIPKARTPRICE_ISSET_ID, value);
592
  }
593
 
594
  public boolean isProcessed() {
595
    return this.processed;
596
  }
597
 
598
  public void setProcessed(boolean processed) {
599
    this.processed = processed;
600
    setProcessedIsSet(true);
601
  }
602
 
603
  public void unsetProcessed() {
604
    __isset_bit_vector.clear(__PROCESSED_ISSET_ID);
605
  }
606
 
607
  /** Returns true if field processed is set (has been assigned a value) and false otherwise */
608
  public boolean isSetProcessed() {
609
    return __isset_bit_vector.get(__PROCESSED_ISSET_ID);
610
  }
611
 
612
  public void setProcessedIsSet(boolean value) {
613
    __isset_bit_vector.set(__PROCESSED_ISSET_ID, value);
614
  }
615
 
616
  public long getUploadId() {
617
    return this.uploadId;
618
  }
619
 
620
  public void setUploadId(long uploadId) {
621
    this.uploadId = uploadId;
622
    setUploadIdIsSet(true);
623
  }
624
 
625
  public void unsetUploadId() {
626
    __isset_bit_vector.clear(__UPLOADID_ISSET_ID);
627
  }
628
 
629
  /** Returns true if field uploadId is set (has been assigned a value) and false otherwise */
630
  public boolean isSetUploadId() {
631
    return __isset_bit_vector.get(__UPLOADID_ISSET_ID);
632
  }
633
 
634
  public void setUploadIdIsSet(boolean value) {
635
    __isset_bit_vector.set(__UPLOADID_ISSET_ID, value);
636
  }
637
 
12256 kshitij.so 638
  public String getUserEmail() {
639
    return this.userEmail;
640
  }
641
 
642
  public void setUserEmail(String userEmail) {
643
    this.userEmail = userEmail;
644
  }
645
 
646
  public void unsetUserEmail() {
647
    this.userEmail = null;
648
  }
649
 
650
  /** Returns true if field userEmail is set (has been assigned a value) and false otherwise */
651
  public boolean isSetUserEmail() {
652
    return this.userEmail != null;
653
  }
654
 
655
  public void setUserEmailIsSet(boolean value) {
656
    if (!value) {
657
      this.userEmail = null;
658
    }
659
  }
660
 
661
  public double getOurSnapdealPrice() {
662
    return this.ourSnapdealPrice;
663
  }
664
 
665
  public void setOurSnapdealPrice(double ourSnapdealPrice) {
666
    this.ourSnapdealPrice = ourSnapdealPrice;
667
    setOurSnapdealPriceIsSet(true);
668
  }
669
 
670
  public void unsetOurSnapdealPrice() {
671
    __isset_bit_vector.clear(__OURSNAPDEALPRICE_ISSET_ID);
672
  }
673
 
674
  /** Returns true if field ourSnapdealPrice is set (has been assigned a value) and false otherwise */
675
  public boolean isSetOurSnapdealPrice() {
676
    return __isset_bit_vector.get(__OURSNAPDEALPRICE_ISSET_ID);
677
  }
678
 
679
  public void setOurSnapdealPriceIsSet(boolean value) {
680
    __isset_bit_vector.set(__OURSNAPDEALPRICE_ISSET_ID, value);
681
  }
682
 
683
  public double getOurSnapdealOfferPrice() {
684
    return this.ourSnapdealOfferPrice;
685
  }
686
 
687
  public void setOurSnapdealOfferPrice(double ourSnapdealOfferPrice) {
688
    this.ourSnapdealOfferPrice = ourSnapdealOfferPrice;
689
    setOurSnapdealOfferPriceIsSet(true);
690
  }
691
 
692
  public void unsetOurSnapdealOfferPrice() {
693
    __isset_bit_vector.clear(__OURSNAPDEALOFFERPRICE_ISSET_ID);
694
  }
695
 
696
  /** Returns true if field ourSnapdealOfferPrice is set (has been assigned a value) and false otherwise */
697
  public boolean isSetOurSnapdealOfferPrice() {
698
    return __isset_bit_vector.get(__OURSNAPDEALOFFERPRICE_ISSET_ID);
699
  }
700
 
701
  public void setOurSnapdealOfferPriceIsSet(boolean value) {
702
    __isset_bit_vector.set(__OURSNAPDEALOFFERPRICE_ISSET_ID, value);
703
  }
704
 
705
  public long getOurSnapdealInventory() {
706
    return this.ourSnapdealInventory;
707
  }
708
 
709
  public void setOurSnapdealInventory(long ourSnapdealInventory) {
710
    this.ourSnapdealInventory = ourSnapdealInventory;
711
    setOurSnapdealInventoryIsSet(true);
712
  }
713
 
714
  public void unsetOurSnapdealInventory() {
715
    __isset_bit_vector.clear(__OURSNAPDEALINVENTORY_ISSET_ID);
716
  }
717
 
718
  /** Returns true if field ourSnapdealInventory is set (has been assigned a value) and false otherwise */
719
  public boolean isSetOurSnapdealInventory() {
720
    return __isset_bit_vector.get(__OURSNAPDEALINVENTORY_ISSET_ID);
721
  }
722
 
723
  public void setOurSnapdealInventoryIsSet(boolean value) {
724
    __isset_bit_vector.set(__OURSNAPDEALINVENTORY_ISSET_ID, value);
725
  }
726
 
727
  public double getLowestSnapdealOfferPrice() {
728
    return this.lowestSnapdealOfferPrice;
729
  }
730
 
731
  public void setLowestSnapdealOfferPrice(double lowestSnapdealOfferPrice) {
732
    this.lowestSnapdealOfferPrice = lowestSnapdealOfferPrice;
733
    setLowestSnapdealOfferPriceIsSet(true);
734
  }
735
 
736
  public void unsetLowestSnapdealOfferPrice() {
737
    __isset_bit_vector.clear(__LOWESTSNAPDEALOFFERPRICE_ISSET_ID);
738
  }
739
 
740
  /** Returns true if field lowestSnapdealOfferPrice is set (has been assigned a value) and false otherwise */
741
  public boolean isSetLowestSnapdealOfferPrice() {
742
    return __isset_bit_vector.get(__LOWESTSNAPDEALOFFERPRICE_ISSET_ID);
743
  }
744
 
745
  public void setLowestSnapdealOfferPriceIsSet(boolean value) {
746
    __isset_bit_vector.set(__LOWESTSNAPDEALOFFERPRICE_ISSET_ID, value);
747
  }
748
 
749
  public String getLowestSnapdealSeller() {
750
    return this.lowestSnapdealSeller;
751
  }
752
 
753
  public void setLowestSnapdealSeller(String lowestSnapdealSeller) {
754
    this.lowestSnapdealSeller = lowestSnapdealSeller;
755
  }
756
 
757
  public void unsetLowestSnapdealSeller() {
758
    this.lowestSnapdealSeller = null;
759
  }
760
 
761
  /** Returns true if field lowestSnapdealSeller is set (has been assigned a value) and false otherwise */
762
  public boolean isSetLowestSnapdealSeller() {
763
    return this.lowestSnapdealSeller != null;
764
  }
765
 
766
  public void setLowestSnapdealSellerIsSet(boolean value) {
767
    if (!value) {
768
      this.lowestSnapdealSeller = null;
769
    }
770
  }
771
 
772
  public long getLowestSnapdealSellerInventory() {
773
    return this.lowestSnapdealSellerInventory;
774
  }
775
 
776
  public void setLowestSnapdealSellerInventory(long lowestSnapdealSellerInventory) {
777
    this.lowestSnapdealSellerInventory = lowestSnapdealSellerInventory;
778
    setLowestSnapdealSellerInventoryIsSet(true);
779
  }
780
 
781
  public void unsetLowestSnapdealSellerInventory() {
782
    __isset_bit_vector.clear(__LOWESTSNAPDEALSELLERINVENTORY_ISSET_ID);
783
  }
784
 
785
  /** Returns true if field lowestSnapdealSellerInventory is set (has been assigned a value) and false otherwise */
786
  public boolean isSetLowestSnapdealSellerInventory() {
787
    return __isset_bit_vector.get(__LOWESTSNAPDEALSELLERINVENTORY_ISSET_ID);
788
  }
789
 
790
  public void setLowestSnapdealSellerInventoryIsSet(boolean value) {
791
    __isset_bit_vector.set(__LOWESTSNAPDEALSELLERINVENTORY_ISSET_ID, value);
792
  }
793
 
794
  public double getOurFlipkartPrice() {
795
    return this.ourFlipkartPrice;
796
  }
797
 
798
  public void setOurFlipkartPrice(double ourFlipkartPrice) {
799
    this.ourFlipkartPrice = ourFlipkartPrice;
800
    setOurFlipkartPriceIsSet(true);
801
  }
802
 
803
  public void unsetOurFlipkartPrice() {
804
    __isset_bit_vector.clear(__OURFLIPKARTPRICE_ISSET_ID);
805
  }
806
 
807
  /** Returns true if field ourFlipkartPrice is set (has been assigned a value) and false otherwise */
808
  public boolean isSetOurFlipkartPrice() {
809
    return __isset_bit_vector.get(__OURFLIPKARTPRICE_ISSET_ID);
810
  }
811
 
812
  public void setOurFlipkartPriceIsSet(boolean value) {
813
    __isset_bit_vector.set(__OURFLIPKARTPRICE_ISSET_ID, value);
814
  }
815
 
816
  public long getOurFlipkartInventory() {
817
    return this.ourFlipkartInventory;
818
  }
819
 
820
  public void setOurFlipkartInventory(long ourFlipkartInventory) {
821
    this.ourFlipkartInventory = ourFlipkartInventory;
822
    setOurFlipkartInventoryIsSet(true);
823
  }
824
 
825
  public void unsetOurFlipkartInventory() {
826
    __isset_bit_vector.clear(__OURFLIPKARTINVENTORY_ISSET_ID);
827
  }
828
 
829
  /** Returns true if field ourFlipkartInventory is set (has been assigned a value) and false otherwise */
830
  public boolean isSetOurFlipkartInventory() {
831
    return __isset_bit_vector.get(__OURFLIPKARTINVENTORY_ISSET_ID);
832
  }
833
 
834
  public void setOurFlipkartInventoryIsSet(boolean value) {
835
    __isset_bit_vector.set(__OURFLIPKARTINVENTORY_ISSET_ID, value);
836
  }
837
 
838
  public String getLowestFlipkartSeller() {
839
    return this.lowestFlipkartSeller;
840
  }
841
 
842
  public void setLowestFlipkartSeller(String lowestFlipkartSeller) {
843
    this.lowestFlipkartSeller = lowestFlipkartSeller;
844
  }
845
 
846
  public void unsetLowestFlipkartSeller() {
847
    this.lowestFlipkartSeller = null;
848
  }
849
 
850
  /** Returns true if field lowestFlipkartSeller is set (has been assigned a value) and false otherwise */
851
  public boolean isSetLowestFlipkartSeller() {
852
    return this.lowestFlipkartSeller != null;
853
  }
854
 
855
  public void setLowestFlipkartSellerIsSet(boolean value) {
856
    if (!value) {
857
      this.lowestFlipkartSeller = null;
858
    }
859
  }
860
 
861
  public double getOurMfnPrice() {
862
    return this.ourMfnPrice;
863
  }
864
 
865
  public void setOurMfnPrice(double ourMfnPrice) {
866
    this.ourMfnPrice = ourMfnPrice;
867
    setOurMfnPriceIsSet(true);
868
  }
869
 
870
  public void unsetOurMfnPrice() {
871
    __isset_bit_vector.clear(__OURMFNPRICE_ISSET_ID);
872
  }
873
 
874
  /** Returns true if field ourMfnPrice is set (has been assigned a value) and false otherwise */
875
  public boolean isSetOurMfnPrice() {
876
    return __isset_bit_vector.get(__OURMFNPRICE_ISSET_ID);
877
  }
878
 
879
  public void setOurMfnPriceIsSet(boolean value) {
880
    __isset_bit_vector.set(__OURMFNPRICE_ISSET_ID, value);
881
  }
882
 
883
  public double getOurFbaPrice() {
884
    return this.ourFbaPrice;
885
  }
886
 
887
  public void setOurFbaPrice(double ourFbaPrice) {
888
    this.ourFbaPrice = ourFbaPrice;
889
    setOurFbaPriceIsSet(true);
890
  }
891
 
892
  public void unsetOurFbaPrice() {
893
    __isset_bit_vector.clear(__OURFBAPRICE_ISSET_ID);
894
  }
895
 
896
  /** Returns true if field ourFbaPrice is set (has been assigned a value) and false otherwise */
897
  public boolean isSetOurFbaPrice() {
898
    return __isset_bit_vector.get(__OURFBAPRICE_ISSET_ID);
899
  }
900
 
901
  public void setOurFbaPriceIsSet(boolean value) {
902
    __isset_bit_vector.set(__OURFBAPRICE_ISSET_ID, value);
903
  }
904
 
905
  public long getOurMfnInventory() {
906
    return this.ourMfnInventory;
907
  }
908
 
909
  public void setOurMfnInventory(long ourMfnInventory) {
910
    this.ourMfnInventory = ourMfnInventory;
911
    setOurMfnInventoryIsSet(true);
912
  }
913
 
914
  public void unsetOurMfnInventory() {
915
    __isset_bit_vector.clear(__OURMFNINVENTORY_ISSET_ID);
916
  }
917
 
918
  /** Returns true if field ourMfnInventory is set (has been assigned a value) and false otherwise */
919
  public boolean isSetOurMfnInventory() {
920
    return __isset_bit_vector.get(__OURMFNINVENTORY_ISSET_ID);
921
  }
922
 
923
  public void setOurMfnInventoryIsSet(boolean value) {
924
    __isset_bit_vector.set(__OURMFNINVENTORY_ISSET_ID, value);
925
  }
926
 
927
  public long getOurFbaInventory() {
928
    return this.ourFbaInventory;
929
  }
930
 
931
  public void setOurFbaInventory(long ourFbaInventory) {
932
    this.ourFbaInventory = ourFbaInventory;
933
    setOurFbaInventoryIsSet(true);
934
  }
935
 
936
  public void unsetOurFbaInventory() {
937
    __isset_bit_vector.clear(__OURFBAINVENTORY_ISSET_ID);
938
  }
939
 
940
  /** Returns true if field ourFbaInventory is set (has been assigned a value) and false otherwise */
941
  public boolean isSetOurFbaInventory() {
942
    return __isset_bit_vector.get(__OURFBAINVENTORY_ISSET_ID);
943
  }
944
 
945
  public void setOurFbaInventoryIsSet(boolean value) {
946
    __isset_bit_vector.set(__OURFBAINVENTORY_ISSET_ID, value);
947
  }
948
 
949
  public double getLowestAmazonPrice() {
950
    return this.lowestAmazonPrice;
951
  }
952
 
953
  public void setLowestAmazonPrice(double lowestAmazonPrice) {
954
    this.lowestAmazonPrice = lowestAmazonPrice;
955
    setLowestAmazonPriceIsSet(true);
956
  }
957
 
958
  public void unsetLowestAmazonPrice() {
959
    __isset_bit_vector.clear(__LOWESTAMAZONPRICE_ISSET_ID);
960
  }
961
 
962
  /** Returns true if field lowestAmazonPrice is set (has been assigned a value) and false otherwise */
963
  public boolean isSetLowestAmazonPrice() {
964
    return __isset_bit_vector.get(__LOWESTAMAZONPRICE_ISSET_ID);
965
  }
966
 
967
  public void setLowestAmazonPriceIsSet(boolean value) {
968
    __isset_bit_vector.set(__LOWESTAMAZONPRICE_ISSET_ID, value);
969
  }
970
 
971
  public String getLowestAmazonSeller() {
972
    return this.lowestAmazonSeller;
973
  }
974
 
975
  public void setLowestAmazonSeller(String lowestAmazonSeller) {
976
    this.lowestAmazonSeller = lowestAmazonSeller;
977
  }
978
 
979
  public void unsetLowestAmazonSeller() {
980
    this.lowestAmazonSeller = null;
981
  }
982
 
983
  /** Returns true if field lowestAmazonSeller is set (has been assigned a value) and false otherwise */
984
  public boolean isSetLowestAmazonSeller() {
985
    return this.lowestAmazonSeller != null;
986
  }
987
 
988
  public void setLowestAmazonSellerIsSet(boolean value) {
989
    if (!value) {
990
      this.lowestAmazonSeller = null;
991
    }
992
  }
993
 
994
  public String getProductName() {
995
    return this.productName;
996
  }
997
 
998
  public void setProductName(String productName) {
999
    this.productName = productName;
1000
  }
1001
 
1002
  public void unsetProductName() {
1003
    this.productName = null;
1004
  }
1005
 
1006
  /** Returns true if field productName is set (has been assigned a value) and false otherwise */
1007
  public boolean isSetProductName() {
1008
    return this.productName != null;
1009
  }
1010
 
1011
  public void setProductNameIsSet(boolean value) {
1012
    if (!value) {
1013
      this.productName = null;
1014
    }
1015
  }
1016
 
12244 kshitij.so 1017
  public void setFieldValue(_Fields field, Object value) {
1018
    switch (field) {
1019
    case ITEM_ID:
1020
      if (value == null) {
1021
        unsetItem_id();
1022
      } else {
1023
        setItem_id((Long)value);
1024
      }
1025
      break;
1026
 
1027
    case IS_SNAPDEAL:
1028
      if (value == null) {
1029
        unsetIsSnapdeal();
1030
      } else {
1031
        setIsSnapdeal((Boolean)value);
1032
      }
1033
      break;
1034
 
1035
    case IS_FLIPKART:
1036
      if (value == null) {
1037
        unsetIsFlipkart();
1038
      } else {
1039
        setIsFlipkart((Boolean)value);
1040
      }
1041
      break;
1042
 
1043
    case IS_AMAZON:
1044
      if (value == null) {
1045
        unsetIsAmazon();
1046
      } else {
1047
        setIsAmazon((Boolean)value);
1048
      }
1049
      break;
1050
 
1051
    case LOWEST_SNAPDEAL_PRICE:
1052
      if (value == null) {
1053
        unsetLowestSnapdealPrice();
1054
      } else {
1055
        setLowestSnapdealPrice((Double)value);
1056
      }
1057
      break;
1058
 
1059
    case LOWEST_FLIPKART_PRICE:
1060
      if (value == null) {
1061
        unsetLowestFlipkartPrice();
1062
      } else {
1063
        setLowestFlipkartPrice((Double)value);
1064
      }
1065
      break;
1066
 
12256 kshitij.so 1067
    case PROCESSED:
12244 kshitij.so 1068
      if (value == null) {
12256 kshitij.so 1069
        unsetProcessed();
12244 kshitij.so 1070
      } else {
12256 kshitij.so 1071
        setProcessed((Boolean)value);
12244 kshitij.so 1072
      }
1073
      break;
1074
 
12256 kshitij.so 1075
    case UPLOAD_ID:
12244 kshitij.so 1076
      if (value == null) {
12256 kshitij.so 1077
        unsetUploadId();
12244 kshitij.so 1078
      } else {
12256 kshitij.so 1079
        setUploadId((Long)value);
12244 kshitij.so 1080
      }
1081
      break;
1082
 
12256 kshitij.so 1083
    case USER_EMAIL:
12244 kshitij.so 1084
      if (value == null) {
12256 kshitij.so 1085
        unsetUserEmail();
12244 kshitij.so 1086
      } else {
12256 kshitij.so 1087
        setUserEmail((String)value);
12244 kshitij.so 1088
      }
1089
      break;
1090
 
12256 kshitij.so 1091
    case OUR_SNAPDEAL_PRICE:
12244 kshitij.so 1092
      if (value == null) {
12256 kshitij.so 1093
        unsetOurSnapdealPrice();
12244 kshitij.so 1094
      } else {
12256 kshitij.so 1095
        setOurSnapdealPrice((Double)value);
12244 kshitij.so 1096
      }
1097
      break;
1098
 
12256 kshitij.so 1099
    case OUR_SNAPDEAL_OFFER_PRICE:
1100
      if (value == null) {
1101
        unsetOurSnapdealOfferPrice();
1102
      } else {
1103
        setOurSnapdealOfferPrice((Double)value);
1104
      }
1105
      break;
1106
 
1107
    case OUR_SNAPDEAL_INVENTORY:
1108
      if (value == null) {
1109
        unsetOurSnapdealInventory();
1110
      } else {
1111
        setOurSnapdealInventory((Long)value);
1112
      }
1113
      break;
1114
 
1115
    case LOWEST_SNAPDEAL_OFFER_PRICE:
1116
      if (value == null) {
1117
        unsetLowestSnapdealOfferPrice();
1118
      } else {
1119
        setLowestSnapdealOfferPrice((Double)value);
1120
      }
1121
      break;
1122
 
1123
    case LOWEST_SNAPDEAL_SELLER:
1124
      if (value == null) {
1125
        unsetLowestSnapdealSeller();
1126
      } else {
1127
        setLowestSnapdealSeller((String)value);
1128
      }
1129
      break;
1130
 
1131
    case LOWEST_SNAPDEAL_SELLER_INVENTORY:
1132
      if (value == null) {
1133
        unsetLowestSnapdealSellerInventory();
1134
      } else {
1135
        setLowestSnapdealSellerInventory((Long)value);
1136
      }
1137
      break;
1138
 
1139
    case OUR_FLIPKART_PRICE:
1140
      if (value == null) {
1141
        unsetOurFlipkartPrice();
1142
      } else {
1143
        setOurFlipkartPrice((Double)value);
1144
      }
1145
      break;
1146
 
1147
    case OUR_FLIPKART_INVENTORY:
1148
      if (value == null) {
1149
        unsetOurFlipkartInventory();
1150
      } else {
1151
        setOurFlipkartInventory((Long)value);
1152
      }
1153
      break;
1154
 
1155
    case LOWEST_FLIPKART_SELLER:
1156
      if (value == null) {
1157
        unsetLowestFlipkartSeller();
1158
      } else {
1159
        setLowestFlipkartSeller((String)value);
1160
      }
1161
      break;
1162
 
1163
    case OUR_MFN_PRICE:
1164
      if (value == null) {
1165
        unsetOurMfnPrice();
1166
      } else {
1167
        setOurMfnPrice((Double)value);
1168
      }
1169
      break;
1170
 
1171
    case OUR_FBA_PRICE:
1172
      if (value == null) {
1173
        unsetOurFbaPrice();
1174
      } else {
1175
        setOurFbaPrice((Double)value);
1176
      }
1177
      break;
1178
 
1179
    case OUR_MFN_INVENTORY:
1180
      if (value == null) {
1181
        unsetOurMfnInventory();
1182
      } else {
1183
        setOurMfnInventory((Long)value);
1184
      }
1185
      break;
1186
 
1187
    case OUR_FBA_INVENTORY:
1188
      if (value == null) {
1189
        unsetOurFbaInventory();
1190
      } else {
1191
        setOurFbaInventory((Long)value);
1192
      }
1193
      break;
1194
 
1195
    case LOWEST_AMAZON_PRICE:
1196
      if (value == null) {
1197
        unsetLowestAmazonPrice();
1198
      } else {
1199
        setLowestAmazonPrice((Double)value);
1200
      }
1201
      break;
1202
 
1203
    case LOWEST_AMAZON_SELLER:
1204
      if (value == null) {
1205
        unsetLowestAmazonSeller();
1206
      } else {
1207
        setLowestAmazonSeller((String)value);
1208
      }
1209
      break;
1210
 
1211
    case PRODUCT_NAME:
1212
      if (value == null) {
1213
        unsetProductName();
1214
      } else {
1215
        setProductName((String)value);
1216
      }
1217
      break;
1218
 
12244 kshitij.so 1219
    }
1220
  }
1221
 
1222
  public Object getFieldValue(_Fields field) {
1223
    switch (field) {
1224
    case ITEM_ID:
1225
      return Long.valueOf(getItem_id());
1226
 
1227
    case IS_SNAPDEAL:
1228
      return Boolean.valueOf(isIsSnapdeal());
1229
 
1230
    case IS_FLIPKART:
1231
      return Boolean.valueOf(isIsFlipkart());
1232
 
1233
    case IS_AMAZON:
1234
      return Boolean.valueOf(isIsAmazon());
1235
 
1236
    case LOWEST_SNAPDEAL_PRICE:
1237
      return Double.valueOf(getLowestSnapdealPrice());
1238
 
1239
    case LOWEST_FLIPKART_PRICE:
1240
      return Double.valueOf(getLowestFlipkartPrice());
1241
 
1242
    case PROCESSED:
1243
      return Boolean.valueOf(isProcessed());
1244
 
1245
    case UPLOAD_ID:
1246
      return Long.valueOf(getUploadId());
1247
 
12256 kshitij.so 1248
    case USER_EMAIL:
1249
      return getUserEmail();
1250
 
1251
    case OUR_SNAPDEAL_PRICE:
1252
      return Double.valueOf(getOurSnapdealPrice());
1253
 
1254
    case OUR_SNAPDEAL_OFFER_PRICE:
1255
      return Double.valueOf(getOurSnapdealOfferPrice());
1256
 
1257
    case OUR_SNAPDEAL_INVENTORY:
1258
      return Long.valueOf(getOurSnapdealInventory());
1259
 
1260
    case LOWEST_SNAPDEAL_OFFER_PRICE:
1261
      return Double.valueOf(getLowestSnapdealOfferPrice());
1262
 
1263
    case LOWEST_SNAPDEAL_SELLER:
1264
      return getLowestSnapdealSeller();
1265
 
1266
    case LOWEST_SNAPDEAL_SELLER_INVENTORY:
1267
      return Long.valueOf(getLowestSnapdealSellerInventory());
1268
 
1269
    case OUR_FLIPKART_PRICE:
1270
      return Double.valueOf(getOurFlipkartPrice());
1271
 
1272
    case OUR_FLIPKART_INVENTORY:
1273
      return Long.valueOf(getOurFlipkartInventory());
1274
 
1275
    case LOWEST_FLIPKART_SELLER:
1276
      return getLowestFlipkartSeller();
1277
 
1278
    case OUR_MFN_PRICE:
1279
      return Double.valueOf(getOurMfnPrice());
1280
 
1281
    case OUR_FBA_PRICE:
1282
      return Double.valueOf(getOurFbaPrice());
1283
 
1284
    case OUR_MFN_INVENTORY:
1285
      return Long.valueOf(getOurMfnInventory());
1286
 
1287
    case OUR_FBA_INVENTORY:
1288
      return Long.valueOf(getOurFbaInventory());
1289
 
1290
    case LOWEST_AMAZON_PRICE:
1291
      return Double.valueOf(getLowestAmazonPrice());
1292
 
1293
    case LOWEST_AMAZON_SELLER:
1294
      return getLowestAmazonSeller();
1295
 
1296
    case PRODUCT_NAME:
1297
      return getProductName();
1298
 
12244 kshitij.so 1299
    }
1300
    throw new IllegalStateException();
1301
  }
1302
 
1303
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1304
  public boolean isSet(_Fields field) {
1305
    if (field == null) {
1306
      throw new IllegalArgumentException();
1307
    }
1308
 
1309
    switch (field) {
1310
    case ITEM_ID:
1311
      return isSetItem_id();
1312
    case IS_SNAPDEAL:
1313
      return isSetIsSnapdeal();
1314
    case IS_FLIPKART:
1315
      return isSetIsFlipkart();
1316
    case IS_AMAZON:
1317
      return isSetIsAmazon();
1318
    case LOWEST_SNAPDEAL_PRICE:
1319
      return isSetLowestSnapdealPrice();
1320
    case LOWEST_FLIPKART_PRICE:
1321
      return isSetLowestFlipkartPrice();
1322
    case PROCESSED:
1323
      return isSetProcessed();
1324
    case UPLOAD_ID:
1325
      return isSetUploadId();
12256 kshitij.so 1326
    case USER_EMAIL:
1327
      return isSetUserEmail();
1328
    case OUR_SNAPDEAL_PRICE:
1329
      return isSetOurSnapdealPrice();
1330
    case OUR_SNAPDEAL_OFFER_PRICE:
1331
      return isSetOurSnapdealOfferPrice();
1332
    case OUR_SNAPDEAL_INVENTORY:
1333
      return isSetOurSnapdealInventory();
1334
    case LOWEST_SNAPDEAL_OFFER_PRICE:
1335
      return isSetLowestSnapdealOfferPrice();
1336
    case LOWEST_SNAPDEAL_SELLER:
1337
      return isSetLowestSnapdealSeller();
1338
    case LOWEST_SNAPDEAL_SELLER_INVENTORY:
1339
      return isSetLowestSnapdealSellerInventory();
1340
    case OUR_FLIPKART_PRICE:
1341
      return isSetOurFlipkartPrice();
1342
    case OUR_FLIPKART_INVENTORY:
1343
      return isSetOurFlipkartInventory();
1344
    case LOWEST_FLIPKART_SELLER:
1345
      return isSetLowestFlipkartSeller();
1346
    case OUR_MFN_PRICE:
1347
      return isSetOurMfnPrice();
1348
    case OUR_FBA_PRICE:
1349
      return isSetOurFbaPrice();
1350
    case OUR_MFN_INVENTORY:
1351
      return isSetOurMfnInventory();
1352
    case OUR_FBA_INVENTORY:
1353
      return isSetOurFbaInventory();
1354
    case LOWEST_AMAZON_PRICE:
1355
      return isSetLowestAmazonPrice();
1356
    case LOWEST_AMAZON_SELLER:
1357
      return isSetLowestAmazonSeller();
1358
    case PRODUCT_NAME:
1359
      return isSetProductName();
12244 kshitij.so 1360
    }
1361
    throw new IllegalStateException();
1362
  }
1363
 
1364
  @Override
1365
  public boolean equals(Object that) {
1366
    if (that == null)
1367
      return false;
1368
    if (that instanceof CompetitorPricing)
1369
      return this.equals((CompetitorPricing)that);
1370
    return false;
1371
  }
1372
 
1373
  public boolean equals(CompetitorPricing that) {
1374
    if (that == null)
1375
      return false;
1376
 
1377
    boolean this_present_item_id = true;
1378
    boolean that_present_item_id = true;
1379
    if (this_present_item_id || that_present_item_id) {
1380
      if (!(this_present_item_id && that_present_item_id))
1381
        return false;
1382
      if (this.item_id != that.item_id)
1383
        return false;
1384
    }
1385
 
1386
    boolean this_present_isSnapdeal = true;
1387
    boolean that_present_isSnapdeal = true;
1388
    if (this_present_isSnapdeal || that_present_isSnapdeal) {
1389
      if (!(this_present_isSnapdeal && that_present_isSnapdeal))
1390
        return false;
1391
      if (this.isSnapdeal != that.isSnapdeal)
1392
        return false;
1393
    }
1394
 
1395
    boolean this_present_isFlipkart = true;
1396
    boolean that_present_isFlipkart = true;
1397
    if (this_present_isFlipkart || that_present_isFlipkart) {
1398
      if (!(this_present_isFlipkart && that_present_isFlipkart))
1399
        return false;
1400
      if (this.isFlipkart != that.isFlipkart)
1401
        return false;
1402
    }
1403
 
1404
    boolean this_present_isAmazon = true;
1405
    boolean that_present_isAmazon = true;
1406
    if (this_present_isAmazon || that_present_isAmazon) {
1407
      if (!(this_present_isAmazon && that_present_isAmazon))
1408
        return false;
1409
      if (this.isAmazon != that.isAmazon)
1410
        return false;
1411
    }
1412
 
1413
    boolean this_present_lowestSnapdealPrice = true;
1414
    boolean that_present_lowestSnapdealPrice = true;
1415
    if (this_present_lowestSnapdealPrice || that_present_lowestSnapdealPrice) {
1416
      if (!(this_present_lowestSnapdealPrice && that_present_lowestSnapdealPrice))
1417
        return false;
1418
      if (this.lowestSnapdealPrice != that.lowestSnapdealPrice)
1419
        return false;
1420
    }
1421
 
1422
    boolean this_present_lowestFlipkartPrice = true;
1423
    boolean that_present_lowestFlipkartPrice = true;
1424
    if (this_present_lowestFlipkartPrice || that_present_lowestFlipkartPrice) {
1425
      if (!(this_present_lowestFlipkartPrice && that_present_lowestFlipkartPrice))
1426
        return false;
1427
      if (this.lowestFlipkartPrice != that.lowestFlipkartPrice)
1428
        return false;
1429
    }
1430
 
1431
    boolean this_present_processed = true;
1432
    boolean that_present_processed = true;
1433
    if (this_present_processed || that_present_processed) {
1434
      if (!(this_present_processed && that_present_processed))
1435
        return false;
1436
      if (this.processed != that.processed)
1437
        return false;
1438
    }
1439
 
1440
    boolean this_present_uploadId = true;
1441
    boolean that_present_uploadId = true;
1442
    if (this_present_uploadId || that_present_uploadId) {
1443
      if (!(this_present_uploadId && that_present_uploadId))
1444
        return false;
1445
      if (this.uploadId != that.uploadId)
1446
        return false;
1447
    }
1448
 
12256 kshitij.so 1449
    boolean this_present_userEmail = true && this.isSetUserEmail();
1450
    boolean that_present_userEmail = true && that.isSetUserEmail();
1451
    if (this_present_userEmail || that_present_userEmail) {
1452
      if (!(this_present_userEmail && that_present_userEmail))
1453
        return false;
1454
      if (!this.userEmail.equals(that.userEmail))
1455
        return false;
1456
    }
1457
 
1458
    boolean this_present_ourSnapdealPrice = true;
1459
    boolean that_present_ourSnapdealPrice = true;
1460
    if (this_present_ourSnapdealPrice || that_present_ourSnapdealPrice) {
1461
      if (!(this_present_ourSnapdealPrice && that_present_ourSnapdealPrice))
1462
        return false;
1463
      if (this.ourSnapdealPrice != that.ourSnapdealPrice)
1464
        return false;
1465
    }
1466
 
1467
    boolean this_present_ourSnapdealOfferPrice = true;
1468
    boolean that_present_ourSnapdealOfferPrice = true;
1469
    if (this_present_ourSnapdealOfferPrice || that_present_ourSnapdealOfferPrice) {
1470
      if (!(this_present_ourSnapdealOfferPrice && that_present_ourSnapdealOfferPrice))
1471
        return false;
1472
      if (this.ourSnapdealOfferPrice != that.ourSnapdealOfferPrice)
1473
        return false;
1474
    }
1475
 
1476
    boolean this_present_ourSnapdealInventory = true;
1477
    boolean that_present_ourSnapdealInventory = true;
1478
    if (this_present_ourSnapdealInventory || that_present_ourSnapdealInventory) {
1479
      if (!(this_present_ourSnapdealInventory && that_present_ourSnapdealInventory))
1480
        return false;
1481
      if (this.ourSnapdealInventory != that.ourSnapdealInventory)
1482
        return false;
1483
    }
1484
 
1485
    boolean this_present_lowestSnapdealOfferPrice = true;
1486
    boolean that_present_lowestSnapdealOfferPrice = true;
1487
    if (this_present_lowestSnapdealOfferPrice || that_present_lowestSnapdealOfferPrice) {
1488
      if (!(this_present_lowestSnapdealOfferPrice && that_present_lowestSnapdealOfferPrice))
1489
        return false;
1490
      if (this.lowestSnapdealOfferPrice != that.lowestSnapdealOfferPrice)
1491
        return false;
1492
    }
1493
 
1494
    boolean this_present_lowestSnapdealSeller = true && this.isSetLowestSnapdealSeller();
1495
    boolean that_present_lowestSnapdealSeller = true && that.isSetLowestSnapdealSeller();
1496
    if (this_present_lowestSnapdealSeller || that_present_lowestSnapdealSeller) {
1497
      if (!(this_present_lowestSnapdealSeller && that_present_lowestSnapdealSeller))
1498
        return false;
1499
      if (!this.lowestSnapdealSeller.equals(that.lowestSnapdealSeller))
1500
        return false;
1501
    }
1502
 
1503
    boolean this_present_lowestSnapdealSellerInventory = true;
1504
    boolean that_present_lowestSnapdealSellerInventory = true;
1505
    if (this_present_lowestSnapdealSellerInventory || that_present_lowestSnapdealSellerInventory) {
1506
      if (!(this_present_lowestSnapdealSellerInventory && that_present_lowestSnapdealSellerInventory))
1507
        return false;
1508
      if (this.lowestSnapdealSellerInventory != that.lowestSnapdealSellerInventory)
1509
        return false;
1510
    }
1511
 
1512
    boolean this_present_ourFlipkartPrice = true;
1513
    boolean that_present_ourFlipkartPrice = true;
1514
    if (this_present_ourFlipkartPrice || that_present_ourFlipkartPrice) {
1515
      if (!(this_present_ourFlipkartPrice && that_present_ourFlipkartPrice))
1516
        return false;
1517
      if (this.ourFlipkartPrice != that.ourFlipkartPrice)
1518
        return false;
1519
    }
1520
 
1521
    boolean this_present_ourFlipkartInventory = true;
1522
    boolean that_present_ourFlipkartInventory = true;
1523
    if (this_present_ourFlipkartInventory || that_present_ourFlipkartInventory) {
1524
      if (!(this_present_ourFlipkartInventory && that_present_ourFlipkartInventory))
1525
        return false;
1526
      if (this.ourFlipkartInventory != that.ourFlipkartInventory)
1527
        return false;
1528
    }
1529
 
1530
    boolean this_present_lowestFlipkartSeller = true && this.isSetLowestFlipkartSeller();
1531
    boolean that_present_lowestFlipkartSeller = true && that.isSetLowestFlipkartSeller();
1532
    if (this_present_lowestFlipkartSeller || that_present_lowestFlipkartSeller) {
1533
      if (!(this_present_lowestFlipkartSeller && that_present_lowestFlipkartSeller))
1534
        return false;
1535
      if (!this.lowestFlipkartSeller.equals(that.lowestFlipkartSeller))
1536
        return false;
1537
    }
1538
 
1539
    boolean this_present_ourMfnPrice = true;
1540
    boolean that_present_ourMfnPrice = true;
1541
    if (this_present_ourMfnPrice || that_present_ourMfnPrice) {
1542
      if (!(this_present_ourMfnPrice && that_present_ourMfnPrice))
1543
        return false;
1544
      if (this.ourMfnPrice != that.ourMfnPrice)
1545
        return false;
1546
    }
1547
 
1548
    boolean this_present_ourFbaPrice = true;
1549
    boolean that_present_ourFbaPrice = true;
1550
    if (this_present_ourFbaPrice || that_present_ourFbaPrice) {
1551
      if (!(this_present_ourFbaPrice && that_present_ourFbaPrice))
1552
        return false;
1553
      if (this.ourFbaPrice != that.ourFbaPrice)
1554
        return false;
1555
    }
1556
 
1557
    boolean this_present_ourMfnInventory = true;
1558
    boolean that_present_ourMfnInventory = true;
1559
    if (this_present_ourMfnInventory || that_present_ourMfnInventory) {
1560
      if (!(this_present_ourMfnInventory && that_present_ourMfnInventory))
1561
        return false;
1562
      if (this.ourMfnInventory != that.ourMfnInventory)
1563
        return false;
1564
    }
1565
 
1566
    boolean this_present_ourFbaInventory = true;
1567
    boolean that_present_ourFbaInventory = true;
1568
    if (this_present_ourFbaInventory || that_present_ourFbaInventory) {
1569
      if (!(this_present_ourFbaInventory && that_present_ourFbaInventory))
1570
        return false;
1571
      if (this.ourFbaInventory != that.ourFbaInventory)
1572
        return false;
1573
    }
1574
 
1575
    boolean this_present_lowestAmazonPrice = true;
1576
    boolean that_present_lowestAmazonPrice = true;
1577
    if (this_present_lowestAmazonPrice || that_present_lowestAmazonPrice) {
1578
      if (!(this_present_lowestAmazonPrice && that_present_lowestAmazonPrice))
1579
        return false;
1580
      if (this.lowestAmazonPrice != that.lowestAmazonPrice)
1581
        return false;
1582
    }
1583
 
1584
    boolean this_present_lowestAmazonSeller = true && this.isSetLowestAmazonSeller();
1585
    boolean that_present_lowestAmazonSeller = true && that.isSetLowestAmazonSeller();
1586
    if (this_present_lowestAmazonSeller || that_present_lowestAmazonSeller) {
1587
      if (!(this_present_lowestAmazonSeller && that_present_lowestAmazonSeller))
1588
        return false;
1589
      if (!this.lowestAmazonSeller.equals(that.lowestAmazonSeller))
1590
        return false;
1591
    }
1592
 
1593
    boolean this_present_productName = true && this.isSetProductName();
1594
    boolean that_present_productName = true && that.isSetProductName();
1595
    if (this_present_productName || that_present_productName) {
1596
      if (!(this_present_productName && that_present_productName))
1597
        return false;
1598
      if (!this.productName.equals(that.productName))
1599
        return false;
1600
    }
1601
 
12244 kshitij.so 1602
    return true;
1603
  }
1604
 
1605
  @Override
1606
  public int hashCode() {
1607
    return 0;
1608
  }
1609
 
1610
  public int compareTo(CompetitorPricing other) {
1611
    if (!getClass().equals(other.getClass())) {
1612
      return getClass().getName().compareTo(other.getClass().getName());
1613
    }
1614
 
1615
    int lastComparison = 0;
1616
    CompetitorPricing typedOther = (CompetitorPricing)other;
1617
 
1618
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1619
    if (lastComparison != 0) {
1620
      return lastComparison;
1621
    }
1622
    if (isSetItem_id()) {
1623
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1624
      if (lastComparison != 0) {
1625
        return lastComparison;
1626
      }
1627
    }
1628
    lastComparison = Boolean.valueOf(isSetIsSnapdeal()).compareTo(typedOther.isSetIsSnapdeal());
1629
    if (lastComparison != 0) {
1630
      return lastComparison;
1631
    }
1632
    if (isSetIsSnapdeal()) {
1633
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSnapdeal, typedOther.isSnapdeal);
1634
      if (lastComparison != 0) {
1635
        return lastComparison;
1636
      }
1637
    }
1638
    lastComparison = Boolean.valueOf(isSetIsFlipkart()).compareTo(typedOther.isSetIsFlipkart());
1639
    if (lastComparison != 0) {
1640
      return lastComparison;
1641
    }
1642
    if (isSetIsFlipkart()) {
1643
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFlipkart, typedOther.isFlipkart);
1644
      if (lastComparison != 0) {
1645
        return lastComparison;
1646
      }
1647
    }
1648
    lastComparison = Boolean.valueOf(isSetIsAmazon()).compareTo(typedOther.isSetIsAmazon());
1649
    if (lastComparison != 0) {
1650
      return lastComparison;
1651
    }
1652
    if (isSetIsAmazon()) {
1653
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAmazon, typedOther.isAmazon);
1654
      if (lastComparison != 0) {
1655
        return lastComparison;
1656
      }
1657
    }
1658
    lastComparison = Boolean.valueOf(isSetLowestSnapdealPrice()).compareTo(typedOther.isSetLowestSnapdealPrice());
1659
    if (lastComparison != 0) {
1660
      return lastComparison;
1661
    }
1662
    if (isSetLowestSnapdealPrice()) {
1663
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSnapdealPrice, typedOther.lowestSnapdealPrice);
1664
      if (lastComparison != 0) {
1665
        return lastComparison;
1666
      }
1667
    }
1668
    lastComparison = Boolean.valueOf(isSetLowestFlipkartPrice()).compareTo(typedOther.isSetLowestFlipkartPrice());
1669
    if (lastComparison != 0) {
1670
      return lastComparison;
1671
    }
1672
    if (isSetLowestFlipkartPrice()) {
1673
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestFlipkartPrice, typedOther.lowestFlipkartPrice);
1674
      if (lastComparison != 0) {
1675
        return lastComparison;
1676
      }
1677
    }
12256 kshitij.so 1678
    lastComparison = Boolean.valueOf(isSetProcessed()).compareTo(typedOther.isSetProcessed());
12244 kshitij.so 1679
    if (lastComparison != 0) {
1680
      return lastComparison;
1681
    }
12256 kshitij.so 1682
    if (isSetProcessed()) {
1683
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processed, typedOther.processed);
12244 kshitij.so 1684
      if (lastComparison != 0) {
1685
        return lastComparison;
1686
      }
1687
    }
12256 kshitij.so 1688
    lastComparison = Boolean.valueOf(isSetUploadId()).compareTo(typedOther.isSetUploadId());
12244 kshitij.so 1689
    if (lastComparison != 0) {
1690
      return lastComparison;
1691
    }
12256 kshitij.so 1692
    if (isSetUploadId()) {
1693
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uploadId, typedOther.uploadId);
12244 kshitij.so 1694
      if (lastComparison != 0) {
1695
        return lastComparison;
1696
      }
1697
    }
12256 kshitij.so 1698
    lastComparison = Boolean.valueOf(isSetUserEmail()).compareTo(typedOther.isSetUserEmail());
12244 kshitij.so 1699
    if (lastComparison != 0) {
1700
      return lastComparison;
1701
    }
12256 kshitij.so 1702
    if (isSetUserEmail()) {
1703
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userEmail, typedOther.userEmail);
12244 kshitij.so 1704
      if (lastComparison != 0) {
1705
        return lastComparison;
1706
      }
1707
    }
12256 kshitij.so 1708
    lastComparison = Boolean.valueOf(isSetOurSnapdealPrice()).compareTo(typedOther.isSetOurSnapdealPrice());
12244 kshitij.so 1709
    if (lastComparison != 0) {
1710
      return lastComparison;
1711
    }
12256 kshitij.so 1712
    if (isSetOurSnapdealPrice()) {
1713
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourSnapdealPrice, typedOther.ourSnapdealPrice);
12244 kshitij.so 1714
      if (lastComparison != 0) {
1715
        return lastComparison;
1716
      }
1717
    }
12256 kshitij.so 1718
    lastComparison = Boolean.valueOf(isSetOurSnapdealOfferPrice()).compareTo(typedOther.isSetOurSnapdealOfferPrice());
1719
    if (lastComparison != 0) {
1720
      return lastComparison;
1721
    }
1722
    if (isSetOurSnapdealOfferPrice()) {
1723
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourSnapdealOfferPrice, typedOther.ourSnapdealOfferPrice);
1724
      if (lastComparison != 0) {
1725
        return lastComparison;
1726
      }
1727
    }
1728
    lastComparison = Boolean.valueOf(isSetOurSnapdealInventory()).compareTo(typedOther.isSetOurSnapdealInventory());
1729
    if (lastComparison != 0) {
1730
      return lastComparison;
1731
    }
1732
    if (isSetOurSnapdealInventory()) {
1733
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourSnapdealInventory, typedOther.ourSnapdealInventory);
1734
      if (lastComparison != 0) {
1735
        return lastComparison;
1736
      }
1737
    }
1738
    lastComparison = Boolean.valueOf(isSetLowestSnapdealOfferPrice()).compareTo(typedOther.isSetLowestSnapdealOfferPrice());
1739
    if (lastComparison != 0) {
1740
      return lastComparison;
1741
    }
1742
    if (isSetLowestSnapdealOfferPrice()) {
1743
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSnapdealOfferPrice, typedOther.lowestSnapdealOfferPrice);
1744
      if (lastComparison != 0) {
1745
        return lastComparison;
1746
      }
1747
    }
1748
    lastComparison = Boolean.valueOf(isSetLowestSnapdealSeller()).compareTo(typedOther.isSetLowestSnapdealSeller());
1749
    if (lastComparison != 0) {
1750
      return lastComparison;
1751
    }
1752
    if (isSetLowestSnapdealSeller()) {
1753
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSnapdealSeller, typedOther.lowestSnapdealSeller);
1754
      if (lastComparison != 0) {
1755
        return lastComparison;
1756
      }
1757
    }
1758
    lastComparison = Boolean.valueOf(isSetLowestSnapdealSellerInventory()).compareTo(typedOther.isSetLowestSnapdealSellerInventory());
1759
    if (lastComparison != 0) {
1760
      return lastComparison;
1761
    }
1762
    if (isSetLowestSnapdealSellerInventory()) {
1763
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSnapdealSellerInventory, typedOther.lowestSnapdealSellerInventory);
1764
      if (lastComparison != 0) {
1765
        return lastComparison;
1766
      }
1767
    }
1768
    lastComparison = Boolean.valueOf(isSetOurFlipkartPrice()).compareTo(typedOther.isSetOurFlipkartPrice());
1769
    if (lastComparison != 0) {
1770
      return lastComparison;
1771
    }
1772
    if (isSetOurFlipkartPrice()) {
1773
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourFlipkartPrice, typedOther.ourFlipkartPrice);
1774
      if (lastComparison != 0) {
1775
        return lastComparison;
1776
      }
1777
    }
1778
    lastComparison = Boolean.valueOf(isSetOurFlipkartInventory()).compareTo(typedOther.isSetOurFlipkartInventory());
1779
    if (lastComparison != 0) {
1780
      return lastComparison;
1781
    }
1782
    if (isSetOurFlipkartInventory()) {
1783
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourFlipkartInventory, typedOther.ourFlipkartInventory);
1784
      if (lastComparison != 0) {
1785
        return lastComparison;
1786
      }
1787
    }
1788
    lastComparison = Boolean.valueOf(isSetLowestFlipkartSeller()).compareTo(typedOther.isSetLowestFlipkartSeller());
1789
    if (lastComparison != 0) {
1790
      return lastComparison;
1791
    }
1792
    if (isSetLowestFlipkartSeller()) {
1793
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestFlipkartSeller, typedOther.lowestFlipkartSeller);
1794
      if (lastComparison != 0) {
1795
        return lastComparison;
1796
      }
1797
    }
1798
    lastComparison = Boolean.valueOf(isSetOurMfnPrice()).compareTo(typedOther.isSetOurMfnPrice());
1799
    if (lastComparison != 0) {
1800
      return lastComparison;
1801
    }
1802
    if (isSetOurMfnPrice()) {
1803
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourMfnPrice, typedOther.ourMfnPrice);
1804
      if (lastComparison != 0) {
1805
        return lastComparison;
1806
      }
1807
    }
1808
    lastComparison = Boolean.valueOf(isSetOurFbaPrice()).compareTo(typedOther.isSetOurFbaPrice());
1809
    if (lastComparison != 0) {
1810
      return lastComparison;
1811
    }
1812
    if (isSetOurFbaPrice()) {
1813
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourFbaPrice, typedOther.ourFbaPrice);
1814
      if (lastComparison != 0) {
1815
        return lastComparison;
1816
      }
1817
    }
1818
    lastComparison = Boolean.valueOf(isSetOurMfnInventory()).compareTo(typedOther.isSetOurMfnInventory());
1819
    if (lastComparison != 0) {
1820
      return lastComparison;
1821
    }
1822
    if (isSetOurMfnInventory()) {
1823
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourMfnInventory, typedOther.ourMfnInventory);
1824
      if (lastComparison != 0) {
1825
        return lastComparison;
1826
      }
1827
    }
1828
    lastComparison = Boolean.valueOf(isSetOurFbaInventory()).compareTo(typedOther.isSetOurFbaInventory());
1829
    if (lastComparison != 0) {
1830
      return lastComparison;
1831
    }
1832
    if (isSetOurFbaInventory()) {
1833
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourFbaInventory, typedOther.ourFbaInventory);
1834
      if (lastComparison != 0) {
1835
        return lastComparison;
1836
      }
1837
    }
1838
    lastComparison = Boolean.valueOf(isSetLowestAmazonPrice()).compareTo(typedOther.isSetLowestAmazonPrice());
1839
    if (lastComparison != 0) {
1840
      return lastComparison;
1841
    }
1842
    if (isSetLowestAmazonPrice()) {
1843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestAmazonPrice, typedOther.lowestAmazonPrice);
1844
      if (lastComparison != 0) {
1845
        return lastComparison;
1846
      }
1847
    }
1848
    lastComparison = Boolean.valueOf(isSetLowestAmazonSeller()).compareTo(typedOther.isSetLowestAmazonSeller());
1849
    if (lastComparison != 0) {
1850
      return lastComparison;
1851
    }
1852
    if (isSetLowestAmazonSeller()) {
1853
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestAmazonSeller, typedOther.lowestAmazonSeller);
1854
      if (lastComparison != 0) {
1855
        return lastComparison;
1856
      }
1857
    }
1858
    lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
1859
    if (lastComparison != 0) {
1860
      return lastComparison;
1861
    }
1862
    if (isSetProductName()) {
1863
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
1864
      if (lastComparison != 0) {
1865
        return lastComparison;
1866
      }
1867
    }
12244 kshitij.so 1868
    return 0;
1869
  }
1870
 
1871
  public _Fields fieldForId(int fieldId) {
1872
    return _Fields.findByThriftId(fieldId);
1873
  }
1874
 
1875
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1876
    org.apache.thrift.protocol.TField field;
1877
    iprot.readStructBegin();
1878
    while (true)
1879
    {
1880
      field = iprot.readFieldBegin();
1881
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1882
        break;
1883
      }
1884
      switch (field.id) {
1885
        case 1: // ITEM_ID
1886
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1887
            this.item_id = iprot.readI64();
1888
            setItem_idIsSet(true);
1889
          } else { 
1890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891
          }
1892
          break;
1893
        case 2: // IS_SNAPDEAL
1894
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1895
            this.isSnapdeal = iprot.readBool();
1896
            setIsSnapdealIsSet(true);
1897
          } else { 
1898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1899
          }
1900
          break;
1901
        case 3: // IS_FLIPKART
1902
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1903
            this.isFlipkart = iprot.readBool();
1904
            setIsFlipkartIsSet(true);
1905
          } else { 
1906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1907
          }
1908
          break;
1909
        case 4: // IS_AMAZON
1910
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1911
            this.isAmazon = iprot.readBool();
1912
            setIsAmazonIsSet(true);
1913
          } else { 
1914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1915
          }
1916
          break;
1917
        case 5: // LOWEST_SNAPDEAL_PRICE
1918
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1919
            this.lowestSnapdealPrice = iprot.readDouble();
1920
            setLowestSnapdealPriceIsSet(true);
1921
          } else { 
1922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1923
          }
1924
          break;
1925
        case 6: // LOWEST_FLIPKART_PRICE
1926
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1927
            this.lowestFlipkartPrice = iprot.readDouble();
1928
            setLowestFlipkartPriceIsSet(true);
1929
          } else { 
1930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1931
          }
1932
          break;
12256 kshitij.so 1933
        case 7: // PROCESSED
1934
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1935
            this.processed = iprot.readBool();
1936
            setProcessedIsSet(true);
1937
          } else { 
1938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1939
          }
1940
          break;
1941
        case 8: // UPLOAD_ID
1942
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1943
            this.uploadId = iprot.readI64();
1944
            setUploadIdIsSet(true);
1945
          } else { 
1946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1947
          }
1948
          break;
1949
        case 9: // USER_EMAIL
1950
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1951
            this.userEmail = iprot.readString();
1952
          } else { 
1953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1954
          }
1955
          break;
1956
        case 10: // OUR_SNAPDEAL_PRICE
12244 kshitij.so 1957
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
12256 kshitij.so 1958
            this.ourSnapdealPrice = iprot.readDouble();
1959
            setOurSnapdealPriceIsSet(true);
12244 kshitij.so 1960
          } else { 
1961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1962
          }
1963
          break;
12256 kshitij.so 1964
        case 11: // OUR_SNAPDEAL_OFFER_PRICE
12244 kshitij.so 1965
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
12256 kshitij.so 1966
            this.ourSnapdealOfferPrice = iprot.readDouble();
1967
            setOurSnapdealOfferPriceIsSet(true);
12244 kshitij.so 1968
          } else { 
1969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1970
          }
1971
          break;
12256 kshitij.so 1972
        case 12: // OUR_SNAPDEAL_INVENTORY
1973
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1974
            this.ourSnapdealInventory = iprot.readI64();
1975
            setOurSnapdealInventoryIsSet(true);
12244 kshitij.so 1976
          } else { 
1977
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1978
          }
1979
          break;
12256 kshitij.so 1980
        case 13: // LOWEST_SNAPDEAL_OFFER_PRICE
1981
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1982
            this.lowestSnapdealOfferPrice = iprot.readDouble();
1983
            setLowestSnapdealOfferPriceIsSet(true);
1984
          } else { 
1985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1986
          }
1987
          break;
1988
        case 14: // LOWEST_SNAPDEAL_SELLER
1989
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1990
            this.lowestSnapdealSeller = iprot.readString();
1991
          } else { 
1992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1993
          }
1994
          break;
1995
        case 15: // LOWEST_SNAPDEAL_SELLER_INVENTORY
12244 kshitij.so 1996
          if (field.type == org.apache.thrift.protocol.TType.I64) {
12256 kshitij.so 1997
            this.lowestSnapdealSellerInventory = iprot.readI64();
1998
            setLowestSnapdealSellerInventoryIsSet(true);
12244 kshitij.so 1999
          } else { 
2000
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2001
          }
2002
          break;
12256 kshitij.so 2003
        case 16: // OUR_FLIPKART_PRICE
2004
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2005
            this.ourFlipkartPrice = iprot.readDouble();
2006
            setOurFlipkartPriceIsSet(true);
2007
          } else { 
2008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2009
          }
2010
          break;
2011
        case 17: // OUR_FLIPKART_INVENTORY
2012
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2013
            this.ourFlipkartInventory = iprot.readI64();
2014
            setOurFlipkartInventoryIsSet(true);
2015
          } else { 
2016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2017
          }
2018
          break;
2019
        case 18: // LOWEST_FLIPKART_SELLER
2020
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2021
            this.lowestFlipkartSeller = iprot.readString();
2022
          } else { 
2023
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024
          }
2025
          break;
2026
        case 19: // OUR_MFN_PRICE
2027
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2028
            this.ourMfnPrice = iprot.readDouble();
2029
            setOurMfnPriceIsSet(true);
2030
          } else { 
2031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2032
          }
2033
          break;
2034
        case 20: // OUR_FBA_PRICE
2035
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2036
            this.ourFbaPrice = iprot.readDouble();
2037
            setOurFbaPriceIsSet(true);
2038
          } else { 
2039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2040
          }
2041
          break;
2042
        case 21: // OUR_MFN_INVENTORY
2043
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2044
            this.ourMfnInventory = iprot.readI64();
2045
            setOurMfnInventoryIsSet(true);
2046
          } else { 
2047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2048
          }
2049
          break;
2050
        case 22: // OUR_FBA_INVENTORY
2051
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2052
            this.ourFbaInventory = iprot.readI64();
2053
            setOurFbaInventoryIsSet(true);
2054
          } else { 
2055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2056
          }
2057
          break;
2058
        case 23: // LOWEST_AMAZON_PRICE
2059
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2060
            this.lowestAmazonPrice = iprot.readDouble();
2061
            setLowestAmazonPriceIsSet(true);
2062
          } else { 
2063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2064
          }
2065
          break;
2066
        case 24: // LOWEST_AMAZON_SELLER
2067
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2068
            this.lowestAmazonSeller = iprot.readString();
2069
          } else { 
2070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2071
          }
2072
          break;
2073
        case 25: // PRODUCT_NAME
2074
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2075
            this.productName = iprot.readString();
2076
          } else { 
2077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2078
          }
2079
          break;
12244 kshitij.so 2080
        default:
2081
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2082
      }
2083
      iprot.readFieldEnd();
2084
    }
2085
    iprot.readStructEnd();
2086
    validate();
2087
  }
2088
 
2089
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2090
    validate();
2091
 
2092
    oprot.writeStructBegin(STRUCT_DESC);
2093
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2094
    oprot.writeI64(this.item_id);
2095
    oprot.writeFieldEnd();
2096
    oprot.writeFieldBegin(IS_SNAPDEAL_FIELD_DESC);
2097
    oprot.writeBool(this.isSnapdeal);
2098
    oprot.writeFieldEnd();
2099
    oprot.writeFieldBegin(IS_FLIPKART_FIELD_DESC);
2100
    oprot.writeBool(this.isFlipkart);
2101
    oprot.writeFieldEnd();
2102
    oprot.writeFieldBegin(IS_AMAZON_FIELD_DESC);
2103
    oprot.writeBool(this.isAmazon);
2104
    oprot.writeFieldEnd();
2105
    oprot.writeFieldBegin(LOWEST_SNAPDEAL_PRICE_FIELD_DESC);
2106
    oprot.writeDouble(this.lowestSnapdealPrice);
2107
    oprot.writeFieldEnd();
2108
    oprot.writeFieldBegin(LOWEST_FLIPKART_PRICE_FIELD_DESC);
2109
    oprot.writeDouble(this.lowestFlipkartPrice);
2110
    oprot.writeFieldEnd();
2111
    oprot.writeFieldBegin(PROCESSED_FIELD_DESC);
2112
    oprot.writeBool(this.processed);
2113
    oprot.writeFieldEnd();
2114
    oprot.writeFieldBegin(UPLOAD_ID_FIELD_DESC);
2115
    oprot.writeI64(this.uploadId);
2116
    oprot.writeFieldEnd();
12256 kshitij.so 2117
    if (this.userEmail != null) {
2118
      oprot.writeFieldBegin(USER_EMAIL_FIELD_DESC);
2119
      oprot.writeString(this.userEmail);
2120
      oprot.writeFieldEnd();
2121
    }
2122
    oprot.writeFieldBegin(OUR_SNAPDEAL_PRICE_FIELD_DESC);
2123
    oprot.writeDouble(this.ourSnapdealPrice);
2124
    oprot.writeFieldEnd();
2125
    oprot.writeFieldBegin(OUR_SNAPDEAL_OFFER_PRICE_FIELD_DESC);
2126
    oprot.writeDouble(this.ourSnapdealOfferPrice);
2127
    oprot.writeFieldEnd();
2128
    oprot.writeFieldBegin(OUR_SNAPDEAL_INVENTORY_FIELD_DESC);
2129
    oprot.writeI64(this.ourSnapdealInventory);
2130
    oprot.writeFieldEnd();
2131
    oprot.writeFieldBegin(LOWEST_SNAPDEAL_OFFER_PRICE_FIELD_DESC);
2132
    oprot.writeDouble(this.lowestSnapdealOfferPrice);
2133
    oprot.writeFieldEnd();
2134
    if (this.lowestSnapdealSeller != null) {
2135
      oprot.writeFieldBegin(LOWEST_SNAPDEAL_SELLER_FIELD_DESC);
2136
      oprot.writeString(this.lowestSnapdealSeller);
2137
      oprot.writeFieldEnd();
2138
    }
2139
    oprot.writeFieldBegin(LOWEST_SNAPDEAL_SELLER_INVENTORY_FIELD_DESC);
2140
    oprot.writeI64(this.lowestSnapdealSellerInventory);
2141
    oprot.writeFieldEnd();
2142
    oprot.writeFieldBegin(OUR_FLIPKART_PRICE_FIELD_DESC);
2143
    oprot.writeDouble(this.ourFlipkartPrice);
2144
    oprot.writeFieldEnd();
2145
    oprot.writeFieldBegin(OUR_FLIPKART_INVENTORY_FIELD_DESC);
2146
    oprot.writeI64(this.ourFlipkartInventory);
2147
    oprot.writeFieldEnd();
2148
    if (this.lowestFlipkartSeller != null) {
2149
      oprot.writeFieldBegin(LOWEST_FLIPKART_SELLER_FIELD_DESC);
2150
      oprot.writeString(this.lowestFlipkartSeller);
2151
      oprot.writeFieldEnd();
2152
    }
2153
    oprot.writeFieldBegin(OUR_MFN_PRICE_FIELD_DESC);
2154
    oprot.writeDouble(this.ourMfnPrice);
2155
    oprot.writeFieldEnd();
2156
    oprot.writeFieldBegin(OUR_FBA_PRICE_FIELD_DESC);
2157
    oprot.writeDouble(this.ourFbaPrice);
2158
    oprot.writeFieldEnd();
2159
    oprot.writeFieldBegin(OUR_MFN_INVENTORY_FIELD_DESC);
2160
    oprot.writeI64(this.ourMfnInventory);
2161
    oprot.writeFieldEnd();
2162
    oprot.writeFieldBegin(OUR_FBA_INVENTORY_FIELD_DESC);
2163
    oprot.writeI64(this.ourFbaInventory);
2164
    oprot.writeFieldEnd();
2165
    oprot.writeFieldBegin(LOWEST_AMAZON_PRICE_FIELD_DESC);
2166
    oprot.writeDouble(this.lowestAmazonPrice);
2167
    oprot.writeFieldEnd();
2168
    if (this.lowestAmazonSeller != null) {
2169
      oprot.writeFieldBegin(LOWEST_AMAZON_SELLER_FIELD_DESC);
2170
      oprot.writeString(this.lowestAmazonSeller);
2171
      oprot.writeFieldEnd();
2172
    }
2173
    if (this.productName != null) {
2174
      oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
2175
      oprot.writeString(this.productName);
2176
      oprot.writeFieldEnd();
2177
    }
12244 kshitij.so 2178
    oprot.writeFieldStop();
2179
    oprot.writeStructEnd();
2180
  }
2181
 
2182
  @Override
2183
  public String toString() {
2184
    StringBuilder sb = new StringBuilder("CompetitorPricing(");
2185
    boolean first = true;
2186
 
2187
    sb.append("item_id:");
2188
    sb.append(this.item_id);
2189
    first = false;
2190
    if (!first) sb.append(", ");
2191
    sb.append("isSnapdeal:");
2192
    sb.append(this.isSnapdeal);
2193
    first = false;
2194
    if (!first) sb.append(", ");
2195
    sb.append("isFlipkart:");
2196
    sb.append(this.isFlipkart);
2197
    first = false;
2198
    if (!first) sb.append(", ");
2199
    sb.append("isAmazon:");
2200
    sb.append(this.isAmazon);
2201
    first = false;
2202
    if (!first) sb.append(", ");
2203
    sb.append("lowestSnapdealPrice:");
2204
    sb.append(this.lowestSnapdealPrice);
2205
    first = false;
2206
    if (!first) sb.append(", ");
2207
    sb.append("lowestFlipkartPrice:");
2208
    sb.append(this.lowestFlipkartPrice);
2209
    first = false;
2210
    if (!first) sb.append(", ");
2211
    sb.append("processed:");
2212
    sb.append(this.processed);
2213
    first = false;
2214
    if (!first) sb.append(", ");
2215
    sb.append("uploadId:");
2216
    sb.append(this.uploadId);
2217
    first = false;
12256 kshitij.so 2218
    if (!first) sb.append(", ");
2219
    sb.append("userEmail:");
2220
    if (this.userEmail == null) {
2221
      sb.append("null");
2222
    } else {
2223
      sb.append(this.userEmail);
2224
    }
2225
    first = false;
2226
    if (!first) sb.append(", ");
2227
    sb.append("ourSnapdealPrice:");
2228
    sb.append(this.ourSnapdealPrice);
2229
    first = false;
2230
    if (!first) sb.append(", ");
2231
    sb.append("ourSnapdealOfferPrice:");
2232
    sb.append(this.ourSnapdealOfferPrice);
2233
    first = false;
2234
    if (!first) sb.append(", ");
2235
    sb.append("ourSnapdealInventory:");
2236
    sb.append(this.ourSnapdealInventory);
2237
    first = false;
2238
    if (!first) sb.append(", ");
2239
    sb.append("lowestSnapdealOfferPrice:");
2240
    sb.append(this.lowestSnapdealOfferPrice);
2241
    first = false;
2242
    if (!first) sb.append(", ");
2243
    sb.append("lowestSnapdealSeller:");
2244
    if (this.lowestSnapdealSeller == null) {
2245
      sb.append("null");
2246
    } else {
2247
      sb.append(this.lowestSnapdealSeller);
2248
    }
2249
    first = false;
2250
    if (!first) sb.append(", ");
2251
    sb.append("lowestSnapdealSellerInventory:");
2252
    sb.append(this.lowestSnapdealSellerInventory);
2253
    first = false;
2254
    if (!first) sb.append(", ");
2255
    sb.append("ourFlipkartPrice:");
2256
    sb.append(this.ourFlipkartPrice);
2257
    first = false;
2258
    if (!first) sb.append(", ");
2259
    sb.append("ourFlipkartInventory:");
2260
    sb.append(this.ourFlipkartInventory);
2261
    first = false;
2262
    if (!first) sb.append(", ");
2263
    sb.append("lowestFlipkartSeller:");
2264
    if (this.lowestFlipkartSeller == null) {
2265
      sb.append("null");
2266
    } else {
2267
      sb.append(this.lowestFlipkartSeller);
2268
    }
2269
    first = false;
2270
    if (!first) sb.append(", ");
2271
    sb.append("ourMfnPrice:");
2272
    sb.append(this.ourMfnPrice);
2273
    first = false;
2274
    if (!first) sb.append(", ");
2275
    sb.append("ourFbaPrice:");
2276
    sb.append(this.ourFbaPrice);
2277
    first = false;
2278
    if (!first) sb.append(", ");
2279
    sb.append("ourMfnInventory:");
2280
    sb.append(this.ourMfnInventory);
2281
    first = false;
2282
    if (!first) sb.append(", ");
2283
    sb.append("ourFbaInventory:");
2284
    sb.append(this.ourFbaInventory);
2285
    first = false;
2286
    if (!first) sb.append(", ");
2287
    sb.append("lowestAmazonPrice:");
2288
    sb.append(this.lowestAmazonPrice);
2289
    first = false;
2290
    if (!first) sb.append(", ");
2291
    sb.append("lowestAmazonSeller:");
2292
    if (this.lowestAmazonSeller == null) {
2293
      sb.append("null");
2294
    } else {
2295
      sb.append(this.lowestAmazonSeller);
2296
    }
2297
    first = false;
2298
    if (!first) sb.append(", ");
2299
    sb.append("productName:");
2300
    if (this.productName == null) {
2301
      sb.append("null");
2302
    } else {
2303
      sb.append(this.productName);
2304
    }
2305
    first = false;
12244 kshitij.so 2306
    sb.append(")");
2307
    return sb.toString();
2308
  }
2309
 
2310
  public void validate() throws org.apache.thrift.TException {
2311
    // check for required fields
2312
  }
2313
 
2314
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2315
    try {
2316
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2317
    } catch (org.apache.thrift.TException te) {
2318
      throw new java.io.IOException(te);
2319
    }
2320
  }
2321
 
2322
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2323
    try {
2324
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2325
      __isset_bit_vector = new BitSet(1);
2326
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2327
    } catch (org.apache.thrift.TException te) {
2328
      throw new java.io.IOException(te);
2329
    }
2330
  }
2331
 
2332
}
2333