Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
11015 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 MarketplaceHistory implements org.apache.thrift.TBase<MarketplaceHistory, MarketplaceHistory._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MarketplaceHistory");
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField 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 TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField LOWEST_POSSIBLE_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("lowest_possible_tp", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField LOWEST_POSSIBLE_SP_FIELD_DESC = new org.apache.thrift.protocol.TField("lowest_possible_sp", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField OUR_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("ourInventory", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField OTHER_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("otherInventory", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField SECOND_LOWEST_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("secondLowestInventory", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField OUR_RANK_FIELD_DESC = new org.apache.thrift.protocol.TField("ourRank", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField OUR_OFFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourOfferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField OUR_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField OUR_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("ourTp", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField OUR_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("ourNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
39
  private static final org.apache.thrift.protocol.TField COMPETITIVE_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("competitiveCategory", org.apache.thrift.protocol.TType.I32, (short)14);
40
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.I64, (short)15);
41
  private static final org.apache.thrift.protocol.TField LOWEST_OFFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestOfferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)16);
42
  private static final org.apache.thrift.protocol.TField LOWEST_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
43
  private static final org.apache.thrift.protocol.TField LOWEST_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestTp", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField LOWEST_SELLER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lowestSellerName", org.apache.thrift.protocol.TType.STRING, (short)19);
45
  private static final org.apache.thrift.protocol.TField PROPOSED_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("proposedSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
46
  private static final org.apache.thrift.protocol.TField PROPOSED_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("proposedTp", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField TARGET_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("targetNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)22);
48
  private static final org.apache.thrift.protocol.TField SALES_POTENTIAL_FIELD_DESC = new org.apache.thrift.protocol.TField("salesPotential", org.apache.thrift.protocol.TType.I32, (short)23);
49
  private static final org.apache.thrift.protocol.TField SECOND_LOWEST_SELLER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("secondLowestSellerName", org.apache.thrift.protocol.TType.STRING, (short)24);
50
  private static final org.apache.thrift.protocol.TField SECOND_LOWEST_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("secondLowestSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)25);
51
  private static final org.apache.thrift.protocol.TField SECOND_LOWEST_OFFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("secondLowestOfferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)26);
52
  private static final org.apache.thrift.protocol.TField SECOND_LOWEST_TP_FIELD_DESC = new org.apache.thrift.protocol.TField("secondLowestTp", org.apache.thrift.protocol.TType.DOUBLE, (short)27);
53
  private static final org.apache.thrift.protocol.TField MARGIN_INCREASED_POTENTIAL_FIELD_DESC = new org.apache.thrift.protocol.TField("marginIncreasedPotential", org.apache.thrift.protocol.TType.DOUBLE, (short)28);
54
  private static final org.apache.thrift.protocol.TField MARGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("margin", org.apache.thrift.protocol.TType.DOUBLE, (short)29);
55
  private static final org.apache.thrift.protocol.TField OUR_ENOUGH_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("ourEnoughStock", org.apache.thrift.protocol.TType.BOOL, (short)30);
56
  private static final org.apache.thrift.protocol.TField TOTAL_SELLER_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSeller", org.apache.thrift.protocol.TType.I64, (short)31);
57
  private static final org.apache.thrift.protocol.TField AVERAGE_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("averageSale", org.apache.thrift.protocol.TType.DOUBLE, (short)32);
58
  private static final org.apache.thrift.protocol.TField TO_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("toGroup", org.apache.thrift.protocol.TType.BOOL, (short)33);
59
 
60
  private long item_id; // required
61
  private long source; // required
62
  private long timestamp; // required
63
  private double lowest_possible_tp; // required
64
  private double lowest_possible_sp; // required
65
  private long ourInventory; // required
66
  private long otherInventory; // required
67
  private long secondLowestInventory; // required
68
  private long ourRank; // required
69
  private double ourOfferPrice; // required
70
  private double ourSellingPrice; // required
71
  private double ourTp; // required
72
  private double ourNlc; // required
73
  private CompetitionCategory competitiveCategory; // required
74
  private long risky; // required
75
  private double lowestOfferPrice; // required
76
  private double lowestSellingPrice; // required
77
  private double lowestTp; // required
78
  private String lowestSellerName; // required
79
  private double proposedSellingPrice; // required
80
  private double proposedTp; // required
81
  private double targetNlc; // required
82
  private SalesPotential salesPotential; // required
83
  private String secondLowestSellerName; // required
84
  private double secondLowestSellingPrice; // required
85
  private double secondLowestOfferPrice; // required
86
  private double secondLowestTp; // required
87
  private double marginIncreasedPotential; // required
88
  private double margin; // required
89
  private boolean ourEnoughStock; // required
90
  private long totalSeller; // required
91
  private double averageSale; // required
92
  private boolean toGroup; // required
93
 
94
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
95
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
96
    ITEM_ID((short)1, "item_id"),
97
    SOURCE((short)2, "source"),
98
    TIMESTAMP((short)3, "timestamp"),
99
    LOWEST_POSSIBLE_TP((short)4, "lowest_possible_tp"),
100
    LOWEST_POSSIBLE_SP((short)5, "lowest_possible_sp"),
101
    OUR_INVENTORY((short)6, "ourInventory"),
102
    OTHER_INVENTORY((short)7, "otherInventory"),
103
    SECOND_LOWEST_INVENTORY((short)8, "secondLowestInventory"),
104
    OUR_RANK((short)9, "ourRank"),
105
    OUR_OFFER_PRICE((short)10, "ourOfferPrice"),
106
    OUR_SELLING_PRICE((short)11, "ourSellingPrice"),
107
    OUR_TP((short)12, "ourTp"),
108
    OUR_NLC((short)13, "ourNlc"),
109
    /**
110
     * 
111
     * @see CompetitionCategory
112
     */
113
    COMPETITIVE_CATEGORY((short)14, "competitiveCategory"),
114
    RISKY((short)15, "risky"),
115
    LOWEST_OFFER_PRICE((short)16, "lowestOfferPrice"),
116
    LOWEST_SELLING_PRICE((short)17, "lowestSellingPrice"),
117
    LOWEST_TP((short)18, "lowestTp"),
118
    LOWEST_SELLER_NAME((short)19, "lowestSellerName"),
119
    PROPOSED_SELLING_PRICE((short)20, "proposedSellingPrice"),
120
    PROPOSED_TP((short)21, "proposedTp"),
121
    TARGET_NLC((short)22, "targetNlc"),
122
    /**
123
     * 
124
     * @see SalesPotential
125
     */
126
    SALES_POTENTIAL((short)23, "salesPotential"),
127
    SECOND_LOWEST_SELLER_NAME((short)24, "secondLowestSellerName"),
128
    SECOND_LOWEST_SELLING_PRICE((short)25, "secondLowestSellingPrice"),
129
    SECOND_LOWEST_OFFER_PRICE((short)26, "secondLowestOfferPrice"),
130
    SECOND_LOWEST_TP((short)27, "secondLowestTp"),
131
    MARGIN_INCREASED_POTENTIAL((short)28, "marginIncreasedPotential"),
132
    MARGIN((short)29, "margin"),
133
    OUR_ENOUGH_STOCK((short)30, "ourEnoughStock"),
134
    TOTAL_SELLER((short)31, "totalSeller"),
135
    AVERAGE_SALE((short)32, "averageSale"),
136
    TO_GROUP((short)33, "toGroup");
137
 
138
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
139
 
140
    static {
141
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
142
        byName.put(field.getFieldName(), field);
143
      }
144
    }
145
 
146
    /**
147
     * Find the _Fields constant that matches fieldId, or null if its not found.
148
     */
149
    public static _Fields findByThriftId(int fieldId) {
150
      switch(fieldId) {
151
        case 1: // ITEM_ID
152
          return ITEM_ID;
153
        case 2: // SOURCE
154
          return SOURCE;
155
        case 3: // TIMESTAMP
156
          return TIMESTAMP;
157
        case 4: // LOWEST_POSSIBLE_TP
158
          return LOWEST_POSSIBLE_TP;
159
        case 5: // LOWEST_POSSIBLE_SP
160
          return LOWEST_POSSIBLE_SP;
161
        case 6: // OUR_INVENTORY
162
          return OUR_INVENTORY;
163
        case 7: // OTHER_INVENTORY
164
          return OTHER_INVENTORY;
165
        case 8: // SECOND_LOWEST_INVENTORY
166
          return SECOND_LOWEST_INVENTORY;
167
        case 9: // OUR_RANK
168
          return OUR_RANK;
169
        case 10: // OUR_OFFER_PRICE
170
          return OUR_OFFER_PRICE;
171
        case 11: // OUR_SELLING_PRICE
172
          return OUR_SELLING_PRICE;
173
        case 12: // OUR_TP
174
          return OUR_TP;
175
        case 13: // OUR_NLC
176
          return OUR_NLC;
177
        case 14: // COMPETITIVE_CATEGORY
178
          return COMPETITIVE_CATEGORY;
179
        case 15: // RISKY
180
          return RISKY;
181
        case 16: // LOWEST_OFFER_PRICE
182
          return LOWEST_OFFER_PRICE;
183
        case 17: // LOWEST_SELLING_PRICE
184
          return LOWEST_SELLING_PRICE;
185
        case 18: // LOWEST_TP
186
          return LOWEST_TP;
187
        case 19: // LOWEST_SELLER_NAME
188
          return LOWEST_SELLER_NAME;
189
        case 20: // PROPOSED_SELLING_PRICE
190
          return PROPOSED_SELLING_PRICE;
191
        case 21: // PROPOSED_TP
192
          return PROPOSED_TP;
193
        case 22: // TARGET_NLC
194
          return TARGET_NLC;
195
        case 23: // SALES_POTENTIAL
196
          return SALES_POTENTIAL;
197
        case 24: // SECOND_LOWEST_SELLER_NAME
198
          return SECOND_LOWEST_SELLER_NAME;
199
        case 25: // SECOND_LOWEST_SELLING_PRICE
200
          return SECOND_LOWEST_SELLING_PRICE;
201
        case 26: // SECOND_LOWEST_OFFER_PRICE
202
          return SECOND_LOWEST_OFFER_PRICE;
203
        case 27: // SECOND_LOWEST_TP
204
          return SECOND_LOWEST_TP;
205
        case 28: // MARGIN_INCREASED_POTENTIAL
206
          return MARGIN_INCREASED_POTENTIAL;
207
        case 29: // MARGIN
208
          return MARGIN;
209
        case 30: // OUR_ENOUGH_STOCK
210
          return OUR_ENOUGH_STOCK;
211
        case 31: // TOTAL_SELLER
212
          return TOTAL_SELLER;
213
        case 32: // AVERAGE_SALE
214
          return AVERAGE_SALE;
215
        case 33: // TO_GROUP
216
          return TO_GROUP;
217
        default:
218
          return null;
219
      }
220
    }
221
 
222
    /**
223
     * Find the _Fields constant that matches fieldId, throwing an exception
224
     * if it is not found.
225
     */
226
    public static _Fields findByThriftIdOrThrow(int fieldId) {
227
      _Fields fields = findByThriftId(fieldId);
228
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
229
      return fields;
230
    }
231
 
232
    /**
233
     * Find the _Fields constant that matches name, or null if its not found.
234
     */
235
    public static _Fields findByName(String name) {
236
      return byName.get(name);
237
    }
238
 
239
    private final short _thriftId;
240
    private final String _fieldName;
241
 
242
    _Fields(short thriftId, String fieldName) {
243
      _thriftId = thriftId;
244
      _fieldName = fieldName;
245
    }
246
 
247
    public short getThriftFieldId() {
248
      return _thriftId;
249
    }
250
 
251
    public String getFieldName() {
252
      return _fieldName;
253
    }
254
  }
255
 
256
  // isset id assignments
257
  private static final int __ITEM_ID_ISSET_ID = 0;
258
  private static final int __SOURCE_ISSET_ID = 1;
259
  private static final int __TIMESTAMP_ISSET_ID = 2;
260
  private static final int __LOWEST_POSSIBLE_TP_ISSET_ID = 3;
261
  private static final int __LOWEST_POSSIBLE_SP_ISSET_ID = 4;
262
  private static final int __OURINVENTORY_ISSET_ID = 5;
263
  private static final int __OTHERINVENTORY_ISSET_ID = 6;
264
  private static final int __SECONDLOWESTINVENTORY_ISSET_ID = 7;
265
  private static final int __OURRANK_ISSET_ID = 8;
266
  private static final int __OUROFFERPRICE_ISSET_ID = 9;
267
  private static final int __OURSELLINGPRICE_ISSET_ID = 10;
268
  private static final int __OURTP_ISSET_ID = 11;
269
  private static final int __OURNLC_ISSET_ID = 12;
270
  private static final int __RISKY_ISSET_ID = 13;
271
  private static final int __LOWESTOFFERPRICE_ISSET_ID = 14;
272
  private static final int __LOWESTSELLINGPRICE_ISSET_ID = 15;
273
  private static final int __LOWESTTP_ISSET_ID = 16;
274
  private static final int __PROPOSEDSELLINGPRICE_ISSET_ID = 17;
275
  private static final int __PROPOSEDTP_ISSET_ID = 18;
276
  private static final int __TARGETNLC_ISSET_ID = 19;
277
  private static final int __SECONDLOWESTSELLINGPRICE_ISSET_ID = 20;
278
  private static final int __SECONDLOWESTOFFERPRICE_ISSET_ID = 21;
279
  private static final int __SECONDLOWESTTP_ISSET_ID = 22;
280
  private static final int __MARGININCREASEDPOTENTIAL_ISSET_ID = 23;
281
  private static final int __MARGIN_ISSET_ID = 24;
282
  private static final int __OURENOUGHSTOCK_ISSET_ID = 25;
283
  private static final int __TOTALSELLER_ISSET_ID = 26;
284
  private static final int __AVERAGESALE_ISSET_ID = 27;
285
  private static final int __TOGROUP_ISSET_ID = 28;
286
  private BitSet __isset_bit_vector = new BitSet(29);
287
 
288
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
289
  static {
290
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
291
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
292
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
293
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
294
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
295
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
296
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
297
    tmpMap.put(_Fields.LOWEST_POSSIBLE_TP, new org.apache.thrift.meta_data.FieldMetaData("lowest_possible_tp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
298
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
299
    tmpMap.put(_Fields.LOWEST_POSSIBLE_SP, new org.apache.thrift.meta_data.FieldMetaData("lowest_possible_sp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
300
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
301
    tmpMap.put(_Fields.OUR_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
302
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
303
    tmpMap.put(_Fields.OTHER_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("otherInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
304
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
305
    tmpMap.put(_Fields.SECOND_LOWEST_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("secondLowestInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
306
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
307
    tmpMap.put(_Fields.OUR_RANK, new org.apache.thrift.meta_data.FieldMetaData("ourRank", org.apache.thrift.TFieldRequirementType.DEFAULT, 
308
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
309
    tmpMap.put(_Fields.OUR_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
310
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
311
    tmpMap.put(_Fields.OUR_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
312
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
313
    tmpMap.put(_Fields.OUR_TP, new org.apache.thrift.meta_data.FieldMetaData("ourTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
314
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
315
    tmpMap.put(_Fields.OUR_NLC, new org.apache.thrift.meta_data.FieldMetaData("ourNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
316
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
317
    tmpMap.put(_Fields.COMPETITIVE_CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("competitiveCategory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
318
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CompetitionCategory.class)));
319
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
320
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
321
    tmpMap.put(_Fields.LOWEST_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
322
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
323
    tmpMap.put(_Fields.LOWEST_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
324
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
325
    tmpMap.put(_Fields.LOWEST_TP, new org.apache.thrift.meta_data.FieldMetaData("lowestTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
326
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
327
    tmpMap.put(_Fields.LOWEST_SELLER_NAME, new org.apache.thrift.meta_data.FieldMetaData("lowestSellerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
328
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
329
    tmpMap.put(_Fields.PROPOSED_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("proposedSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
330
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
331
    tmpMap.put(_Fields.PROPOSED_TP, new org.apache.thrift.meta_data.FieldMetaData("proposedTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
332
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
333
    tmpMap.put(_Fields.TARGET_NLC, new org.apache.thrift.meta_data.FieldMetaData("targetNlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
334
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
335
    tmpMap.put(_Fields.SALES_POTENTIAL, new org.apache.thrift.meta_data.FieldMetaData("salesPotential", org.apache.thrift.TFieldRequirementType.DEFAULT, 
336
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SalesPotential.class)));
337
    tmpMap.put(_Fields.SECOND_LOWEST_SELLER_NAME, new org.apache.thrift.meta_data.FieldMetaData("secondLowestSellerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
338
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
339
    tmpMap.put(_Fields.SECOND_LOWEST_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("secondLowestSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
340
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
341
    tmpMap.put(_Fields.SECOND_LOWEST_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("secondLowestOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
342
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
343
    tmpMap.put(_Fields.SECOND_LOWEST_TP, new org.apache.thrift.meta_data.FieldMetaData("secondLowestTp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
344
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
345
    tmpMap.put(_Fields.MARGIN_INCREASED_POTENTIAL, new org.apache.thrift.meta_data.FieldMetaData("marginIncreasedPotential", org.apache.thrift.TFieldRequirementType.DEFAULT, 
346
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
347
    tmpMap.put(_Fields.MARGIN, new org.apache.thrift.meta_data.FieldMetaData("margin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
348
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
349
    tmpMap.put(_Fields.OUR_ENOUGH_STOCK, new org.apache.thrift.meta_data.FieldMetaData("ourEnoughStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
350
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
351
    tmpMap.put(_Fields.TOTAL_SELLER, new org.apache.thrift.meta_data.FieldMetaData("totalSeller", org.apache.thrift.TFieldRequirementType.DEFAULT, 
352
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
353
    tmpMap.put(_Fields.AVERAGE_SALE, new org.apache.thrift.meta_data.FieldMetaData("averageSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
354
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
355
    tmpMap.put(_Fields.TO_GROUP, new org.apache.thrift.meta_data.FieldMetaData("toGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
356
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
357
    metaDataMap = Collections.unmodifiableMap(tmpMap);
358
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MarketplaceHistory.class, metaDataMap);
359
  }
360
 
361
  public MarketplaceHistory() {
362
  }
363
 
364
  public MarketplaceHistory(
365
    long item_id,
366
    long source,
367
    long timestamp,
368
    double lowest_possible_tp,
369
    double lowest_possible_sp,
370
    long ourInventory,
371
    long otherInventory,
372
    long secondLowestInventory,
373
    long ourRank,
374
    double ourOfferPrice,
375
    double ourSellingPrice,
376
    double ourTp,
377
    double ourNlc,
378
    CompetitionCategory competitiveCategory,
379
    long risky,
380
    double lowestOfferPrice,
381
    double lowestSellingPrice,
382
    double lowestTp,
383
    String lowestSellerName,
384
    double proposedSellingPrice,
385
    double proposedTp,
386
    double targetNlc,
387
    SalesPotential salesPotential,
388
    String secondLowestSellerName,
389
    double secondLowestSellingPrice,
390
    double secondLowestOfferPrice,
391
    double secondLowestTp,
392
    double marginIncreasedPotential,
393
    double margin,
394
    boolean ourEnoughStock,
395
    long totalSeller,
396
    double averageSale,
397
    boolean toGroup)
398
  {
399
    this();
400
    this.item_id = item_id;
401
    setItem_idIsSet(true);
402
    this.source = source;
403
    setSourceIsSet(true);
404
    this.timestamp = timestamp;
405
    setTimestampIsSet(true);
406
    this.lowest_possible_tp = lowest_possible_tp;
407
    setLowest_possible_tpIsSet(true);
408
    this.lowest_possible_sp = lowest_possible_sp;
409
    setLowest_possible_spIsSet(true);
410
    this.ourInventory = ourInventory;
411
    setOurInventoryIsSet(true);
412
    this.otherInventory = otherInventory;
413
    setOtherInventoryIsSet(true);
414
    this.secondLowestInventory = secondLowestInventory;
415
    setSecondLowestInventoryIsSet(true);
416
    this.ourRank = ourRank;
417
    setOurRankIsSet(true);
418
    this.ourOfferPrice = ourOfferPrice;
419
    setOurOfferPriceIsSet(true);
420
    this.ourSellingPrice = ourSellingPrice;
421
    setOurSellingPriceIsSet(true);
422
    this.ourTp = ourTp;
423
    setOurTpIsSet(true);
424
    this.ourNlc = ourNlc;
425
    setOurNlcIsSet(true);
426
    this.competitiveCategory = competitiveCategory;
427
    this.risky = risky;
428
    setRiskyIsSet(true);
429
    this.lowestOfferPrice = lowestOfferPrice;
430
    setLowestOfferPriceIsSet(true);
431
    this.lowestSellingPrice = lowestSellingPrice;
432
    setLowestSellingPriceIsSet(true);
433
    this.lowestTp = lowestTp;
434
    setLowestTpIsSet(true);
435
    this.lowestSellerName = lowestSellerName;
436
    this.proposedSellingPrice = proposedSellingPrice;
437
    setProposedSellingPriceIsSet(true);
438
    this.proposedTp = proposedTp;
439
    setProposedTpIsSet(true);
440
    this.targetNlc = targetNlc;
441
    setTargetNlcIsSet(true);
442
    this.salesPotential = salesPotential;
443
    this.secondLowestSellerName = secondLowestSellerName;
444
    this.secondLowestSellingPrice = secondLowestSellingPrice;
445
    setSecondLowestSellingPriceIsSet(true);
446
    this.secondLowestOfferPrice = secondLowestOfferPrice;
447
    setSecondLowestOfferPriceIsSet(true);
448
    this.secondLowestTp = secondLowestTp;
449
    setSecondLowestTpIsSet(true);
450
    this.marginIncreasedPotential = marginIncreasedPotential;
451
    setMarginIncreasedPotentialIsSet(true);
452
    this.margin = margin;
453
    setMarginIsSet(true);
454
    this.ourEnoughStock = ourEnoughStock;
455
    setOurEnoughStockIsSet(true);
456
    this.totalSeller = totalSeller;
457
    setTotalSellerIsSet(true);
458
    this.averageSale = averageSale;
459
    setAverageSaleIsSet(true);
460
    this.toGroup = toGroup;
461
    setToGroupIsSet(true);
462
  }
463
 
464
  /**
465
   * Performs a deep copy on <i>other</i>.
466
   */
467
  public MarketplaceHistory(MarketplaceHistory other) {
468
    __isset_bit_vector.clear();
469
    __isset_bit_vector.or(other.__isset_bit_vector);
470
    this.item_id = other.item_id;
471
    this.source = other.source;
472
    this.timestamp = other.timestamp;
473
    this.lowest_possible_tp = other.lowest_possible_tp;
474
    this.lowest_possible_sp = other.lowest_possible_sp;
475
    this.ourInventory = other.ourInventory;
476
    this.otherInventory = other.otherInventory;
477
    this.secondLowestInventory = other.secondLowestInventory;
478
    this.ourRank = other.ourRank;
479
    this.ourOfferPrice = other.ourOfferPrice;
480
    this.ourSellingPrice = other.ourSellingPrice;
481
    this.ourTp = other.ourTp;
482
    this.ourNlc = other.ourNlc;
483
    if (other.isSetCompetitiveCategory()) {
484
      this.competitiveCategory = other.competitiveCategory;
485
    }
486
    this.risky = other.risky;
487
    this.lowestOfferPrice = other.lowestOfferPrice;
488
    this.lowestSellingPrice = other.lowestSellingPrice;
489
    this.lowestTp = other.lowestTp;
490
    if (other.isSetLowestSellerName()) {
491
      this.lowestSellerName = other.lowestSellerName;
492
    }
493
    this.proposedSellingPrice = other.proposedSellingPrice;
494
    this.proposedTp = other.proposedTp;
495
    this.targetNlc = other.targetNlc;
496
    if (other.isSetSalesPotential()) {
497
      this.salesPotential = other.salesPotential;
498
    }
499
    if (other.isSetSecondLowestSellerName()) {
500
      this.secondLowestSellerName = other.secondLowestSellerName;
501
    }
502
    this.secondLowestSellingPrice = other.secondLowestSellingPrice;
503
    this.secondLowestOfferPrice = other.secondLowestOfferPrice;
504
    this.secondLowestTp = other.secondLowestTp;
505
    this.marginIncreasedPotential = other.marginIncreasedPotential;
506
    this.margin = other.margin;
507
    this.ourEnoughStock = other.ourEnoughStock;
508
    this.totalSeller = other.totalSeller;
509
    this.averageSale = other.averageSale;
510
    this.toGroup = other.toGroup;
511
  }
512
 
513
  public MarketplaceHistory deepCopy() {
514
    return new MarketplaceHistory(this);
515
  }
516
 
517
  @Override
518
  public void clear() {
519
    setItem_idIsSet(false);
520
    this.item_id = 0;
521
    setSourceIsSet(false);
522
    this.source = 0;
523
    setTimestampIsSet(false);
524
    this.timestamp = 0;
525
    setLowest_possible_tpIsSet(false);
526
    this.lowest_possible_tp = 0.0;
527
    setLowest_possible_spIsSet(false);
528
    this.lowest_possible_sp = 0.0;
529
    setOurInventoryIsSet(false);
530
    this.ourInventory = 0;
531
    setOtherInventoryIsSet(false);
532
    this.otherInventory = 0;
533
    setSecondLowestInventoryIsSet(false);
534
    this.secondLowestInventory = 0;
535
    setOurRankIsSet(false);
536
    this.ourRank = 0;
537
    setOurOfferPriceIsSet(false);
538
    this.ourOfferPrice = 0.0;
539
    setOurSellingPriceIsSet(false);
540
    this.ourSellingPrice = 0.0;
541
    setOurTpIsSet(false);
542
    this.ourTp = 0.0;
543
    setOurNlcIsSet(false);
544
    this.ourNlc = 0.0;
545
    this.competitiveCategory = null;
546
    setRiskyIsSet(false);
547
    this.risky = 0;
548
    setLowestOfferPriceIsSet(false);
549
    this.lowestOfferPrice = 0.0;
550
    setLowestSellingPriceIsSet(false);
551
    this.lowestSellingPrice = 0.0;
552
    setLowestTpIsSet(false);
553
    this.lowestTp = 0.0;
554
    this.lowestSellerName = null;
555
    setProposedSellingPriceIsSet(false);
556
    this.proposedSellingPrice = 0.0;
557
    setProposedTpIsSet(false);
558
    this.proposedTp = 0.0;
559
    setTargetNlcIsSet(false);
560
    this.targetNlc = 0.0;
561
    this.salesPotential = null;
562
    this.secondLowestSellerName = null;
563
    setSecondLowestSellingPriceIsSet(false);
564
    this.secondLowestSellingPrice = 0.0;
565
    setSecondLowestOfferPriceIsSet(false);
566
    this.secondLowestOfferPrice = 0.0;
567
    setSecondLowestTpIsSet(false);
568
    this.secondLowestTp = 0.0;
569
    setMarginIncreasedPotentialIsSet(false);
570
    this.marginIncreasedPotential = 0.0;
571
    setMarginIsSet(false);
572
    this.margin = 0.0;
573
    setOurEnoughStockIsSet(false);
574
    this.ourEnoughStock = false;
575
    setTotalSellerIsSet(false);
576
    this.totalSeller = 0;
577
    setAverageSaleIsSet(false);
578
    this.averageSale = 0.0;
579
    setToGroupIsSet(false);
580
    this.toGroup = false;
581
  }
582
 
583
  public long getItem_id() {
584
    return this.item_id;
585
  }
586
 
587
  public void setItem_id(long item_id) {
588
    this.item_id = item_id;
589
    setItem_idIsSet(true);
590
  }
591
 
592
  public void unsetItem_id() {
593
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
594
  }
595
 
596
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
597
  public boolean isSetItem_id() {
598
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
599
  }
600
 
601
  public void setItem_idIsSet(boolean value) {
602
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
603
  }
604
 
605
  public long getSource() {
606
    return this.source;
607
  }
608
 
609
  public void setSource(long source) {
610
    this.source = source;
611
    setSourceIsSet(true);
612
  }
613
 
614
  public void unsetSource() {
615
    __isset_bit_vector.clear(__SOURCE_ISSET_ID);
616
  }
617
 
618
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
619
  public boolean isSetSource() {
620
    return __isset_bit_vector.get(__SOURCE_ISSET_ID);
621
  }
622
 
623
  public void setSourceIsSet(boolean value) {
624
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
625
  }
626
 
627
  public long getTimestamp() {
628
    return this.timestamp;
629
  }
630
 
631
  public void setTimestamp(long timestamp) {
632
    this.timestamp = timestamp;
633
    setTimestampIsSet(true);
634
  }
635
 
636
  public void unsetTimestamp() {
637
    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
638
  }
639
 
640
  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
641
  public boolean isSetTimestamp() {
642
    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
643
  }
644
 
645
  public void setTimestampIsSet(boolean value) {
646
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
647
  }
648
 
649
  public double getLowest_possible_tp() {
650
    return this.lowest_possible_tp;
651
  }
652
 
653
  public void setLowest_possible_tp(double lowest_possible_tp) {
654
    this.lowest_possible_tp = lowest_possible_tp;
655
    setLowest_possible_tpIsSet(true);
656
  }
657
 
658
  public void unsetLowest_possible_tp() {
659
    __isset_bit_vector.clear(__LOWEST_POSSIBLE_TP_ISSET_ID);
660
  }
661
 
662
  /** Returns true if field lowest_possible_tp is set (has been assigned a value) and false otherwise */
663
  public boolean isSetLowest_possible_tp() {
664
    return __isset_bit_vector.get(__LOWEST_POSSIBLE_TP_ISSET_ID);
665
  }
666
 
667
  public void setLowest_possible_tpIsSet(boolean value) {
668
    __isset_bit_vector.set(__LOWEST_POSSIBLE_TP_ISSET_ID, value);
669
  }
670
 
671
  public double getLowest_possible_sp() {
672
    return this.lowest_possible_sp;
673
  }
674
 
675
  public void setLowest_possible_sp(double lowest_possible_sp) {
676
    this.lowest_possible_sp = lowest_possible_sp;
677
    setLowest_possible_spIsSet(true);
678
  }
679
 
680
  public void unsetLowest_possible_sp() {
681
    __isset_bit_vector.clear(__LOWEST_POSSIBLE_SP_ISSET_ID);
682
  }
683
 
684
  /** Returns true if field lowest_possible_sp is set (has been assigned a value) and false otherwise */
685
  public boolean isSetLowest_possible_sp() {
686
    return __isset_bit_vector.get(__LOWEST_POSSIBLE_SP_ISSET_ID);
687
  }
688
 
689
  public void setLowest_possible_spIsSet(boolean value) {
690
    __isset_bit_vector.set(__LOWEST_POSSIBLE_SP_ISSET_ID, value);
691
  }
692
 
693
  public long getOurInventory() {
694
    return this.ourInventory;
695
  }
696
 
697
  public void setOurInventory(long ourInventory) {
698
    this.ourInventory = ourInventory;
699
    setOurInventoryIsSet(true);
700
  }
701
 
702
  public void unsetOurInventory() {
703
    __isset_bit_vector.clear(__OURINVENTORY_ISSET_ID);
704
  }
705
 
706
  /** Returns true if field ourInventory is set (has been assigned a value) and false otherwise */
707
  public boolean isSetOurInventory() {
708
    return __isset_bit_vector.get(__OURINVENTORY_ISSET_ID);
709
  }
710
 
711
  public void setOurInventoryIsSet(boolean value) {
712
    __isset_bit_vector.set(__OURINVENTORY_ISSET_ID, value);
713
  }
714
 
715
  public long getOtherInventory() {
716
    return this.otherInventory;
717
  }
718
 
719
  public void setOtherInventory(long otherInventory) {
720
    this.otherInventory = otherInventory;
721
    setOtherInventoryIsSet(true);
722
  }
723
 
724
  public void unsetOtherInventory() {
725
    __isset_bit_vector.clear(__OTHERINVENTORY_ISSET_ID);
726
  }
727
 
728
  /** Returns true if field otherInventory is set (has been assigned a value) and false otherwise */
729
  public boolean isSetOtherInventory() {
730
    return __isset_bit_vector.get(__OTHERINVENTORY_ISSET_ID);
731
  }
732
 
733
  public void setOtherInventoryIsSet(boolean value) {
734
    __isset_bit_vector.set(__OTHERINVENTORY_ISSET_ID, value);
735
  }
736
 
737
  public long getSecondLowestInventory() {
738
    return this.secondLowestInventory;
739
  }
740
 
741
  public void setSecondLowestInventory(long secondLowestInventory) {
742
    this.secondLowestInventory = secondLowestInventory;
743
    setSecondLowestInventoryIsSet(true);
744
  }
745
 
746
  public void unsetSecondLowestInventory() {
747
    __isset_bit_vector.clear(__SECONDLOWESTINVENTORY_ISSET_ID);
748
  }
749
 
750
  /** Returns true if field secondLowestInventory is set (has been assigned a value) and false otherwise */
751
  public boolean isSetSecondLowestInventory() {
752
    return __isset_bit_vector.get(__SECONDLOWESTINVENTORY_ISSET_ID);
753
  }
754
 
755
  public void setSecondLowestInventoryIsSet(boolean value) {
756
    __isset_bit_vector.set(__SECONDLOWESTINVENTORY_ISSET_ID, value);
757
  }
758
 
759
  public long getOurRank() {
760
    return this.ourRank;
761
  }
762
 
763
  public void setOurRank(long ourRank) {
764
    this.ourRank = ourRank;
765
    setOurRankIsSet(true);
766
  }
767
 
768
  public void unsetOurRank() {
769
    __isset_bit_vector.clear(__OURRANK_ISSET_ID);
770
  }
771
 
772
  /** Returns true if field ourRank is set (has been assigned a value) and false otherwise */
773
  public boolean isSetOurRank() {
774
    return __isset_bit_vector.get(__OURRANK_ISSET_ID);
775
  }
776
 
777
  public void setOurRankIsSet(boolean value) {
778
    __isset_bit_vector.set(__OURRANK_ISSET_ID, value);
779
  }
780
 
781
  public double getOurOfferPrice() {
782
    return this.ourOfferPrice;
783
  }
784
 
785
  public void setOurOfferPrice(double ourOfferPrice) {
786
    this.ourOfferPrice = ourOfferPrice;
787
    setOurOfferPriceIsSet(true);
788
  }
789
 
790
  public void unsetOurOfferPrice() {
791
    __isset_bit_vector.clear(__OUROFFERPRICE_ISSET_ID);
792
  }
793
 
794
  /** Returns true if field ourOfferPrice is set (has been assigned a value) and false otherwise */
795
  public boolean isSetOurOfferPrice() {
796
    return __isset_bit_vector.get(__OUROFFERPRICE_ISSET_ID);
797
  }
798
 
799
  public void setOurOfferPriceIsSet(boolean value) {
800
    __isset_bit_vector.set(__OUROFFERPRICE_ISSET_ID, value);
801
  }
802
 
803
  public double getOurSellingPrice() {
804
    return this.ourSellingPrice;
805
  }
806
 
807
  public void setOurSellingPrice(double ourSellingPrice) {
808
    this.ourSellingPrice = ourSellingPrice;
809
    setOurSellingPriceIsSet(true);
810
  }
811
 
812
  public void unsetOurSellingPrice() {
813
    __isset_bit_vector.clear(__OURSELLINGPRICE_ISSET_ID);
814
  }
815
 
816
  /** Returns true if field ourSellingPrice is set (has been assigned a value) and false otherwise */
817
  public boolean isSetOurSellingPrice() {
818
    return __isset_bit_vector.get(__OURSELLINGPRICE_ISSET_ID);
819
  }
820
 
821
  public void setOurSellingPriceIsSet(boolean value) {
822
    __isset_bit_vector.set(__OURSELLINGPRICE_ISSET_ID, value);
823
  }
824
 
825
  public double getOurTp() {
826
    return this.ourTp;
827
  }
828
 
829
  public void setOurTp(double ourTp) {
830
    this.ourTp = ourTp;
831
    setOurTpIsSet(true);
832
  }
833
 
834
  public void unsetOurTp() {
835
    __isset_bit_vector.clear(__OURTP_ISSET_ID);
836
  }
837
 
838
  /** Returns true if field ourTp is set (has been assigned a value) and false otherwise */
839
  public boolean isSetOurTp() {
840
    return __isset_bit_vector.get(__OURTP_ISSET_ID);
841
  }
842
 
843
  public void setOurTpIsSet(boolean value) {
844
    __isset_bit_vector.set(__OURTP_ISSET_ID, value);
845
  }
846
 
847
  public double getOurNlc() {
848
    return this.ourNlc;
849
  }
850
 
851
  public void setOurNlc(double ourNlc) {
852
    this.ourNlc = ourNlc;
853
    setOurNlcIsSet(true);
854
  }
855
 
856
  public void unsetOurNlc() {
857
    __isset_bit_vector.clear(__OURNLC_ISSET_ID);
858
  }
859
 
860
  /** Returns true if field ourNlc is set (has been assigned a value) and false otherwise */
861
  public boolean isSetOurNlc() {
862
    return __isset_bit_vector.get(__OURNLC_ISSET_ID);
863
  }
864
 
865
  public void setOurNlcIsSet(boolean value) {
866
    __isset_bit_vector.set(__OURNLC_ISSET_ID, value);
867
  }
868
 
869
  /**
870
   * 
871
   * @see CompetitionCategory
872
   */
873
  public CompetitionCategory getCompetitiveCategory() {
874
    return this.competitiveCategory;
875
  }
876
 
877
  /**
878
   * 
879
   * @see CompetitionCategory
880
   */
881
  public void setCompetitiveCategory(CompetitionCategory competitiveCategory) {
882
    this.competitiveCategory = competitiveCategory;
883
  }
884
 
885
  public void unsetCompetitiveCategory() {
886
    this.competitiveCategory = null;
887
  }
888
 
889
  /** Returns true if field competitiveCategory is set (has been assigned a value) and false otherwise */
890
  public boolean isSetCompetitiveCategory() {
891
    return this.competitiveCategory != null;
892
  }
893
 
894
  public void setCompetitiveCategoryIsSet(boolean value) {
895
    if (!value) {
896
      this.competitiveCategory = null;
897
    }
898
  }
899
 
900
  public long getRisky() {
901
    return this.risky;
902
  }
903
 
904
  public void setRisky(long risky) {
905
    this.risky = risky;
906
    setRiskyIsSet(true);
907
  }
908
 
909
  public void unsetRisky() {
910
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
911
  }
912
 
913
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
914
  public boolean isSetRisky() {
915
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
916
  }
917
 
918
  public void setRiskyIsSet(boolean value) {
919
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
920
  }
921
 
922
  public double getLowestOfferPrice() {
923
    return this.lowestOfferPrice;
924
  }
925
 
926
  public void setLowestOfferPrice(double lowestOfferPrice) {
927
    this.lowestOfferPrice = lowestOfferPrice;
928
    setLowestOfferPriceIsSet(true);
929
  }
930
 
931
  public void unsetLowestOfferPrice() {
932
    __isset_bit_vector.clear(__LOWESTOFFERPRICE_ISSET_ID);
933
  }
934
 
935
  /** Returns true if field lowestOfferPrice is set (has been assigned a value) and false otherwise */
936
  public boolean isSetLowestOfferPrice() {
937
    return __isset_bit_vector.get(__LOWESTOFFERPRICE_ISSET_ID);
938
  }
939
 
940
  public void setLowestOfferPriceIsSet(boolean value) {
941
    __isset_bit_vector.set(__LOWESTOFFERPRICE_ISSET_ID, value);
942
  }
943
 
944
  public double getLowestSellingPrice() {
945
    return this.lowestSellingPrice;
946
  }
947
 
948
  public void setLowestSellingPrice(double lowestSellingPrice) {
949
    this.lowestSellingPrice = lowestSellingPrice;
950
    setLowestSellingPriceIsSet(true);
951
  }
952
 
953
  public void unsetLowestSellingPrice() {
954
    __isset_bit_vector.clear(__LOWESTSELLINGPRICE_ISSET_ID);
955
  }
956
 
957
  /** Returns true if field lowestSellingPrice is set (has been assigned a value) and false otherwise */
958
  public boolean isSetLowestSellingPrice() {
959
    return __isset_bit_vector.get(__LOWESTSELLINGPRICE_ISSET_ID);
960
  }
961
 
962
  public void setLowestSellingPriceIsSet(boolean value) {
963
    __isset_bit_vector.set(__LOWESTSELLINGPRICE_ISSET_ID, value);
964
  }
965
 
966
  public double getLowestTp() {
967
    return this.lowestTp;
968
  }
969
 
970
  public void setLowestTp(double lowestTp) {
971
    this.lowestTp = lowestTp;
972
    setLowestTpIsSet(true);
973
  }
974
 
975
  public void unsetLowestTp() {
976
    __isset_bit_vector.clear(__LOWESTTP_ISSET_ID);
977
  }
978
 
979
  /** Returns true if field lowestTp is set (has been assigned a value) and false otherwise */
980
  public boolean isSetLowestTp() {
981
    return __isset_bit_vector.get(__LOWESTTP_ISSET_ID);
982
  }
983
 
984
  public void setLowestTpIsSet(boolean value) {
985
    __isset_bit_vector.set(__LOWESTTP_ISSET_ID, value);
986
  }
987
 
988
  public String getLowestSellerName() {
989
    return this.lowestSellerName;
990
  }
991
 
992
  public void setLowestSellerName(String lowestSellerName) {
993
    this.lowestSellerName = lowestSellerName;
994
  }
995
 
996
  public void unsetLowestSellerName() {
997
    this.lowestSellerName = null;
998
  }
999
 
1000
  /** Returns true if field lowestSellerName is set (has been assigned a value) and false otherwise */
1001
  public boolean isSetLowestSellerName() {
1002
    return this.lowestSellerName != null;
1003
  }
1004
 
1005
  public void setLowestSellerNameIsSet(boolean value) {
1006
    if (!value) {
1007
      this.lowestSellerName = null;
1008
    }
1009
  }
1010
 
1011
  public double getProposedSellingPrice() {
1012
    return this.proposedSellingPrice;
1013
  }
1014
 
1015
  public void setProposedSellingPrice(double proposedSellingPrice) {
1016
    this.proposedSellingPrice = proposedSellingPrice;
1017
    setProposedSellingPriceIsSet(true);
1018
  }
1019
 
1020
  public void unsetProposedSellingPrice() {
1021
    __isset_bit_vector.clear(__PROPOSEDSELLINGPRICE_ISSET_ID);
1022
  }
1023
 
1024
  /** Returns true if field proposedSellingPrice is set (has been assigned a value) and false otherwise */
1025
  public boolean isSetProposedSellingPrice() {
1026
    return __isset_bit_vector.get(__PROPOSEDSELLINGPRICE_ISSET_ID);
1027
  }
1028
 
1029
  public void setProposedSellingPriceIsSet(boolean value) {
1030
    __isset_bit_vector.set(__PROPOSEDSELLINGPRICE_ISSET_ID, value);
1031
  }
1032
 
1033
  public double getProposedTp() {
1034
    return this.proposedTp;
1035
  }
1036
 
1037
  public void setProposedTp(double proposedTp) {
1038
    this.proposedTp = proposedTp;
1039
    setProposedTpIsSet(true);
1040
  }
1041
 
1042
  public void unsetProposedTp() {
1043
    __isset_bit_vector.clear(__PROPOSEDTP_ISSET_ID);
1044
  }
1045
 
1046
  /** Returns true if field proposedTp is set (has been assigned a value) and false otherwise */
1047
  public boolean isSetProposedTp() {
1048
    return __isset_bit_vector.get(__PROPOSEDTP_ISSET_ID);
1049
  }
1050
 
1051
  public void setProposedTpIsSet(boolean value) {
1052
    __isset_bit_vector.set(__PROPOSEDTP_ISSET_ID, value);
1053
  }
1054
 
1055
  public double getTargetNlc() {
1056
    return this.targetNlc;
1057
  }
1058
 
1059
  public void setTargetNlc(double targetNlc) {
1060
    this.targetNlc = targetNlc;
1061
    setTargetNlcIsSet(true);
1062
  }
1063
 
1064
  public void unsetTargetNlc() {
1065
    __isset_bit_vector.clear(__TARGETNLC_ISSET_ID);
1066
  }
1067
 
1068
  /** Returns true if field targetNlc is set (has been assigned a value) and false otherwise */
1069
  public boolean isSetTargetNlc() {
1070
    return __isset_bit_vector.get(__TARGETNLC_ISSET_ID);
1071
  }
1072
 
1073
  public void setTargetNlcIsSet(boolean value) {
1074
    __isset_bit_vector.set(__TARGETNLC_ISSET_ID, value);
1075
  }
1076
 
1077
  /**
1078
   * 
1079
   * @see SalesPotential
1080
   */
1081
  public SalesPotential getSalesPotential() {
1082
    return this.salesPotential;
1083
  }
1084
 
1085
  /**
1086
   * 
1087
   * @see SalesPotential
1088
   */
1089
  public void setSalesPotential(SalesPotential salesPotential) {
1090
    this.salesPotential = salesPotential;
1091
  }
1092
 
1093
  public void unsetSalesPotential() {
1094
    this.salesPotential = null;
1095
  }
1096
 
1097
  /** Returns true if field salesPotential is set (has been assigned a value) and false otherwise */
1098
  public boolean isSetSalesPotential() {
1099
    return this.salesPotential != null;
1100
  }
1101
 
1102
  public void setSalesPotentialIsSet(boolean value) {
1103
    if (!value) {
1104
      this.salesPotential = null;
1105
    }
1106
  }
1107
 
1108
  public String getSecondLowestSellerName() {
1109
    return this.secondLowestSellerName;
1110
  }
1111
 
1112
  public void setSecondLowestSellerName(String secondLowestSellerName) {
1113
    this.secondLowestSellerName = secondLowestSellerName;
1114
  }
1115
 
1116
  public void unsetSecondLowestSellerName() {
1117
    this.secondLowestSellerName = null;
1118
  }
1119
 
1120
  /** Returns true if field secondLowestSellerName is set (has been assigned a value) and false otherwise */
1121
  public boolean isSetSecondLowestSellerName() {
1122
    return this.secondLowestSellerName != null;
1123
  }
1124
 
1125
  public void setSecondLowestSellerNameIsSet(boolean value) {
1126
    if (!value) {
1127
      this.secondLowestSellerName = null;
1128
    }
1129
  }
1130
 
1131
  public double getSecondLowestSellingPrice() {
1132
    return this.secondLowestSellingPrice;
1133
  }
1134
 
1135
  public void setSecondLowestSellingPrice(double secondLowestSellingPrice) {
1136
    this.secondLowestSellingPrice = secondLowestSellingPrice;
1137
    setSecondLowestSellingPriceIsSet(true);
1138
  }
1139
 
1140
  public void unsetSecondLowestSellingPrice() {
1141
    __isset_bit_vector.clear(__SECONDLOWESTSELLINGPRICE_ISSET_ID);
1142
  }
1143
 
1144
  /** Returns true if field secondLowestSellingPrice is set (has been assigned a value) and false otherwise */
1145
  public boolean isSetSecondLowestSellingPrice() {
1146
    return __isset_bit_vector.get(__SECONDLOWESTSELLINGPRICE_ISSET_ID);
1147
  }
1148
 
1149
  public void setSecondLowestSellingPriceIsSet(boolean value) {
1150
    __isset_bit_vector.set(__SECONDLOWESTSELLINGPRICE_ISSET_ID, value);
1151
  }
1152
 
1153
  public double getSecondLowestOfferPrice() {
1154
    return this.secondLowestOfferPrice;
1155
  }
1156
 
1157
  public void setSecondLowestOfferPrice(double secondLowestOfferPrice) {
1158
    this.secondLowestOfferPrice = secondLowestOfferPrice;
1159
    setSecondLowestOfferPriceIsSet(true);
1160
  }
1161
 
1162
  public void unsetSecondLowestOfferPrice() {
1163
    __isset_bit_vector.clear(__SECONDLOWESTOFFERPRICE_ISSET_ID);
1164
  }
1165
 
1166
  /** Returns true if field secondLowestOfferPrice is set (has been assigned a value) and false otherwise */
1167
  public boolean isSetSecondLowestOfferPrice() {
1168
    return __isset_bit_vector.get(__SECONDLOWESTOFFERPRICE_ISSET_ID);
1169
  }
1170
 
1171
  public void setSecondLowestOfferPriceIsSet(boolean value) {
1172
    __isset_bit_vector.set(__SECONDLOWESTOFFERPRICE_ISSET_ID, value);
1173
  }
1174
 
1175
  public double getSecondLowestTp() {
1176
    return this.secondLowestTp;
1177
  }
1178
 
1179
  public void setSecondLowestTp(double secondLowestTp) {
1180
    this.secondLowestTp = secondLowestTp;
1181
    setSecondLowestTpIsSet(true);
1182
  }
1183
 
1184
  public void unsetSecondLowestTp() {
1185
    __isset_bit_vector.clear(__SECONDLOWESTTP_ISSET_ID);
1186
  }
1187
 
1188
  /** Returns true if field secondLowestTp is set (has been assigned a value) and false otherwise */
1189
  public boolean isSetSecondLowestTp() {
1190
    return __isset_bit_vector.get(__SECONDLOWESTTP_ISSET_ID);
1191
  }
1192
 
1193
  public void setSecondLowestTpIsSet(boolean value) {
1194
    __isset_bit_vector.set(__SECONDLOWESTTP_ISSET_ID, value);
1195
  }
1196
 
1197
  public double getMarginIncreasedPotential() {
1198
    return this.marginIncreasedPotential;
1199
  }
1200
 
1201
  public void setMarginIncreasedPotential(double marginIncreasedPotential) {
1202
    this.marginIncreasedPotential = marginIncreasedPotential;
1203
    setMarginIncreasedPotentialIsSet(true);
1204
  }
1205
 
1206
  public void unsetMarginIncreasedPotential() {
1207
    __isset_bit_vector.clear(__MARGININCREASEDPOTENTIAL_ISSET_ID);
1208
  }
1209
 
1210
  /** Returns true if field marginIncreasedPotential is set (has been assigned a value) and false otherwise */
1211
  public boolean isSetMarginIncreasedPotential() {
1212
    return __isset_bit_vector.get(__MARGININCREASEDPOTENTIAL_ISSET_ID);
1213
  }
1214
 
1215
  public void setMarginIncreasedPotentialIsSet(boolean value) {
1216
    __isset_bit_vector.set(__MARGININCREASEDPOTENTIAL_ISSET_ID, value);
1217
  }
1218
 
1219
  public double getMargin() {
1220
    return this.margin;
1221
  }
1222
 
1223
  public void setMargin(double margin) {
1224
    this.margin = margin;
1225
    setMarginIsSet(true);
1226
  }
1227
 
1228
  public void unsetMargin() {
1229
    __isset_bit_vector.clear(__MARGIN_ISSET_ID);
1230
  }
1231
 
1232
  /** Returns true if field margin is set (has been assigned a value) and false otherwise */
1233
  public boolean isSetMargin() {
1234
    return __isset_bit_vector.get(__MARGIN_ISSET_ID);
1235
  }
1236
 
1237
  public void setMarginIsSet(boolean value) {
1238
    __isset_bit_vector.set(__MARGIN_ISSET_ID, value);
1239
  }
1240
 
1241
  public boolean isOurEnoughStock() {
1242
    return this.ourEnoughStock;
1243
  }
1244
 
1245
  public void setOurEnoughStock(boolean ourEnoughStock) {
1246
    this.ourEnoughStock = ourEnoughStock;
1247
    setOurEnoughStockIsSet(true);
1248
  }
1249
 
1250
  public void unsetOurEnoughStock() {
1251
    __isset_bit_vector.clear(__OURENOUGHSTOCK_ISSET_ID);
1252
  }
1253
 
1254
  /** Returns true if field ourEnoughStock is set (has been assigned a value) and false otherwise */
1255
  public boolean isSetOurEnoughStock() {
1256
    return __isset_bit_vector.get(__OURENOUGHSTOCK_ISSET_ID);
1257
  }
1258
 
1259
  public void setOurEnoughStockIsSet(boolean value) {
1260
    __isset_bit_vector.set(__OURENOUGHSTOCK_ISSET_ID, value);
1261
  }
1262
 
1263
  public long getTotalSeller() {
1264
    return this.totalSeller;
1265
  }
1266
 
1267
  public void setTotalSeller(long totalSeller) {
1268
    this.totalSeller = totalSeller;
1269
    setTotalSellerIsSet(true);
1270
  }
1271
 
1272
  public void unsetTotalSeller() {
1273
    __isset_bit_vector.clear(__TOTALSELLER_ISSET_ID);
1274
  }
1275
 
1276
  /** Returns true if field totalSeller is set (has been assigned a value) and false otherwise */
1277
  public boolean isSetTotalSeller() {
1278
    return __isset_bit_vector.get(__TOTALSELLER_ISSET_ID);
1279
  }
1280
 
1281
  public void setTotalSellerIsSet(boolean value) {
1282
    __isset_bit_vector.set(__TOTALSELLER_ISSET_ID, value);
1283
  }
1284
 
1285
  public double getAverageSale() {
1286
    return this.averageSale;
1287
  }
1288
 
1289
  public void setAverageSale(double averageSale) {
1290
    this.averageSale = averageSale;
1291
    setAverageSaleIsSet(true);
1292
  }
1293
 
1294
  public void unsetAverageSale() {
1295
    __isset_bit_vector.clear(__AVERAGESALE_ISSET_ID);
1296
  }
1297
 
1298
  /** Returns true if field averageSale is set (has been assigned a value) and false otherwise */
1299
  public boolean isSetAverageSale() {
1300
    return __isset_bit_vector.get(__AVERAGESALE_ISSET_ID);
1301
  }
1302
 
1303
  public void setAverageSaleIsSet(boolean value) {
1304
    __isset_bit_vector.set(__AVERAGESALE_ISSET_ID, value);
1305
  }
1306
 
1307
  public boolean isToGroup() {
1308
    return this.toGroup;
1309
  }
1310
 
1311
  public void setToGroup(boolean toGroup) {
1312
    this.toGroup = toGroup;
1313
    setToGroupIsSet(true);
1314
  }
1315
 
1316
  public void unsetToGroup() {
1317
    __isset_bit_vector.clear(__TOGROUP_ISSET_ID);
1318
  }
1319
 
1320
  /** Returns true if field toGroup is set (has been assigned a value) and false otherwise */
1321
  public boolean isSetToGroup() {
1322
    return __isset_bit_vector.get(__TOGROUP_ISSET_ID);
1323
  }
1324
 
1325
  public void setToGroupIsSet(boolean value) {
1326
    __isset_bit_vector.set(__TOGROUP_ISSET_ID, value);
1327
  }
1328
 
1329
  public void setFieldValue(_Fields field, Object value) {
1330
    switch (field) {
1331
    case ITEM_ID:
1332
      if (value == null) {
1333
        unsetItem_id();
1334
      } else {
1335
        setItem_id((Long)value);
1336
      }
1337
      break;
1338
 
1339
    case SOURCE:
1340
      if (value == null) {
1341
        unsetSource();
1342
      } else {
1343
        setSource((Long)value);
1344
      }
1345
      break;
1346
 
1347
    case TIMESTAMP:
1348
      if (value == null) {
1349
        unsetTimestamp();
1350
      } else {
1351
        setTimestamp((Long)value);
1352
      }
1353
      break;
1354
 
1355
    case LOWEST_POSSIBLE_TP:
1356
      if (value == null) {
1357
        unsetLowest_possible_tp();
1358
      } else {
1359
        setLowest_possible_tp((Double)value);
1360
      }
1361
      break;
1362
 
1363
    case LOWEST_POSSIBLE_SP:
1364
      if (value == null) {
1365
        unsetLowest_possible_sp();
1366
      } else {
1367
        setLowest_possible_sp((Double)value);
1368
      }
1369
      break;
1370
 
1371
    case OUR_INVENTORY:
1372
      if (value == null) {
1373
        unsetOurInventory();
1374
      } else {
1375
        setOurInventory((Long)value);
1376
      }
1377
      break;
1378
 
1379
    case OTHER_INVENTORY:
1380
      if (value == null) {
1381
        unsetOtherInventory();
1382
      } else {
1383
        setOtherInventory((Long)value);
1384
      }
1385
      break;
1386
 
1387
    case SECOND_LOWEST_INVENTORY:
1388
      if (value == null) {
1389
        unsetSecondLowestInventory();
1390
      } else {
1391
        setSecondLowestInventory((Long)value);
1392
      }
1393
      break;
1394
 
1395
    case OUR_RANK:
1396
      if (value == null) {
1397
        unsetOurRank();
1398
      } else {
1399
        setOurRank((Long)value);
1400
      }
1401
      break;
1402
 
1403
    case OUR_OFFER_PRICE:
1404
      if (value == null) {
1405
        unsetOurOfferPrice();
1406
      } else {
1407
        setOurOfferPrice((Double)value);
1408
      }
1409
      break;
1410
 
1411
    case OUR_SELLING_PRICE:
1412
      if (value == null) {
1413
        unsetOurSellingPrice();
1414
      } else {
1415
        setOurSellingPrice((Double)value);
1416
      }
1417
      break;
1418
 
1419
    case OUR_TP:
1420
      if (value == null) {
1421
        unsetOurTp();
1422
      } else {
1423
        setOurTp((Double)value);
1424
      }
1425
      break;
1426
 
1427
    case OUR_NLC:
1428
      if (value == null) {
1429
        unsetOurNlc();
1430
      } else {
1431
        setOurNlc((Double)value);
1432
      }
1433
      break;
1434
 
1435
    case COMPETITIVE_CATEGORY:
1436
      if (value == null) {
1437
        unsetCompetitiveCategory();
1438
      } else {
1439
        setCompetitiveCategory((CompetitionCategory)value);
1440
      }
1441
      break;
1442
 
1443
    case RISKY:
1444
      if (value == null) {
1445
        unsetRisky();
1446
      } else {
1447
        setRisky((Long)value);
1448
      }
1449
      break;
1450
 
1451
    case LOWEST_OFFER_PRICE:
1452
      if (value == null) {
1453
        unsetLowestOfferPrice();
1454
      } else {
1455
        setLowestOfferPrice((Double)value);
1456
      }
1457
      break;
1458
 
1459
    case LOWEST_SELLING_PRICE:
1460
      if (value == null) {
1461
        unsetLowestSellingPrice();
1462
      } else {
1463
        setLowestSellingPrice((Double)value);
1464
      }
1465
      break;
1466
 
1467
    case LOWEST_TP:
1468
      if (value == null) {
1469
        unsetLowestTp();
1470
      } else {
1471
        setLowestTp((Double)value);
1472
      }
1473
      break;
1474
 
1475
    case LOWEST_SELLER_NAME:
1476
      if (value == null) {
1477
        unsetLowestSellerName();
1478
      } else {
1479
        setLowestSellerName((String)value);
1480
      }
1481
      break;
1482
 
1483
    case PROPOSED_SELLING_PRICE:
1484
      if (value == null) {
1485
        unsetProposedSellingPrice();
1486
      } else {
1487
        setProposedSellingPrice((Double)value);
1488
      }
1489
      break;
1490
 
1491
    case PROPOSED_TP:
1492
      if (value == null) {
1493
        unsetProposedTp();
1494
      } else {
1495
        setProposedTp((Double)value);
1496
      }
1497
      break;
1498
 
1499
    case TARGET_NLC:
1500
      if (value == null) {
1501
        unsetTargetNlc();
1502
      } else {
1503
        setTargetNlc((Double)value);
1504
      }
1505
      break;
1506
 
1507
    case SALES_POTENTIAL:
1508
      if (value == null) {
1509
        unsetSalesPotential();
1510
      } else {
1511
        setSalesPotential((SalesPotential)value);
1512
      }
1513
      break;
1514
 
1515
    case SECOND_LOWEST_SELLER_NAME:
1516
      if (value == null) {
1517
        unsetSecondLowestSellerName();
1518
      } else {
1519
        setSecondLowestSellerName((String)value);
1520
      }
1521
      break;
1522
 
1523
    case SECOND_LOWEST_SELLING_PRICE:
1524
      if (value == null) {
1525
        unsetSecondLowestSellingPrice();
1526
      } else {
1527
        setSecondLowestSellingPrice((Double)value);
1528
      }
1529
      break;
1530
 
1531
    case SECOND_LOWEST_OFFER_PRICE:
1532
      if (value == null) {
1533
        unsetSecondLowestOfferPrice();
1534
      } else {
1535
        setSecondLowestOfferPrice((Double)value);
1536
      }
1537
      break;
1538
 
1539
    case SECOND_LOWEST_TP:
1540
      if (value == null) {
1541
        unsetSecondLowestTp();
1542
      } else {
1543
        setSecondLowestTp((Double)value);
1544
      }
1545
      break;
1546
 
1547
    case MARGIN_INCREASED_POTENTIAL:
1548
      if (value == null) {
1549
        unsetMarginIncreasedPotential();
1550
      } else {
1551
        setMarginIncreasedPotential((Double)value);
1552
      }
1553
      break;
1554
 
1555
    case MARGIN:
1556
      if (value == null) {
1557
        unsetMargin();
1558
      } else {
1559
        setMargin((Double)value);
1560
      }
1561
      break;
1562
 
1563
    case OUR_ENOUGH_STOCK:
1564
      if (value == null) {
1565
        unsetOurEnoughStock();
1566
      } else {
1567
        setOurEnoughStock((Boolean)value);
1568
      }
1569
      break;
1570
 
1571
    case TOTAL_SELLER:
1572
      if (value == null) {
1573
        unsetTotalSeller();
1574
      } else {
1575
        setTotalSeller((Long)value);
1576
      }
1577
      break;
1578
 
1579
    case AVERAGE_SALE:
1580
      if (value == null) {
1581
        unsetAverageSale();
1582
      } else {
1583
        setAverageSale((Double)value);
1584
      }
1585
      break;
1586
 
1587
    case TO_GROUP:
1588
      if (value == null) {
1589
        unsetToGroup();
1590
      } else {
1591
        setToGroup((Boolean)value);
1592
      }
1593
      break;
1594
 
1595
    }
1596
  }
1597
 
1598
  public Object getFieldValue(_Fields field) {
1599
    switch (field) {
1600
    case ITEM_ID:
1601
      return Long.valueOf(getItem_id());
1602
 
1603
    case SOURCE:
1604
      return Long.valueOf(getSource());
1605
 
1606
    case TIMESTAMP:
1607
      return Long.valueOf(getTimestamp());
1608
 
1609
    case LOWEST_POSSIBLE_TP:
1610
      return Double.valueOf(getLowest_possible_tp());
1611
 
1612
    case LOWEST_POSSIBLE_SP:
1613
      return Double.valueOf(getLowest_possible_sp());
1614
 
1615
    case OUR_INVENTORY:
1616
      return Long.valueOf(getOurInventory());
1617
 
1618
    case OTHER_INVENTORY:
1619
      return Long.valueOf(getOtherInventory());
1620
 
1621
    case SECOND_LOWEST_INVENTORY:
1622
      return Long.valueOf(getSecondLowestInventory());
1623
 
1624
    case OUR_RANK:
1625
      return Long.valueOf(getOurRank());
1626
 
1627
    case OUR_OFFER_PRICE:
1628
      return Double.valueOf(getOurOfferPrice());
1629
 
1630
    case OUR_SELLING_PRICE:
1631
      return Double.valueOf(getOurSellingPrice());
1632
 
1633
    case OUR_TP:
1634
      return Double.valueOf(getOurTp());
1635
 
1636
    case OUR_NLC:
1637
      return Double.valueOf(getOurNlc());
1638
 
1639
    case COMPETITIVE_CATEGORY:
1640
      return getCompetitiveCategory();
1641
 
1642
    case RISKY:
1643
      return Long.valueOf(getRisky());
1644
 
1645
    case LOWEST_OFFER_PRICE:
1646
      return Double.valueOf(getLowestOfferPrice());
1647
 
1648
    case LOWEST_SELLING_PRICE:
1649
      return Double.valueOf(getLowestSellingPrice());
1650
 
1651
    case LOWEST_TP:
1652
      return Double.valueOf(getLowestTp());
1653
 
1654
    case LOWEST_SELLER_NAME:
1655
      return getLowestSellerName();
1656
 
1657
    case PROPOSED_SELLING_PRICE:
1658
      return Double.valueOf(getProposedSellingPrice());
1659
 
1660
    case PROPOSED_TP:
1661
      return Double.valueOf(getProposedTp());
1662
 
1663
    case TARGET_NLC:
1664
      return Double.valueOf(getTargetNlc());
1665
 
1666
    case SALES_POTENTIAL:
1667
      return getSalesPotential();
1668
 
1669
    case SECOND_LOWEST_SELLER_NAME:
1670
      return getSecondLowestSellerName();
1671
 
1672
    case SECOND_LOWEST_SELLING_PRICE:
1673
      return Double.valueOf(getSecondLowestSellingPrice());
1674
 
1675
    case SECOND_LOWEST_OFFER_PRICE:
1676
      return Double.valueOf(getSecondLowestOfferPrice());
1677
 
1678
    case SECOND_LOWEST_TP:
1679
      return Double.valueOf(getSecondLowestTp());
1680
 
1681
    case MARGIN_INCREASED_POTENTIAL:
1682
      return Double.valueOf(getMarginIncreasedPotential());
1683
 
1684
    case MARGIN:
1685
      return Double.valueOf(getMargin());
1686
 
1687
    case OUR_ENOUGH_STOCK:
1688
      return Boolean.valueOf(isOurEnoughStock());
1689
 
1690
    case TOTAL_SELLER:
1691
      return Long.valueOf(getTotalSeller());
1692
 
1693
    case AVERAGE_SALE:
1694
      return Double.valueOf(getAverageSale());
1695
 
1696
    case TO_GROUP:
1697
      return Boolean.valueOf(isToGroup());
1698
 
1699
    }
1700
    throw new IllegalStateException();
1701
  }
1702
 
1703
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1704
  public boolean isSet(_Fields field) {
1705
    if (field == null) {
1706
      throw new IllegalArgumentException();
1707
    }
1708
 
1709
    switch (field) {
1710
    case ITEM_ID:
1711
      return isSetItem_id();
1712
    case SOURCE:
1713
      return isSetSource();
1714
    case TIMESTAMP:
1715
      return isSetTimestamp();
1716
    case LOWEST_POSSIBLE_TP:
1717
      return isSetLowest_possible_tp();
1718
    case LOWEST_POSSIBLE_SP:
1719
      return isSetLowest_possible_sp();
1720
    case OUR_INVENTORY:
1721
      return isSetOurInventory();
1722
    case OTHER_INVENTORY:
1723
      return isSetOtherInventory();
1724
    case SECOND_LOWEST_INVENTORY:
1725
      return isSetSecondLowestInventory();
1726
    case OUR_RANK:
1727
      return isSetOurRank();
1728
    case OUR_OFFER_PRICE:
1729
      return isSetOurOfferPrice();
1730
    case OUR_SELLING_PRICE:
1731
      return isSetOurSellingPrice();
1732
    case OUR_TP:
1733
      return isSetOurTp();
1734
    case OUR_NLC:
1735
      return isSetOurNlc();
1736
    case COMPETITIVE_CATEGORY:
1737
      return isSetCompetitiveCategory();
1738
    case RISKY:
1739
      return isSetRisky();
1740
    case LOWEST_OFFER_PRICE:
1741
      return isSetLowestOfferPrice();
1742
    case LOWEST_SELLING_PRICE:
1743
      return isSetLowestSellingPrice();
1744
    case LOWEST_TP:
1745
      return isSetLowestTp();
1746
    case LOWEST_SELLER_NAME:
1747
      return isSetLowestSellerName();
1748
    case PROPOSED_SELLING_PRICE:
1749
      return isSetProposedSellingPrice();
1750
    case PROPOSED_TP:
1751
      return isSetProposedTp();
1752
    case TARGET_NLC:
1753
      return isSetTargetNlc();
1754
    case SALES_POTENTIAL:
1755
      return isSetSalesPotential();
1756
    case SECOND_LOWEST_SELLER_NAME:
1757
      return isSetSecondLowestSellerName();
1758
    case SECOND_LOWEST_SELLING_PRICE:
1759
      return isSetSecondLowestSellingPrice();
1760
    case SECOND_LOWEST_OFFER_PRICE:
1761
      return isSetSecondLowestOfferPrice();
1762
    case SECOND_LOWEST_TP:
1763
      return isSetSecondLowestTp();
1764
    case MARGIN_INCREASED_POTENTIAL:
1765
      return isSetMarginIncreasedPotential();
1766
    case MARGIN:
1767
      return isSetMargin();
1768
    case OUR_ENOUGH_STOCK:
1769
      return isSetOurEnoughStock();
1770
    case TOTAL_SELLER:
1771
      return isSetTotalSeller();
1772
    case AVERAGE_SALE:
1773
      return isSetAverageSale();
1774
    case TO_GROUP:
1775
      return isSetToGroup();
1776
    }
1777
    throw new IllegalStateException();
1778
  }
1779
 
1780
  @Override
1781
  public boolean equals(Object that) {
1782
    if (that == null)
1783
      return false;
1784
    if (that instanceof MarketplaceHistory)
1785
      return this.equals((MarketplaceHistory)that);
1786
    return false;
1787
  }
1788
 
1789
  public boolean equals(MarketplaceHistory that) {
1790
    if (that == null)
1791
      return false;
1792
 
1793
    boolean this_present_item_id = true;
1794
    boolean that_present_item_id = true;
1795
    if (this_present_item_id || that_present_item_id) {
1796
      if (!(this_present_item_id && that_present_item_id))
1797
        return false;
1798
      if (this.item_id != that.item_id)
1799
        return false;
1800
    }
1801
 
1802
    boolean this_present_source = true;
1803
    boolean that_present_source = true;
1804
    if (this_present_source || that_present_source) {
1805
      if (!(this_present_source && that_present_source))
1806
        return false;
1807
      if (this.source != that.source)
1808
        return false;
1809
    }
1810
 
1811
    boolean this_present_timestamp = true;
1812
    boolean that_present_timestamp = true;
1813
    if (this_present_timestamp || that_present_timestamp) {
1814
      if (!(this_present_timestamp && that_present_timestamp))
1815
        return false;
1816
      if (this.timestamp != that.timestamp)
1817
        return false;
1818
    }
1819
 
1820
    boolean this_present_lowest_possible_tp = true;
1821
    boolean that_present_lowest_possible_tp = true;
1822
    if (this_present_lowest_possible_tp || that_present_lowest_possible_tp) {
1823
      if (!(this_present_lowest_possible_tp && that_present_lowest_possible_tp))
1824
        return false;
1825
      if (this.lowest_possible_tp != that.lowest_possible_tp)
1826
        return false;
1827
    }
1828
 
1829
    boolean this_present_lowest_possible_sp = true;
1830
    boolean that_present_lowest_possible_sp = true;
1831
    if (this_present_lowest_possible_sp || that_present_lowest_possible_sp) {
1832
      if (!(this_present_lowest_possible_sp && that_present_lowest_possible_sp))
1833
        return false;
1834
      if (this.lowest_possible_sp != that.lowest_possible_sp)
1835
        return false;
1836
    }
1837
 
1838
    boolean this_present_ourInventory = true;
1839
    boolean that_present_ourInventory = true;
1840
    if (this_present_ourInventory || that_present_ourInventory) {
1841
      if (!(this_present_ourInventory && that_present_ourInventory))
1842
        return false;
1843
      if (this.ourInventory != that.ourInventory)
1844
        return false;
1845
    }
1846
 
1847
    boolean this_present_otherInventory = true;
1848
    boolean that_present_otherInventory = true;
1849
    if (this_present_otherInventory || that_present_otherInventory) {
1850
      if (!(this_present_otherInventory && that_present_otherInventory))
1851
        return false;
1852
      if (this.otherInventory != that.otherInventory)
1853
        return false;
1854
    }
1855
 
1856
    boolean this_present_secondLowestInventory = true;
1857
    boolean that_present_secondLowestInventory = true;
1858
    if (this_present_secondLowestInventory || that_present_secondLowestInventory) {
1859
      if (!(this_present_secondLowestInventory && that_present_secondLowestInventory))
1860
        return false;
1861
      if (this.secondLowestInventory != that.secondLowestInventory)
1862
        return false;
1863
    }
1864
 
1865
    boolean this_present_ourRank = true;
1866
    boolean that_present_ourRank = true;
1867
    if (this_present_ourRank || that_present_ourRank) {
1868
      if (!(this_present_ourRank && that_present_ourRank))
1869
        return false;
1870
      if (this.ourRank != that.ourRank)
1871
        return false;
1872
    }
1873
 
1874
    boolean this_present_ourOfferPrice = true;
1875
    boolean that_present_ourOfferPrice = true;
1876
    if (this_present_ourOfferPrice || that_present_ourOfferPrice) {
1877
      if (!(this_present_ourOfferPrice && that_present_ourOfferPrice))
1878
        return false;
1879
      if (this.ourOfferPrice != that.ourOfferPrice)
1880
        return false;
1881
    }
1882
 
1883
    boolean this_present_ourSellingPrice = true;
1884
    boolean that_present_ourSellingPrice = true;
1885
    if (this_present_ourSellingPrice || that_present_ourSellingPrice) {
1886
      if (!(this_present_ourSellingPrice && that_present_ourSellingPrice))
1887
        return false;
1888
      if (this.ourSellingPrice != that.ourSellingPrice)
1889
        return false;
1890
    }
1891
 
1892
    boolean this_present_ourTp = true;
1893
    boolean that_present_ourTp = true;
1894
    if (this_present_ourTp || that_present_ourTp) {
1895
      if (!(this_present_ourTp && that_present_ourTp))
1896
        return false;
1897
      if (this.ourTp != that.ourTp)
1898
        return false;
1899
    }
1900
 
1901
    boolean this_present_ourNlc = true;
1902
    boolean that_present_ourNlc = true;
1903
    if (this_present_ourNlc || that_present_ourNlc) {
1904
      if (!(this_present_ourNlc && that_present_ourNlc))
1905
        return false;
1906
      if (this.ourNlc != that.ourNlc)
1907
        return false;
1908
    }
1909
 
1910
    boolean this_present_competitiveCategory = true && this.isSetCompetitiveCategory();
1911
    boolean that_present_competitiveCategory = true && that.isSetCompetitiveCategory();
1912
    if (this_present_competitiveCategory || that_present_competitiveCategory) {
1913
      if (!(this_present_competitiveCategory && that_present_competitiveCategory))
1914
        return false;
1915
      if (!this.competitiveCategory.equals(that.competitiveCategory))
1916
        return false;
1917
    }
1918
 
1919
    boolean this_present_risky = true;
1920
    boolean that_present_risky = true;
1921
    if (this_present_risky || that_present_risky) {
1922
      if (!(this_present_risky && that_present_risky))
1923
        return false;
1924
      if (this.risky != that.risky)
1925
        return false;
1926
    }
1927
 
1928
    boolean this_present_lowestOfferPrice = true;
1929
    boolean that_present_lowestOfferPrice = true;
1930
    if (this_present_lowestOfferPrice || that_present_lowestOfferPrice) {
1931
      if (!(this_present_lowestOfferPrice && that_present_lowestOfferPrice))
1932
        return false;
1933
      if (this.lowestOfferPrice != that.lowestOfferPrice)
1934
        return false;
1935
    }
1936
 
1937
    boolean this_present_lowestSellingPrice = true;
1938
    boolean that_present_lowestSellingPrice = true;
1939
    if (this_present_lowestSellingPrice || that_present_lowestSellingPrice) {
1940
      if (!(this_present_lowestSellingPrice && that_present_lowestSellingPrice))
1941
        return false;
1942
      if (this.lowestSellingPrice != that.lowestSellingPrice)
1943
        return false;
1944
    }
1945
 
1946
    boolean this_present_lowestTp = true;
1947
    boolean that_present_lowestTp = true;
1948
    if (this_present_lowestTp || that_present_lowestTp) {
1949
      if (!(this_present_lowestTp && that_present_lowestTp))
1950
        return false;
1951
      if (this.lowestTp != that.lowestTp)
1952
        return false;
1953
    }
1954
 
1955
    boolean this_present_lowestSellerName = true && this.isSetLowestSellerName();
1956
    boolean that_present_lowestSellerName = true && that.isSetLowestSellerName();
1957
    if (this_present_lowestSellerName || that_present_lowestSellerName) {
1958
      if (!(this_present_lowestSellerName && that_present_lowestSellerName))
1959
        return false;
1960
      if (!this.lowestSellerName.equals(that.lowestSellerName))
1961
        return false;
1962
    }
1963
 
1964
    boolean this_present_proposedSellingPrice = true;
1965
    boolean that_present_proposedSellingPrice = true;
1966
    if (this_present_proposedSellingPrice || that_present_proposedSellingPrice) {
1967
      if (!(this_present_proposedSellingPrice && that_present_proposedSellingPrice))
1968
        return false;
1969
      if (this.proposedSellingPrice != that.proposedSellingPrice)
1970
        return false;
1971
    }
1972
 
1973
    boolean this_present_proposedTp = true;
1974
    boolean that_present_proposedTp = true;
1975
    if (this_present_proposedTp || that_present_proposedTp) {
1976
      if (!(this_present_proposedTp && that_present_proposedTp))
1977
        return false;
1978
      if (this.proposedTp != that.proposedTp)
1979
        return false;
1980
    }
1981
 
1982
    boolean this_present_targetNlc = true;
1983
    boolean that_present_targetNlc = true;
1984
    if (this_present_targetNlc || that_present_targetNlc) {
1985
      if (!(this_present_targetNlc && that_present_targetNlc))
1986
        return false;
1987
      if (this.targetNlc != that.targetNlc)
1988
        return false;
1989
    }
1990
 
1991
    boolean this_present_salesPotential = true && this.isSetSalesPotential();
1992
    boolean that_present_salesPotential = true && that.isSetSalesPotential();
1993
    if (this_present_salesPotential || that_present_salesPotential) {
1994
      if (!(this_present_salesPotential && that_present_salesPotential))
1995
        return false;
1996
      if (!this.salesPotential.equals(that.salesPotential))
1997
        return false;
1998
    }
1999
 
2000
    boolean this_present_secondLowestSellerName = true && this.isSetSecondLowestSellerName();
2001
    boolean that_present_secondLowestSellerName = true && that.isSetSecondLowestSellerName();
2002
    if (this_present_secondLowestSellerName || that_present_secondLowestSellerName) {
2003
      if (!(this_present_secondLowestSellerName && that_present_secondLowestSellerName))
2004
        return false;
2005
      if (!this.secondLowestSellerName.equals(that.secondLowestSellerName))
2006
        return false;
2007
    }
2008
 
2009
    boolean this_present_secondLowestSellingPrice = true;
2010
    boolean that_present_secondLowestSellingPrice = true;
2011
    if (this_present_secondLowestSellingPrice || that_present_secondLowestSellingPrice) {
2012
      if (!(this_present_secondLowestSellingPrice && that_present_secondLowestSellingPrice))
2013
        return false;
2014
      if (this.secondLowestSellingPrice != that.secondLowestSellingPrice)
2015
        return false;
2016
    }
2017
 
2018
    boolean this_present_secondLowestOfferPrice = true;
2019
    boolean that_present_secondLowestOfferPrice = true;
2020
    if (this_present_secondLowestOfferPrice || that_present_secondLowestOfferPrice) {
2021
      if (!(this_present_secondLowestOfferPrice && that_present_secondLowestOfferPrice))
2022
        return false;
2023
      if (this.secondLowestOfferPrice != that.secondLowestOfferPrice)
2024
        return false;
2025
    }
2026
 
2027
    boolean this_present_secondLowestTp = true;
2028
    boolean that_present_secondLowestTp = true;
2029
    if (this_present_secondLowestTp || that_present_secondLowestTp) {
2030
      if (!(this_present_secondLowestTp && that_present_secondLowestTp))
2031
        return false;
2032
      if (this.secondLowestTp != that.secondLowestTp)
2033
        return false;
2034
    }
2035
 
2036
    boolean this_present_marginIncreasedPotential = true;
2037
    boolean that_present_marginIncreasedPotential = true;
2038
    if (this_present_marginIncreasedPotential || that_present_marginIncreasedPotential) {
2039
      if (!(this_present_marginIncreasedPotential && that_present_marginIncreasedPotential))
2040
        return false;
2041
      if (this.marginIncreasedPotential != that.marginIncreasedPotential)
2042
        return false;
2043
    }
2044
 
2045
    boolean this_present_margin = true;
2046
    boolean that_present_margin = true;
2047
    if (this_present_margin || that_present_margin) {
2048
      if (!(this_present_margin && that_present_margin))
2049
        return false;
2050
      if (this.margin != that.margin)
2051
        return false;
2052
    }
2053
 
2054
    boolean this_present_ourEnoughStock = true;
2055
    boolean that_present_ourEnoughStock = true;
2056
    if (this_present_ourEnoughStock || that_present_ourEnoughStock) {
2057
      if (!(this_present_ourEnoughStock && that_present_ourEnoughStock))
2058
        return false;
2059
      if (this.ourEnoughStock != that.ourEnoughStock)
2060
        return false;
2061
    }
2062
 
2063
    boolean this_present_totalSeller = true;
2064
    boolean that_present_totalSeller = true;
2065
    if (this_present_totalSeller || that_present_totalSeller) {
2066
      if (!(this_present_totalSeller && that_present_totalSeller))
2067
        return false;
2068
      if (this.totalSeller != that.totalSeller)
2069
        return false;
2070
    }
2071
 
2072
    boolean this_present_averageSale = true;
2073
    boolean that_present_averageSale = true;
2074
    if (this_present_averageSale || that_present_averageSale) {
2075
      if (!(this_present_averageSale && that_present_averageSale))
2076
        return false;
2077
      if (this.averageSale != that.averageSale)
2078
        return false;
2079
    }
2080
 
2081
    boolean this_present_toGroup = true;
2082
    boolean that_present_toGroup = true;
2083
    if (this_present_toGroup || that_present_toGroup) {
2084
      if (!(this_present_toGroup && that_present_toGroup))
2085
        return false;
2086
      if (this.toGroup != that.toGroup)
2087
        return false;
2088
    }
2089
 
2090
    return true;
2091
  }
2092
 
2093
  @Override
2094
  public int hashCode() {
2095
    return 0;
2096
  }
2097
 
2098
  public int compareTo(MarketplaceHistory other) {
2099
    if (!getClass().equals(other.getClass())) {
2100
      return getClass().getName().compareTo(other.getClass().getName());
2101
    }
2102
 
2103
    int lastComparison = 0;
2104
    MarketplaceHistory typedOther = (MarketplaceHistory)other;
2105
 
2106
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
2107
    if (lastComparison != 0) {
2108
      return lastComparison;
2109
    }
2110
    if (isSetItem_id()) {
2111
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
2112
      if (lastComparison != 0) {
2113
        return lastComparison;
2114
      }
2115
    }
2116
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
2117
    if (lastComparison != 0) {
2118
      return lastComparison;
2119
    }
2120
    if (isSetSource()) {
2121
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2122
      if (lastComparison != 0) {
2123
        return lastComparison;
2124
      }
2125
    }
2126
    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
2127
    if (lastComparison != 0) {
2128
      return lastComparison;
2129
    }
2130
    if (isSetTimestamp()) {
2131
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
2132
      if (lastComparison != 0) {
2133
        return lastComparison;
2134
      }
2135
    }
2136
    lastComparison = Boolean.valueOf(isSetLowest_possible_tp()).compareTo(typedOther.isSetLowest_possible_tp());
2137
    if (lastComparison != 0) {
2138
      return lastComparison;
2139
    }
2140
    if (isSetLowest_possible_tp()) {
2141
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowest_possible_tp, typedOther.lowest_possible_tp);
2142
      if (lastComparison != 0) {
2143
        return lastComparison;
2144
      }
2145
    }
2146
    lastComparison = Boolean.valueOf(isSetLowest_possible_sp()).compareTo(typedOther.isSetLowest_possible_sp());
2147
    if (lastComparison != 0) {
2148
      return lastComparison;
2149
    }
2150
    if (isSetLowest_possible_sp()) {
2151
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowest_possible_sp, typedOther.lowest_possible_sp);
2152
      if (lastComparison != 0) {
2153
        return lastComparison;
2154
      }
2155
    }
2156
    lastComparison = Boolean.valueOf(isSetOurInventory()).compareTo(typedOther.isSetOurInventory());
2157
    if (lastComparison != 0) {
2158
      return lastComparison;
2159
    }
2160
    if (isSetOurInventory()) {
2161
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourInventory, typedOther.ourInventory);
2162
      if (lastComparison != 0) {
2163
        return lastComparison;
2164
      }
2165
    }
2166
    lastComparison = Boolean.valueOf(isSetOtherInventory()).compareTo(typedOther.isSetOtherInventory());
2167
    if (lastComparison != 0) {
2168
      return lastComparison;
2169
    }
2170
    if (isSetOtherInventory()) {
2171
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherInventory, typedOther.otherInventory);
2172
      if (lastComparison != 0) {
2173
        return lastComparison;
2174
      }
2175
    }
2176
    lastComparison = Boolean.valueOf(isSetSecondLowestInventory()).compareTo(typedOther.isSetSecondLowestInventory());
2177
    if (lastComparison != 0) {
2178
      return lastComparison;
2179
    }
2180
    if (isSetSecondLowestInventory()) {
2181
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestInventory, typedOther.secondLowestInventory);
2182
      if (lastComparison != 0) {
2183
        return lastComparison;
2184
      }
2185
    }
2186
    lastComparison = Boolean.valueOf(isSetOurRank()).compareTo(typedOther.isSetOurRank());
2187
    if (lastComparison != 0) {
2188
      return lastComparison;
2189
    }
2190
    if (isSetOurRank()) {
2191
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourRank, typedOther.ourRank);
2192
      if (lastComparison != 0) {
2193
        return lastComparison;
2194
      }
2195
    }
2196
    lastComparison = Boolean.valueOf(isSetOurOfferPrice()).compareTo(typedOther.isSetOurOfferPrice());
2197
    if (lastComparison != 0) {
2198
      return lastComparison;
2199
    }
2200
    if (isSetOurOfferPrice()) {
2201
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourOfferPrice, typedOther.ourOfferPrice);
2202
      if (lastComparison != 0) {
2203
        return lastComparison;
2204
      }
2205
    }
2206
    lastComparison = Boolean.valueOf(isSetOurSellingPrice()).compareTo(typedOther.isSetOurSellingPrice());
2207
    if (lastComparison != 0) {
2208
      return lastComparison;
2209
    }
2210
    if (isSetOurSellingPrice()) {
2211
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourSellingPrice, typedOther.ourSellingPrice);
2212
      if (lastComparison != 0) {
2213
        return lastComparison;
2214
      }
2215
    }
2216
    lastComparison = Boolean.valueOf(isSetOurTp()).compareTo(typedOther.isSetOurTp());
2217
    if (lastComparison != 0) {
2218
      return lastComparison;
2219
    }
2220
    if (isSetOurTp()) {
2221
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourTp, typedOther.ourTp);
2222
      if (lastComparison != 0) {
2223
        return lastComparison;
2224
      }
2225
    }
2226
    lastComparison = Boolean.valueOf(isSetOurNlc()).compareTo(typedOther.isSetOurNlc());
2227
    if (lastComparison != 0) {
2228
      return lastComparison;
2229
    }
2230
    if (isSetOurNlc()) {
2231
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourNlc, typedOther.ourNlc);
2232
      if (lastComparison != 0) {
2233
        return lastComparison;
2234
      }
2235
    }
2236
    lastComparison = Boolean.valueOf(isSetCompetitiveCategory()).compareTo(typedOther.isSetCompetitiveCategory());
2237
    if (lastComparison != 0) {
2238
      return lastComparison;
2239
    }
2240
    if (isSetCompetitiveCategory()) {
2241
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.competitiveCategory, typedOther.competitiveCategory);
2242
      if (lastComparison != 0) {
2243
        return lastComparison;
2244
      }
2245
    }
2246
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
2247
    if (lastComparison != 0) {
2248
      return lastComparison;
2249
    }
2250
    if (isSetRisky()) {
2251
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
2252
      if (lastComparison != 0) {
2253
        return lastComparison;
2254
      }
2255
    }
2256
    lastComparison = Boolean.valueOf(isSetLowestOfferPrice()).compareTo(typedOther.isSetLowestOfferPrice());
2257
    if (lastComparison != 0) {
2258
      return lastComparison;
2259
    }
2260
    if (isSetLowestOfferPrice()) {
2261
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestOfferPrice, typedOther.lowestOfferPrice);
2262
      if (lastComparison != 0) {
2263
        return lastComparison;
2264
      }
2265
    }
2266
    lastComparison = Boolean.valueOf(isSetLowestSellingPrice()).compareTo(typedOther.isSetLowestSellingPrice());
2267
    if (lastComparison != 0) {
2268
      return lastComparison;
2269
    }
2270
    if (isSetLowestSellingPrice()) {
2271
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSellingPrice, typedOther.lowestSellingPrice);
2272
      if (lastComparison != 0) {
2273
        return lastComparison;
2274
      }
2275
    }
2276
    lastComparison = Boolean.valueOf(isSetLowestTp()).compareTo(typedOther.isSetLowestTp());
2277
    if (lastComparison != 0) {
2278
      return lastComparison;
2279
    }
2280
    if (isSetLowestTp()) {
2281
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestTp, typedOther.lowestTp);
2282
      if (lastComparison != 0) {
2283
        return lastComparison;
2284
      }
2285
    }
2286
    lastComparison = Boolean.valueOf(isSetLowestSellerName()).compareTo(typedOther.isSetLowestSellerName());
2287
    if (lastComparison != 0) {
2288
      return lastComparison;
2289
    }
2290
    if (isSetLowestSellerName()) {
2291
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSellerName, typedOther.lowestSellerName);
2292
      if (lastComparison != 0) {
2293
        return lastComparison;
2294
      }
2295
    }
2296
    lastComparison = Boolean.valueOf(isSetProposedSellingPrice()).compareTo(typedOther.isSetProposedSellingPrice());
2297
    if (lastComparison != 0) {
2298
      return lastComparison;
2299
    }
2300
    if (isSetProposedSellingPrice()) {
2301
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.proposedSellingPrice, typedOther.proposedSellingPrice);
2302
      if (lastComparison != 0) {
2303
        return lastComparison;
2304
      }
2305
    }
2306
    lastComparison = Boolean.valueOf(isSetProposedTp()).compareTo(typedOther.isSetProposedTp());
2307
    if (lastComparison != 0) {
2308
      return lastComparison;
2309
    }
2310
    if (isSetProposedTp()) {
2311
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.proposedTp, typedOther.proposedTp);
2312
      if (lastComparison != 0) {
2313
        return lastComparison;
2314
      }
2315
    }
2316
    lastComparison = Boolean.valueOf(isSetTargetNlc()).compareTo(typedOther.isSetTargetNlc());
2317
    if (lastComparison != 0) {
2318
      return lastComparison;
2319
    }
2320
    if (isSetTargetNlc()) {
2321
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.targetNlc, typedOther.targetNlc);
2322
      if (lastComparison != 0) {
2323
        return lastComparison;
2324
      }
2325
    }
2326
    lastComparison = Boolean.valueOf(isSetSalesPotential()).compareTo(typedOther.isSetSalesPotential());
2327
    if (lastComparison != 0) {
2328
      return lastComparison;
2329
    }
2330
    if (isSetSalesPotential()) {
2331
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesPotential, typedOther.salesPotential);
2332
      if (lastComparison != 0) {
2333
        return lastComparison;
2334
      }
2335
    }
2336
    lastComparison = Boolean.valueOf(isSetSecondLowestSellerName()).compareTo(typedOther.isSetSecondLowestSellerName());
2337
    if (lastComparison != 0) {
2338
      return lastComparison;
2339
    }
2340
    if (isSetSecondLowestSellerName()) {
2341
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestSellerName, typedOther.secondLowestSellerName);
2342
      if (lastComparison != 0) {
2343
        return lastComparison;
2344
      }
2345
    }
2346
    lastComparison = Boolean.valueOf(isSetSecondLowestSellingPrice()).compareTo(typedOther.isSetSecondLowestSellingPrice());
2347
    if (lastComparison != 0) {
2348
      return lastComparison;
2349
    }
2350
    if (isSetSecondLowestSellingPrice()) {
2351
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestSellingPrice, typedOther.secondLowestSellingPrice);
2352
      if (lastComparison != 0) {
2353
        return lastComparison;
2354
      }
2355
    }
2356
    lastComparison = Boolean.valueOf(isSetSecondLowestOfferPrice()).compareTo(typedOther.isSetSecondLowestOfferPrice());
2357
    if (lastComparison != 0) {
2358
      return lastComparison;
2359
    }
2360
    if (isSetSecondLowestOfferPrice()) {
2361
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestOfferPrice, typedOther.secondLowestOfferPrice);
2362
      if (lastComparison != 0) {
2363
        return lastComparison;
2364
      }
2365
    }
2366
    lastComparison = Boolean.valueOf(isSetSecondLowestTp()).compareTo(typedOther.isSetSecondLowestTp());
2367
    if (lastComparison != 0) {
2368
      return lastComparison;
2369
    }
2370
    if (isSetSecondLowestTp()) {
2371
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestTp, typedOther.secondLowestTp);
2372
      if (lastComparison != 0) {
2373
        return lastComparison;
2374
      }
2375
    }
2376
    lastComparison = Boolean.valueOf(isSetMarginIncreasedPotential()).compareTo(typedOther.isSetMarginIncreasedPotential());
2377
    if (lastComparison != 0) {
2378
      return lastComparison;
2379
    }
2380
    if (isSetMarginIncreasedPotential()) {
2381
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marginIncreasedPotential, typedOther.marginIncreasedPotential);
2382
      if (lastComparison != 0) {
2383
        return lastComparison;
2384
      }
2385
    }
2386
    lastComparison = Boolean.valueOf(isSetMargin()).compareTo(typedOther.isSetMargin());
2387
    if (lastComparison != 0) {
2388
      return lastComparison;
2389
    }
2390
    if (isSetMargin()) {
2391
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.margin, typedOther.margin);
2392
      if (lastComparison != 0) {
2393
        return lastComparison;
2394
      }
2395
    }
2396
    lastComparison = Boolean.valueOf(isSetOurEnoughStock()).compareTo(typedOther.isSetOurEnoughStock());
2397
    if (lastComparison != 0) {
2398
      return lastComparison;
2399
    }
2400
    if (isSetOurEnoughStock()) {
2401
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourEnoughStock, typedOther.ourEnoughStock);
2402
      if (lastComparison != 0) {
2403
        return lastComparison;
2404
      }
2405
    }
2406
    lastComparison = Boolean.valueOf(isSetTotalSeller()).compareTo(typedOther.isSetTotalSeller());
2407
    if (lastComparison != 0) {
2408
      return lastComparison;
2409
    }
2410
    if (isSetTotalSeller()) {
2411
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSeller, typedOther.totalSeller);
2412
      if (lastComparison != 0) {
2413
        return lastComparison;
2414
      }
2415
    }
2416
    lastComparison = Boolean.valueOf(isSetAverageSale()).compareTo(typedOther.isSetAverageSale());
2417
    if (lastComparison != 0) {
2418
      return lastComparison;
2419
    }
2420
    if (isSetAverageSale()) {
2421
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.averageSale, typedOther.averageSale);
2422
      if (lastComparison != 0) {
2423
        return lastComparison;
2424
      }
2425
    }
2426
    lastComparison = Boolean.valueOf(isSetToGroup()).compareTo(typedOther.isSetToGroup());
2427
    if (lastComparison != 0) {
2428
      return lastComparison;
2429
    }
2430
    if (isSetToGroup()) {
2431
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toGroup, typedOther.toGroup);
2432
      if (lastComparison != 0) {
2433
        return lastComparison;
2434
      }
2435
    }
2436
    return 0;
2437
  }
2438
 
2439
  public _Fields fieldForId(int fieldId) {
2440
    return _Fields.findByThriftId(fieldId);
2441
  }
2442
 
2443
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2444
    org.apache.thrift.protocol.TField field;
2445
    iprot.readStructBegin();
2446
    while (true)
2447
    {
2448
      field = iprot.readFieldBegin();
2449
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2450
        break;
2451
      }
2452
      switch (field.id) {
2453
        case 1: // ITEM_ID
2454
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2455
            this.item_id = iprot.readI64();
2456
            setItem_idIsSet(true);
2457
          } else { 
2458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2459
          }
2460
          break;
2461
        case 2: // SOURCE
2462
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2463
            this.source = iprot.readI64();
2464
            setSourceIsSet(true);
2465
          } else { 
2466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2467
          }
2468
          break;
2469
        case 3: // TIMESTAMP
2470
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2471
            this.timestamp = iprot.readI64();
2472
            setTimestampIsSet(true);
2473
          } else { 
2474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2475
          }
2476
          break;
2477
        case 4: // LOWEST_POSSIBLE_TP
2478
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2479
            this.lowest_possible_tp = iprot.readDouble();
2480
            setLowest_possible_tpIsSet(true);
2481
          } else { 
2482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2483
          }
2484
          break;
2485
        case 5: // LOWEST_POSSIBLE_SP
2486
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2487
            this.lowest_possible_sp = iprot.readDouble();
2488
            setLowest_possible_spIsSet(true);
2489
          } else { 
2490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2491
          }
2492
          break;
2493
        case 6: // OUR_INVENTORY
2494
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2495
            this.ourInventory = iprot.readI64();
2496
            setOurInventoryIsSet(true);
2497
          } else { 
2498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2499
          }
2500
          break;
2501
        case 7: // OTHER_INVENTORY
2502
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2503
            this.otherInventory = iprot.readI64();
2504
            setOtherInventoryIsSet(true);
2505
          } else { 
2506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2507
          }
2508
          break;
2509
        case 8: // SECOND_LOWEST_INVENTORY
2510
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2511
            this.secondLowestInventory = iprot.readI64();
2512
            setSecondLowestInventoryIsSet(true);
2513
          } else { 
2514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2515
          }
2516
          break;
2517
        case 9: // OUR_RANK
2518
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2519
            this.ourRank = iprot.readI64();
2520
            setOurRankIsSet(true);
2521
          } else { 
2522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2523
          }
2524
          break;
2525
        case 10: // OUR_OFFER_PRICE
2526
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2527
            this.ourOfferPrice = iprot.readDouble();
2528
            setOurOfferPriceIsSet(true);
2529
          } else { 
2530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2531
          }
2532
          break;
2533
        case 11: // OUR_SELLING_PRICE
2534
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2535
            this.ourSellingPrice = iprot.readDouble();
2536
            setOurSellingPriceIsSet(true);
2537
          } else { 
2538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2539
          }
2540
          break;
2541
        case 12: // OUR_TP
2542
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2543
            this.ourTp = iprot.readDouble();
2544
            setOurTpIsSet(true);
2545
          } else { 
2546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2547
          }
2548
          break;
2549
        case 13: // OUR_NLC
2550
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2551
            this.ourNlc = iprot.readDouble();
2552
            setOurNlcIsSet(true);
2553
          } else { 
2554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2555
          }
2556
          break;
2557
        case 14: // COMPETITIVE_CATEGORY
2558
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2559
            this.competitiveCategory = CompetitionCategory.findByValue(iprot.readI32());
2560
          } else { 
2561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2562
          }
2563
          break;
2564
        case 15: // RISKY
2565
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2566
            this.risky = iprot.readI64();
2567
            setRiskyIsSet(true);
2568
          } else { 
2569
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2570
          }
2571
          break;
2572
        case 16: // LOWEST_OFFER_PRICE
2573
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2574
            this.lowestOfferPrice = iprot.readDouble();
2575
            setLowestOfferPriceIsSet(true);
2576
          } else { 
2577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2578
          }
2579
          break;
2580
        case 17: // LOWEST_SELLING_PRICE
2581
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2582
            this.lowestSellingPrice = iprot.readDouble();
2583
            setLowestSellingPriceIsSet(true);
2584
          } else { 
2585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2586
          }
2587
          break;
2588
        case 18: // LOWEST_TP
2589
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2590
            this.lowestTp = iprot.readDouble();
2591
            setLowestTpIsSet(true);
2592
          } else { 
2593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2594
          }
2595
          break;
2596
        case 19: // LOWEST_SELLER_NAME
2597
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2598
            this.lowestSellerName = iprot.readString();
2599
          } else { 
2600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2601
          }
2602
          break;
2603
        case 20: // PROPOSED_SELLING_PRICE
2604
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2605
            this.proposedSellingPrice = iprot.readDouble();
2606
            setProposedSellingPriceIsSet(true);
2607
          } else { 
2608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2609
          }
2610
          break;
2611
        case 21: // PROPOSED_TP
2612
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2613
            this.proposedTp = iprot.readDouble();
2614
            setProposedTpIsSet(true);
2615
          } else { 
2616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2617
          }
2618
          break;
2619
        case 22: // TARGET_NLC
2620
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2621
            this.targetNlc = iprot.readDouble();
2622
            setTargetNlcIsSet(true);
2623
          } else { 
2624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2625
          }
2626
          break;
2627
        case 23: // SALES_POTENTIAL
2628
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2629
            this.salesPotential = SalesPotential.findByValue(iprot.readI32());
2630
          } else { 
2631
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2632
          }
2633
          break;
2634
        case 24: // SECOND_LOWEST_SELLER_NAME
2635
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2636
            this.secondLowestSellerName = iprot.readString();
2637
          } else { 
2638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2639
          }
2640
          break;
2641
        case 25: // SECOND_LOWEST_SELLING_PRICE
2642
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2643
            this.secondLowestSellingPrice = iprot.readDouble();
2644
            setSecondLowestSellingPriceIsSet(true);
2645
          } else { 
2646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2647
          }
