Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
9724 kshitij.so 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class MarketplaceItems implements org.apache.thrift.TBase<MarketplaceItems, MarketplaceItems._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MarketplaceItems");
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField EMI_FEE_FIELD_DESC = new org.apache.thrift.protocol.TField("emiFee", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField COURIER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("courierCost", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField CLOSING_FEE_FIELD_DESC = new org.apache.thrift.protocol.TField("closingFee", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField RETURN_PROVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnProvision", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField COMMISSION_FIELD_DESC = new org.apache.thrift.protocol.TField("commission", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
  private static final org.apache.thrift.protocol.TField VAT_FIELD_DESC = new org.apache.thrift.protocol.TField("vat", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField PACKAGING_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("packagingCost", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField OTHER_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("otherCost", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField AUTO_INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("autoIncrement", org.apache.thrift.protocol.TType.BOOL, (short)12);
38
  private static final org.apache.thrift.protocol.TField AUTO_DECREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("autoDecrement", org.apache.thrift.protocol.TType.BOOL, (short)13);
39
  private static final org.apache.thrift.protocol.TField MANUAL_FAVOURITE_FIELD_DESC = new org.apache.thrift.protocol.TField("manualFavourite", org.apache.thrift.protocol.TType.BOOL, (short)14);
40
  private static final org.apache.thrift.protocol.TField AUTO_FAVOURITE_FIELD_DESC = new org.apache.thrift.protocol.TField("autoFavourite", org.apache.thrift.protocol.TType.BOOL, (short)15);
41
  private static final org.apache.thrift.protocol.TField CURRENT_SP_FIELD_DESC = new org.apache.thrift.protocol.TField("currentSp", org.apache.thrift.protocol.TType.DOUBLE, (short)16);
42
  private static final org.apache.thrift.protocol.TField CURRENT_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("currentTp", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
43
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_SP_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleSp", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField MINIMUM_POSSIBLE_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumPossibleTp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField LAST_CHECKED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCheckedTimestamp", org.apache.thrift.protocol.TType.I64, (short)20);
46
 
47
  private long itemId; // required
48
  private long source; // required
49
  private double emiFee; // required
50
  private double courierCost; // required
51
  private double closingFee; // required
52
  private double returnProvision; // required
53
  private double commission; // required
54
  private double vat; // required
55
  private double packagingCost; // required
56
  private double otherCost; // required
57
  private double serviceTax; // required
58
  private boolean autoIncrement; // required
59
  private boolean autoDecrement; // required
60
  private boolean manualFavourite; // required
61
  private boolean autoFavourite; // required
62
  private double currentSp; // required
63
  private double currentTp; // required
64
  private double minimumPossibleSp; // required
65
  private double minimumPossibleTp; // required
66
  private long lastCheckedTimestamp; // required
67
 
68
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
69
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
70
    ITEM_ID((short)1, "itemId"),
71
    SOURCE((short)2, "source"),
72
    EMI_FEE((short)3, "emiFee"),
73
    COURIER_COST((short)4, "courierCost"),
74
    CLOSING_FEE((short)5, "closingFee"),
75
    RETURN_PROVISION((short)6, "returnProvision"),
76
    COMMISSION((short)7, "commission"),
77
    VAT((short)8, "vat"),
78
    PACKAGING_COST((short)9, "packagingCost"),
79
    OTHER_COST((short)10, "otherCost"),
80
    SERVICE_TAX((short)11, "serviceTax"),
81
    AUTO_INCREMENT((short)12, "autoIncrement"),
82
    AUTO_DECREMENT((short)13, "autoDecrement"),
83
    MANUAL_FAVOURITE((short)14, "manualFavourite"),
84
    AUTO_FAVOURITE((short)15, "autoFavourite"),
85
    CURRENT_SP((short)16, "currentSp"),
86
    CURRENT_TP((short)17, "currentTp"),
87
    MINIMUM_POSSIBLE_SP((short)18, "minimumPossibleSp"),
88
    MINIMUM_POSSIBLE_TP((short)19, "minimumPossibleTp"),
89
    LAST_CHECKED_TIMESTAMP((short)20, "lastCheckedTimestamp");
90
 
91
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
92
 
93
    static {
94
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
95
        byName.put(field.getFieldName(), field);
96
      }
97
    }
98
 
99
    /**
100
     * Find the _Fields constant that matches fieldId, or null if its not found.
101
     */
102
    public static _Fields findByThriftId(int fieldId) {
103
      switch(fieldId) {
104
        case 1: // ITEM_ID
105
          return ITEM_ID;
106
        case 2: // SOURCE
107
          return SOURCE;
108
        case 3: // EMI_FEE
109
          return EMI_FEE;
110
        case 4: // COURIER_COST
111
          return COURIER_COST;
112
        case 5: // CLOSING_FEE
113
          return CLOSING_FEE;
114
        case 6: // RETURN_PROVISION
115
          return RETURN_PROVISION;
116
        case 7: // COMMISSION
117
          return COMMISSION;
118
        case 8: // VAT
119
          return VAT;
120
        case 9: // PACKAGING_COST
121
          return PACKAGING_COST;
122
        case 10: // OTHER_COST
123
          return OTHER_COST;
124
        case 11: // SERVICE_TAX
125
          return SERVICE_TAX;
126
        case 12: // AUTO_INCREMENT
127
          return AUTO_INCREMENT;
128
        case 13: // AUTO_DECREMENT
129
          return AUTO_DECREMENT;
130
        case 14: // MANUAL_FAVOURITE
131
          return MANUAL_FAVOURITE;
132
        case 15: // AUTO_FAVOURITE
133
          return AUTO_FAVOURITE;
134
        case 16: // CURRENT_SP
135
          return CURRENT_SP;
136
        case 17: // CURRENT_TP
137
          return CURRENT_TP;
138
        case 18: // MINIMUM_POSSIBLE_SP
139
          return MINIMUM_POSSIBLE_SP;
140
        case 19: // MINIMUM_POSSIBLE_TP
141
          return MINIMUM_POSSIBLE_TP;
142
        case 20: // LAST_CHECKED_TIMESTAMP
143
          return LAST_CHECKED_TIMESTAMP;
144
        default:
145
          return null;
146
      }
147
    }
148
 
149
    /**
150
     * Find the _Fields constant that matches fieldId, throwing an exception
151
     * if it is not found.
152
     */
153
    public static _Fields findByThriftIdOrThrow(int fieldId) {
154
      _Fields fields = findByThriftId(fieldId);
155
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
156
      return fields;
157
    }
158
 
159
    /**
160
     * Find the _Fields constant that matches name, or null if its not found.
161
     */
162
    public static _Fields findByName(String name) {
163
      return byName.get(name);
164
    }
165
 
166
    private final short _thriftId;
167
    private final String _fieldName;
168
 
169
    _Fields(short thriftId, String fieldName) {
170
      _thriftId = thriftId;
171
      _fieldName = fieldName;
172
    }
173
 
174
    public short getThriftFieldId() {
175
      return _thriftId;
176
    }
177
 
178
    public String getFieldName() {
179
      return _fieldName;
180
    }
181
  }
182
 
183
  // isset id assignments
184
  private static final int __ITEMID_ISSET_ID = 0;
185
  private static final int __SOURCE_ISSET_ID = 1;
186
  private static final int __EMIFEE_ISSET_ID = 2;
187
  private static final int __COURIERCOST_ISSET_ID = 3;
188
  private static final int __CLOSINGFEE_ISSET_ID = 4;
189
  private static final int __RETURNPROVISION_ISSET_ID = 5;
190
  private static final int __COMMISSION_ISSET_ID = 6;
191
  private static final int __VAT_ISSET_ID = 7;
192
  private static final int __PACKAGINGCOST_ISSET_ID = 8;
193
  private static final int __OTHERCOST_ISSET_ID = 9;
194
  private static final int __SERVICETAX_ISSET_ID = 10;
195
  private static final int __AUTOINCREMENT_ISSET_ID = 11;
196
  private static final int __AUTODECREMENT_ISSET_ID = 12;
197
  private static final int __MANUALFAVOURITE_ISSET_ID = 13;
198
  private static final int __AUTOFAVOURITE_ISSET_ID = 14;
199
  private static final int __CURRENTSP_ISSET_ID = 15;
200
  private static final int __CURRENTTP_ISSET_ID = 16;
201
  private static final int __MINIMUMPOSSIBLESP_ISSET_ID = 17;
202
  private static final int __MINIMUMPOSSIBLETP_ISSET_ID = 18;
203
  private static final int __LASTCHECKEDTIMESTAMP_ISSET_ID = 19;
204
  private BitSet __isset_bit_vector = new BitSet(20);
205
 
206
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
207
  static {
208
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
209
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
211
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
213
    tmpMap.put(_Fields.EMI_FEE, new org.apache.thrift.meta_data.FieldMetaData("emiFee", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
215
    tmpMap.put(_Fields.COURIER_COST, new org.apache.thrift.meta_data.FieldMetaData("courierCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
217
    tmpMap.put(_Fields.CLOSING_FEE, new org.apache.thrift.meta_data.FieldMetaData("closingFee", org.apache.thrift.TFieldRequirementType.DEFAULT, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
219
    tmpMap.put(_Fields.RETURN_PROVISION, new org.apache.thrift.meta_data.FieldMetaData("returnProvision", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
221
    tmpMap.put(_Fields.COMMISSION, new org.apache.thrift.meta_data.FieldMetaData("commission", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
223
    tmpMap.put(_Fields.VAT, new org.apache.thrift.meta_data.FieldMetaData("vat", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
225
    tmpMap.put(_Fields.PACKAGING_COST, new org.apache.thrift.meta_data.FieldMetaData("packagingCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
227
    tmpMap.put(_Fields.OTHER_COST, new org.apache.thrift.meta_data.FieldMetaData("otherCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
229
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
231
    tmpMap.put(_Fields.AUTO_INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("autoIncrement", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
233
    tmpMap.put(_Fields.AUTO_DECREMENT, new org.apache.thrift.meta_data.FieldMetaData("autoDecrement", org.apache.thrift.TFieldRequirementType.DEFAULT, 
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
235
    tmpMap.put(_Fields.MANUAL_FAVOURITE, new org.apache.thrift.meta_data.FieldMetaData("manualFavourite", org.apache.thrift.TFieldRequirementType.DEFAULT, 
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
237
    tmpMap.put(_Fields.AUTO_FAVOURITE, new org.apache.thrift.meta_data.FieldMetaData("autoFavourite", org.apache.thrift.TFieldRequirementType.DEFAULT, 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
239
    tmpMap.put(_Fields.CURRENT_SP, new org.apache.thrift.meta_data.FieldMetaData("currentSp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
240
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
241
    tmpMap.put(_Fields.CURRENT_TP, new org.apache.thrift.meta_data.FieldMetaData("currentTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
243
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_SP, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleSp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
245
    tmpMap.put(_Fields.MINIMUM_POSSIBLE_TP, new org.apache.thrift.meta_data.FieldMetaData("minimumPossibleTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
247
    tmpMap.put(_Fields.LAST_CHECKED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("lastCheckedTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
248
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
249
    metaDataMap = Collections.unmodifiableMap(tmpMap);
250
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MarketplaceItems.class, metaDataMap);
251
  }
252
 
253
  public MarketplaceItems() {
254
  }
255
 
256
  public MarketplaceItems(
257
    long itemId,
258
    long source,
259
    double emiFee,
260
    double courierCost,
261
    double closingFee,
262
    double returnProvision,
263
    double commission,
264
    double vat,
265
    double packagingCost,
266
    double otherCost,
267
    double serviceTax,
268
    boolean autoIncrement,
269
    boolean autoDecrement,
270
    boolean manualFavourite,
271
    boolean autoFavourite,
272
    double currentSp,
273
    double currentTp,
274
    double minimumPossibleSp,
275
    double minimumPossibleTp,
276
    long lastCheckedTimestamp)
277
  {
278
    this();
279
    this.itemId = itemId;
280
    setItemIdIsSet(true);
281
    this.source = source;
282
    setSourceIsSet(true);
283
    this.emiFee = emiFee;
284
    setEmiFeeIsSet(true);
285
    this.courierCost = courierCost;
286
    setCourierCostIsSet(true);
287
    this.closingFee = closingFee;
288
    setClosingFeeIsSet(true);
289
    this.returnProvision = returnProvision;
290
    setReturnProvisionIsSet(true);
291
    this.commission = commission;
292
    setCommissionIsSet(true);
293
    this.vat = vat;
294
    setVatIsSet(true);
295
    this.packagingCost = packagingCost;
296
    setPackagingCostIsSet(true);
297
    this.otherCost = otherCost;
298
    setOtherCostIsSet(true);
299
    this.serviceTax = serviceTax;
300
    setServiceTaxIsSet(true);
301
    this.autoIncrement = autoIncrement;
302
    setAutoIncrementIsSet(true);
303
    this.autoDecrement = autoDecrement;
304
    setAutoDecrementIsSet(true);
305
    this.manualFavourite = manualFavourite;
306
    setManualFavouriteIsSet(true);
307
    this.autoFavourite = autoFavourite;
308
    setAutoFavouriteIsSet(true);
309
    this.currentSp = currentSp;
310
    setCurrentSpIsSet(true);
311
    this.currentTp = currentTp;
312
    setCurrentTpIsSet(true);
313
    this.minimumPossibleSp = minimumPossibleSp;
314
    setMinimumPossibleSpIsSet(true);
315
    this.minimumPossibleTp = minimumPossibleTp;
316
    setMinimumPossibleTpIsSet(true);
317
    this.lastCheckedTimestamp = lastCheckedTimestamp;
318
    setLastCheckedTimestampIsSet(true);
319
  }
320
 
321
  /**
322
   * Performs a deep copy on <i>other</i>.
323
   */
324
  public MarketplaceItems(MarketplaceItems other) {
325
    __isset_bit_vector.clear();
326
    __isset_bit_vector.or(other.__isset_bit_vector);
327
    this.itemId = other.itemId;
328
    this.source = other.source;
329
    this.emiFee = other.emiFee;
330
    this.courierCost = other.courierCost;
331
    this.closingFee = other.closingFee;
332
    this.returnProvision = other.returnProvision;
333
    this.commission = other.commission;
334
    this.vat = other.vat;
335
    this.packagingCost = other.packagingCost;
336
    this.otherCost = other.otherCost;
337
    this.serviceTax = other.serviceTax;
338
    this.autoIncrement = other.autoIncrement;
339
    this.autoDecrement = other.autoDecrement;
340
    this.manualFavourite = other.manualFavourite;
341
    this.autoFavourite = other.autoFavourite;
342
    this.currentSp = other.currentSp;
343
    this.currentTp = other.currentTp;
344
    this.minimumPossibleSp = other.minimumPossibleSp;
345
    this.minimumPossibleTp = other.minimumPossibleTp;
346
    this.lastCheckedTimestamp = other.lastCheckedTimestamp;
347
  }
348
 
349
  public MarketplaceItems deepCopy() {
350
    return new MarketplaceItems(this);
351
  }
352
 
353
  @Override
354
  public void clear() {
355
    setItemIdIsSet(false);
356
    this.itemId = 0;
357
    setSourceIsSet(false);
358
    this.source = 0;
359
    setEmiFeeIsSet(false);
360
    this.emiFee = 0.0;
361
    setCourierCostIsSet(false);
362
    this.courierCost = 0.0;
363
    setClosingFeeIsSet(false);
364
    this.closingFee = 0.0;
365
    setReturnProvisionIsSet(false);
366
    this.returnProvision = 0.0;
367
    setCommissionIsSet(false);
368
    this.commission = 0.0;
369
    setVatIsSet(false);
370
    this.vat = 0.0;
371
    setPackagingCostIsSet(false);
372
    this.packagingCost = 0.0;
373
    setOtherCostIsSet(false);
374
    this.otherCost = 0.0;
375
    setServiceTaxIsSet(false);
376
    this.serviceTax = 0.0;
377
    setAutoIncrementIsSet(false);
378
    this.autoIncrement = false;
379
    setAutoDecrementIsSet(false);
380
    this.autoDecrement = false;
381
    setManualFavouriteIsSet(false);
382
    this.manualFavourite = false;
383
    setAutoFavouriteIsSet(false);
384
    this.autoFavourite = false;
385
    setCurrentSpIsSet(false);
386
    this.currentSp = 0.0;
387
    setCurrentTpIsSet(false);
388
    this.currentTp = 0.0;
389
    setMinimumPossibleSpIsSet(false);
390
    this.minimumPossibleSp = 0.0;
391
    setMinimumPossibleTpIsSet(false);
392
    this.minimumPossibleTp = 0.0;
393
    setLastCheckedTimestampIsSet(false);
394
    this.lastCheckedTimestamp = 0;
395
  }
396
 
397
  public long getItemId() {
398
    return this.itemId;
399
  }
400
 
401
  public void setItemId(long itemId) {
402
    this.itemId = itemId;
403
    setItemIdIsSet(true);
404
  }
405
 
406
  public void unsetItemId() {
407
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
408
  }
409
 
410
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
411
  public boolean isSetItemId() {
412
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
413
  }
414
 
415
  public void setItemIdIsSet(boolean value) {
416
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
417
  }
418
 
419
  public long getSource() {
420
    return this.source;
421
  }
422
 
423
  public void setSource(long source) {
424
    this.source = source;
425
    setSourceIsSet(true);
426
  }
427
 
428
  public void unsetSource() {
429
    __isset_bit_vector.clear(__SOURCE_ISSET_ID);
430
  }
431
 
432
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
433
  public boolean isSetSource() {
434
    return __isset_bit_vector.get(__SOURCE_ISSET_ID);
435
  }
436
 
437
  public void setSourceIsSet(boolean value) {
438
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
439
  }
440
 
441
  public double getEmiFee() {
442
    return this.emiFee;
443
  }
444
 
445
  public void setEmiFee(double emiFee) {
446
    this.emiFee = emiFee;
447
    setEmiFeeIsSet(true);
448
  }
449
 
450
  public void unsetEmiFee() {
451
    __isset_bit_vector.clear(__EMIFEE_ISSET_ID);
452
  }
453
 
454
  /** Returns true if field emiFee is set (has been assigned a value) and false otherwise */
455
  public boolean isSetEmiFee() {
456
    return __isset_bit_vector.get(__EMIFEE_ISSET_ID);
457
  }
458
 
459
  public void setEmiFeeIsSet(boolean value) {
460
    __isset_bit_vector.set(__EMIFEE_ISSET_ID, value);
461
  }
462
 
463
  public double getCourierCost() {
464
    return this.courierCost;
465
  }
466
 
467
  public void setCourierCost(double courierCost) {
468
    this.courierCost = courierCost;
469
    setCourierCostIsSet(true);
470
  }
471
 
472
  public void unsetCourierCost() {
473
    __isset_bit_vector.clear(__COURIERCOST_ISSET_ID);
474
  }
475
 
476
  /** Returns true if field courierCost is set (has been assigned a value) and false otherwise */
477
  public boolean isSetCourierCost() {
478
    return __isset_bit_vector.get(__COURIERCOST_ISSET_ID);
479
  }
480
 
481
  public void setCourierCostIsSet(boolean value) {
482
    __isset_bit_vector.set(__COURIERCOST_ISSET_ID, value);
483
  }
484
 
485
  public double getClosingFee() {
486
    return this.closingFee;
487
  }
488
 
489
  public void setClosingFee(double closingFee) {
490
    this.closingFee = closingFee;
491
    setClosingFeeIsSet(true);
492
  }
493
 
494
  public void unsetClosingFee() {
495
    __isset_bit_vector.clear(__CLOSINGFEE_ISSET_ID);
496
  }
497
 
498
  /** Returns true if field closingFee is set (has been assigned a value) and false otherwise */
499
  public boolean isSetClosingFee() {
500
    return __isset_bit_vector.get(__CLOSINGFEE_ISSET_ID);
501
  }
502
 
503
  public void setClosingFeeIsSet(boolean value) {
504
    __isset_bit_vector.set(__CLOSINGFEE_ISSET_ID, value);
505
  }
506
 
507
  public double getReturnProvision() {
508
    return this.returnProvision;
509
  }
510
 
511
  public void setReturnProvision(double returnProvision) {
512
    this.returnProvision = returnProvision;
513
    setReturnProvisionIsSet(true);
514
  }
515
 
516
  public void unsetReturnProvision() {
517
    __isset_bit_vector.clear(__RETURNPROVISION_ISSET_ID);
518
  }
519
 
520
  /** Returns true if field returnProvision is set (has been assigned a value) and false otherwise */
521
  public boolean isSetReturnProvision() {
522
    return __isset_bit_vector.get(__RETURNPROVISION_ISSET_ID);
523
  }
524
 
525
  public void setReturnProvisionIsSet(boolean value) {
526
    __isset_bit_vector.set(__RETURNPROVISION_ISSET_ID, value);
527
  }
528
 
529
  public double getCommission() {
530
    return this.commission;
531
  }
532
 
533
  public void setCommission(double commission) {
534
    this.commission = commission;
535
    setCommissionIsSet(true);
536
  }
537
 
538
  public void unsetCommission() {
539
    __isset_bit_vector.clear(__COMMISSION_ISSET_ID);
540
  }
541
 
542
  /** Returns true if field commission is set (has been assigned a value) and false otherwise */
543
  public boolean isSetCommission() {
544
    return __isset_bit_vector.get(__COMMISSION_ISSET_ID);
545
  }
546
 
547
  public void setCommissionIsSet(boolean value) {
548
    __isset_bit_vector.set(__COMMISSION_ISSET_ID, value);
549
  }
550
 
551
  public double getVat() {
552
    return this.vat;
553
  }
554
 
555
  public void setVat(double vat) {
556
    this.vat = vat;
557
    setVatIsSet(true);
558
  }
559
 
560
  public void unsetVat() {
561
    __isset_bit_vector.clear(__VAT_ISSET_ID);
562
  }
563
 
564
  /** Returns true if field vat is set (has been assigned a value) and false otherwise */
565
  public boolean isSetVat() {
566
    return __isset_bit_vector.get(__VAT_ISSET_ID);
567
  }
568
 
569
  public void setVatIsSet(boolean value) {
570
    __isset_bit_vector.set(__VAT_ISSET_ID, value);
571
  }
572
 
573
  public double getPackagingCost() {
574
    return this.packagingCost;
575
  }
576
 
577
  public void setPackagingCost(double packagingCost) {
578
    this.packagingCost = packagingCost;
579
    setPackagingCostIsSet(true);
580
  }
581
 
582
  public void unsetPackagingCost() {
583
    __isset_bit_vector.clear(__PACKAGINGCOST_ISSET_ID);
584
  }
585
 
586
  /** Returns true if field packagingCost is set (has been assigned a value) and false otherwise */
587
  public boolean isSetPackagingCost() {
588
    return __isset_bit_vector.get(__PACKAGINGCOST_ISSET_ID);
589
  }
590
 
591
  public void setPackagingCostIsSet(boolean value) {
592
    __isset_bit_vector.set(__PACKAGINGCOST_ISSET_ID, value);
593
  }
594
 
595
  public double getOtherCost() {
596
    return this.otherCost;
597
  }
598
 
599
  public void setOtherCost(double otherCost) {
600
    this.otherCost = otherCost;
601
    setOtherCostIsSet(true);
602
  }
603
 
604
  public void unsetOtherCost() {
605
    __isset_bit_vector.clear(__OTHERCOST_ISSET_ID);
606
  }
607
 
608
  /** Returns true if field otherCost is set (has been assigned a value) and false otherwise */
609
  public boolean isSetOtherCost() {
610
    return __isset_bit_vector.get(__OTHERCOST_ISSET_ID);
611
  }
612
 
613
  public void setOtherCostIsSet(boolean value) {
614
    __isset_bit_vector.set(__OTHERCOST_ISSET_ID, value);
615
  }
616
 
617
  public double getServiceTax() {
618
    return this.serviceTax;
619
  }
620
 
621
  public void setServiceTax(double serviceTax) {
622
    this.serviceTax = serviceTax;
623
    setServiceTaxIsSet(true);
624
  }
625
 
626
  public void unsetServiceTax() {
627
    __isset_bit_vector.clear(__SERVICETAX_ISSET_ID);
628
  }
629
 
630
  /** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */
631
  public boolean isSetServiceTax() {
632
    return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);
633
  }
634
 
635
  public void setServiceTaxIsSet(boolean value) {
636
    __isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);
637
  }
638
 
639
  public boolean isAutoIncrement() {
640
    return this.autoIncrement;
641
  }
642
 
643
  public void setAutoIncrement(boolean autoIncrement) {
644
    this.autoIncrement = autoIncrement;
645
    setAutoIncrementIsSet(true);
646
  }
647
 
648
  public void unsetAutoIncrement() {
649
    __isset_bit_vector.clear(__AUTOINCREMENT_ISSET_ID);
650
  }
651
 
652
  /** Returns true if field autoIncrement is set (has been assigned a value) and false otherwise */
653
  public boolean isSetAutoIncrement() {
654
    return __isset_bit_vector.get(__AUTOINCREMENT_ISSET_ID);
655
  }
656
 
657
  public void setAutoIncrementIsSet(boolean value) {
658
    __isset_bit_vector.set(__AUTOINCREMENT_ISSET_ID, value);
659
  }
660
 
661
  public boolean isAutoDecrement() {
662
    return this.autoDecrement;
663
  }
664
 
665
  public void setAutoDecrement(boolean autoDecrement) {
666
    this.autoDecrement = autoDecrement;
667
    setAutoDecrementIsSet(true);
668
  }
669
 
670
  public void unsetAutoDecrement() {
671
    __isset_bit_vector.clear(__AUTODECREMENT_ISSET_ID);
672
  }
673
 
674
  /** Returns true if field autoDecrement is set (has been assigned a value) and false otherwise */
675
  public boolean isSetAutoDecrement() {
676
    return __isset_bit_vector.get(__AUTODECREMENT_ISSET_ID);
677
  }
678
 
679
  public void setAutoDecrementIsSet(boolean value) {
680
    __isset_bit_vector.set(__AUTODECREMENT_ISSET_ID, value);
681
  }
682
 
683
  public boolean isManualFavourite() {
684
    return this.manualFavourite;
685
  }
686
 
687
  public void setManualFavourite(boolean manualFavourite) {
688
    this.manualFavourite = manualFavourite;
689
    setManualFavouriteIsSet(true);
690
  }
691
 
692
  public void unsetManualFavourite() {
693
    __isset_bit_vector.clear(__MANUALFAVOURITE_ISSET_ID);
694
  }
695
 
696
  /** Returns true if field manualFavourite is set (has been assigned a value) and false otherwise */
697
  public boolean isSetManualFavourite() {
698
    return __isset_bit_vector.get(__MANUALFAVOURITE_ISSET_ID);
699
  }
700
 
701
  public void setManualFavouriteIsSet(boolean value) {
702
    __isset_bit_vector.set(__MANUALFAVOURITE_ISSET_ID, value);
703
  }
704
 
705
  public boolean isAutoFavourite() {
706
    return this.autoFavourite;
707
  }
708
 
709
  public void setAutoFavourite(boolean autoFavourite) {
710
    this.autoFavourite = autoFavourite;
711
    setAutoFavouriteIsSet(true);
712
  }
713
 
714
  public void unsetAutoFavourite() {
715
    __isset_bit_vector.clear(__AUTOFAVOURITE_ISSET_ID);
716
  }
717
 
718
  /** Returns true if field autoFavourite is set (has been assigned a value) and false otherwise */
719
  public boolean isSetAutoFavourite() {
720
    return __isset_bit_vector.get(__AUTOFAVOURITE_ISSET_ID);
721
  }
722
 
723
  public void setAutoFavouriteIsSet(boolean value) {
724
    __isset_bit_vector.set(__AUTOFAVOURITE_ISSET_ID, value);
725
  }
726
 
727
  public double getCurrentSp() {
728
    return this.currentSp;
729
  }
730
 
731
  public void setCurrentSp(double currentSp) {
732
    this.currentSp = currentSp;
733
    setCurrentSpIsSet(true);
734
  }
735
 
736
  public void unsetCurrentSp() {
737
    __isset_bit_vector.clear(__CURRENTSP_ISSET_ID);
738
  }
739
 
740
  /** Returns true if field currentSp is set (has been assigned a value) and false otherwise */
741
  public boolean isSetCurrentSp() {
742
    return __isset_bit_vector.get(__CURRENTSP_ISSET_ID);
743
  }
744
 
745
  public void setCurrentSpIsSet(boolean value) {
746
    __isset_bit_vector.set(__CURRENTSP_ISSET_ID, value);
747
  }
748
 
749
  public double getCurrentTp() {
750
    return this.currentTp;
751
  }
752
 
753
  public void setCurrentTp(double currentTp) {
754
    this.currentTp = currentTp;
755
    setCurrentTpIsSet(true);
756
  }
757
 
758
  public void unsetCurrentTp() {
759
    __isset_bit_vector.clear(__CURRENTTP_ISSET_ID);
760
  }
761
 
762
  /** Returns true if field currentTp is set (has been assigned a value) and false otherwise */
763
  public boolean isSetCurrentTp() {
764
    return __isset_bit_vector.get(__CURRENTTP_ISSET_ID);
765
  }
766
 
767
  public void setCurrentTpIsSet(boolean value) {
768
    __isset_bit_vector.set(__CURRENTTP_ISSET_ID, value);
769
  }
770
 
771
  public double getMinimumPossibleSp() {
772
    return this.minimumPossibleSp;
773
  }
774
 
775
  public void setMinimumPossibleSp(double minimumPossibleSp) {
776
    this.minimumPossibleSp = minimumPossibleSp;
777
    setMinimumPossibleSpIsSet(true);
778
  }
779
 
780
  public void unsetMinimumPossibleSp() {
781
    __isset_bit_vector.clear(__MINIMUMPOSSIBLESP_ISSET_ID);
782
  }
783
 
784
  /** Returns true if field minimumPossibleSp is set (has been assigned a value) and false otherwise */
785
  public boolean isSetMinimumPossibleSp() {
786
    return __isset_bit_vector.get(__MINIMUMPOSSIBLESP_ISSET_ID);
787
  }
788
 
789
  public void setMinimumPossibleSpIsSet(boolean value) {
790
    __isset_bit_vector.set(__MINIMUMPOSSIBLESP_ISSET_ID, value);
791
  }
792
 
793
  public double getMinimumPossibleTp() {
794
    return this.minimumPossibleTp;
795
  }
796
 
797
  public void setMinimumPossibleTp(double minimumPossibleTp) {
798
    this.minimumPossibleTp = minimumPossibleTp;
799
    setMinimumPossibleTpIsSet(true);
800
  }
801
 
802
  public void unsetMinimumPossibleTp() {
803
    __isset_bit_vector.clear(__MINIMUMPOSSIBLETP_ISSET_ID);
804
  }
805
 
806
  /** Returns true if field minimumPossibleTp is set (has been assigned a value) and false otherwise */
807
  public boolean isSetMinimumPossibleTp() {
808
    return __isset_bit_vector.get(__MINIMUMPOSSIBLETP_ISSET_ID);
809
  }
810
 
811
  public void setMinimumPossibleTpIsSet(boolean value) {
812
    __isset_bit_vector.set(__MINIMUMPOSSIBLETP_ISSET_ID, value);
813
  }
814
 
815
  public long getLastCheckedTimestamp() {
816
    return this.lastCheckedTimestamp;
817
  }
818
 
819
  public void setLastCheckedTimestamp(long lastCheckedTimestamp) {
820
    this.lastCheckedTimestamp = lastCheckedTimestamp;
821
    setLastCheckedTimestampIsSet(true);
822
  }
823
 
824
  public void unsetLastCheckedTimestamp() {
825
    __isset_bit_vector.clear(__LASTCHECKEDTIMESTAMP_ISSET_ID);
826
  }
827
 
828
  /** Returns true if field lastCheckedTimestamp is set (has been assigned a value) and false otherwise */
829
  public boolean isSetLastCheckedTimestamp() {
830
    return __isset_bit_vector.get(__LASTCHECKEDTIMESTAMP_ISSET_ID);
831
  }
832
 
833
  public void setLastCheckedTimestampIsSet(boolean value) {
834
    __isset_bit_vector.set(__LASTCHECKEDTIMESTAMP_ISSET_ID, value);
835
  }
836
 
837
  public void setFieldValue(_Fields field, Object value) {
838
    switch (field) {
839
    case ITEM_ID:
840
      if (value == null) {
841
        unsetItemId();
842
      } else {
843
        setItemId((Long)value);
844
      }
845
      break;
846
 
847
    case SOURCE:
848
      if (value == null) {
849
        unsetSource();
850
      } else {
851
        setSource((Long)value);
852
      }
853
      break;
854
 
855
    case EMI_FEE:
856
      if (value == null) {
857
        unsetEmiFee();
858
      } else {
859
        setEmiFee((Double)value);
860
      }
861
      break;
862
 
863
    case COURIER_COST:
864
      if (value == null) {
865
        unsetCourierCost();
866
      } else {
867
        setCourierCost((Double)value);
868
      }
869
      break;
870
 
871
    case CLOSING_FEE:
872
      if (value == null) {
873
        unsetClosingFee();
874
      } else {
875
        setClosingFee((Double)value);
876
      }
877
      break;
878
 
879
    case RETURN_PROVISION:
880
      if (value == null) {
881
        unsetReturnProvision();
882
      } else {
883
        setReturnProvision((Double)value);
884
      }
885
      break;
886
 
887
    case COMMISSION:
888
      if (value == null) {
889
        unsetCommission();
890
      } else {
891
        setCommission((Double)value);
892
      }
893
      break;
894
 
895
    case VAT:
896
      if (value == null) {
897
        unsetVat();
898
      } else {
899
        setVat((Double)value);
900
      }
901
      break;
902
 
903
    case PACKAGING_COST:
904
      if (value == null) {
905
        unsetPackagingCost();
906
      } else {
907
        setPackagingCost((Double)value);
908
      }
909
      break;
910
 
911
    case OTHER_COST:
912
      if (value == null) {
913
        unsetOtherCost();
914
      } else {
915
        setOtherCost((Double)value);
916
      }
917
      break;
918
 
919
    case SERVICE_TAX:
920
      if (value == null) {
921
        unsetServiceTax();
922
      } else {
923
        setServiceTax((Double)value);
924
      }
925
      break;
926
 
927
    case AUTO_INCREMENT:
928
      if (value == null) {
929
        unsetAutoIncrement();
930
      } else {
931
        setAutoIncrement((Boolean)value);
932
      }
933
      break;
934
 
935
    case AUTO_DECREMENT:
936
      if (value == null) {
937
        unsetAutoDecrement();
938
      } else {
939
        setAutoDecrement((Boolean)value);
940
      }
941
      break;
942
 
943
    case MANUAL_FAVOURITE:
944
      if (value == null) {
945
        unsetManualFavourite();
946
      } else {
947
        setManualFavourite((Boolean)value);
948
      }
949
      break;
950
 
951
    case AUTO_FAVOURITE:
952
      if (value == null) {
953
        unsetAutoFavourite();
954
      } else {
955
        setAutoFavourite((Boolean)value);
956
      }
957
      break;
958
 
959
    case CURRENT_SP:
960
      if (value == null) {
961
        unsetCurrentSp();
962
      } else {
963
        setCurrentSp((Double)value);
964
      }
965
      break;
966
 
967
    case CURRENT_TP:
968
      if (value == null) {
969
        unsetCurrentTp();
970
      } else {
971
        setCurrentTp((Double)value);
972
      }
973
      break;
974
 
975
    case MINIMUM_POSSIBLE_SP:
976
      if (value == null) {
977
        unsetMinimumPossibleSp();
978
      } else {
979
        setMinimumPossibleSp((Double)value);
980
      }
981
      break;
982
 
983
    case MINIMUM_POSSIBLE_TP:
984
      if (value == null) {
985
        unsetMinimumPossibleTp();
986
      } else {
987
        setMinimumPossibleTp((Double)value);
988
      }
989
      break;
990
 
991
    case LAST_CHECKED_TIMESTAMP:
992
      if (value == null) {
993
        unsetLastCheckedTimestamp();
994
      } else {
995
        setLastCheckedTimestamp((Long)value);
996
      }
997
      break;
998
 
999
    }
1000
  }
1001
 
1002
  public Object getFieldValue(_Fields field) {
1003
    switch (field) {
1004
    case ITEM_ID:
1005
      return Long.valueOf(getItemId());
1006
 
1007
    case SOURCE:
1008
      return Long.valueOf(getSource());
1009
 
1010
    case EMI_FEE:
1011
      return Double.valueOf(getEmiFee());
1012
 
1013
    case COURIER_COST:
1014
      return Double.valueOf(getCourierCost());
1015
 
1016
    case CLOSING_FEE:
1017
      return Double.valueOf(getClosingFee());
1018
 
1019
    case RETURN_PROVISION:
1020
      return Double.valueOf(getReturnProvision());
1021
 
1022
    case COMMISSION:
1023
      return Double.valueOf(getCommission());
1024
 
1025
    case VAT:
1026
      return Double.valueOf(getVat());
1027
 
1028
    case PACKAGING_COST:
1029
      return Double.valueOf(getPackagingCost());
1030
 
1031
    case OTHER_COST:
1032
      return Double.valueOf(getOtherCost());
1033
 
1034
    case SERVICE_TAX:
1035
      return Double.valueOf(getServiceTax());
1036
 
1037
    case AUTO_INCREMENT:
1038
      return Boolean.valueOf(isAutoIncrement());
1039
 
1040
    case AUTO_DECREMENT:
1041
      return Boolean.valueOf(isAutoDecrement());
1042
 
1043
    case MANUAL_FAVOURITE:
1044
      return Boolean.valueOf(isManualFavourite());
1045
 
1046
    case AUTO_FAVOURITE:
1047
      return Boolean.valueOf(isAutoFavourite());
1048
 
1049
    case CURRENT_SP:
1050
      return Double.valueOf(getCurrentSp());
1051
 
1052
    case CURRENT_TP:
1053
      return Double.valueOf(getCurrentTp());
1054
 
1055
    case MINIMUM_POSSIBLE_SP:
1056
      return Double.valueOf(getMinimumPossibleSp());
1057
 
1058
    case MINIMUM_POSSIBLE_TP:
1059
      return Double.valueOf(getMinimumPossibleTp());
1060
 
1061
    case LAST_CHECKED_TIMESTAMP:
1062
      return Long.valueOf(getLastCheckedTimestamp());
1063
 
1064
    }
1065
    throw new IllegalStateException();
1066
  }
1067
 
1068
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1069
  public boolean isSet(_Fields field) {
1070
    if (field == null) {
1071
      throw new IllegalArgumentException();
1072
    }
1073
 
1074
    switch (field) {
1075
    case ITEM_ID:
1076
      return isSetItemId();
1077
    case SOURCE:
1078
      return isSetSource();
1079
    case EMI_FEE:
1080
      return isSetEmiFee();
1081
    case COURIER_COST:
1082
      return isSetCourierCost();
1083
    case CLOSING_FEE:
1084
      return isSetClosingFee();
1085
    case RETURN_PROVISION:
1086
      return isSetReturnProvision();
1087
    case COMMISSION:
1088
      return isSetCommission();
1089
    case VAT:
1090
      return isSetVat();
1091
    case PACKAGING_COST:
1092
      return isSetPackagingCost();
1093
    case OTHER_COST:
1094
      return isSetOtherCost();
1095
    case SERVICE_TAX:
1096
      return isSetServiceTax();
1097
    case AUTO_INCREMENT:
1098
      return isSetAutoIncrement();
1099
    case AUTO_DECREMENT:
1100
      return isSetAutoDecrement();
1101
    case MANUAL_FAVOURITE:
1102
      return isSetManualFavourite();
1103
    case AUTO_FAVOURITE:
1104
      return isSetAutoFavourite();
1105
    case CURRENT_SP:
1106
      return isSetCurrentSp();
1107
    case CURRENT_TP:
1108
      return isSetCurrentTp();
1109
    case MINIMUM_POSSIBLE_SP:
1110
      return isSetMinimumPossibleSp();
1111
    case MINIMUM_POSSIBLE_TP:
1112
      return isSetMinimumPossibleTp();
1113
    case LAST_CHECKED_TIMESTAMP:
1114
      return isSetLastCheckedTimestamp();
1115
    }
1116
    throw new IllegalStateException();
1117
  }
1118
 
1119
  @Override
1120
  public boolean equals(Object that) {
1121
    if (that == null)
1122
      return false;
1123
    if (that instanceof MarketplaceItems)
1124
      return this.equals((MarketplaceItems)that);
1125
    return false;
1126
  }
1127
 
1128
  public boolean equals(MarketplaceItems that) {
1129
    if (that == null)
1130
      return false;
1131
 
1132
    boolean this_present_itemId = true;
1133
    boolean that_present_itemId = true;
1134
    if (this_present_itemId || that_present_itemId) {
1135
      if (!(this_present_itemId && that_present_itemId))
1136
        return false;
1137
      if (this.itemId != that.itemId)
1138
        return false;
1139
    }
1140
 
1141
    boolean this_present_source = true;
1142
    boolean that_present_source = true;
1143
    if (this_present_source || that_present_source) {
1144
      if (!(this_present_source && that_present_source))
1145
        return false;
1146
      if (this.source != that.source)
1147
        return false;
1148
    }
1149
 
1150
    boolean this_present_emiFee = true;
1151
    boolean that_present_emiFee = true;
1152
    if (this_present_emiFee || that_present_emiFee) {
1153
      if (!(this_present_emiFee && that_present_emiFee))
1154
        return false;
1155
      if (this.emiFee != that.emiFee)
1156
        return false;
1157
    }
1158
 
1159
    boolean this_present_courierCost = true;
1160
    boolean that_present_courierCost = true;
1161
    if (this_present_courierCost || that_present_courierCost) {
1162
      if (!(this_present_courierCost && that_present_courierCost))
1163
        return false;
1164
      if (this.courierCost != that.courierCost)
1165
        return false;
1166
    }
1167
 
1168
    boolean this_present_closingFee = true;
1169
    boolean that_present_closingFee = true;
1170
    if (this_present_closingFee || that_present_closingFee) {
1171
      if (!(this_present_closingFee && that_present_closingFee))
1172
        return false;
1173
      if (this.closingFee != that.closingFee)
1174
        return false;
1175
    }
1176
 
1177
    boolean this_present_returnProvision = true;
1178
    boolean that_present_returnProvision = true;
1179
    if (this_present_returnProvision || that_present_returnProvision) {
1180
      if (!(this_present_returnProvision && that_present_returnProvision))
1181
        return false;
1182
      if (this.returnProvision != that.returnProvision)
1183
        return false;
1184
    }
1185
 
1186
    boolean this_present_commission = true;
1187
    boolean that_present_commission = true;
1188
    if (this_present_commission || that_present_commission) {
1189
      if (!(this_present_commission && that_present_commission))
1190
        return false;
1191
      if (this.commission != that.commission)
1192
        return false;
1193
    }
1194
 
1195
    boolean this_present_vat = true;
1196
    boolean that_present_vat = true;
1197
    if (this_present_vat || that_present_vat) {
1198
      if (!(this_present_vat && that_present_vat))
1199
        return false;
1200
      if (this.vat != that.vat)
1201
        return false;
1202
    }
1203
 
1204
    boolean this_present_packagingCost = true;
1205
    boolean that_present_packagingCost = true;
1206
    if (this_present_packagingCost || that_present_packagingCost) {
1207
      if (!(this_present_packagingCost && that_present_packagingCost))
1208
        return false;
1209
      if (this.packagingCost != that.packagingCost)
1210
        return false;
1211
    }
1212
 
1213
    boolean this_present_otherCost = true;
1214
    boolean that_present_otherCost = true;
1215
    if (this_present_otherCost || that_present_otherCost) {
1216
      if (!(this_present_otherCost && that_present_otherCost))
1217
        return false;
1218
      if (this.otherCost != that.otherCost)
1219
        return false;
1220
    }
1221
 
1222
    boolean this_present_serviceTax = true;
1223
    boolean that_present_serviceTax = true;
1224
    if (this_present_serviceTax || that_present_serviceTax) {
1225
      if (!(this_present_serviceTax && that_present_serviceTax))
1226
        return false;
1227
      if (this.serviceTax != that.serviceTax)
1228
        return false;
1229
    }
1230
 
1231
    boolean this_present_autoIncrement = true;
1232
    boolean that_present_autoIncrement = true;
1233
    if (this_present_autoIncrement || that_present_autoIncrement) {
1234
      if (!(this_present_autoIncrement && that_present_autoIncrement))
1235
        return false;
1236
      if (this.autoIncrement != that.autoIncrement)
1237
        return false;
1238
    }
1239
 
1240
    boolean this_present_autoDecrement = true;
1241
    boolean that_present_autoDecrement = true;
1242
    if (this_present_autoDecrement || that_present_autoDecrement) {
1243
      if (!(this_present_autoDecrement && that_present_autoDecrement))
1244
        return false;
1245
      if (this.autoDecrement != that.autoDecrement)
1246
        return false;
1247
    }
1248
 
1249
    boolean this_present_manualFavourite = true;
1250
    boolean that_present_manualFavourite = true;
1251
    if (this_present_manualFavourite || that_present_manualFavourite) {
1252
      if (!(this_present_manualFavourite && that_present_manualFavourite))
1253
        return false;
1254
      if (this.manualFavourite != that.manualFavourite)
1255
        return false;
1256
    }
1257
 
1258
    boolean this_present_autoFavourite = true;
1259
    boolean that_present_autoFavourite = true;
1260
    if (this_present_autoFavourite || that_present_autoFavourite) {
1261
      if (!(this_present_autoFavourite && that_present_autoFavourite))
1262
        return false;
1263
      if (this.autoFavourite != that.autoFavourite)
1264
        return false;
1265
    }
1266
 
1267
    boolean this_present_currentSp = true;
1268
    boolean that_present_currentSp = true;
1269
    if (this_present_currentSp || that_present_currentSp) {
1270
      if (!(this_present_currentSp && that_present_currentSp))
1271
        return false;
1272
      if (this.currentSp != that.currentSp)
1273
        return false;
1274
    }
1275
 
1276
    boolean this_present_currentTp = true;
1277
    boolean that_present_currentTp = true;
1278
    if (this_present_currentTp || that_present_currentTp) {
1279
      if (!(this_present_currentTp && that_present_currentTp))
1280
        return false;
1281
      if (this.currentTp != that.currentTp)
1282
        return false;
1283
    }
1284
 
1285
    boolean this_present_minimumPossibleSp = true;
1286
    boolean that_present_minimumPossibleSp = true;
1287
    if (this_present_minimumPossibleSp || that_present_minimumPossibleSp) {
1288
      if (!(this_present_minimumPossibleSp && that_present_minimumPossibleSp))
1289
        return false;
1290
      if (this.minimumPossibleSp != that.minimumPossibleSp)
1291
        return false;
1292
    }
1293
 
1294
    boolean this_present_minimumPossibleTp = true;
1295
    boolean that_present_minimumPossibleTp = true;
1296
    if (this_present_minimumPossibleTp || that_present_minimumPossibleTp) {
1297
      if (!(this_present_minimumPossibleTp && that_present_minimumPossibleTp))
1298
        return false;
1299
      if (this.minimumPossibleTp != that.minimumPossibleTp)
1300
        return false;
1301
    }
1302
 
1303
    boolean this_present_lastCheckedTimestamp = true;
1304
    boolean that_present_lastCheckedTimestamp = true;
1305
    if (this_present_lastCheckedTimestamp || that_present_lastCheckedTimestamp) {
1306
      if (!(this_present_lastCheckedTimestamp && that_present_lastCheckedTimestamp))
1307
        return false;
1308
      if (this.lastCheckedTimestamp != that.lastCheckedTimestamp)
1309
        return false;
1310
    }
1311
 
1312
    return true;
1313
  }
1314
 
1315
  @Override
1316
  public int hashCode() {
1317
    return 0;
1318
  }
1319
 
1320
  public int compareTo(MarketplaceItems other) {
1321
    if (!getClass().equals(other.getClass())) {
1322
      return getClass().getName().compareTo(other.getClass().getName());
1323
    }
1324
 
1325
    int lastComparison = 0;
1326
    MarketplaceItems typedOther = (MarketplaceItems)other;
1327
 
1328
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1329
    if (lastComparison != 0) {
1330
      return lastComparison;
1331
    }
1332
    if (isSetItemId()) {
1333
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1334
      if (lastComparison != 0) {
1335
        return lastComparison;
1336
      }
1337
    }
1338
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1339
    if (lastComparison != 0) {
1340
      return lastComparison;
1341
    }
1342
    if (isSetSource()) {
1343
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1344
      if (lastComparison != 0) {
1345
        return lastComparison;
1346
      }
1347
    }
1348
    lastComparison = Boolean.valueOf(isSetEmiFee()).compareTo(typedOther.isSetEmiFee());
1349
    if (lastComparison != 0) {
1350
      return lastComparison;
1351
    }
1352
    if (isSetEmiFee()) {
1353
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emiFee, typedOther.emiFee);
1354
      if (lastComparison != 0) {
1355
        return lastComparison;
1356
      }
1357
    }
1358
    lastComparison = Boolean.valueOf(isSetCourierCost()).compareTo(typedOther.isSetCourierCost());
1359
    if (lastComparison != 0) {
1360
      return lastComparison;
1361
    }
1362
    if (isSetCourierCost()) {
1363
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierCost, typedOther.courierCost);
1364
      if (lastComparison != 0) {
1365
        return lastComparison;
1366
      }
1367
    }
1368
    lastComparison = Boolean.valueOf(isSetClosingFee()).compareTo(typedOther.isSetClosingFee());
1369
    if (lastComparison != 0) {
1370
      return lastComparison;
1371
    }
1372
    if (isSetClosingFee()) {
1373
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.closingFee, typedOther.closingFee);
1374
      if (lastComparison != 0) {
1375
        return lastComparison;
1376
      }
1377
    }
1378
    lastComparison = Boolean.valueOf(isSetReturnProvision()).compareTo(typedOther.isSetReturnProvision());
1379
    if (lastComparison != 0) {
1380
      return lastComparison;
1381
    }
1382
    if (isSetReturnProvision()) {
1383
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnProvision, typedOther.returnProvision);
1384
      if (lastComparison != 0) {
1385
        return lastComparison;
1386
      }
1387
    }
1388
    lastComparison = Boolean.valueOf(isSetCommission()).compareTo(typedOther.isSetCommission());
1389
    if (lastComparison != 0) {
1390
      return lastComparison;
1391
    }
1392
    if (isSetCommission()) {
1393
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commission, typedOther.commission);
1394
      if (lastComparison != 0) {
1395
        return lastComparison;
1396
      }
1397
    }
1398
    lastComparison = Boolean.valueOf(isSetVat()).compareTo(typedOther.isSetVat());
1399
    if (lastComparison != 0) {
1400
      return lastComparison;
1401
    }
1402
    if (isSetVat()) {
1403
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vat, typedOther.vat);
1404
      if (lastComparison != 0) {
1405
        return lastComparison;
1406
      }
1407
    }
1408
    lastComparison = Boolean.valueOf(isSetPackagingCost()).compareTo(typedOther.isSetPackagingCost());
1409
    if (lastComparison != 0) {
1410
      return lastComparison;
1411
    }
1412
    if (isSetPackagingCost()) {
1413
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packagingCost, typedOther.packagingCost);
1414
      if (lastComparison != 0) {
1415
        return lastComparison;
1416
      }
1417
    }
1418
    lastComparison = Boolean.valueOf(isSetOtherCost()).compareTo(typedOther.isSetOtherCost());
1419
    if (lastComparison != 0) {
1420
      return lastComparison;
1421
    }
1422
    if (isSetOtherCost()) {
1423
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherCost, typedOther.otherCost);
1424
      if (lastComparison != 0) {
1425
        return lastComparison;
1426
      }
1427
    }
1428
    lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());
1429
    if (lastComparison != 0) {
1430
      return lastComparison;
1431
    }
1432
    if (isSetServiceTax()) {
1433
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);
1434
      if (lastComparison != 0) {
1435
        return lastComparison;
1436
      }
1437
    }
1438
    lastComparison = Boolean.valueOf(isSetAutoIncrement()).compareTo(typedOther.isSetAutoIncrement());
1439
    if (lastComparison != 0) {
1440
      return lastComparison;
1441
    }
1442
    if (isSetAutoIncrement()) {
1443
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoIncrement, typedOther.autoIncrement);
1444
      if (lastComparison != 0) {
1445
        return lastComparison;
1446
      }
1447
    }
1448
    lastComparison = Boolean.valueOf(isSetAutoDecrement()).compareTo(typedOther.isSetAutoDecrement());
1449
    if (lastComparison != 0) {
1450
      return lastComparison;
1451
    }
1452
    if (isSetAutoDecrement()) {
1453
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoDecrement, typedOther.autoDecrement);
1454
      if (lastComparison != 0) {
1455
        return lastComparison;
1456
      }
1457
    }
1458
    lastComparison = Boolean.valueOf(isSetManualFavourite()).compareTo(typedOther.isSetManualFavourite());
1459
    if (lastComparison != 0) {
1460
      return lastComparison;
1461
    }
1462
    if (isSetManualFavourite()) {
1463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.manualFavourite, typedOther.manualFavourite);
1464
      if (lastComparison != 0) {
1465
        return lastComparison;
1466
      }
1467
    }
1468
    lastComparison = Boolean.valueOf(isSetAutoFavourite()).compareTo(typedOther.isSetAutoFavourite());
1469
    if (lastComparison != 0) {
1470
      return lastComparison;
1471
    }
1472
    if (isSetAutoFavourite()) {
1473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoFavourite, typedOther.autoFavourite);
1474
      if (lastComparison != 0) {
1475
        return lastComparison;
1476
      }
1477
    }
1478
    lastComparison = Boolean.valueOf(isSetCurrentSp()).compareTo(typedOther.isSetCurrentSp());
1479
    if (lastComparison != 0) {
1480
      return lastComparison;
1481
    }
1482
    if (isSetCurrentSp()) {
1483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentSp, typedOther.currentSp);
1484
      if (lastComparison != 0) {
1485
        return lastComparison;
1486
      }
1487
    }
1488
    lastComparison = Boolean.valueOf(isSetCurrentTp()).compareTo(typedOther.isSetCurrentTp());
1489
    if (lastComparison != 0) {
1490
      return lastComparison;
1491
    }
1492
    if (isSetCurrentTp()) {
1493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentTp, typedOther.currentTp);
1494
      if (lastComparison != 0) {
1495
        return lastComparison;
1496
      }
1497
    }
1498
    lastComparison = Boolean.valueOf(isSetMinimumPossibleSp()).compareTo(typedOther.isSetMinimumPossibleSp());
1499
    if (lastComparison != 0) {
1500
      return lastComparison;
1501
    }
1502
    if (isSetMinimumPossibleSp()) {
1503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleSp, typedOther.minimumPossibleSp);
1504
      if (lastComparison != 0) {
1505
        return lastComparison;
1506
      }
1507
    }
1508
    lastComparison = Boolean.valueOf(isSetMinimumPossibleTp()).compareTo(typedOther.isSetMinimumPossibleTp());
1509
    if (lastComparison != 0) {
1510
      return lastComparison;
1511
    }
1512
    if (isSetMinimumPossibleTp()) {
1513
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumPossibleTp, typedOther.minimumPossibleTp);
1514
      if (lastComparison != 0) {
1515
        return lastComparison;
1516
      }
1517
    }
1518
    lastComparison = Boolean.valueOf(isSetLastCheckedTimestamp()).compareTo(typedOther.isSetLastCheckedTimestamp());
1519
    if (lastComparison != 0) {
1520
      return lastComparison;
1521
    }
1522
    if (isSetLastCheckedTimestamp()) {
1523
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastCheckedTimestamp, typedOther.lastCheckedTimestamp);
1524
      if (lastComparison != 0) {
1525
        return lastComparison;
1526
      }
1527
    }
1528
    return 0;
1529
  }
1530
 
1531
  public _Fields fieldForId(int fieldId) {
1532
    return _Fields.findByThriftId(fieldId);
1533
  }
1534
 
1535
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1536
    org.apache.thrift.protocol.TField field;
1537
    iprot.readStructBegin();
1538
    while (true)
1539
    {
1540
      field = iprot.readFieldBegin();
1541
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1542
        break;
1543
      }
1544
      switch (field.id) {
1545
        case 1: // ITEM_ID
1546
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1547
            this.itemId = iprot.readI64();
1548
            setItemIdIsSet(true);
1549
          } else { 
1550
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1551
          }
1552
          break;
1553
        case 2: // SOURCE
1554
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1555
            this.source = iprot.readI64();
1556
            setSourceIsSet(true);
1557
          } else { 
1558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1559
          }
1560
          break;
1561
        case 3: // EMI_FEE
1562
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1563
            this.emiFee = iprot.readDouble();
1564
            setEmiFeeIsSet(true);
1565
          } else { 
1566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1567
          }
1568
          break;
1569
        case 4: // COURIER_COST
1570
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1571
            this.courierCost = iprot.readDouble();
1572
            setCourierCostIsSet(true);
1573
          } else { 
1574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1575
          }
1576
          break;
1577
        case 5: // CLOSING_FEE
1578
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1579
            this.closingFee = iprot.readDouble();
1580
            setClosingFeeIsSet(true);
1581
          } else { 
1582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1583
          }
1584
          break;
1585
        case 6: // RETURN_PROVISION
1586
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1587
            this.returnProvision = iprot.readDouble();
1588
            setReturnProvisionIsSet(true);
1589
          } else { 
1590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1591
          }
1592
          break;
1593
        case 7: // COMMISSION
1594
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1595
            this.commission = iprot.readDouble();
1596
            setCommissionIsSet(true);
1597
          } else { 
1598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1599
          }
1600
          break;
1601
        case 8: // VAT
1602
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1603
            this.vat = iprot.readDouble();
1604
            setVatIsSet(true);
1605
          } else { 
1606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1607
          }
1608
          break;
1609
        case 9: // PACKAGING_COST
1610
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1611
            this.packagingCost = iprot.readDouble();
1612
            setPackagingCostIsSet(true);
1613
          } else { 
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1615
          }
1616
          break;
1617
        case 10: // OTHER_COST
1618
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1619
            this.otherCost = iprot.readDouble();
1620
            setOtherCostIsSet(true);
1621
          } else { 
1622
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1623
          }
1624
          break;
1625
        case 11: // SERVICE_TAX
1626
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1627
            this.serviceTax = iprot.readDouble();
1628
            setServiceTaxIsSet(true);
1629
          } else { 
1630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1631
          }
1632
          break;
1633
        case 12: // AUTO_INCREMENT
1634
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1635
            this.autoIncrement = iprot.readBool();
1636
            setAutoIncrementIsSet(true);
1637
          } else { 
1638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1639
          }
1640
          break;
1641
        case 13: // AUTO_DECREMENT
1642
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1643
            this.autoDecrement = iprot.readBool();
1644
            setAutoDecrementIsSet(true);
1645
          } else { 
1646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1647
          }
1648
          break;
1649
        case 14: // MANUAL_FAVOURITE
1650
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1651
            this.manualFavourite = iprot.readBool();
1652
            setManualFavouriteIsSet(true);
1653
          } else { 
1654
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1655
          }
1656
          break;
1657
        case 15: // AUTO_FAVOURITE
1658
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1659
            this.autoFavourite = iprot.readBool();
1660
            setAutoFavouriteIsSet(true);
1661
          } else { 
1662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1663
          }
