Subversion Repositories SmartDukaan

Rev

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