Subversion Repositories SmartDukaan

Rev

Rev 10097 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9945 vikram.rag 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class FlipkartItem implements org.apache.thrift.TBase<FlipkartItem, FlipkartItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FlipkartItem");
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 EXCEPTION_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("exceptionPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
28
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField COMMISSION_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("commissionValue", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTaxValue", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField SKU_AT_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtFlipkart", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField IS_LISTED_ON_FLIPKART_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnFlipkart", org.apache.thrift.protocol.TType.BOOL, (short)8);
34
  private static final org.apache.thrift.protocol.TField SUPPRESS_PRICE_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressPriceFeed", org.apache.thrift.protocol.TType.BOOL, (short)9);
35
  private static final org.apache.thrift.protocol.TField SUPPRESS_INVENTORY_FEED_FIELD_DESC = new org.apache.thrift.protocol.TField("suppressInventoryFeed", org.apache.thrift.protocol.TType.BOOL, (short)10);
36
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField UPDATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedBy", org.apache.thrift.protocol.TType.STRING, (short)12);
38
 
39
  private long item_id; // required
40
  private double exceptionPrice; // required
41
  private long warehouseId; // required
42
  private double commissionValue; // required
43
  private double serviceTaxValue; // required
44
  private double maxNlc; // required
45
  private String skuAtFlipkart; // required
46
  private boolean isListedOnFlipkart; // required
47
  private boolean suppressPriceFeed; // required
48
  private boolean suppressInventoryFeed; // required
49
  private long updatedOn; // required
50
  private String updatedBy; // required
51
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
    ITEM_ID((short)1, "item_id"),
55
    EXCEPTION_PRICE((short)2, "exceptionPrice"),
56
    WAREHOUSE_ID((short)3, "warehouseId"),
57
    COMMISSION_VALUE((short)4, "commissionValue"),
58
    SERVICE_TAX_VALUE((short)5, "serviceTaxValue"),
59
    MAX_NLC((short)6, "maxNlc"),
60
    SKU_AT_FLIPKART((short)7, "skuAtFlipkart"),
61
    IS_LISTED_ON_FLIPKART((short)8, "isListedOnFlipkart"),
62
    SUPPRESS_PRICE_FEED((short)9, "suppressPriceFeed"),
63
    SUPPRESS_INVENTORY_FEED((short)10, "suppressInventoryFeed"),
64
    UPDATED_ON((short)11, "updatedOn"),
65
    UPDATED_BY((short)12, "updatedBy");
66
 
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
68
 
69
    static {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
71
        byName.put(field.getFieldName(), field);
72
      }
73
    }
74
 
75
    /**
76
     * Find the _Fields constant that matches fieldId, or null if its not found.
77
     */
78
    public static _Fields findByThriftId(int fieldId) {
79
      switch(fieldId) {
80
        case 1: // ITEM_ID
81
          return ITEM_ID;
82
        case 2: // EXCEPTION_PRICE
83
          return EXCEPTION_PRICE;
84
        case 3: // WAREHOUSE_ID
85
          return WAREHOUSE_ID;
86
        case 4: // COMMISSION_VALUE
87
          return COMMISSION_VALUE;
88
        case 5: // SERVICE_TAX_VALUE
89
          return SERVICE_TAX_VALUE;
90
        case 6: // MAX_NLC
91
          return MAX_NLC;
92
        case 7: // SKU_AT_FLIPKART
93
          return SKU_AT_FLIPKART;
94
        case 8: // IS_LISTED_ON_FLIPKART
95
          return IS_LISTED_ON_FLIPKART;
96
        case 9: // SUPPRESS_PRICE_FEED
97
          return SUPPRESS_PRICE_FEED;
98
        case 10: // SUPPRESS_INVENTORY_FEED
99
          return SUPPRESS_INVENTORY_FEED;
100
        case 11: // UPDATED_ON
101
          return UPDATED_ON;
102
        case 12: // UPDATED_BY
103
          return UPDATED_BY;
104
        default:
105
          return null;
106
      }
107
    }
108
 
109
    /**
110
     * Find the _Fields constant that matches fieldId, throwing an exception
111
     * if it is not found.
112
     */
113
    public static _Fields findByThriftIdOrThrow(int fieldId) {
114
      _Fields fields = findByThriftId(fieldId);
115
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
116
      return fields;
117
    }
118
 
119
    /**
120
     * Find the _Fields constant that matches name, or null if its not found.
121
     */
122
    public static _Fields findByName(String name) {
123
      return byName.get(name);
124
    }
125
 
126
    private final short _thriftId;
127
    private final String _fieldName;
128
 
129
    _Fields(short thriftId, String fieldName) {
130
      _thriftId = thriftId;
131
      _fieldName = fieldName;
132
    }
133
 
134
    public short getThriftFieldId() {
135
      return _thriftId;
136
    }
137
 
138
    public String getFieldName() {
139
      return _fieldName;
140
    }
141
  }
142
 
143
  // isset id assignments
144
  private static final int __ITEM_ID_ISSET_ID = 0;
145
  private static final int __EXCEPTIONPRICE_ISSET_ID = 1;
146
  private static final int __WAREHOUSEID_ISSET_ID = 2;
147
  private static final int __COMMISSIONVALUE_ISSET_ID = 3;
148
  private static final int __SERVICETAXVALUE_ISSET_ID = 4;
149
  private static final int __MAXNLC_ISSET_ID = 5;
150
  private static final int __ISLISTEDONFLIPKART_ISSET_ID = 6;
151
  private static final int __SUPPRESSPRICEFEED_ISSET_ID = 7;