1664
          break;
1665
        case 16: // CURRENT_SP
1666
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1667
            this.currentSp = iprot.readDouble();
1668
            setCurrentSpIsSet(true);
1669
          } else { 
1670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1671
          }
1672
          break;
1673
        case 17: // CURRENT_TP
1674
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1675
            this.currentTp = iprot.readDouble();
1676
            setCurrentTpIsSet(true);
1677
          } else { 
1678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1679
          }
1680
          break;
1681
        case 18: // MINIMUM_POSSIBLE_SP
1682
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1683
            this.minimumPossibleSp = iprot.readDouble();
1684
            setMinimumPossibleSpIsSet(true);
1685
          } else { 
1686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1687
          }
1688
          break;
1689
        case 19: // MINIMUM_POSSIBLE_TP
1690
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1691
            this.minimumPossibleTp = iprot.readDouble();
1692
            setMinimumPossibleTpIsSet(true);
1693
          } else { 
1694
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1695
          }
1696
          break;
1697
        case 20: // LAST_CHECKED_TIMESTAMP
1698
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1699
            this.lastCheckedTimestamp = iprot.readI64();
1700
            setLastCheckedTimestampIsSet(true);
1701
          } else { 
1702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1703
          }
1704
          break;
1705
        default:
1706
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1707
      }