2648
          break;
2649
        case 26: // SECOND_LOWEST_OFFER_PRICE
2650
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2651
            this.secondLowestOfferPrice = iprot.readDouble();
2652
            setSecondLowestOfferPriceIsSet(true);
2653
          } else { 
2654
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2655
          }
2656
          break;
2657
        case 27: // SECOND_LOWEST_TP
2658
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2659
            this.secondLowestTp = iprot.readDouble();
2660
            setSecondLowestTpIsSet(true);
2661
          } else { 
2662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2663
          }
2664
          break;
2665
        case 28: // MARGIN_INCREASED_POTENTIAL
2666
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2667
            this.marginIncreasedPotential = iprot.readDouble();
2668
            setMarginIncreasedPotentialIsSet(true);
2669
          } else { 
2670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2671
          }
2672
          break;
2673
        case 29: // MARGIN
2674
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2675
            this.margin = iprot.readDouble();
2676
            setMarginIsSet(true);
2677
          } else { 
2678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2679
          }
2680
          break;
2681
        case 30: // OUR_ENOUGH_STOCK
2682
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2683
            this.ourEnoughStock = iprot.readBool();
2684
            setOurEnoughStockIsSet(true);
2685
          } else { 
2686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2687
          }
2688
          break;
2689
        case 31: // TOTAL_SELLER