152
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 8;
153
  private static final int __UPDATEDON_ISSET_ID = 9;
154
  private BitSet __isset_bit_vector = new BitSet(10);
155
 
156
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
157
  static {
158
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
159
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
    tmpMap.put(_Fields.EXCEPTION_PRICE, new org.apache.thrift.meta_data.FieldMetaData("exceptionPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
163
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
    tmpMap.put(_Fields.COMMISSION_VALUE, new org.apache.thrift.meta_data.FieldMetaData("commissionValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
167
    tmpMap.put(_Fields.SERVICE_TAX_VALUE, new org.apache.thrift.meta_data.FieldMetaData("serviceTaxValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
169
    tmpMap.put(_Fields.MAX_NLC, new org.apache.thrift.meta_data.FieldMetaData("maxNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
171
    tmpMap.put(_Fields.SKU_AT_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("skuAtFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
173
    tmpMap.put(_Fields.IS_LISTED_ON_FLIPKART, new org.apache.thrift.meta_data.FieldMetaData("isListedOnFlipkart", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
175
    tmpMap.put(_Fields.SUPPRESS_PRICE_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressPriceFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
177
    tmpMap.put(_Fields.SUPPRESS_INVENTORY_FEED, new org.apache.thrift.meta_data.FieldMetaData("suppressInventoryFeed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
179
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
181
    tmpMap.put(_Fields.UPDATED_BY, new org.apache.thrift.meta_data.FieldMetaData("updatedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
183
    metaDataMap = Collections.unmodifiableMap(tmpMap);
184
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FlipkartItem.class, metaDataMap);
185
  }
186
 
187
  public FlipkartItem() {
188
  }
189
 
190
  public FlipkartItem(
191
    long item_id,
192
    double exceptionPrice,
193
    long warehouseId,
194
    double commissionValue,
195
    double serviceTaxValue,
196
    double maxNlc,
197
    String skuAtFlipkart,
198
    boolean isListedOnFlipkart,
199
    boolean suppressPriceFeed,
200
    boolean suppressInventoryFeed,
201
    long updatedOn,
202
    String updatedBy)
203
  {
204
    this();
205
    this.item_id = item_id;
206
    setItem_idIsSet(true);
207
    this.exceptionPrice = exceptionPrice;
208
    setExceptionPriceIsSet(true);
209
    this.warehouseId = warehouseId;
210
    setWarehouseIdIsSet(true);
211
    this.commissionValue = commissionValue;
212
    setCommissionValueIsSet(true);
213
    this.serviceTaxValue = serviceTaxValue;
214
    setServiceTaxValueIsSet(true);
215
    this.maxNlc = maxNlc;
216
    setMaxNlcIsSet(true);
217
    this.skuAtFlipkart = skuAtFlipkart;
218
    this.isListedOnFlipkart = isListedOnFlipkart;
219
    setIsListedOnFlipkartIsSet(true);
220
    this.suppressPriceFeed = suppressPriceFeed;
221
    setSuppressPriceFeedIsSet(true);
222
    this.suppressInventoryFeed = suppressInventoryFeed;
223
    setSuppressInventoryFeedIsSet(true);
224
    this.updatedOn = updatedOn;
225
    setUpdatedOnIsSet(true);
226
    this.updatedBy = updatedBy;
227
  }
228
 
229
  /**
230
   * Performs a deep copy on <i>other</i>.
231
   */
232
  public FlipkartItem(FlipkartItem other) {
233
    __isset_bit_vector.clear();
234
    __isset_bit_vector.or(other.__isset_bit_vector);
235
    this.item_id = other.item_id;
236
    this.exceptionPrice = other.exceptionPrice;
237
    this.warehouseId = other.warehouseId;
238
    this.commissionValue = other.commissionValue;
239
    this.serviceTaxValue = other.serviceTaxValue;
240
    this.maxNlc = other.maxNlc;
241
    if (other.isSetSkuAtFlipkart()) {
242
      this.skuAtFlipkart = other.skuAtFlipkart;
243
    }
244
    this.isListedOnFlipkart = other.isListedOnFlipkart;
245
    this.suppressPriceFeed = other.suppressPriceFeed;
246
    this.suppressInventoryFeed = other.suppressInventoryFeed;
247
    this.updatedOn = other.updatedOn;
248
    if (other.isSetUpdatedBy()) {
249
      this.updatedBy = other.updatedBy;
250
    }
251
  }
252
 
253
  public FlipkartItem deepCopy() {
254
    return new FlipkartItem(this);
255
  }
256
 
257
  @Override
258
  public void clear() {
259
    setItem_idIsSet(false);
260
    this.item_id = 0;
261
    setExceptionPriceIsSet(false);
262
    this.exceptionPrice = 0.0;
263
    setWarehouseIdIsSet(false);
264
    this.warehouseId = 0;
265
    setCommissionValueIsSet(false);
266
    this.commissionValue = 0.0;
267
    setServiceTaxValueIsSet(false);
268
    this.serviceTaxValue = 0.0;
269
    setMaxNlcIsSet(false);
270
    this.maxNlc = 0.0;
271
    this.skuAtFlipkart = null;
272
    setIsListedOnFlipkartIsSet(false);
273
    this.isListedOnFlipkart = false;
274
    setSuppressPriceFeedIsSet(false);
275
    this.suppressPriceFeed = false;
276
    setSuppressInventoryFeedIsSet(false);
277
    this.suppressInventoryFeed = false;
278
    setUpdatedOnIsSet(false);
279
    this.updatedOn = 0;
280
    this.updatedBy = null;
281
  }
282
 
283
  public long getItem_id() {
284
    return this.item_id;
285
  }
286
 
287
  public void setItem_id(long item_id) {
288
    this.item_id = item_id;
289
    setItem_idIsSet(true);
290
  }
291
 
292
  public void unsetItem_id() {
293
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
294
  }
295
 
296
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
297
  public boolean isSetItem_id() {
298
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
299
  }
300
 
301
  public void setItem_idIsSet(boolean value) {
302
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
303
  }
304
 
305
  public double getExceptionPrice() {
306
    return this.exceptionPrice;
307
  }
308
 
309
  public void setExceptionPrice(double exceptionPrice) {
310
    this.exceptionPrice = exceptionPrice;
311
    setExceptionPriceIsSet(true);
312
  }
313
 
314
  public void unsetExceptionPrice() {
315
    __isset_bit_vector.clear(__EXCEPTIONPRICE_ISSET_ID);
316
  }
317
 
318
  /** Returns true if field exceptionPrice is set (has been assigned a value) and false otherwise */
319
  public boolean isSetExceptionPrice() {
320
    return __isset_bit_vector.get(__EXCEPTIONPRICE_ISSET_ID);
321
  }
322
 
323
  public void setExceptionPriceIsSet(boolean value) {
324
    __isset_bit_vector.set(__EXCEPTIONPRICE_ISSET_ID, value);
325
  }
326
 
327
  public long getWarehouseId() {
328
    return this.warehouseId;
329
  }
330
 
331
  public void setWarehouseId(long warehouseId) {
332
    this.warehouseId = warehouseId;
333
    setWarehouseIdIsSet(true);
334
  }
335
 
336
  public void unsetWarehouseId() {
337
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
338
  }
339
 
340
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
341
  public boolean isSetWarehouseId() {
342
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
343
  }
344
 
345
  public void setWarehouseIdIsSet(boolean value) {
346
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
347
  }
348
 
349
  public double getCommissionValue() {
350
    return this.commissionValue;
351
  }
352
 
353
  public void setCommissionValue(double commissionValue) {
354
    this.commissionValue = commissionValue;
355
    setCommissionValueIsSet(true);
356
  }
357
 
358
  public void unsetCommissionValue() {
359
    __isset_bit_vector.clear(__COMMISSIONVALUE_ISSET_ID);
360
  }
361
 
362
  /** Returns true if field commissionValue is set (has been assigned a value) and false otherwise */
363
  public boolean isSetCommissionValue() {
364
    return __isset_bit_vector.get(__COMMISSIONVALUE_ISSET_ID);
365
  }
366
 
367
  public void setCommissionValueIsSet(boolean value) {
368
    __isset_bit_vector.set(__COMMISSIONVALUE_ISSET_ID, value);
369
  }
370
 
371
  public double getServiceTaxValue() {
372
    return this.serviceTaxValue;
373
  }
374
 
375
  public void setServiceTaxValue(double serviceTaxValue) {
376
    this.serviceTaxValue = serviceTaxValue;
377
    setServiceTaxValueIsSet(true);
378
  }
379
 
380
  public void unsetServiceTaxValue() {
381
    __isset_bit_vector.clear(__SERVICETAXVALUE_ISSET_ID);
382
  }
383
 
384
  /** Returns true if field serviceTaxValue is set (has been assigned a value) and false otherwise */
385
  public boolean isSetServiceTaxValue() {
386
    return __isset_bit_vector.get(__SERVICETAXVALUE_ISSET_ID);
387
  }
388
 
389
  public void setServiceTaxValueIsSet(boolean value) {
390
    __isset_bit_vector.set(__SERVICETAXVALUE_ISSET_ID, value);
391
  }
392
 
393
  public double getMaxNlc() {
394
    return this.maxNlc;
395
  }
396
 
397
  public void setMaxNlc(double maxNlc) {
398
    this.maxNlc = maxNlc;
399
    setMaxNlcIsSet(true);
400
  }
401
 
402
  public void unsetMaxNlc() {
403
    __isset_bit_vector.clear(__MAXNLC_ISSET_ID);
404
  }
405
 
406
  /** Returns true if field maxNlc is set (has been assigned a value) and false otherwise */
407
  public boolean isSetMaxNlc() {
408
    return __isset_bit_vector.get(__MAXNLC_ISSET_ID);
409
  }
410
 
411
  public void setMaxNlcIsSet(boolean value) {
412
    __isset_bit_vector.set(__MAXNLC_ISSET_ID, value);
413
  }
414
 
415
  public String getSkuAtFlipkart() {
416
    return this.skuAtFlipkart;
417
  }
418
 
419
  public void setSkuAtFlipkart(String skuAtFlipkart) {
420
    this.skuAtFlipkart = skuAtFlipkart;
421
  }
422
 
423
  public void unsetSkuAtFlipkart() {
424
    this.skuAtFlipkart = null;
425
  }
426
 
427
  /** Returns true if field skuAtFlipkart is set (has been assigned a value) and false otherwise */
428
  public boolean isSetSkuAtFlipkart() {
429
    return this.skuAtFlipkart != null;
430
  }
431
 
432
  public void setSkuAtFlipkartIsSet(boolean value) {
433
    if (!value) {
434
      this.skuAtFlipkart = null;
435
    }
436
  }
437
 
438
  public boolean isIsListedOnFlipkart() {
439
    return this.isListedOnFlipkart;
440
  }
441
 
442
  public void setIsListedOnFlipkart(boolean isListedOnFlipkart) {
443
    this.isListedOnFlipkart = isListedOnFlipkart;
444
    setIsListedOnFlipkartIsSet(true);
445
  }
446
 
447
  public void unsetIsListedOnFlipkart() {
448
    __isset_bit_vector.clear(__ISLISTEDONFLIPKART_ISSET_ID);
449
  }
450
 
451
  /** Returns true if field isListedOnFlipkart is set (has been assigned a value) and false otherwise */
452
  public boolean isSetIsListedOnFlipkart() {
453
    return __isset_bit_vector.get(__ISLISTEDONFLIPKART_ISSET_ID);
454
  }
455
 
456
  public void setIsListedOnFlipkartIsSet(boolean value) {
457
    __isset_bit_vector.set(__ISLISTEDONFLIPKART_ISSET_ID, value);
458
  }
459
 
460
  public boolean isSuppressPriceFeed() {
461
    return this.suppressPriceFeed;
462
  }
463
 
464
  public void setSuppressPriceFeed(boolean suppressPriceFeed) {
465
    this.suppressPriceFeed = suppressPriceFeed;
466
    setSuppressPriceFeedIsSet(true);
467
  }
468
 
469
  public void unsetSuppressPriceFeed() {
470
    __isset_bit_vector.clear(__SUPPRESSPRICEFEED_ISSET_ID);
471
  }
472
 
473
  /** Returns true if field suppressPriceFeed is set (has been assigned a value) and false otherwise */
474
  public boolean isSetSuppressPriceFeed() {
475
    return __isset_bit_vector.get(__SUPPRESSPRICEFEED_ISSET_ID);
476
  }
477
 
478
  public void setSuppressPriceFeedIsSet(boolean value) {
479
    __isset_bit_vector.set(__SUPPRESSPRICEFEED_ISSET_ID, value);
480
  }
481
 
482
  public boolean isSuppressInventoryFeed() {
483
    return this.suppressInventoryFeed;
484
  }
485
 
486
  public void setSuppressInventoryFeed(boolean suppressInventoryFeed) {
487
    this.suppressInventoryFeed = suppressInventoryFeed;
488
    setSuppressInventoryFeedIsSet(true);
489
  }
490
 
491
  public void unsetSuppressInventoryFeed() {
492
    __isset_bit_vector.clear(__SUPPRESSINVENTORYFEED_ISSET_ID);
493
  }
494
 
495
  /** Returns true if field suppressInventoryFeed is set (has been assigned a value) and false otherwise */
496
  public boolean isSetSuppressInventoryFeed() {
497
    return __isset_bit_vector.get(__SUPPRESSINVENTORYFEED_ISSET_ID);
498
  }
499
 
500
  public void setSuppressInventoryFeedIsSet(boolean value) {
501
    __isset_bit_vector.set(__SUPPRESSINVENTORYFEED_ISSET_ID, value);
502
  }
503
 
504
  public long getUpdatedOn() {
505
    return this.updatedOn;
506
  }
507
 
508
  public void setUpdatedOn(long updatedOn) {
509
    this.updatedOn = updatedOn;
510
    setUpdatedOnIsSet(true);
511
  }
512
 
513
  public void unsetUpdatedOn() {
514
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
515
  }
516
 
517
  /** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
518
  public boolean isSetUpdatedOn() {
519
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
520
  }
521
 
522
  public void setUpdatedOnIsSet(boolean value) {
523
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
524
  }
525
 
526
  public String getUpdatedBy() {
527
    return this.updatedBy;
528
  }
529
 
530
  public void setUpdatedBy(String updatedBy) {
531
    this.updatedBy = updatedBy;
532
  }
533
 
534
  public void unsetUpdatedBy() {
535
    this.updatedBy = null;
536
  }
537
 
538
  /** Returns true if field updatedBy is set (has been assigned a value) and false otherwise */
539
  public boolean isSetUpdatedBy() {
540
    return this.updatedBy != null;
541
  }
542
 
543
  public void setUpdatedByIsSet(boolean value) {
544
    if (!value) {
545
      this.updatedBy = null;
546
    }
547
  }
548
 
549
  public void setFieldValue(_Fields field, Object value) {
550
    switch (field) {
551
    case ITEM_ID:
552
      if (value == null) {
553
        unsetItem_id();
554
      } else {
555
        setItem_id((Long)value);
556
      }
557
      break;
558
 
559
    case EXCEPTION_PRICE:
560
      if (value == null) {
561
        unsetExceptionPrice();
562
      } else {
563
        setExceptionPrice((Double)value);
564
      }
565
      break;
566
 
567
    case WAREHOUSE_ID:
568
      if (value == null) {
569
        unsetWarehouseId();
570
      } else {
571
        setWarehouseId((Long)value);
572
      }
573
      break;
574
 
575
    case COMMISSION_VALUE:
576
      if (value == null) {
577
        unsetCommissionValue();
578
      } else {
579
        setCommissionValue((Double)value);
580
      }
581
      break;
582
 
583
    case SERVICE_TAX_VALUE:
584
      if (value == null) {
585
        unsetServiceTaxValue();
586
      } else {
587
        setServiceTaxValue((Double)value);
588
      }
589
      break;
590
 
591
    case MAX_NLC:
592
      if (value == null) {
593
        unsetMaxNlc();
594
      } else {
595
        setMaxNlc((Double)value);
596
      }
597
      break;
598
 
599
    case SKU_AT_FLIPKART:
600
      if (value == null) {
601
        unsetSkuAtFlipkart();
602
      } else {
603
        setSkuAtFlipkart((String)value);
604
      }
605
      break;
606
 
607
    case IS_LISTED_ON_FLIPKART:
608
      if (value == null) {
609
        unsetIsListedOnFlipkart();
610
      } else {
611
        setIsListedOnFlipkart((Boolean)value);
612
      }
613
      break;
614
 
615
    case SUPPRESS_PRICE_FEED:
616
      if (value == null) {
617
        unsetSuppressPriceFeed();
618
      } else {
619
        setSuppressPriceFeed((Boolean)value);
620
      }
621
      break;
622
 
623
    case SUPPRESS_INVENTORY_FEED:
624
      if (value == null) {
625
        unsetSuppressInventoryFeed();
626
      } else {
627
        setSuppressInventoryFeed((Boolean)value);
628
      }
629
      break;
630
 
631
    case UPDATED_ON:
632
      if (value == null) {
633
        unsetUpdatedOn();
634
      } else {
635
        setUpdatedOn((Long)value);
636
      }
637
      break;
638
 
639
    case UPDATED_BY:
640
      if (value == null) {
641
        unsetUpdatedBy();
642
      } else {
643
        setUpdatedBy((String)value);
644
      }
645
      break;
646
 
647
    }
648
  }
649
 
650
  public Object getFieldValue(_Fields field) {
651
    switch (field) {
652
    case ITEM_ID:
653
      return Long.valueOf(getItem_id());
654
 
655
    case EXCEPTION_PRICE:
656
      return Double.valueOf(getExceptionPrice());
657
 
658
    case WAREHOUSE_ID:
659
      return Long.valueOf(getWarehouseId());
660
 
661
    case COMMISSION_VALUE:
662
      return Double.valueOf(getCommissionValue());
663
 
664
    case SERVICE_TAX_VALUE:
665
      return Double.valueOf(getServiceTaxValue());
666
 
667
    case MAX_NLC:
668
      return Double.valueOf(getMaxNlc());
669
 
670
    case SKU_AT_FLIPKART:
671
      return getSkuAtFlipkart();
672
 
673
    case IS_LISTED_ON_FLIPKART:
674
      return Boolean.valueOf(isIsListedOnFlipkart());
675
 
676
    case SUPPRESS_PRICE_FEED:
677
      return Boolean.valueOf(isSuppressPriceFeed());
678
 
679
    case SUPPRESS_INVENTORY_FEED:
680
      return Boolean.valueOf(isSuppressInventoryFeed());
681
 
682
    case UPDATED_ON:
683
      return Long.valueOf(getUpdatedOn());
684
 
685
    case UPDATED_BY:
686
      return getUpdatedBy();
687
 
688
    }
689
    throw new IllegalStateException();
690
  }
691
 
692
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
693
  public boolean isSet(_Fields field) {
694
    if (field == null) {
695
      throw new IllegalArgumentException();
696
    }
697
 
698
    switch (field) {
699
    case ITEM_ID:
700
      return isSetItem_id();
701
    case EXCEPTION_PRICE:
702
      return isSetExceptionPrice();
703
    case WAREHOUSE_ID:
704
      return isSetWarehouseId();
705
    case COMMISSION_VALUE:
706
      return isSetCommissionValue();
707
    case SERVICE_TAX_VALUE:
708
      return isSetServiceTaxValue();
709
    case MAX_NLC:
710
      return isSetMaxNlc();
711
    case SKU_AT_FLIPKART:
712
      return isSetSkuAtFlipkart();
713
    case IS_LISTED_ON_FLIPKART:
714
      return isSetIsListedOnFlipkart();
715
    case SUPPRESS_PRICE_FEED:
716
      return isSetSuppressPriceFeed();
717
    case SUPPRESS_INVENTORY_FEED:
718
      return isSetSuppressInventoryFeed();
719
    case UPDATED_ON:
720
      return isSetUpdatedOn();
721
    case UPDATED_BY:
722
      return isSetUpdatedBy();
723
    }
724
    throw new IllegalStateException();
725
  }
726
 
727
  @Override
728
  public boolean equals(Object that) {
729
    if (that == null)
730
      return false;
731
    if (that instanceof FlipkartItem)
732
      return this.equals((FlipkartItem)that);
733
    return false;
734
  }
735
 
736
  public boolean equals(FlipkartItem that) {
737
    if (that == null)
738
      return false;
739
 
740
    boolean this_present_item_id = true;
741
    boolean that_present_item_id = true;
742
    if (this_present_item_id || that_present_item_id) {
743
      if (!(this_present_item_id && that_present_item_id))
744
        return false;
745
      if (this.item_id != that.item_id)
746
        return false;
747
    }
748
 
749
    boolean this_present_exceptionPrice = true;
750
    boolean that_present_exceptionPrice = true;
751
    if (this_present_exceptionPrice || that_present_exceptionPrice) {
752
      if (!(this_present_exceptionPrice && that_present_exceptionPrice))
753
        return false;
754
      if (this.exceptionPrice != that.exceptionPrice)
755
        return false;
756
    }
757
 
758
    boolean this_present_warehouseId = true;
759
    boolean that_present_warehouseId = true;
760
    if (this_present_warehouseId || that_present_warehouseId) {
761
      if (!(this_present_warehouseId && that_present_warehouseId))
762
        return false;
763
      if (this.warehouseId != that.warehouseId)
764
        return false;
765
    }
766
 
767
    boolean this_present_commissionValue = true;
768
    boolean that_present_commissionValue = true;
769
    if (this_present_commissionValue || that_present_commissionValue) {
770
      if (!(this_present_commissionValue && that_present_commissionValue))
771
        return false;
772
      if (this.commissionValue != that.commissionValue)
773
        return false;
774
    }
775
 
776
    boolean this_present_serviceTaxValue = true;
777
    boolean that_present_serviceTaxValue = true;
778
    if (this_present_serviceTaxValue || that_present_serviceTaxValue) {
779
      if (!(this_present_serviceTaxValue && that_present_serviceTaxValue))
780
        return false;
781
      if (this.serviceTaxValue != that.serviceTaxValue)
782
        return false;
783
    }
784
 
785
    boolean this_present_maxNlc = true;
786
    boolean that_present_maxNlc = true;
787
    if (this_present_maxNlc || that_present_maxNlc) {
788
      if (!(this_present_maxNlc && that_present_maxNlc))
789
        return false;
790
      if (this.maxNlc != that.maxNlc)
791
        return false;
792
    }
793
 
794
    boolean this_present_skuAtFlipkart = true && this.isSetSkuAtFlipkart();
795
    boolean that_present_skuAtFlipkart = true && that.isSetSkuAtFlipkart();
796
    if (this_present_skuAtFlipkart || that_present_skuAtFlipkart) {
797
      if (!(this_present_skuAtFlipkart && that_present_skuAtFlipkart))
798
        return false;
799
      if (!this.skuAtFlipkart.equals(that.skuAtFlipkart))
800
        return false;
801
    }
802
 
803
    boolean this_present_isListedOnFlipkart = true;
804
    boolean that_present_isListedOnFlipkart = true;
805
    if (this_present_isListedOnFlipkart || that_present_isListedOnFlipkart) {
806
      if (!(this_present_isListedOnFlipkart && that_present_isListedOnFlipkart))
807
        return false;
808
      if (this.isListedOnFlipkart != that.isListedOnFlipkart)
809
        return false;
810
    }
811
 
812
    boolean this_present_suppressPriceFeed = true;
813
    boolean that_present_suppressPriceFeed = true;
814
    if (this_present_suppressPriceFeed || that_present_suppressPriceFeed) {
815
      if (!(this_present_suppressPriceFeed && that_present_suppressPriceFeed))
816
        return false;
817
      if (this.suppressPriceFeed != that.suppressPriceFeed)
818
        return false;
819
    }
820
 
821
    boolean this_present_suppressInventoryFeed = true;
822
    boolean that_present_suppressInventoryFeed = true;
823
    if (this_present_suppressInventoryFeed || that_present_suppressInventoryFeed) {
824
      if (!(this_present_suppressInventoryFeed && that_present_suppressInventoryFeed))
825
        return false;
826
      if (this.suppressInventoryFeed != that.suppressInventoryFeed)
827
        return false;
828
    }
829
 
830
    boolean this_present_updatedOn = true;
831
    boolean that_present_updatedOn = true;
832
    if (this_present_updatedOn || that_present_updatedOn) {
833
      if (!(this_present_updatedOn && that_present_updatedOn))
834
        return false;
835
      if (this.updatedOn != that.updatedOn)
836
        return false;
837
    }
838
 
839
    boolean this_present_updatedBy = true && this.isSetUpdatedBy();
840
    boolean that_present_updatedBy = true && that.isSetUpdatedBy();
841
    if (this_present_updatedBy || that_present_updatedBy) {
842
      if (!(this_present_updatedBy && that_present_updatedBy))
843
        return false;
844
      if (!this.updatedBy.equals(that.updatedBy))
845
        return false;
846
    }
847
 
848
    return true;
849
  }
850
 
851
  @Override
852
  public int hashCode() {
853
    return 0;
854
  }
855
 
856
  public int compareTo(FlipkartItem other) {
857
    if (!getClass().equals(other.getClass())) {
858
      return getClass().getName().compareTo(other.getClass().getName());
859
    }
860
 
861
    int lastComparison = 0;
862
    FlipkartItem typedOther = (FlipkartItem)other;
863
 
864
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
865
    if (lastComparison != 0) {
866
      return lastComparison;
867
    }
868
    if (isSetItem_id()) {
869
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
870
      if (lastComparison != 0) {
871
        return lastComparison;
872
      }
873
    }
874
    lastComparison = Boolean.valueOf(isSetExceptionPrice()).compareTo(typedOther.isSetExceptionPrice());
875
    if (lastComparison != 0) {
876
      return lastComparison;
877
    }
878
    if (isSetExceptionPrice()) {
879
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exceptionPrice, typedOther.exceptionPrice);
880
      if (lastComparison != 0) {
881
        return lastComparison;
882
      }
883
    }
884
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
885
    if (lastComparison != 0) {
886
      return lastComparison;
887
    }
888
    if (isSetWarehouseId()) {
889
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
890
      if (lastComparison != 0) {
891
        return lastComparison;
892
      }
893
    }
894
    lastComparison = Boolean.valueOf(isSetCommissionValue()).compareTo(typedOther.isSetCommissionValue());
895
    if (lastComparison != 0) {
896
      return lastComparison;
897
    }
898
    if (isSetCommissionValue()) {
899
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commissionValue, typedOther.commissionValue);
900
      if (lastComparison != 0) {
901
        return lastComparison;
902
      }
903
    }
904
    lastComparison = Boolean.valueOf(isSetServiceTaxValue()).compareTo(typedOther.isSetServiceTaxValue());
905
    if (lastComparison != 0) {
906
      return lastComparison;
907
    }
908
    if (isSetServiceTaxValue()) {
909
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTaxValue, typedOther.serviceTaxValue);
910
      if (lastComparison != 0) {
911
        return lastComparison;
912
      }
913
    }
914
    lastComparison = Boolean.valueOf(isSetMaxNlc()).compareTo(typedOther.isSetMaxNlc());
915
    if (lastComparison != 0) {
916
      return lastComparison;
917
    }
918
    if (isSetMaxNlc()) {
919
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxNlc, typedOther.maxNlc);
920
      if (lastComparison != 0) {
921
        return lastComparison;
922
      }
923
    }
924
    lastComparison = Boolean.valueOf(isSetSkuAtFlipkart()).compareTo(typedOther.isSetSkuAtFlipkart());
925
    if (lastComparison != 0) {
926
      return lastComparison;
927
    }
928
    if (isSetSkuAtFlipkart()) {
929
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtFlipkart, typedOther.skuAtFlipkart);
930
      if (lastComparison != 0) {
931
        return lastComparison;
932
      }
933
    }
934
    lastComparison = Boolean.valueOf(isSetIsListedOnFlipkart()).compareTo(typedOther.isSetIsListedOnFlipkart());
935
    if (lastComparison != 0) {
936
      return lastComparison;
937
    }
938
    if (isSetIsListedOnFlipkart()) {
939
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnFlipkart, typedOther.isListedOnFlipkart);
940
      if (lastComparison != 0) {
941
        return lastComparison;
942
      }
943
    }
944
    lastComparison = Boolean.valueOf(isSetSuppressPriceFeed()).compareTo(typedOther.isSetSuppressPriceFeed());
945
    if (lastComparison != 0) {
946
      return lastComparison;
947
    }
948
    if (isSetSuppressPriceFeed()) {
949
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressPriceFeed, typedOther.suppressPriceFeed);
950
      if (lastComparison != 0) {
951
        return lastComparison;
952
      }
953
    }
954
    lastComparison = Boolean.valueOf(isSetSuppressInventoryFeed()).compareTo(typedOther.isSetSuppressInventoryFeed());
955
    if (lastComparison != 0) {
956
      return lastComparison;
957
    }
958
    if (isSetSuppressInventoryFeed()) {
959
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suppressInventoryFeed, typedOther.suppressInventoryFeed);
960
      if (lastComparison != 0) {
961
        return lastComparison;
962
      }
963
    }
964
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
965
    if (lastComparison != 0) {
966
      return lastComparison;
967
    }
968
    if (isSetUpdatedOn()) {
969
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
970
      if (lastComparison != 0) {
971
        return lastComparison;
972
      }
973
    }
974
    lastComparison = Boolean.valueOf(isSetUpdatedBy()).compareTo(typedOther.isSetUpdatedBy());
975
    if (lastComparison != 0) {
976
      return lastComparison;
977
    }
978
    if (isSetUpdatedBy()) {
979
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedBy, typedOther.updatedBy);
980
      if (lastComparison != 0) {
981
        return lastComparison;
982
      }
983
    }
984
    return 0;
985
  }
986
 
987
  public _Fields fieldForId(int fieldId) {
988
    return _Fields.findByThriftId(fieldId);
989
  }
990
 
991
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
992
    org.apache.thrift.protocol.TField field;
993
    iprot.readStructBegin();
994
    while (true)
995
    {
996
      field = iprot.readFieldBegin();
997
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
998
        break;
999
      }
1000
      switch (field.id) {
1001
        case 1: // ITEM_ID
1002
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1003
            this.item_id = iprot.readI64();
1004
            setItem_idIsSet(true);
1005
          } else { 
1006
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1007
          }
1008
          break;
1009
        case 2: // EXCEPTION_PRICE
1010
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1011
            this.exceptionPrice = iprot.readDouble();
1012
            setExceptionPriceIsSet(true);
1013
          } else { 
1014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1015
          }
1016
          break;
1017
        case 3: // WAREHOUSE_ID
1018
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1019
            this.warehouseId = iprot.readI64();
1020
            setWarehouseIdIsSet(true);
1021
          } else { 
1022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1023
          }
1024
          break;
1025
        case 4: // COMMISSION_VALUE
1026
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1027
            this.commissionValue = iprot.readDouble();
1028
            setCommissionValueIsSet(true);
1029
          } else { 
1030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1031
          }
1032
          break;
1033
        case 5: // SERVICE_TAX_VALUE
1034
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1035
            this.serviceTaxValue = iprot.readDouble();
1036
            setServiceTaxValueIsSet(true);
1037
          } else { 
1038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1039
          }
1040
          break;
1041
        case 6: // MAX_NLC
1042
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1043
            this.maxNlc = iprot.readDouble();
1044
            setMaxNlcIsSet(true);
1045
          } else { 
1046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1047
          }
1048
          break;
1049
        case 7: // SKU_AT_FLIPKART
1050
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1051
            this.skuAtFlipkart = iprot.readString();
1052
          } else { 
1053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1054
          }
1055
          break;
1056
        case 8: // IS_LISTED_ON_FLIPKART
1057
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1058
            this.isListedOnFlipkart = iprot.readBool();
1059
            setIsListedOnFlipkartIsSet(true);
1060
          } else { 
1061
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1062
          }