1708
      iprot.readFieldEnd();
1709
    }
1710
    iprot.readStructEnd();
1711
    validate();
1712
  }
1713
 
1714
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1715
    validate();
1716
 
1717
    oprot.writeStructBegin(STRUCT_DESC);
1718
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1719
    oprot.writeI64(this.itemId);
1720
    oprot.writeFieldEnd();
1721
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
1722
    oprot.writeI64(this.source);
1723
    oprot.writeFieldEnd();
1724
    oprot.writeFieldBegin(EMI_FEE_FIELD_DESC);
1725
    oprot.writeDouble(this.emiFee);
1726
    oprot.writeFieldEnd();
1727
    oprot.writeFieldBegin(COURIER_COST_FIELD_DESC);
1728
    oprot.writeDouble(this.courierCost);
1729
    oprot.writeFieldEnd();
1730
    oprot.writeFieldBegin(CLOSING_FEE_FIELD_DESC);
1731
    oprot.writeDouble(this.closingFee);
1732
    oprot.writeFieldEnd();
1733
    oprot.writeFieldBegin(RETURN_PROVISION_FIELD_DESC);
1734
    oprot.writeDouble(this.returnProvision);
1735
    oprot.writeFieldEnd();
1736
    oprot.writeFieldBegin(COMMISSION_FIELD_DESC);