2690
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2691
            this.totalSeller = iprot.readI64();
2692
            setTotalSellerIsSet(true);
2693
          } else { 
2694
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2695
          }
2696
          break;
2697
        case 32: // AVERAGE_SALE
2698
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2699
            this.averageSale = iprot.readDouble();
2700
            setAverageSaleIsSet(true);
2701
          } else { 
2702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2703
          }
2704
          break;
2705
        case 33: // TO_GROUP
2706
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
2707
            this.toGroup = iprot.readBool();
2708
            setToGroupIsSet(true);
2709
          } else { 
2710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2711
          }
2712
          break;
2713
        default:
2714
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2715
      }
2716
      iprot.readFieldEnd();
2717
    }
2718
    iprot.readStructEnd();
2719
    validate();
2720
  }
2721
 
2722
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2723
    validate();
2724
 
2725
    oprot.writeStructBegin(STRUCT_DESC);
2726
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2727
    oprot.writeI64(this.item_id);
2728
    oprot.writeFieldEnd();
2729
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
2730
    oprot.writeI64(this.source);
2731
    oprot.writeFieldEnd();
2732
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
2733
    oprot.writeI64(this.timestamp);
2734
    oprot.writeFieldEnd();
2735
    oprot.writeFieldBegin(LOWEST_POSSIBLE_TP_FIELD_DESC);
