Subversion Repositories SmartDukaan

Rev

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