1737
    oprot.writeDouble(this.commission);
1738
    oprot.writeFieldEnd();
1739
    oprot.writeFieldBegin(VAT_FIELD_DESC);
1740
    oprot.writeDouble(this.vat);
1741
    oprot.writeFieldEnd();
1742
    oprot.writeFieldBegin(PACKAGING_COST_FIELD_DESC);
1743
    oprot.writeDouble(this.packagingCost);
1744
    oprot.writeFieldEnd();
1745
    oprot.writeFieldBegin(OTHER_COST_FIELD_DESC);
1746
    oprot.writeDouble(this.otherCost);
1747
    oprot.writeFieldEnd();
1748
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
1749
    oprot.writeDouble(this.serviceTax);
1750
    oprot.writeFieldEnd();
1751
    oprot.writeFieldBegin(AUTO_INCREMENT_FIELD_DESC);
1752
    oprot.writeBool(this.autoIncrement);
1753
    oprot.writeFieldEnd();
1754
    oprot.writeFieldBegin(AUTO_DECREMENT_FIELD_DESC);
1755
    oprot.writeBool(this.autoDecrement);
1756
    oprot.writeFieldEnd();
1757
    oprot.writeFieldBegin(MANUAL_FAVOURITE_FIELD_DESC);
1758
    oprot.writeBool(this.manualFavourite);