1063
          break;
1064
        case 9: // SUPPRESS_PRICE_FEED
1065
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1066
            this.suppressPriceFeed = iprot.readBool();
1067
            setSuppressPriceFeedIsSet(true);
1068
          } else { 
1069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1070
          }
1071
          break;
1072
        case 10: // SUPPRESS_INVENTORY_FEED
1073
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1074
            this.suppressInventoryFeed = iprot.readBool();
1075
            setSuppressInventoryFeedIsSet(true);
1076
          } else { 
1077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1078
          }
1079
          break;
1080
        case 11: // UPDATED_ON
1081
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1082
            this.updatedOn = iprot.readI64();
1083
            setUpdatedOnIsSet(true);
1084
          } else { 
1085
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1086
          }
1087
          break;
1088
        case 12: // UPDATED_BY
1089
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1090
            this.updatedBy = iprot.readString();
1091
          } else { 
1092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1093
          }
1094
          break;
1095
        default:
1096
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
      }
1098
      iprot.readFieldEnd();
1099
    }
1100
    iprot.readStructEnd();
1101
    validate();
1102
  }
1103
 
1104
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1105
    validate();
1106
 
1107
    oprot.writeStructBegin(STRUCT_DESC);
1108
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1109
    oprot.writeI64(this.item_id);