2736
    oprot.writeDouble(this.lowest_possible_tp);
2737
    oprot.writeFieldEnd();
2738
    oprot.writeFieldBegin(LOWEST_POSSIBLE_SP_FIELD_DESC);
2739
    oprot.writeDouble(this.lowest_possible_sp);
2740
    oprot.writeFieldEnd();
2741
    oprot.writeFieldBegin(OUR_INVENTORY_FIELD_DESC);
2742
    oprot.writeI64(this.ourInventory);
2743
    oprot.writeFieldEnd();
2744
    oprot.writeFieldBegin(OTHER_INVENTORY_FIELD_DESC);
2745
    oprot.writeI64(this.otherInventory);
2746
    oprot.writeFieldEnd();
2747
    oprot.writeFieldBegin(SECOND_LOWEST_INVENTORY_FIELD_DESC);
2748
    oprot.writeI64(this.secondLowestInventory);
2749
    oprot.writeFieldEnd();
2750
    oprot.writeFieldBegin(OUR_RANK_FIELD_DESC);
2751
    oprot.writeI64(this.ourRank);
2752
    oprot.writeFieldEnd();
2753
    oprot.writeFieldBegin(OUR_OFFER_PRICE_FIELD_DESC);
2754
    oprot.writeDouble(this.ourOfferPrice);
