Subversion Repositories SmartDukaan

Rev

Rev 19247 | Details | Compare with Previous | Last modification | View Log | RSS feed

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