1110
    oprot.writeFieldEnd();
1111
    oprot.writeFieldBegin(EXCEPTION_PRICE_FIELD_DESC);
1112
    oprot.writeDouble(this.exceptionPrice);
1113
    oprot.writeFieldEnd();
1114
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1115
    oprot.writeI64(this.warehouseId);
1116
    oprot.writeFieldEnd();
1117
    oprot.writeFieldBegin(COMMISSION_VALUE_FIELD_DESC);
1118
    oprot.writeDouble(this.commissionValue);
1119
    oprot.writeFieldEnd();
1120
    oprot.writeFieldBegin(SERVICE_TAX_VALUE_FIELD_DESC);
1121
    oprot.writeDouble(this.serviceTaxValue);
1122
    oprot.writeFieldEnd();
1123
    oprot.writeFieldBegin(MAX_NLC_FIELD_DESC);
1124
    oprot.writeDouble(this.maxNlc);
1125
    oprot.writeFieldEnd();
1126
    if (this.skuAtFlipkart != null) {
1127
      oprot.writeFieldBegin(SKU_AT_FLIPKART_FIELD_DESC);
1128
      oprot.writeString(this.skuAtFlipkart);
1129
      oprot.writeFieldEnd();
1130
    }
1131
    oprot.writeFieldBegin(IS_LISTED_ON_FLIPKART_FIELD_DESC);