2755
    oprot.writeFieldEnd();
2756
    oprot.writeFieldBegin(OUR_SELLING_PRICE_FIELD_DESC);
2757
    oprot.writeDouble(this.ourSellingPrice);
2758
    oprot.writeFieldEnd();
2759
    oprot.writeFieldBegin(OUR_TP_FIELD_DESC);
2760
    oprot.writeDouble(this.ourTp);
2761
    oprot.writeFieldEnd();
2762
    oprot.writeFieldBegin(OUR_NLC_FIELD_DESC);
2763
    oprot.writeDouble(this.ourNlc);
2764
    oprot.writeFieldEnd();
2765
    if (this.competitiveCategory != null) {
2766
      oprot.writeFieldBegin(COMPETITIVE_CATEGORY_FIELD_DESC);
2767
      oprot.writeI32(this.competitiveCategory.getValue());
2768
      oprot.writeFieldEnd();
2769
    }
2770
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
2771
    oprot.writeI64(this.risky);
2772
    oprot.writeFieldEnd();
2773
    oprot.writeFieldBegin(LOWEST_OFFER_PRICE_FIELD_DESC);
2774
    oprot.writeDouble(this.lowestOfferPrice);
2775
    oprot.writeFieldEnd();
2776
    oprot.writeFieldBegin(LOWEST_SELLING_PRICE_FIELD_DESC);