1759
    oprot.writeFieldEnd();
1760
    oprot.writeFieldBegin(AUTO_FAVOURITE_FIELD_DESC);
1761
    oprot.writeBool(this.autoFavourite);
1762
    oprot.writeFieldEnd();
1763
    oprot.writeFieldBegin(CURRENT_SP_FIELD_DESC);
1764
    oprot.writeDouble(this.currentSp);
1765
    oprot.writeFieldEnd();
1766
    oprot.writeFieldBegin(CURRENT_TP_FIELD_DESC);
1767
    oprot.writeDouble(this.currentTp);
1768
    oprot.writeFieldEnd();
1769
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_SP_FIELD_DESC);
1770
    oprot.writeDouble(this.minimumPossibleSp);
1771
    oprot.writeFieldEnd();
1772
    oprot.writeFieldBegin(MINIMUM_POSSIBLE_TP_FIELD_DESC);
1773
    oprot.writeDouble(this.minimumPossibleTp);
1774
    oprot.writeFieldEnd();
1775
    oprot.writeFieldBegin(LAST_CHECKED_TIMESTAMP_FIELD_DESC);
1776
    oprot.writeI64(this.lastCheckedTimestamp);
1777
    oprot.writeFieldEnd();
1778
    oprot.writeFieldStop();