1132
    oprot.writeBool(this.isListedOnFlipkart);
1133
    oprot.writeFieldEnd();
1134
    oprot.writeFieldBegin(SUPPRESS_PRICE_FEED_FIELD_DESC);
1135
    oprot.writeBool(this.suppressPriceFeed);
1136
    oprot.writeFieldEnd();
1137
    oprot.writeFieldBegin(SUPPRESS_INVENTORY_FEED_FIELD_DESC);
1138
    oprot.writeBool(this.suppressInventoryFeed);
1139
    oprot.writeFieldEnd();
1140
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
1141
    oprot.writeI64(this.updatedOn);
1142
    oprot.writeFieldEnd();
1143
    if (this.updatedBy != null) {
1144
      oprot.writeFieldBegin(UPDATED_BY_FIELD_DESC);
1145
      oprot.writeString(this.updatedBy);
1146
      oprot.writeFieldEnd();
1147
    }
1148
    oprot.writeFieldStop();
1149
    oprot.writeStructEnd();
1150
  }
1151
 
1152
  @Override
1153
  public String toString() {
1154
    StringBuilder sb = new StringBuilder("FlipkartItem(");
1155
    boolean first = true;
1156
 
1157
    sb.append("item_id:");
1158
    sb.append(this.item_id);
1159
    first = false;
1160
    if (!first) sb.append(", ");
1161
    sb.append("exceptionPrice:");
1162
    sb.append(this.exceptionPrice);
1163
    first = false;
1164
    if (!first) sb.append(", ");
1165
    sb.append("warehouseId:");
1166
    sb.append(this.warehouseId);
1167
    first = false;
1168
    if (!first) sb.append(", ");
1169
    sb.append("commissionValue:");
1170
    sb.append(this.commissionValue);
1171
    first = false;
1172
    if (!first) sb.append(", ");
1173
    sb.append("serviceTaxValue:");
1174
    sb.append(this.serviceTaxValue);
1175
    first = false;
1176
    if (!first) sb.append(", ");
1177
    sb.append("maxNlc:");
1178
    sb.append(this.maxNlc);
1179
    first = false;
1180
    if (!first) sb.append(", ");
1181
    sb.append("skuAtFlipkart:");
1182
    if (this.skuAtFlipkart == null) {
1183
      sb.append("null");
1184
    } else {
1185
      sb.append(this.skuAtFlipkart);
1186
    }
1187
    first = false;
1188
    if (!first) sb.append(", ");
1189
    sb.append("isListedOnFlipkart:");
1190
    sb.append(this.isListedOnFlipkart);
1191
    first = false;
1192
    if (!first) sb.append(", ");
1193
    sb.append("suppressPriceFeed:");
1194
    sb.append(this.suppressPriceFeed);
1195
    first = false;
1196
    if (!first) sb.append(", ");
1197
    sb.append("suppressInventoryFeed:");
1198
    sb.append(this.suppressInventoryFeed);
1199
    first = false;
1200
    if (!first) sb.append(", ");
1201
    sb.append("updatedOn:");
1202
    sb.append(this.updatedOn);
1203
    first = false;
1204
    if (!first) sb.append(", ");
1205
    sb.append("updatedBy:");
1206
    if (this.updatedBy == null) {
1207
      sb.append("null");
1208
    } else {
1209
      sb.append(this.updatedBy);
1210
    }
1211
    first = false;
1212
    sb.append(")");
1213
    return sb.toString();
1214
  }
1215
 
1216
  public void validate() throws org.apache.thrift.TException {
1217
    // check for required fields
1218
  }
1219
 
1220
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1221
    try {
1222
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1223
    } catch (org.apache.thrift.TException te) {
1224
      throw new java.io.IOException(te);
1225
    }
1226
  }
1227
 
1228
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1229
    try {
1230
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1231
      __isset_bit_vector = new BitSet(1);
1232
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1233
    } catch (org.apache.thrift.TException te) {
1234
      throw new java.io.IOException(te);
1235
    }
1236
  }
1237
 
1238
}
1239