2777
    oprot.writeDouble(this.lowestSellingPrice);
2778
    oprot.writeFieldEnd();
2779
    oprot.writeFieldBegin(LOWEST_TP_FIELD_DESC);
2780
    oprot.writeDouble(this.lowestTp);
2781
    oprot.writeFieldEnd();
2782
    if (this.lowestSellerName != null) {
2783
      oprot.writeFieldBegin(LOWEST_SELLER_NAME_FIELD_DESC);
2784
      oprot.writeString(this.lowestSellerName);
2785
      oprot.writeFieldEnd();
2786
    }
2787
    oprot.writeFieldBegin(PROPOSED_SELLING_PRICE_FIELD_DESC);
2788
    oprot.writeDouble(this.proposedSellingPrice);
2789
    oprot.writeFieldEnd();
2790
    oprot.writeFieldBegin(PROPOSED_TP_FIELD_DESC);
2791
    oprot.writeDouble(this.proposedTp);
2792
    oprot.writeFieldEnd();
2793
    oprot.writeFieldBegin(TARGET_NLC_FIELD_DESC);
2794
    oprot.writeDouble(this.targetNlc);
2795
    oprot.writeFieldEnd();
2796
    if (this.salesPotential != null) {
2797
      oprot.writeFieldBegin(SALES_POTENTIAL_FIELD_DESC);
2798
      oprot.writeI32(this.salesPotential.getValue());
2799
      oprot.writeFieldEnd();
2800
    }
