Subversion Repositories SmartDukaan

Rev

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