Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.catalog;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class MarketplaceHistory implements org.apache.thrift.TBase<MarketplaceHistory, MarketplaceHistory._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MarketplaceHistory");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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);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);private long item_id; // requiredprivate long source; // requiredprivate long timestamp; // requiredprivate double lowest_possible_tp; // requiredprivate double lowest_possible_sp; // requiredprivate long ourInventory; // requiredprivate long otherInventory; // requiredprivate long secondLowestInventory; // requiredprivate long ourRank; // requiredprivate double ourOfferPrice; // requiredprivate double ourSellingPrice; // requiredprivate double ourTp; // requiredprivate double ourNlc; // requiredprivate CompetitionCategory competitiveCategory; // requiredprivate long risky; // requiredprivate double lowestOfferPrice; // requiredprivate double lowestSellingPrice; // requiredprivate double lowestTp; // requiredprivate String lowestSellerName; // requiredprivate double proposedSellingPrice; // requiredprivate double proposedTp; // requiredprivate double targetNlc; // requiredprivate SalesPotential salesPotential; // requiredprivate String secondLowestSellerName; // requiredprivate double secondLowestSellingPrice; // requiredprivate double secondLowestOfferPrice; // requiredprivate double secondLowestTp; // requiredprivate double marginIncreasedPotential; // requiredprivate double margin; // requiredprivate boolean ourEnoughStock; // requiredprivate long totalSeller; // requiredprivate double averageSale; // requiredprivate boolean toGroup; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),SOURCE((short)2, "source"),TIMESTAMP((short)3, "timestamp"),LOWEST_POSSIBLE_TP((short)4, "lowest_possible_tp"),LOWEST_POSSIBLE_SP((short)5, "lowest_possible_sp"),OUR_INVENTORY((short)6, "ourInventory"),OTHER_INVENTORY((short)7, "otherInventory"),SECOND_LOWEST_INVENTORY((short)8, "secondLowestInventory"),OUR_RANK((short)9, "ourRank"),OUR_OFFER_PRICE((short)10, "ourOfferPrice"),OUR_SELLING_PRICE((short)11, "ourSellingPrice"),OUR_TP((short)12, "ourTp"),OUR_NLC((short)13, "ourNlc"),/**** @see CompetitionCategory*/COMPETITIVE_CATEGORY((short)14, "competitiveCategory"),RISKY((short)15, "risky"),LOWEST_OFFER_PRICE((short)16, "lowestOfferPrice"),LOWEST_SELLING_PRICE((short)17, "lowestSellingPrice"),LOWEST_TP((short)18, "lowestTp"),LOWEST_SELLER_NAME((short)19, "lowestSellerName"),PROPOSED_SELLING_PRICE((short)20, "proposedSellingPrice"),PROPOSED_TP((short)21, "proposedTp"),TARGET_NLC((short)22, "targetNlc"),/**** @see SalesPotential*/SALES_POTENTIAL((short)23, "salesPotential"),SECOND_LOWEST_SELLER_NAME((short)24, "secondLowestSellerName"),SECOND_LOWEST_SELLING_PRICE((short)25, "secondLowestSellingPrice"),SECOND_LOWEST_OFFER_PRICE((short)26, "secondLowestOfferPrice"),SECOND_LOWEST_TP((short)27, "secondLowestTp"),MARGIN_INCREASED_POTENTIAL((short)28, "marginIncreasedPotential"),MARGIN((short)29, "margin"),OUR_ENOUGH_STOCK((short)30, "ourEnoughStock"),TOTAL_SELLER((short)31, "totalSeller"),AVERAGE_SALE((short)32, "averageSale"),TO_GROUP((short)33, "toGroup");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCEreturn SOURCE;case 3: // TIMESTAMPreturn TIMESTAMP;case 4: // LOWEST_POSSIBLE_TPreturn LOWEST_POSSIBLE_TP;case 5: // LOWEST_POSSIBLE_SPreturn LOWEST_POSSIBLE_SP;case 6: // OUR_INVENTORYreturn OUR_INVENTORY;case 7: // OTHER_INVENTORYreturn OTHER_INVENTORY;case 8: // SECOND_LOWEST_INVENTORYreturn SECOND_LOWEST_INVENTORY;case 9: // OUR_RANKreturn OUR_RANK;case 10: // OUR_OFFER_PRICEreturn OUR_OFFER_PRICE;case 11: // OUR_SELLING_PRICEreturn OUR_SELLING_PRICE;case 12: // OUR_TPreturn OUR_TP;case 13: // OUR_NLCreturn OUR_NLC;case 14: // COMPETITIVE_CATEGORYreturn COMPETITIVE_CATEGORY;case 15: // RISKYreturn RISKY;case 16: // LOWEST_OFFER_PRICEreturn LOWEST_OFFER_PRICE;case 17: // LOWEST_SELLING_PRICEreturn LOWEST_SELLING_PRICE;case 18: // LOWEST_TPreturn LOWEST_TP;case 19: // LOWEST_SELLER_NAMEreturn LOWEST_SELLER_NAME;case 20: // PROPOSED_SELLING_PRICEreturn PROPOSED_SELLING_PRICE;case 21: // PROPOSED_TPreturn PROPOSED_TP;case 22: // TARGET_NLCreturn TARGET_NLC;case 23: // SALES_POTENTIALreturn SALES_POTENTIAL;case 24: // SECOND_LOWEST_SELLER_NAMEreturn SECOND_LOWEST_SELLER_NAME;case 25: // SECOND_LOWEST_SELLING_PRICEreturn SECOND_LOWEST_SELLING_PRICE;case 26: // SECOND_LOWEST_OFFER_PRICEreturn SECOND_LOWEST_OFFER_PRICE;case 27: // SECOND_LOWEST_TPreturn SECOND_LOWEST_TP;case 28: // MARGIN_INCREASED_POTENTIALreturn MARGIN_INCREASED_POTENTIAL;case 29: // MARGINreturn MARGIN;case 30: // OUR_ENOUGH_STOCKreturn OUR_ENOUGH_STOCK;case 31: // TOTAL_SELLERreturn TOTAL_SELLER;case 32: // AVERAGE_SALEreturn AVERAGE_SALE;case 33: // TO_GROUPreturn TO_GROUP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEM_ID_ISSET_ID = 0;private static final int __SOURCE_ISSET_ID = 1;private static final int __TIMESTAMP_ISSET_ID = 2;private static final int __LOWEST_POSSIBLE_TP_ISSET_ID = 3;private static final int __LOWEST_POSSIBLE_SP_ISSET_ID = 4;private static final int __OURINVENTORY_ISSET_ID = 5;private static final int __OTHERINVENTORY_ISSET_ID = 6;private static final int __SECONDLOWESTINVENTORY_ISSET_ID = 7;private static final int __OURRANK_ISSET_ID = 8;private static final int __OUROFFERPRICE_ISSET_ID = 9;private static final int __OURSELLINGPRICE_ISSET_ID = 10;private static final int __OURTP_ISSET_ID = 11;private static final int __OURNLC_ISSET_ID = 12;private static final int __RISKY_ISSET_ID = 13;private static final int __LOWESTOFFERPRICE_ISSET_ID = 14;private static final int __LOWESTSELLINGPRICE_ISSET_ID = 15;private static final int __LOWESTTP_ISSET_ID = 16;private static final int __PROPOSEDSELLINGPRICE_ISSET_ID = 17;private static final int __PROPOSEDTP_ISSET_ID = 18;private static final int __TARGETNLC_ISSET_ID = 19;private static final int __SECONDLOWESTSELLINGPRICE_ISSET_ID = 20;private static final int __SECONDLOWESTOFFERPRICE_ISSET_ID = 21;private static final int __SECONDLOWESTTP_ISSET_ID = 22;private static final int __MARGININCREASEDPOTENTIAL_ISSET_ID = 23;private static final int __MARGIN_ISSET_ID = 24;private static final int __OURENOUGHSTOCK_ISSET_ID = 25;private static final int __TOTALSELLER_ISSET_ID = 26;private static final int __AVERAGESALE_ISSET_ID = 27;private static final int __TOGROUP_ISSET_ID = 28;private BitSet __isset_bit_vector = new BitSet(29);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LOWEST_POSSIBLE_TP, new org.apache.thrift.meta_data.FieldMetaData("lowest_possible_tp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LOWEST_POSSIBLE_SP, new org.apache.thrift.meta_data.FieldMetaData("lowest_possible_sp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OUR_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("ourInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OTHER_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("otherInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SECOND_LOWEST_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("secondLowestInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OUR_RANK, new org.apache.thrift.meta_data.FieldMetaData("ourRank", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OUR_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OUR_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OUR_TP, new org.apache.thrift.meta_data.FieldMetaData("ourTp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OUR_NLC, new org.apache.thrift.meta_data.FieldMetaData("ourNlc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.COMPETITIVE_CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("competitiveCategory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CompetitionCategory.class)));tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LOWEST_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LOWEST_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("lowestSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LOWEST_TP, new org.apache.thrift.meta_data.FieldMetaData("lowestTp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LOWEST_SELLER_NAME, new org.apache.thrift.meta_data.FieldMetaData("lowestSellerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PROPOSED_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("proposedSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.PROPOSED_TP, new org.apache.thrift.meta_data.FieldMetaData("proposedTp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.TARGET_NLC, new org.apache.thrift.meta_data.FieldMetaData("targetNlc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.SALES_POTENTIAL, new org.apache.thrift.meta_data.FieldMetaData("salesPotential", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SalesPotential.class)));tmpMap.put(_Fields.SECOND_LOWEST_SELLER_NAME, new org.apache.thrift.meta_data.FieldMetaData("secondLowestSellerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SECOND_LOWEST_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("secondLowestSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.SECOND_LOWEST_OFFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("secondLowestOfferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.SECOND_LOWEST_TP, new org.apache.thrift.meta_data.FieldMetaData("secondLowestTp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MARGIN_INCREASED_POTENTIAL, new org.apache.thrift.meta_data.FieldMetaData("marginIncreasedPotential", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MARGIN, new org.apache.thrift.meta_data.FieldMetaData("margin", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OUR_ENOUGH_STOCK, new org.apache.thrift.meta_data.FieldMetaData("ourEnoughStock", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.TOTAL_SELLER, new org.apache.thrift.meta_data.FieldMetaData("totalSeller", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.AVERAGE_SALE, new org.apache.thrift.meta_data.FieldMetaData("averageSale", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.TO_GROUP, new org.apache.thrift.meta_data.FieldMetaData("toGroup", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MarketplaceHistory.class, metaDataMap);}public MarketplaceHistory() {}public MarketplaceHistory(long item_id,long source,long timestamp,double lowest_possible_tp,double lowest_possible_sp,long ourInventory,long otherInventory,long secondLowestInventory,long ourRank,double ourOfferPrice,double ourSellingPrice,double ourTp,double ourNlc,CompetitionCategory competitiveCategory,long risky,double lowestOfferPrice,double lowestSellingPrice,double lowestTp,String lowestSellerName,double proposedSellingPrice,double proposedTp,double targetNlc,SalesPotential salesPotential,String secondLowestSellerName,double secondLowestSellingPrice,double secondLowestOfferPrice,double secondLowestTp,double marginIncreasedPotential,double margin,boolean ourEnoughStock,long totalSeller,double averageSale,boolean toGroup){this();this.item_id = item_id;setItem_idIsSet(true);this.source = source;setSourceIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);this.lowest_possible_tp = lowest_possible_tp;setLowest_possible_tpIsSet(true);this.lowest_possible_sp = lowest_possible_sp;setLowest_possible_spIsSet(true);this.ourInventory = ourInventory;setOurInventoryIsSet(true);this.otherInventory = otherInventory;setOtherInventoryIsSet(true);this.secondLowestInventory = secondLowestInventory;setSecondLowestInventoryIsSet(true);this.ourRank = ourRank;setOurRankIsSet(true);this.ourOfferPrice = ourOfferPrice;setOurOfferPriceIsSet(true);this.ourSellingPrice = ourSellingPrice;setOurSellingPriceIsSet(true);this.ourTp = ourTp;setOurTpIsSet(true);this.ourNlc = ourNlc;setOurNlcIsSet(true);this.competitiveCategory = competitiveCategory;this.risky = risky;setRiskyIsSet(true);this.lowestOfferPrice = lowestOfferPrice;setLowestOfferPriceIsSet(true);this.lowestSellingPrice = lowestSellingPrice;setLowestSellingPriceIsSet(true);this.lowestTp = lowestTp;setLowestTpIsSet(true);this.lowestSellerName = lowestSellerName;this.proposedSellingPrice = proposedSellingPrice;setProposedSellingPriceIsSet(true);this.proposedTp = proposedTp;setProposedTpIsSet(true);this.targetNlc = targetNlc;setTargetNlcIsSet(true);this.salesPotential = salesPotential;this.secondLowestSellerName = secondLowestSellerName;this.secondLowestSellingPrice = secondLowestSellingPrice;setSecondLowestSellingPriceIsSet(true);this.secondLowestOfferPrice = secondLowestOfferPrice;setSecondLowestOfferPriceIsSet(true);this.secondLowestTp = secondLowestTp;setSecondLowestTpIsSet(true);this.marginIncreasedPotential = marginIncreasedPotential;setMarginIncreasedPotentialIsSet(true);this.margin = margin;setMarginIsSet(true);this.ourEnoughStock = ourEnoughStock;setOurEnoughStockIsSet(true);this.totalSeller = totalSeller;setTotalSellerIsSet(true);this.averageSale = averageSale;setAverageSaleIsSet(true);this.toGroup = toGroup;setToGroupIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public MarketplaceHistory(MarketplaceHistory other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.source = other.source;this.timestamp = other.timestamp;this.lowest_possible_tp = other.lowest_possible_tp;this.lowest_possible_sp = other.lowest_possible_sp;this.ourInventory = other.ourInventory;this.otherInventory = other.otherInventory;this.secondLowestInventory = other.secondLowestInventory;this.ourRank = other.ourRank;this.ourOfferPrice = other.ourOfferPrice;this.ourSellingPrice = other.ourSellingPrice;this.ourTp = other.ourTp;this.ourNlc = other.ourNlc;if (other.isSetCompetitiveCategory()) {this.competitiveCategory = other.competitiveCategory;}this.risky = other.risky;this.lowestOfferPrice = other.lowestOfferPrice;this.lowestSellingPrice = other.lowestSellingPrice;this.lowestTp = other.lowestTp;if (other.isSetLowestSellerName()) {this.lowestSellerName = other.lowestSellerName;}this.proposedSellingPrice = other.proposedSellingPrice;this.proposedTp = other.proposedTp;this.targetNlc = other.targetNlc;if (other.isSetSalesPotential()) {this.salesPotential = other.salesPotential;}if (other.isSetSecondLowestSellerName()) {this.secondLowestSellerName = other.secondLowestSellerName;}this.secondLowestSellingPrice = other.secondLowestSellingPrice;this.secondLowestOfferPrice = other.secondLowestOfferPrice;this.secondLowestTp = other.secondLowestTp;this.marginIncreasedPotential = other.marginIncreasedPotential;this.margin = other.margin;this.ourEnoughStock = other.ourEnoughStock;this.totalSeller = other.totalSeller;this.averageSale = other.averageSale;this.toGroup = other.toGroup;}public MarketplaceHistory deepCopy() {return new MarketplaceHistory(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setSourceIsSet(false);this.source = 0;setTimestampIsSet(false);this.timestamp = 0;setLowest_possible_tpIsSet(false);this.lowest_possible_tp = 0.0;setLowest_possible_spIsSet(false);this.lowest_possible_sp = 0.0;setOurInventoryIsSet(false);this.ourInventory = 0;setOtherInventoryIsSet(false);this.otherInventory = 0;setSecondLowestInventoryIsSet(false);this.secondLowestInventory = 0;setOurRankIsSet(false);this.ourRank = 0;setOurOfferPriceIsSet(false);this.ourOfferPrice = 0.0;setOurSellingPriceIsSet(false);this.ourSellingPrice = 0.0;setOurTpIsSet(false);this.ourTp = 0.0;setOurNlcIsSet(false);this.ourNlc = 0.0;this.competitiveCategory = null;setRiskyIsSet(false);this.risky = 0;setLowestOfferPriceIsSet(false);this.lowestOfferPrice = 0.0;setLowestSellingPriceIsSet(false);this.lowestSellingPrice = 0.0;setLowestTpIsSet(false);this.lowestTp = 0.0;this.lowestSellerName = null;setProposedSellingPriceIsSet(false);this.proposedSellingPrice = 0.0;setProposedTpIsSet(false);this.proposedTp = 0.0;setTargetNlcIsSet(false);this.targetNlc = 0.0;this.salesPotential = null;this.secondLowestSellerName = null;setSecondLowestSellingPriceIsSet(false);this.secondLowestSellingPrice = 0.0;setSecondLowestOfferPriceIsSet(false);this.secondLowestOfferPrice = 0.0;setSecondLowestTpIsSet(false);this.secondLowestTp = 0.0;setMarginIncreasedPotentialIsSet(false);this.marginIncreasedPotential = 0.0;setMarginIsSet(false);this.margin = 0.0;setOurEnoughStockIsSet(false);this.ourEnoughStock = false;setTotalSellerIsSet(false);this.totalSeller = 0;setAverageSaleIsSet(false);this.averageSale = 0.0;setToGroupIsSet(false);this.toGroup = false;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public double getLowest_possible_tp() {return this.lowest_possible_tp;}public void setLowest_possible_tp(double lowest_possible_tp) {this.lowest_possible_tp = lowest_possible_tp;setLowest_possible_tpIsSet(true);}public void unsetLowest_possible_tp() {__isset_bit_vector.clear(__LOWEST_POSSIBLE_TP_ISSET_ID);}/** Returns true if field lowest_possible_tp is set (has been assigned a value) and false otherwise */public boolean isSetLowest_possible_tp() {return __isset_bit_vector.get(__LOWEST_POSSIBLE_TP_ISSET_ID);}public void setLowest_possible_tpIsSet(boolean value) {__isset_bit_vector.set(__LOWEST_POSSIBLE_TP_ISSET_ID, value);}public double getLowest_possible_sp() {return this.lowest_possible_sp;}public void setLowest_possible_sp(double lowest_possible_sp) {this.lowest_possible_sp = lowest_possible_sp;setLowest_possible_spIsSet(true);}public void unsetLowest_possible_sp() {__isset_bit_vector.clear(__LOWEST_POSSIBLE_SP_ISSET_ID);}/** Returns true if field lowest_possible_sp is set (has been assigned a value) and false otherwise */public boolean isSetLowest_possible_sp() {return __isset_bit_vector.get(__LOWEST_POSSIBLE_SP_ISSET_ID);}public void setLowest_possible_spIsSet(boolean value) {__isset_bit_vector.set(__LOWEST_POSSIBLE_SP_ISSET_ID, value);}public long getOurInventory() {return this.ourInventory;}public void setOurInventory(long ourInventory) {this.ourInventory = ourInventory;setOurInventoryIsSet(true);}public void unsetOurInventory() {__isset_bit_vector.clear(__OURINVENTORY_ISSET_ID);}/** Returns true if field ourInventory is set (has been assigned a value) and false otherwise */public boolean isSetOurInventory() {return __isset_bit_vector.get(__OURINVENTORY_ISSET_ID);}public void setOurInventoryIsSet(boolean value) {__isset_bit_vector.set(__OURINVENTORY_ISSET_ID, value);}public long getOtherInventory() {return this.otherInventory;}public void setOtherInventory(long otherInventory) {this.otherInventory = otherInventory;setOtherInventoryIsSet(true);}public void unsetOtherInventory() {__isset_bit_vector.clear(__OTHERINVENTORY_ISSET_ID);}/** Returns true if field otherInventory is set (has been assigned a value) and false otherwise */public boolean isSetOtherInventory() {return __isset_bit_vector.get(__OTHERINVENTORY_ISSET_ID);}public void setOtherInventoryIsSet(boolean value) {__isset_bit_vector.set(__OTHERINVENTORY_ISSET_ID, value);}public long getSecondLowestInventory() {return this.secondLowestInventory;}public void setSecondLowestInventory(long secondLowestInventory) {this.secondLowestInventory = secondLowestInventory;setSecondLowestInventoryIsSet(true);}public void unsetSecondLowestInventory() {__isset_bit_vector.clear(__SECONDLOWESTINVENTORY_ISSET_ID);}/** Returns true if field secondLowestInventory is set (has been assigned a value) and false otherwise */public boolean isSetSecondLowestInventory() {return __isset_bit_vector.get(__SECONDLOWESTINVENTORY_ISSET_ID);}public void setSecondLowestInventoryIsSet(boolean value) {__isset_bit_vector.set(__SECONDLOWESTINVENTORY_ISSET_ID, value);}public long getOurRank() {return this.ourRank;}public void setOurRank(long ourRank) {this.ourRank = ourRank;setOurRankIsSet(true);}public void unsetOurRank() {__isset_bit_vector.clear(__OURRANK_ISSET_ID);}/** Returns true if field ourRank is set (has been assigned a value) and false otherwise */public boolean isSetOurRank() {return __isset_bit_vector.get(__OURRANK_ISSET_ID);}public void setOurRankIsSet(boolean value) {__isset_bit_vector.set(__OURRANK_ISSET_ID, value);}public double getOurOfferPrice() {return this.ourOfferPrice;}public void setOurOfferPrice(double ourOfferPrice) {this.ourOfferPrice = ourOfferPrice;setOurOfferPriceIsSet(true);}public void unsetOurOfferPrice() {__isset_bit_vector.clear(__OUROFFERPRICE_ISSET_ID);}/** Returns true if field ourOfferPrice is set (has been assigned a value) and false otherwise */public boolean isSetOurOfferPrice() {return __isset_bit_vector.get(__OUROFFERPRICE_ISSET_ID);}public void setOurOfferPriceIsSet(boolean value) {__isset_bit_vector.set(__OUROFFERPRICE_ISSET_ID, value);}public double getOurSellingPrice() {return this.ourSellingPrice;}public void setOurSellingPrice(double ourSellingPrice) {this.ourSellingPrice = ourSellingPrice;setOurSellingPriceIsSet(true);}public void unsetOurSellingPrice() {__isset_bit_vector.clear(__OURSELLINGPRICE_ISSET_ID);}/** Returns true if field ourSellingPrice is set (has been assigned a value) and false otherwise */public boolean isSetOurSellingPrice() {return __isset_bit_vector.get(__OURSELLINGPRICE_ISSET_ID);}public void setOurSellingPriceIsSet(boolean value) {__isset_bit_vector.set(__OURSELLINGPRICE_ISSET_ID, value);}public double getOurTp() {return this.ourTp;}public void setOurTp(double ourTp) {this.ourTp = ourTp;setOurTpIsSet(true);}public void unsetOurTp() {__isset_bit_vector.clear(__OURTP_ISSET_ID);}/** Returns true if field ourTp is set (has been assigned a value) and false otherwise */public boolean isSetOurTp() {return __isset_bit_vector.get(__OURTP_ISSET_ID);}public void setOurTpIsSet(boolean value) {__isset_bit_vector.set(__OURTP_ISSET_ID, value);}public double getOurNlc() {return this.ourNlc;}public void setOurNlc(double ourNlc) {this.ourNlc = ourNlc;setOurNlcIsSet(true);}public void unsetOurNlc() {__isset_bit_vector.clear(__OURNLC_ISSET_ID);}/** Returns true if field ourNlc is set (has been assigned a value) and false otherwise */public boolean isSetOurNlc() {return __isset_bit_vector.get(__OURNLC_ISSET_ID);}public void setOurNlcIsSet(boolean value) {__isset_bit_vector.set(__OURNLC_ISSET_ID, value);}/**** @see CompetitionCategory*/public CompetitionCategory getCompetitiveCategory() {return this.competitiveCategory;}/**** @see CompetitionCategory*/public void setCompetitiveCategory(CompetitionCategory competitiveCategory) {this.competitiveCategory = competitiveCategory;}public void unsetCompetitiveCategory() {this.competitiveCategory = null;}/** Returns true if field competitiveCategory is set (has been assigned a value) and false otherwise */public boolean isSetCompetitiveCategory() {return this.competitiveCategory != null;}public void setCompetitiveCategoryIsSet(boolean value) {if (!value) {this.competitiveCategory = null;}}public long getRisky() {return this.risky;}public void setRisky(long risky) {this.risky = risky;setRiskyIsSet(true);}public void unsetRisky() {__isset_bit_vector.clear(__RISKY_ISSET_ID);}/** Returns true if field risky is set (has been assigned a value) and false otherwise */public boolean isSetRisky() {return __isset_bit_vector.get(__RISKY_ISSET_ID);}public void setRiskyIsSet(boolean value) {__isset_bit_vector.set(__RISKY_ISSET_ID, value);}public double getLowestOfferPrice() {return this.lowestOfferPrice;}public void setLowestOfferPrice(double lowestOfferPrice) {this.lowestOfferPrice = lowestOfferPrice;setLowestOfferPriceIsSet(true);}public void unsetLowestOfferPrice() {__isset_bit_vector.clear(__LOWESTOFFERPRICE_ISSET_ID);}/** Returns true if field lowestOfferPrice is set (has been assigned a value) and false otherwise */public boolean isSetLowestOfferPrice() {return __isset_bit_vector.get(__LOWESTOFFERPRICE_ISSET_ID);}public void setLowestOfferPriceIsSet(boolean value) {__isset_bit_vector.set(__LOWESTOFFERPRICE_ISSET_ID, value);}public double getLowestSellingPrice() {return this.lowestSellingPrice;}public void setLowestSellingPrice(double lowestSellingPrice) {this.lowestSellingPrice = lowestSellingPrice;setLowestSellingPriceIsSet(true);}public void unsetLowestSellingPrice() {__isset_bit_vector.clear(__LOWESTSELLINGPRICE_ISSET_ID);}/** Returns true if field lowestSellingPrice is set (has been assigned a value) and false otherwise */public boolean isSetLowestSellingPrice() {return __isset_bit_vector.get(__LOWESTSELLINGPRICE_ISSET_ID);}public void setLowestSellingPriceIsSet(boolean value) {__isset_bit_vector.set(__LOWESTSELLINGPRICE_ISSET_ID, value);}public double getLowestTp() {return this.lowestTp;}public void setLowestTp(double lowestTp) {this.lowestTp = lowestTp;setLowestTpIsSet(true);}public void unsetLowestTp() {__isset_bit_vector.clear(__LOWESTTP_ISSET_ID);}/** Returns true if field lowestTp is set (has been assigned a value) and false otherwise */public boolean isSetLowestTp() {return __isset_bit_vector.get(__LOWESTTP_ISSET_ID);}public void setLowestTpIsSet(boolean value) {__isset_bit_vector.set(__LOWESTTP_ISSET_ID, value);}public String getLowestSellerName() {return this.lowestSellerName;}public void setLowestSellerName(String lowestSellerName) {this.lowestSellerName = lowestSellerName;}public void unsetLowestSellerName() {this.lowestSellerName = null;}/** Returns true if field lowestSellerName is set (has been assigned a value) and false otherwise */public boolean isSetLowestSellerName() {return this.lowestSellerName != null;}public void setLowestSellerNameIsSet(boolean value) {if (!value) {this.lowestSellerName = null;}}public double getProposedSellingPrice() {return this.proposedSellingPrice;}public void setProposedSellingPrice(double proposedSellingPrice) {this.proposedSellingPrice = proposedSellingPrice;setProposedSellingPriceIsSet(true);}public void unsetProposedSellingPrice() {__isset_bit_vector.clear(__PROPOSEDSELLINGPRICE_ISSET_ID);}/** Returns true if field proposedSellingPrice is set (has been assigned a value) and false otherwise */public boolean isSetProposedSellingPrice() {return __isset_bit_vector.get(__PROPOSEDSELLINGPRICE_ISSET_ID);}public void setProposedSellingPriceIsSet(boolean value) {__isset_bit_vector.set(__PROPOSEDSELLINGPRICE_ISSET_ID, value);}public double getProposedTp() {return this.proposedTp;}public void setProposedTp(double proposedTp) {this.proposedTp = proposedTp;setProposedTpIsSet(true);}public void unsetProposedTp() {__isset_bit_vector.clear(__PROPOSEDTP_ISSET_ID);}/** Returns true if field proposedTp is set (has been assigned a value) and false otherwise */public boolean isSetProposedTp() {return __isset_bit_vector.get(__PROPOSEDTP_ISSET_ID);}public void setProposedTpIsSet(boolean value) {__isset_bit_vector.set(__PROPOSEDTP_ISSET_ID, value);}public double getTargetNlc() {return this.targetNlc;}public void setTargetNlc(double targetNlc) {this.targetNlc = targetNlc;setTargetNlcIsSet(true);}public void unsetTargetNlc() {__isset_bit_vector.clear(__TARGETNLC_ISSET_ID);}/** Returns true if field targetNlc is set (has been assigned a value) and false otherwise */public boolean isSetTargetNlc() {return __isset_bit_vector.get(__TARGETNLC_ISSET_ID);}public void setTargetNlcIsSet(boolean value) {__isset_bit_vector.set(__TARGETNLC_ISSET_ID, value);}/**** @see SalesPotential*/public SalesPotential getSalesPotential() {return this.salesPotential;}/**** @see SalesPotential*/public void setSalesPotential(SalesPotential salesPotential) {this.salesPotential = salesPotential;}public void unsetSalesPotential() {this.salesPotential = null;}/** Returns true if field salesPotential is set (has been assigned a value) and false otherwise */public boolean isSetSalesPotential() {return this.salesPotential != null;}public void setSalesPotentialIsSet(boolean value) {if (!value) {this.salesPotential = null;}}public String getSecondLowestSellerName() {return this.secondLowestSellerName;}public void setSecondLowestSellerName(String secondLowestSellerName) {this.secondLowestSellerName = secondLowestSellerName;}public void unsetSecondLowestSellerName() {this.secondLowestSellerName = null;}/** Returns true if field secondLowestSellerName is set (has been assigned a value) and false otherwise */public boolean isSetSecondLowestSellerName() {return this.secondLowestSellerName != null;}public void setSecondLowestSellerNameIsSet(boolean value) {if (!value) {this.secondLowestSellerName = null;}}public double getSecondLowestSellingPrice() {return this.secondLowestSellingPrice;}public void setSecondLowestSellingPrice(double secondLowestSellingPrice) {this.secondLowestSellingPrice = secondLowestSellingPrice;setSecondLowestSellingPriceIsSet(true);}public void unsetSecondLowestSellingPrice() {__isset_bit_vector.clear(__SECONDLOWESTSELLINGPRICE_ISSET_ID);}/** Returns true if field secondLowestSellingPrice is set (has been assigned a value) and false otherwise */public boolean isSetSecondLowestSellingPrice() {return __isset_bit_vector.get(__SECONDLOWESTSELLINGPRICE_ISSET_ID);}public void setSecondLowestSellingPriceIsSet(boolean value) {__isset_bit_vector.set(__SECONDLOWESTSELLINGPRICE_ISSET_ID, value);}public double getSecondLowestOfferPrice() {return this.secondLowestOfferPrice;}public void setSecondLowestOfferPrice(double secondLowestOfferPrice) {this.secondLowestOfferPrice = secondLowestOfferPrice;setSecondLowestOfferPriceIsSet(true);}public void unsetSecondLowestOfferPrice() {__isset_bit_vector.clear(__SECONDLOWESTOFFERPRICE_ISSET_ID);}/** Returns true if field secondLowestOfferPrice is set (has been assigned a value) and false otherwise */public boolean isSetSecondLowestOfferPrice() {return __isset_bit_vector.get(__SECONDLOWESTOFFERPRICE_ISSET_ID);}public void setSecondLowestOfferPriceIsSet(boolean value) {__isset_bit_vector.set(__SECONDLOWESTOFFERPRICE_ISSET_ID, value);}public double getSecondLowestTp() {return this.secondLowestTp;}public void setSecondLowestTp(double secondLowestTp) {this.secondLowestTp = secondLowestTp;setSecondLowestTpIsSet(true);}public void unsetSecondLowestTp() {__isset_bit_vector.clear(__SECONDLOWESTTP_ISSET_ID);}/** Returns true if field secondLowestTp is set (has been assigned a value) and false otherwise */public boolean isSetSecondLowestTp() {return __isset_bit_vector.get(__SECONDLOWESTTP_ISSET_ID);}public void setSecondLowestTpIsSet(boolean value) {__isset_bit_vector.set(__SECONDLOWESTTP_ISSET_ID, value);}public double getMarginIncreasedPotential() {return this.marginIncreasedPotential;}public void setMarginIncreasedPotential(double marginIncreasedPotential) {this.marginIncreasedPotential = marginIncreasedPotential;setMarginIncreasedPotentialIsSet(true);}public void unsetMarginIncreasedPotential() {__isset_bit_vector.clear(__MARGININCREASEDPOTENTIAL_ISSET_ID);}/** Returns true if field marginIncreasedPotential is set (has been assigned a value) and false otherwise */public boolean isSetMarginIncreasedPotential() {return __isset_bit_vector.get(__MARGININCREASEDPOTENTIAL_ISSET_ID);}public void setMarginIncreasedPotentialIsSet(boolean value) {__isset_bit_vector.set(__MARGININCREASEDPOTENTIAL_ISSET_ID, value);}public double getMargin() {return this.margin;}public void setMargin(double margin) {this.margin = margin;setMarginIsSet(true);}public void unsetMargin() {__isset_bit_vector.clear(__MARGIN_ISSET_ID);}/** Returns true if field margin is set (has been assigned a value) and false otherwise */public boolean isSetMargin() {return __isset_bit_vector.get(__MARGIN_ISSET_ID);}public void setMarginIsSet(boolean value) {__isset_bit_vector.set(__MARGIN_ISSET_ID, value);}public boolean isOurEnoughStock() {return this.ourEnoughStock;}public void setOurEnoughStock(boolean ourEnoughStock) {this.ourEnoughStock = ourEnoughStock;setOurEnoughStockIsSet(true);}public void unsetOurEnoughStock() {__isset_bit_vector.clear(__OURENOUGHSTOCK_ISSET_ID);}/** Returns true if field ourEnoughStock is set (has been assigned a value) and false otherwise */public boolean isSetOurEnoughStock() {return __isset_bit_vector.get(__OURENOUGHSTOCK_ISSET_ID);}public void setOurEnoughStockIsSet(boolean value) {__isset_bit_vector.set(__OURENOUGHSTOCK_ISSET_ID, value);}public long getTotalSeller() {return this.totalSeller;}public void setTotalSeller(long totalSeller) {this.totalSeller = totalSeller;setTotalSellerIsSet(true);}public void unsetTotalSeller() {__isset_bit_vector.clear(__TOTALSELLER_ISSET_ID);}/** Returns true if field totalSeller is set (has been assigned a value) and false otherwise */public boolean isSetTotalSeller() {return __isset_bit_vector.get(__TOTALSELLER_ISSET_ID);}public void setTotalSellerIsSet(boolean value) {__isset_bit_vector.set(__TOTALSELLER_ISSET_ID, value);}public double getAverageSale() {return this.averageSale;}public void setAverageSale(double averageSale) {this.averageSale = averageSale;setAverageSaleIsSet(true);}public void unsetAverageSale() {__isset_bit_vector.clear(__AVERAGESALE_ISSET_ID);}/** Returns true if field averageSale is set (has been assigned a value) and false otherwise */public boolean isSetAverageSale() {return __isset_bit_vector.get(__AVERAGESALE_ISSET_ID);}public void setAverageSaleIsSet(boolean value) {__isset_bit_vector.set(__AVERAGESALE_ISSET_ID, value);}public boolean isToGroup() {return this.toGroup;}public void setToGroup(boolean toGroup) {this.toGroup = toGroup;setToGroupIsSet(true);}public void unsetToGroup() {__isset_bit_vector.clear(__TOGROUP_ISSET_ID);}/** Returns true if field toGroup is set (has been assigned a value) and false otherwise */public boolean isSetToGroup() {return __isset_bit_vector.get(__TOGROUP_ISSET_ID);}public void setToGroupIsSet(boolean value) {__isset_bit_vector.set(__TOGROUP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;case LOWEST_POSSIBLE_TP:if (value == null) {unsetLowest_possible_tp();} else {setLowest_possible_tp((Double)value);}break;case LOWEST_POSSIBLE_SP:if (value == null) {unsetLowest_possible_sp();} else {setLowest_possible_sp((Double)value);}break;case OUR_INVENTORY:if (value == null) {unsetOurInventory();} else {setOurInventory((Long)value);}break;case OTHER_INVENTORY:if (value == null) {unsetOtherInventory();} else {setOtherInventory((Long)value);}break;case SECOND_LOWEST_INVENTORY:if (value == null) {unsetSecondLowestInventory();} else {setSecondLowestInventory((Long)value);}break;case OUR_RANK:if (value == null) {unsetOurRank();} else {setOurRank((Long)value);}break;case OUR_OFFER_PRICE:if (value == null) {unsetOurOfferPrice();} else {setOurOfferPrice((Double)value);}break;case OUR_SELLING_PRICE:if (value == null) {unsetOurSellingPrice();} else {setOurSellingPrice((Double)value);}break;case OUR_TP:if (value == null) {unsetOurTp();} else {setOurTp((Double)value);}break;case OUR_NLC:if (value == null) {unsetOurNlc();} else {setOurNlc((Double)value);}break;case COMPETITIVE_CATEGORY:if (value == null) {unsetCompetitiveCategory();} else {setCompetitiveCategory((CompetitionCategory)value);}break;case RISKY:if (value == null) {unsetRisky();} else {setRisky((Long)value);}break;case LOWEST_OFFER_PRICE:if (value == null) {unsetLowestOfferPrice();} else {setLowestOfferPrice((Double)value);}break;case LOWEST_SELLING_PRICE:if (value == null) {unsetLowestSellingPrice();} else {setLowestSellingPrice((Double)value);}break;case LOWEST_TP:if (value == null) {unsetLowestTp();} else {setLowestTp((Double)value);}break;case LOWEST_SELLER_NAME:if (value == null) {unsetLowestSellerName();} else {setLowestSellerName((String)value);}break;case PROPOSED_SELLING_PRICE:if (value == null) {unsetProposedSellingPrice();} else {setProposedSellingPrice((Double)value);}break;case PROPOSED_TP:if (value == null) {unsetProposedTp();} else {setProposedTp((Double)value);}break;case TARGET_NLC:if (value == null) {unsetTargetNlc();} else {setTargetNlc((Double)value);}break;case SALES_POTENTIAL:if (value == null) {unsetSalesPotential();} else {setSalesPotential((SalesPotential)value);}break;case SECOND_LOWEST_SELLER_NAME:if (value == null) {unsetSecondLowestSellerName();} else {setSecondLowestSellerName((String)value);}break;case SECOND_LOWEST_SELLING_PRICE:if (value == null) {unsetSecondLowestSellingPrice();} else {setSecondLowestSellingPrice((Double)value);}break;case SECOND_LOWEST_OFFER_PRICE:if (value == null) {unsetSecondLowestOfferPrice();} else {setSecondLowestOfferPrice((Double)value);}break;case SECOND_LOWEST_TP:if (value == null) {unsetSecondLowestTp();} else {setSecondLowestTp((Double)value);}break;case MARGIN_INCREASED_POTENTIAL:if (value == null) {unsetMarginIncreasedPotential();} else {setMarginIncreasedPotential((Double)value);}break;case MARGIN:if (value == null) {unsetMargin();} else {setMargin((Double)value);}break;case OUR_ENOUGH_STOCK:if (value == null) {unsetOurEnoughStock();} else {setOurEnoughStock((Boolean)value);}break;case TOTAL_SELLER:if (value == null) {unsetTotalSeller();} else {setTotalSeller((Long)value);}break;case AVERAGE_SALE:if (value == null) {unsetAverageSale();} else {setAverageSale((Double)value);}break;case TO_GROUP:if (value == null) {unsetToGroup();} else {setToGroup((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case SOURCE:return Long.valueOf(getSource());case TIMESTAMP:return Long.valueOf(getTimestamp());case LOWEST_POSSIBLE_TP:return Double.valueOf(getLowest_possible_tp());case LOWEST_POSSIBLE_SP:return Double.valueOf(getLowest_possible_sp());case OUR_INVENTORY:return Long.valueOf(getOurInventory());case OTHER_INVENTORY:return Long.valueOf(getOtherInventory());case SECOND_LOWEST_INVENTORY:return Long.valueOf(getSecondLowestInventory());case OUR_RANK:return Long.valueOf(getOurRank());case OUR_OFFER_PRICE:return Double.valueOf(getOurOfferPrice());case OUR_SELLING_PRICE:return Double.valueOf(getOurSellingPrice());case OUR_TP:return Double.valueOf(getOurTp());case OUR_NLC:return Double.valueOf(getOurNlc());case COMPETITIVE_CATEGORY:return getCompetitiveCategory();case RISKY:return Long.valueOf(getRisky());case LOWEST_OFFER_PRICE:return Double.valueOf(getLowestOfferPrice());case LOWEST_SELLING_PRICE:return Double.valueOf(getLowestSellingPrice());case LOWEST_TP:return Double.valueOf(getLowestTp());case LOWEST_SELLER_NAME:return getLowestSellerName();case PROPOSED_SELLING_PRICE:return Double.valueOf(getProposedSellingPrice());case PROPOSED_TP:return Double.valueOf(getProposedTp());case TARGET_NLC:return Double.valueOf(getTargetNlc());case SALES_POTENTIAL:return getSalesPotential();case SECOND_LOWEST_SELLER_NAME:return getSecondLowestSellerName();case SECOND_LOWEST_SELLING_PRICE:return Double.valueOf(getSecondLowestSellingPrice());case SECOND_LOWEST_OFFER_PRICE:return Double.valueOf(getSecondLowestOfferPrice());case SECOND_LOWEST_TP:return Double.valueOf(getSecondLowestTp());case MARGIN_INCREASED_POTENTIAL:return Double.valueOf(getMarginIncreasedPotential());case MARGIN:return Double.valueOf(getMargin());case OUR_ENOUGH_STOCK:return Boolean.valueOf(isOurEnoughStock());case TOTAL_SELLER:return Long.valueOf(getTotalSeller());case AVERAGE_SALE:return Double.valueOf(getAverageSale());case TO_GROUP:return Boolean.valueOf(isToGroup());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case SOURCE:return isSetSource();case TIMESTAMP:return isSetTimestamp();case LOWEST_POSSIBLE_TP:return isSetLowest_possible_tp();case LOWEST_POSSIBLE_SP:return isSetLowest_possible_sp();case OUR_INVENTORY:return isSetOurInventory();case OTHER_INVENTORY:return isSetOtherInventory();case SECOND_LOWEST_INVENTORY:return isSetSecondLowestInventory();case OUR_RANK:return isSetOurRank();case OUR_OFFER_PRICE:return isSetOurOfferPrice();case OUR_SELLING_PRICE:return isSetOurSellingPrice();case OUR_TP:return isSetOurTp();case OUR_NLC:return isSetOurNlc();case COMPETITIVE_CATEGORY:return isSetCompetitiveCategory();case RISKY:return isSetRisky();case LOWEST_OFFER_PRICE:return isSetLowestOfferPrice();case LOWEST_SELLING_PRICE:return isSetLowestSellingPrice();case LOWEST_TP:return isSetLowestTp();case LOWEST_SELLER_NAME:return isSetLowestSellerName();case PROPOSED_SELLING_PRICE:return isSetProposedSellingPrice();case PROPOSED_TP:return isSetProposedTp();case TARGET_NLC:return isSetTargetNlc();case SALES_POTENTIAL:return isSetSalesPotential();case SECOND_LOWEST_SELLER_NAME:return isSetSecondLowestSellerName();case SECOND_LOWEST_SELLING_PRICE:return isSetSecondLowestSellingPrice();case SECOND_LOWEST_OFFER_PRICE:return isSetSecondLowestOfferPrice();case SECOND_LOWEST_TP:return isSetSecondLowestTp();case MARGIN_INCREASED_POTENTIAL:return isSetMarginIncreasedPotential();case MARGIN:return isSetMargin();case OUR_ENOUGH_STOCK:return isSetOurEnoughStock();case TOTAL_SELLER:return isSetTotalSeller();case AVERAGE_SALE:return isSetAverageSale();case TO_GROUP:return isSetToGroup();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof MarketplaceHistory)return this.equals((MarketplaceHistory)that);return false;}public boolean equals(MarketplaceHistory that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}boolean this_present_lowest_possible_tp = true;boolean that_present_lowest_possible_tp = true;if (this_present_lowest_possible_tp || that_present_lowest_possible_tp) {if (!(this_present_lowest_possible_tp && that_present_lowest_possible_tp))return false;if (this.lowest_possible_tp != that.lowest_possible_tp)return false;}boolean this_present_lowest_possible_sp = true;boolean that_present_lowest_possible_sp = true;if (this_present_lowest_possible_sp || that_present_lowest_possible_sp) {if (!(this_present_lowest_possible_sp && that_present_lowest_possible_sp))return false;if (this.lowest_possible_sp != that.lowest_possible_sp)return false;}boolean this_present_ourInventory = true;boolean that_present_ourInventory = true;if (this_present_ourInventory || that_present_ourInventory) {if (!(this_present_ourInventory && that_present_ourInventory))return false;if (this.ourInventory != that.ourInventory)return false;}boolean this_present_otherInventory = true;boolean that_present_otherInventory = true;if (this_present_otherInventory || that_present_otherInventory) {if (!(this_present_otherInventory && that_present_otherInventory))return false;if (this.otherInventory != that.otherInventory)return false;}boolean this_present_secondLowestInventory = true;boolean that_present_secondLowestInventory = true;if (this_present_secondLowestInventory || that_present_secondLowestInventory) {if (!(this_present_secondLowestInventory && that_present_secondLowestInventory))return false;if (this.secondLowestInventory != that.secondLowestInventory)return false;}boolean this_present_ourRank = true;boolean that_present_ourRank = true;if (this_present_ourRank || that_present_ourRank) {if (!(this_present_ourRank && that_present_ourRank))return false;if (this.ourRank != that.ourRank)return false;}boolean this_present_ourOfferPrice = true;boolean that_present_ourOfferPrice = true;if (this_present_ourOfferPrice || that_present_ourOfferPrice) {if (!(this_present_ourOfferPrice && that_present_ourOfferPrice))return false;if (this.ourOfferPrice != that.ourOfferPrice)return false;}boolean this_present_ourSellingPrice = true;boolean that_present_ourSellingPrice = true;if (this_present_ourSellingPrice || that_present_ourSellingPrice) {if (!(this_present_ourSellingPrice && that_present_ourSellingPrice))return false;if (this.ourSellingPrice != that.ourSellingPrice)return false;}boolean this_present_ourTp = true;boolean that_present_ourTp = true;if (this_present_ourTp || that_present_ourTp) {if (!(this_present_ourTp && that_present_ourTp))return false;if (this.ourTp != that.ourTp)return false;}boolean this_present_ourNlc = true;boolean that_present_ourNlc = true;if (this_present_ourNlc || that_present_ourNlc) {if (!(this_present_ourNlc && that_present_ourNlc))return false;if (this.ourNlc != that.ourNlc)return false;}boolean this_present_competitiveCategory = true && this.isSetCompetitiveCategory();boolean that_present_competitiveCategory = true && that.isSetCompetitiveCategory();if (this_present_competitiveCategory || that_present_competitiveCategory) {if (!(this_present_competitiveCategory && that_present_competitiveCategory))return false;if (!this.competitiveCategory.equals(that.competitiveCategory))return false;}boolean this_present_risky = true;boolean that_present_risky = true;if (this_present_risky || that_present_risky) {if (!(this_present_risky && that_present_risky))return false;if (this.risky != that.risky)return false;}boolean this_present_lowestOfferPrice = true;boolean that_present_lowestOfferPrice = true;if (this_present_lowestOfferPrice || that_present_lowestOfferPrice) {if (!(this_present_lowestOfferPrice && that_present_lowestOfferPrice))return false;if (this.lowestOfferPrice != that.lowestOfferPrice)return false;}boolean this_present_lowestSellingPrice = true;boolean that_present_lowestSellingPrice = true;if (this_present_lowestSellingPrice || that_present_lowestSellingPrice) {if (!(this_present_lowestSellingPrice && that_present_lowestSellingPrice))return false;if (this.lowestSellingPrice != that.lowestSellingPrice)return false;}boolean this_present_lowestTp = true;boolean that_present_lowestTp = true;if (this_present_lowestTp || that_present_lowestTp) {if (!(this_present_lowestTp && that_present_lowestTp))return false;if (this.lowestTp != that.lowestTp)return false;}boolean this_present_lowestSellerName = true && this.isSetLowestSellerName();boolean that_present_lowestSellerName = true && that.isSetLowestSellerName();if (this_present_lowestSellerName || that_present_lowestSellerName) {if (!(this_present_lowestSellerName && that_present_lowestSellerName))return false;if (!this.lowestSellerName.equals(that.lowestSellerName))return false;}boolean this_present_proposedSellingPrice = true;boolean that_present_proposedSellingPrice = true;if (this_present_proposedSellingPrice || that_present_proposedSellingPrice) {if (!(this_present_proposedSellingPrice && that_present_proposedSellingPrice))return false;if (this.proposedSellingPrice != that.proposedSellingPrice)return false;}boolean this_present_proposedTp = true;boolean that_present_proposedTp = true;if (this_present_proposedTp || that_present_proposedTp) {if (!(this_present_proposedTp && that_present_proposedTp))return false;if (this.proposedTp != that.proposedTp)return false;}boolean this_present_targetNlc = true;boolean that_present_targetNlc = true;if (this_present_targetNlc || that_present_targetNlc) {if (!(this_present_targetNlc && that_present_targetNlc))return false;if (this.targetNlc != that.targetNlc)return false;}boolean this_present_salesPotential = true && this.isSetSalesPotential();boolean that_present_salesPotential = true && that.isSetSalesPotential();if (this_present_salesPotential || that_present_salesPotential) {if (!(this_present_salesPotential && that_present_salesPotential))return false;if (!this.salesPotential.equals(that.salesPotential))return false;}boolean this_present_secondLowestSellerName = true && this.isSetSecondLowestSellerName();boolean that_present_secondLowestSellerName = true && that.isSetSecondLowestSellerName();if (this_present_secondLowestSellerName || that_present_secondLowestSellerName) {if (!(this_present_secondLowestSellerName && that_present_secondLowestSellerName))return false;if (!this.secondLowestSellerName.equals(that.secondLowestSellerName))return false;}boolean this_present_secondLowestSellingPrice = true;boolean that_present_secondLowestSellingPrice = true;if (this_present_secondLowestSellingPrice || that_present_secondLowestSellingPrice) {if (!(this_present_secondLowestSellingPrice && that_present_secondLowestSellingPrice))return false;if (this.secondLowestSellingPrice != that.secondLowestSellingPrice)return false;}boolean this_present_secondLowestOfferPrice = true;boolean that_present_secondLowestOfferPrice = true;if (this_present_secondLowestOfferPrice || that_present_secondLowestOfferPrice) {if (!(this_present_secondLowestOfferPrice && that_present_secondLowestOfferPrice))return false;if (this.secondLowestOfferPrice != that.secondLowestOfferPrice)return false;}boolean this_present_secondLowestTp = true;boolean that_present_secondLowestTp = true;if (this_present_secondLowestTp || that_present_secondLowestTp) {if (!(this_present_secondLowestTp && that_present_secondLowestTp))return false;if (this.secondLowestTp != that.secondLowestTp)return false;}boolean this_present_marginIncreasedPotential = true;boolean that_present_marginIncreasedPotential = true;if (this_present_marginIncreasedPotential || that_present_marginIncreasedPotential) {if (!(this_present_marginIncreasedPotential && that_present_marginIncreasedPotential))return false;if (this.marginIncreasedPotential != that.marginIncreasedPotential)return false;}boolean this_present_margin = true;boolean that_present_margin = true;if (this_present_margin || that_present_margin) {if (!(this_present_margin && that_present_margin))return false;if (this.margin != that.margin)return false;}boolean this_present_ourEnoughStock = true;boolean that_present_ourEnoughStock = true;if (this_present_ourEnoughStock || that_present_ourEnoughStock) {if (!(this_present_ourEnoughStock && that_present_ourEnoughStock))return false;if (this.ourEnoughStock != that.ourEnoughStock)return false;}boolean this_present_totalSeller = true;boolean that_present_totalSeller = true;if (this_present_totalSeller || that_present_totalSeller) {if (!(this_present_totalSeller && that_present_totalSeller))return false;if (this.totalSeller != that.totalSeller)return false;}boolean this_present_averageSale = true;boolean that_present_averageSale = true;if (this_present_averageSale || that_present_averageSale) {if (!(this_present_averageSale && that_present_averageSale))return false;if (this.averageSale != that.averageSale)return false;}boolean this_present_toGroup = true;boolean that_present_toGroup = true;if (this_present_toGroup || that_present_toGroup) {if (!(this_present_toGroup && that_present_toGroup))return false;if (this.toGroup != that.toGroup)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(MarketplaceHistory other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;MarketplaceHistory typedOther = (MarketplaceHistory)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowest_possible_tp()).compareTo(typedOther.isSetLowest_possible_tp());if (lastComparison != 0) {return lastComparison;}if (isSetLowest_possible_tp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowest_possible_tp, typedOther.lowest_possible_tp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowest_possible_sp()).compareTo(typedOther.isSetLowest_possible_sp());if (lastComparison != 0) {return lastComparison;}if (isSetLowest_possible_sp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowest_possible_sp, typedOther.lowest_possible_sp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurInventory()).compareTo(typedOther.isSetOurInventory());if (lastComparison != 0) {return lastComparison;}if (isSetOurInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourInventory, typedOther.ourInventory);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOtherInventory()).compareTo(typedOther.isSetOtherInventory());if (lastComparison != 0) {return lastComparison;}if (isSetOtherInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherInventory, typedOther.otherInventory);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSecondLowestInventory()).compareTo(typedOther.isSetSecondLowestInventory());if (lastComparison != 0) {return lastComparison;}if (isSetSecondLowestInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestInventory, typedOther.secondLowestInventory);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurRank()).compareTo(typedOther.isSetOurRank());if (lastComparison != 0) {return lastComparison;}if (isSetOurRank()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourRank, typedOther.ourRank);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurOfferPrice()).compareTo(typedOther.isSetOurOfferPrice());if (lastComparison != 0) {return lastComparison;}if (isSetOurOfferPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourOfferPrice, typedOther.ourOfferPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurSellingPrice()).compareTo(typedOther.isSetOurSellingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetOurSellingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourSellingPrice, typedOther.ourSellingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurTp()).compareTo(typedOther.isSetOurTp());if (lastComparison != 0) {return lastComparison;}if (isSetOurTp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourTp, typedOther.ourTp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurNlc()).compareTo(typedOther.isSetOurNlc());if (lastComparison != 0) {return lastComparison;}if (isSetOurNlc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourNlc, typedOther.ourNlc);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCompetitiveCategory()).compareTo(typedOther.isSetCompetitiveCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCompetitiveCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.competitiveCategory, typedOther.competitiveCategory);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());if (lastComparison != 0) {return lastComparison;}if (isSetRisky()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowestOfferPrice()).compareTo(typedOther.isSetLowestOfferPrice());if (lastComparison != 0) {return lastComparison;}if (isSetLowestOfferPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestOfferPrice, typedOther.lowestOfferPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowestSellingPrice()).compareTo(typedOther.isSetLowestSellingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetLowestSellingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSellingPrice, typedOther.lowestSellingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowestTp()).compareTo(typedOther.isSetLowestTp());if (lastComparison != 0) {return lastComparison;}if (isSetLowestTp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestTp, typedOther.lowestTp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLowestSellerName()).compareTo(typedOther.isSetLowestSellerName());if (lastComparison != 0) {return lastComparison;}if (isSetLowestSellerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowestSellerName, typedOther.lowestSellerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProposedSellingPrice()).compareTo(typedOther.isSetProposedSellingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetProposedSellingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.proposedSellingPrice, typedOther.proposedSellingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProposedTp()).compareTo(typedOther.isSetProposedTp());if (lastComparison != 0) {return lastComparison;}if (isSetProposedTp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.proposedTp, typedOther.proposedTp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTargetNlc()).compareTo(typedOther.isSetTargetNlc());if (lastComparison != 0) {return lastComparison;}if (isSetTargetNlc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.targetNlc, typedOther.targetNlc);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSalesPotential()).compareTo(typedOther.isSetSalesPotential());if (lastComparison != 0) {return lastComparison;}if (isSetSalesPotential()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salesPotential, typedOther.salesPotential);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSecondLowestSellerName()).compareTo(typedOther.isSetSecondLowestSellerName());if (lastComparison != 0) {return lastComparison;}if (isSetSecondLowestSellerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestSellerName, typedOther.secondLowestSellerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSecondLowestSellingPrice()).compareTo(typedOther.isSetSecondLowestSellingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetSecondLowestSellingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestSellingPrice, typedOther.secondLowestSellingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSecondLowestOfferPrice()).compareTo(typedOther.isSetSecondLowestOfferPrice());if (lastComparison != 0) {return lastComparison;}if (isSetSecondLowestOfferPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestOfferPrice, typedOther.secondLowestOfferPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSecondLowestTp()).compareTo(typedOther.isSetSecondLowestTp());if (lastComparison != 0) {return lastComparison;}if (isSetSecondLowestTp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondLowestTp, typedOther.secondLowestTp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMarginIncreasedPotential()).compareTo(typedOther.isSetMarginIncreasedPotential());if (lastComparison != 0) {return lastComparison;}if (isSetMarginIncreasedPotential()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.marginIncreasedPotential, typedOther.marginIncreasedPotential);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMargin()).compareTo(typedOther.isSetMargin());if (lastComparison != 0) {return lastComparison;}if (isSetMargin()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.margin, typedOther.margin);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOurEnoughStock()).compareTo(typedOther.isSetOurEnoughStock());if (lastComparison != 0) {return lastComparison;}if (isSetOurEnoughStock()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourEnoughStock, typedOther.ourEnoughStock);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalSeller()).compareTo(typedOther.isSetTotalSeller());if (lastComparison != 0) {return lastComparison;}if (isSetTotalSeller()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSeller, typedOther.totalSeller);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAverageSale()).compareTo(typedOther.isSetAverageSale());if (lastComparison != 0) {return lastComparison;}if (isSetAverageSale()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.averageSale, typedOther.averageSale);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetToGroup()).compareTo(typedOther.isSetToGroup());if (lastComparison != 0) {return lastComparison;}if (isSetToGroup()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toGroup, typedOther.toGroup);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // LOWEST_POSSIBLE_TPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.lowest_possible_tp = iprot.readDouble();setLowest_possible_tpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // LOWEST_POSSIBLE_SPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.lowest_possible_sp = iprot.readDouble();setLowest_possible_spIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // OUR_INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.ourInventory = iprot.readI64();setOurInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // OTHER_INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.otherInventory = iprot.readI64();setOtherInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // SECOND_LOWEST_INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.secondLowestInventory = iprot.readI64();setSecondLowestInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // OUR_RANKif (field.type == org.apache.thrift.protocol.TType.I64) {this.ourRank = iprot.readI64();setOurRankIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // OUR_OFFER_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.ourOfferPrice = iprot.readDouble();setOurOfferPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // OUR_SELLING_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.ourSellingPrice = iprot.readDouble();setOurSellingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // OUR_TPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.ourTp = iprot.readDouble();setOurTpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 13: // OUR_NLCif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.ourNlc = iprot.readDouble();setOurNlcIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 14: // COMPETITIVE_CATEGORYif (field.type == org.apache.thrift.protocol.TType.I32) {this.competitiveCategory = CompetitionCategory.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 15: // RISKYif (field.type == org.apache.thrift.protocol.TType.I64) {this.risky = iprot.readI64();setRiskyIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 16: // LOWEST_OFFER_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.lowestOfferPrice = iprot.readDouble();setLowestOfferPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 17: // LOWEST_SELLING_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.lowestSellingPrice = iprot.readDouble();setLowestSellingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 18: // LOWEST_TPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.lowestTp = iprot.readDouble();setLowestTpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 19: // LOWEST_SELLER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.lowestSellerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 20: // PROPOSED_SELLING_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.proposedSellingPrice = iprot.readDouble();setProposedSellingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 21: // PROPOSED_TPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.proposedTp = iprot.readDouble();setProposedTpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 22: // TARGET_NLCif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.targetNlc = iprot.readDouble();setTargetNlcIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 23: // SALES_POTENTIALif (field.type == org.apache.thrift.protocol.TType.I32) {this.salesPotential = SalesPotential.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 24: // SECOND_LOWEST_SELLER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.secondLowestSellerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 25: // SECOND_LOWEST_SELLING_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.secondLowestSellingPrice = iprot.readDouble();setSecondLowestSellingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 26: // SECOND_LOWEST_OFFER_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.secondLowestOfferPrice = iprot.readDouble();setSecondLowestOfferPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 27: // SECOND_LOWEST_TPif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.secondLowestTp = iprot.readDouble();setSecondLowestTpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 28: // MARGIN_INCREASED_POTENTIALif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.marginIncreasedPotential = iprot.readDouble();setMarginIncreasedPotentialIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 29: // MARGINif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.margin = iprot.readDouble();setMarginIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 30: // OUR_ENOUGH_STOCKif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.ourEnoughStock = iprot.readBool();setOurEnoughStockIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 31: // TOTAL_SELLERif (field.type == org.apache.thrift.protocol.TType.I64) {this.totalSeller = iprot.readI64();setTotalSellerIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 32: // AVERAGE_SALEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.averageSale = iprot.readDouble();setAverageSaleIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 33: // TO_GROUPif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.toGroup = iprot.readBool();setToGroupIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldBegin(LOWEST_POSSIBLE_TP_FIELD_DESC);oprot.writeDouble(this.lowest_possible_tp);oprot.writeFieldEnd();oprot.writeFieldBegin(LOWEST_POSSIBLE_SP_FIELD_DESC);oprot.writeDouble(this.lowest_possible_sp);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_INVENTORY_FIELD_DESC);oprot.writeI64(this.ourInventory);oprot.writeFieldEnd();oprot.writeFieldBegin(OTHER_INVENTORY_FIELD_DESC);oprot.writeI64(this.otherInventory);oprot.writeFieldEnd();oprot.writeFieldBegin(SECOND_LOWEST_INVENTORY_FIELD_DESC);oprot.writeI64(this.secondLowestInventory);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_RANK_FIELD_DESC);oprot.writeI64(this.ourRank);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_OFFER_PRICE_FIELD_DESC);oprot.writeDouble(this.ourOfferPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_SELLING_PRICE_FIELD_DESC);oprot.writeDouble(this.ourSellingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_TP_FIELD_DESC);oprot.writeDouble(this.ourTp);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_NLC_FIELD_DESC);oprot.writeDouble(this.ourNlc);oprot.writeFieldEnd();if (this.competitiveCategory != null) {oprot.writeFieldBegin(COMPETITIVE_CATEGORY_FIELD_DESC);oprot.writeI32(this.competitiveCategory.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(RISKY_FIELD_DESC);oprot.writeI64(this.risky);oprot.writeFieldEnd();oprot.writeFieldBegin(LOWEST_OFFER_PRICE_FIELD_DESC);oprot.writeDouble(this.lowestOfferPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(LOWEST_SELLING_PRICE_FIELD_DESC);oprot.writeDouble(this.lowestSellingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(LOWEST_TP_FIELD_DESC);oprot.writeDouble(this.lowestTp);oprot.writeFieldEnd();if (this.lowestSellerName != null) {oprot.writeFieldBegin(LOWEST_SELLER_NAME_FIELD_DESC);oprot.writeString(this.lowestSellerName);oprot.writeFieldEnd();}oprot.writeFieldBegin(PROPOSED_SELLING_PRICE_FIELD_DESC);oprot.writeDouble(this.proposedSellingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(PROPOSED_TP_FIELD_DESC);oprot.writeDouble(this.proposedTp);oprot.writeFieldEnd();oprot.writeFieldBegin(TARGET_NLC_FIELD_DESC);oprot.writeDouble(this.targetNlc);oprot.writeFieldEnd();if (this.salesPotential != null) {oprot.writeFieldBegin(SALES_POTENTIAL_FIELD_DESC);oprot.writeI32(this.salesPotential.getValue());oprot.writeFieldEnd();}if (this.secondLowestSellerName != null) {oprot.writeFieldBegin(SECOND_LOWEST_SELLER_NAME_FIELD_DESC);oprot.writeString(this.secondLowestSellerName);oprot.writeFieldEnd();}oprot.writeFieldBegin(SECOND_LOWEST_SELLING_PRICE_FIELD_DESC);oprot.writeDouble(this.secondLowestSellingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(SECOND_LOWEST_OFFER_PRICE_FIELD_DESC);oprot.writeDouble(this.secondLowestOfferPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(SECOND_LOWEST_TP_FIELD_DESC);oprot.writeDouble(this.secondLowestTp);oprot.writeFieldEnd();oprot.writeFieldBegin(MARGIN_INCREASED_POTENTIAL_FIELD_DESC);oprot.writeDouble(this.marginIncreasedPotential);oprot.writeFieldEnd();oprot.writeFieldBegin(MARGIN_FIELD_DESC);oprot.writeDouble(this.margin);oprot.writeFieldEnd();oprot.writeFieldBegin(OUR_ENOUGH_STOCK_FIELD_DESC);oprot.writeBool(this.ourEnoughStock);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_SELLER_FIELD_DESC);oprot.writeI64(this.totalSeller);oprot.writeFieldEnd();oprot.writeFieldBegin(AVERAGE_SALE_FIELD_DESC);oprot.writeDouble(this.averageSale);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_GROUP_FIELD_DESC);oprot.writeBool(this.toGroup);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("MarketplaceHistory(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;if (!first) sb.append(", ");sb.append("lowest_possible_tp:");sb.append(this.lowest_possible_tp);first = false;if (!first) sb.append(", ");sb.append("lowest_possible_sp:");sb.append(this.lowest_possible_sp);first = false;if (!first) sb.append(", ");sb.append("ourInventory:");sb.append(this.ourInventory);first = false;if (!first) sb.append(", ");sb.append("otherInventory:");sb.append(this.otherInventory);first = false;if (!first) sb.append(", ");sb.append("secondLowestInventory:");sb.append(this.secondLowestInventory);first = false;if (!first) sb.append(", ");sb.append("ourRank:");sb.append(this.ourRank);first = false;if (!first) sb.append(", ");sb.append("ourOfferPrice:");sb.append(this.ourOfferPrice);first = false;if (!first) sb.append(", ");sb.append("ourSellingPrice:");sb.append(this.ourSellingPrice);first = false;if (!first) sb.append(", ");sb.append("ourTp:");sb.append(this.ourTp);first = false;if (!first) sb.append(", ");sb.append("ourNlc:");sb.append(this.ourNlc);first = false;if (!first) sb.append(", ");sb.append("competitiveCategory:");if (this.competitiveCategory == null) {sb.append("null");} else {sb.append(this.competitiveCategory);}first = false;if (!first) sb.append(", ");sb.append("risky:");sb.append(this.risky);first = false;if (!first) sb.append(", ");sb.append("lowestOfferPrice:");sb.append(this.lowestOfferPrice);first = false;if (!first) sb.append(", ");sb.append("lowestSellingPrice:");sb.append(this.lowestSellingPrice);first = false;if (!first) sb.append(", ");sb.append("lowestTp:");sb.append(this.lowestTp);first = false;if (!first) sb.append(", ");sb.append("lowestSellerName:");if (this.lowestSellerName == null) {sb.append("null");} else {sb.append(this.lowestSellerName);}first = false;if (!first) sb.append(", ");sb.append("proposedSellingPrice:");sb.append(this.proposedSellingPrice);first = false;if (!first) sb.append(", ");sb.append("proposedTp:");sb.append(this.proposedTp);first = false;if (!first) sb.append(", ");sb.append("targetNlc:");sb.append(this.targetNlc);first = false;if (!first) sb.append(", ");sb.append("salesPotential:");if (this.salesPotential == null) {sb.append("null");} else {sb.append(this.salesPotential);}first = false;if (!first) sb.append(", ");sb.append("secondLowestSellerName:");if (this.secondLowestSellerName == null) {sb.append("null");} else {sb.append(this.secondLowestSellerName);}first = false;if (!first) sb.append(", ");sb.append("secondLowestSellingPrice:");sb.append(this.secondLowestSellingPrice);first = false;if (!first) sb.append(", ");sb.append("secondLowestOfferPrice:");sb.append(this.secondLowestOfferPrice);first = false;if (!first) sb.append(", ");sb.append("secondLowestTp:");sb.append(this.secondLowestTp);first = false;if (!first) sb.append(", ");sb.append("marginIncreasedPotential:");sb.append(this.marginIncreasedPotential);first = false;if (!first) sb.append(", ");sb.append("margin:");sb.append(this.margin);first = false;if (!first) sb.append(", ");sb.append("ourEnoughStock:");sb.append(this.ourEnoughStock);first = false;if (!first) sb.append(", ");sb.append("totalSeller:");sb.append(this.totalSeller);first = false;if (!first) sb.append(", ");sb.append("averageSale:");sb.append(this.averageSale);first = false;if (!first) sb.append(", ");sb.append("toGroup:");sb.append(this.toGroup);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}