2801
    if (this.secondLowestSellerName != null) {
2802
      oprot.writeFieldBegin(SECOND_LOWEST_SELLER_NAME_FIELD_DESC);
2803
      oprot.writeString(this.secondLowestSellerName);
2804
      oprot.writeFieldEnd();
2805
    }
2806
    oprot.writeFieldBegin(SECOND_LOWEST_SELLING_PRICE_FIELD_DESC);
2807
    oprot.writeDouble(this.secondLowestSellingPrice);
2808
    oprot.writeFieldEnd();
2809
    oprot.writeFieldBegin(SECOND_LOWEST_OFFER_PRICE_FIELD_DESC);
2810
    oprot.writeDouble(this.secondLowestOfferPrice);
2811
    oprot.writeFieldEnd();
2812
    oprot.writeFieldBegin(SECOND_LOWEST_TP_FIELD_DESC);
2813
    oprot.writeDouble(this.secondLowestTp);
2814
    oprot.writeFieldEnd();
2815
    oprot.writeFieldBegin(MARGIN_INCREASED_POTENTIAL_FIELD_DESC);
2816
    oprot.writeDouble(this.marginIncreasedPotential);
2817
    oprot.writeFieldEnd();
2818
    oprot.writeFieldBegin(MARGIN_FIELD_DESC);
