Subversion Repositories SmartDukaan

Rev

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