1779
    oprot.writeStructEnd();
1780
  }
1781
 
1782
  @Override
1783
  public String toString() {
1784
    StringBuilder sb = new StringBuilder("MarketplaceItems(");
1785
    boolean first = true;
1786
 
1787
    sb.append("itemId:");
1788
    sb.append(this.itemId);
1789
    first = false;
1790
    if (!first) sb.append(", ");
1791
    sb.append("source:");
1792
    sb.append(this.source);
1793
    first = false;
1794
    if (!first) sb.append(", ");
1795
    sb.append("emiFee:");
1796
    sb.append(this.emiFee);
1797
    first = false;
1798
    if (!first) sb.append(", ");
1799
    sb.append("courierCost:");
1800
    sb.append(this.courierCost);
1801
    first = false;
1802
    if (!first) sb.append(", ");
1803
    sb.append("closingFee:");
1804
    sb.append(this.closingFee);
1805
    first = false;
1806
    if (!first) sb.append(", ");
1807
    sb.append("returnProvision:");
1808
    sb.append(this.returnProvision);
1809
    first = false;
1810
    if (!first) sb.append(", ");
1811
    sb.append("commission:");
1812
    sb.append(this.commission);
1813
    first = false;
1814
    if (!first) sb.append(", ");
1815
    sb.append("vat:");
1816
    sb.append(this.vat);
1817
    first = false;
1818
    if (!first) sb.append(", ");
1819
    sb.append("packagingCost:");
1820
    sb.append(this.packagingCost);
1821
    first = false;
1822
    if (!first) sb.append(", ");
1823
    sb.append("otherCost:");
1824
    sb.append(this.otherCost);
1825
    first = false;
1826
    if (!first) sb.append(", ");
1827
    sb.append("serviceTax:");
1828
    sb.append(this.serviceTax);
1829
    first = false;
1830
    if (!first) sb.append(", ");
1831
    sb.append("autoIncrement:");
1832
    sb.append(this.autoIncrement);
1833
    first = false;
1834
    if (!first) sb.append(", ");
1835
    sb.append("autoDecrement:");
1836
    sb.append(this.autoDecrement);
1837
    first = false;
1838
    if (!first) sb.append(", ");
1839
    sb.append("manualFavourite:");
1840
    sb.append(this.manualFavourite);
1841
    first = false;
1842
    if (!first) sb.append(", ");
1843
    sb.append("autoFavourite:");
1844
    sb.append(this.autoFavourite);
1845
    first = false;
1846
    if (!first) sb.append(", ");
1847
    sb.append("currentSp:");
1848
    sb.append(this.currentSp);
1849
    first = false;
1850
    if (!first) sb.append(", ");
1851
    sb.append("currentTp:");
1852
    sb.append(this.currentTp);
1853
    first = false;
1854
    if (!first) sb.append(", ");
1855
    sb.append("minimumPossibleSp:");
1856
    sb.append(this.minimumPossibleSp);
1857
    first = false;
1858
    if (!first) sb.append(", ");
1859
    sb.append("minimumPossibleTp:");
1860
    sb.append(this.minimumPossibleTp);
1861
    first = false;
1862
    if (!first) sb.append(", ");
1863
    sb.append("lastCheckedTimestamp:");
1864
    sb.append(this.lastCheckedTimestamp);
1865
    first = false;
1866
    sb.append(")");
1867
    return sb.toString();
1868
  }
1869
 
1870
  public void validate() throws org.apache.thrift.TException {
1871
    // check for required fields
1872
  }
1873
 
1874
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1875
    try {
1876
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1877
    } catch (org.apache.thrift.TException te) {
1878
      throw new java.io.IOException(te);
1879
    }
1880
  }
1881
 
1882
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1883
    try {
1884
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1885
      __isset_bit_vector = new BitSet(1);
1886
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1887
    } catch (org.apache.thrift.TException te) {
1888
      throw new java.io.IOException(te);
1889
    }
1890
  }
1891
 
1892
}
1893