2819
    oprot.writeDouble(this.margin);
2820
    oprot.writeFieldEnd();
2821
    oprot.writeFieldBegin(OUR_ENOUGH_STOCK_FIELD_DESC);
2822
    oprot.writeBool(this.ourEnoughStock);
2823
    oprot.writeFieldEnd();
2824
    oprot.writeFieldBegin(TOTAL_SELLER_FIELD_DESC);
2825
    oprot.writeI64(this.totalSeller);
2826
    oprot.writeFieldEnd();
2827
    oprot.writeFieldBegin(AVERAGE_SALE_FIELD_DESC);
2828
    oprot.writeDouble(this.averageSale);
2829
    oprot.writeFieldEnd();
2830
    oprot.writeFieldBegin(TO_GROUP_FIELD_DESC);
2831
    oprot.writeBool(this.toGroup);
2832
    oprot.writeFieldEnd();
2833
    oprot.writeFieldStop();
2834
    oprot.writeStructEnd();
2835
  }
2836
 
2837
  @Override
2838
  public String toString() {
2839
    StringBuilder sb = new StringBuilder("MarketplaceHistory(");
2840
    boolean first = true;
2841
 
2842
    sb.append("item_id:");
2843
    sb.append(this.item_id);
2844
    first = false;
2845
    if (!first) sb.append(", ");
2846
    sb.append("source:");
2847
    sb.append(this.source);
2848
    first = false;
2849
    if (!first) sb.append(", ");
2850
    sb.append("timestamp:");
2851
    sb.append(this.timestamp);
2852
    first = false;
2853
    if (!first) sb.append(", ");
2854
    sb.append("lowest_possible_tp:");
2855
    sb.append(this.lowest_possible_tp);
2856
    first = false;
2857
    if (!first) sb.append(", ");
2858
    sb.append("lowest_possible_sp:");
2859
    sb.append(this.lowest_possible_sp);
2860
    first = false;
2861
    if (!first) sb.append(", ");
2862
    sb.append("ourInventory:");
2863
    sb.append(this.ourInventory);
2864
    first = false;
2865
    if (!first) sb.append(", ");
2866
    sb.append("otherInventory:");
2867
    sb.append(this.otherInventory);
2868
    first = false;
2869
    if (!first) sb.append(", ");
2870
    sb.append("secondLowestInventory:");
2871
    sb.append(this.secondLowestInventory);
2872
    first = false;
2873
    if (!first) sb.append(", ");
2874
    sb.append("ourRank:");
2875
    sb.append(this.ourRank);
2876
    first = false;
2877
    if (!first) sb.append(", ");
2878
    sb.append("ourOfferPrice:");
2879
    sb.append(this.ourOfferPrice);
2880
    first = false;
2881
    if (!first) sb.append(", ");
2882
    sb.append("ourSellingPrice:");
2883
    sb.append(this.ourSellingPrice);
2884
    first = false;
2885
    if (!first) sb.append(", ");
2886
    sb.append("ourTp:");
2887
    sb.append(this.ourTp);
2888
    first = false;
2889
    if (!first) sb.append(", ");
2890
    sb.append("ourNlc:");
2891
    sb.append(this.ourNlc);
2892
    first = false;
2893
    if (!first) sb.append(", ");
2894
    sb.append("competitiveCategory:");
2895
    if (this.competitiveCategory == null) {
2896
      sb.append("null");
2897
    } else {
2898
      sb.append(this.competitiveCategory);
2899
    }
2900
    first = false;
2901
    if (!first) sb.append(", ");
2902
    sb.append("risky:");
2903
    sb.append(this.risky);
2904
    first = false;
2905
    if (!first) sb.append(", ");
2906
    sb.append("lowestOfferPrice:");
2907
    sb.append(this.lowestOfferPrice);
2908
    first = false;
2909
    if (!first) sb.append(", ");
2910
    sb.append("lowestSellingPrice:");
2911
    sb.append(this.lowestSellingPrice);
2912
    first = false;
2913
    if (!first) sb.append(", ");
2914
    sb.append("lowestTp:");
2915
    sb.append(this.lowestTp);
2916
    first = false;
2917
    if (!first) sb.append(", ");
2918
    sb.append("lowestSellerName:");
2919
    if (this.lowestSellerName == null) {
2920
      sb.append("null");
2921
    } else {
2922
      sb.append(this.lowestSellerName);
2923
    }
2924
    first = false;
2925
    if (!first) sb.append(", ");
2926
    sb.append("proposedSellingPrice:");
2927
    sb.append(this.proposedSellingPrice);
2928
    first = false;
2929
    if (!first) sb.append(", ");
2930
    sb.append("proposedTp:");
2931
    sb.append(this.proposedTp);
2932
    first = false;
2933
    if (!first) sb.append(", ");
2934
    sb.append("targetNlc:");
2935
    sb.append(this.targetNlc);
2936
    first = false;
2937
    if (!first) sb.append(", ");
2938
    sb.append("salesPotential:");
2939
    if (this.salesPotential == null) {
2940
      sb.append("null");
2941
    } else {
2942
      sb.append(this.salesPotential);
2943
    }
2944
    first = false;
2945
    if (!first) sb.append(", ");
2946
    sb.append("secondLowestSellerName:");
2947
    if (this.secondLowestSellerName == null) {
2948
      sb.append("null");
2949
    } else {
2950
      sb.append(this.secondLowestSellerName);
2951
    }
2952
    first = false;
2953
    if (!first) sb.append(", ");
2954
    sb.append("secondLowestSellingPrice:");
2955
    sb.append(this.secondLowestSellingPrice);
2956
    first = false;
2957
    if (!first) sb.append(", ");
2958
    sb.append("secondLowestOfferPrice:");
2959
    sb.append(this.secondLowestOfferPrice);
2960
    first = false;
2961
    if (!first) sb.append(", ");
2962
    sb.append("secondLowestTp:");
2963
    sb.append(this.secondLowestTp);
2964
    first = false;
2965
    if (!first) sb.append(", ");
2966
    sb.append("marginIncreasedPotential:");
2967
    sb.append(this.marginIncreasedPotential);
2968
    first = false;
2969
    if (!first) sb.append(", ");
2970
    sb.append("margin:");
2971
    sb.append(this.margin);
2972
    first = false;
2973
    if (!first) sb.append(", ");
2974
    sb.append("ourEnoughStock:");
2975
    sb.append(this.ourEnoughStock);
2976
    first = false;
2977
    if (!first) sb.append(", ");
2978
    sb.append("totalSeller:");
2979
    sb.append(this.totalSeller);
2980
    first = false;
2981
    if (!first) sb.append(", ");
2982
    sb.append("averageSale:");
2983
    sb.append(this.averageSale);
2984
    first = false;
2985
    if (!first) sb.append(", ");
2986
    sb.append("toGroup:");
2987
    sb.append(this.toGroup);
2988
    first = false;
2989
    sb.append(")");
2990
    return sb.toString();
2991
  }
2992
 
2993
  public void validate() throws org.apache.thrift.TException {
2994
    // check for required fields
2995
  }
2996
 
2997
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2998
    try {
2999
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3000
    } catch (org.apache.thrift.TException te) {
3001
      throw new java.io.IOException(te);
3002
    }
3003
  }
3004
 
3005
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3006
    try {
3007
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3008
      __isset_bit_vector = new BitSet(1);
3009
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3010
    } catch (org.apache.thrift.TException te) {
3011
      throw new java.io.IOException(te);
3012
    }
3013
  }
3014
 
3015
}
3016