Rev 7308 | 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 StorePricing implements org.apache.thrift.TBase<StorePricing, StorePricing._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorePricing");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RECOMMENDED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("recommendedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);private static final org.apache.thrift.protocol.TField MIN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);private static final org.apache.thrift.protocol.TField MAX_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("maxPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);private static final org.apache.thrift.protocol.TField MIN_ADVANCE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minAdvancePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);private static final org.apache.thrift.protocol.TField ABSOLUTE_MIN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("absoluteMinPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)7);private static final org.apache.thrift.protocol.TField BEST_DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealText", org.apache.thrift.protocol.TType.STRING, (short)8);private long itemId; // requiredprivate double recommendedPrice; // requiredprivate double minPrice; // requiredprivate double maxPrice; // requiredprivate double minAdvancePrice; // requiredprivate double absoluteMinPrice; // requiredprivate long freebieItemId; // requiredprivate String bestDealText; // 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, "itemId"),RECOMMENDED_PRICE((short)2, "recommendedPrice"),MIN_PRICE((short)3, "minPrice"),MAX_PRICE((short)4, "maxPrice"),MIN_ADVANCE_PRICE((short)5, "minAdvancePrice"),ABSOLUTE_MIN_PRICE((short)6, "absoluteMinPrice"),FREEBIE_ITEM_ID((short)7, "freebieItemId"),BEST_DEAL_TEXT((short)8, "bestDealText");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: // RECOMMENDED_PRICEreturn RECOMMENDED_PRICE;case 3: // MIN_PRICEreturn MIN_PRICE;case 4: // MAX_PRICEreturn MAX_PRICE;case 5: // MIN_ADVANCE_PRICEreturn MIN_ADVANCE_PRICE;case 6: // ABSOLUTE_MIN_PRICEreturn ABSOLUTE_MIN_PRICE;case 7: // FREEBIE_ITEM_IDreturn FREEBIE_ITEM_ID;case 8: // BEST_DEAL_TEXTreturn BEST_DEAL_TEXT;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 __ITEMID_ISSET_ID = 0;private static final int __RECOMMENDEDPRICE_ISSET_ID = 1;private static final int __MINPRICE_ISSET_ID = 2;private static final int __MAXPRICE_ISSET_ID = 3;private static final int __MINADVANCEPRICE_ISSET_ID = 4;private static final int __ABSOLUTEMINPRICE_ISSET_ID = 5;private static final int __FREEBIEITEMID_ISSET_ID = 6;private BitSet __isset_bit_vector = new BitSet(7);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("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECOMMENDED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("recommendedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MIN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MAX_PRICE, new org.apache.thrift.meta_data.FieldMetaData("maxPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MIN_ADVANCE_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minAdvancePrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.ABSOLUTE_MIN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("absoluteMinPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BEST_DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealText", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorePricing.class, metaDataMap);}public StorePricing() {}public StorePricing(long itemId,double recommendedPrice,double minPrice,double maxPrice,double minAdvancePrice,double absoluteMinPrice,long freebieItemId,String bestDealText){this();this.itemId = itemId;setItemIdIsSet(true);this.recommendedPrice = recommendedPrice;setRecommendedPriceIsSet(true);this.minPrice = minPrice;setMinPriceIsSet(true);this.maxPrice = maxPrice;setMaxPriceIsSet(true);this.minAdvancePrice = minAdvancePrice;setMinAdvancePriceIsSet(true);this.absoluteMinPrice = absoluteMinPrice;setAbsoluteMinPriceIsSet(true);this.freebieItemId = freebieItemId;setFreebieItemIdIsSet(true);this.bestDealText = bestDealText;}/*** Performs a deep copy on <i>other</i>.*/public StorePricing(StorePricing other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.recommendedPrice = other.recommendedPrice;this.minPrice = other.minPrice;this.maxPrice = other.maxPrice;this.minAdvancePrice = other.minAdvancePrice;this.absoluteMinPrice = other.absoluteMinPrice;this.freebieItemId = other.freebieItemId;if (other.isSetBestDealText()) {this.bestDealText = other.bestDealText;}}public StorePricing deepCopy() {return new StorePricing(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setRecommendedPriceIsSet(false);this.recommendedPrice = 0.0;setMinPriceIsSet(false);this.minPrice = 0.0;setMaxPriceIsSet(false);this.maxPrice = 0.0;setMinAdvancePriceIsSet(false);this.minAdvancePrice = 0.0;setAbsoluteMinPriceIsSet(false);this.absoluteMinPrice = 0.0;setFreebieItemIdIsSet(false);this.freebieItemId = 0;this.bestDealText = null;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public double getRecommendedPrice() {return this.recommendedPrice;}public void setRecommendedPrice(double recommendedPrice) {this.recommendedPrice = recommendedPrice;setRecommendedPriceIsSet(true);}public void unsetRecommendedPrice() {__isset_bit_vector.clear(__RECOMMENDEDPRICE_ISSET_ID);}/** Returns true if field recommendedPrice is set (has been assigned a value) and false otherwise */public boolean isSetRecommendedPrice() {return __isset_bit_vector.get(__RECOMMENDEDPRICE_ISSET_ID);}public void setRecommendedPriceIsSet(boolean value) {__isset_bit_vector.set(__RECOMMENDEDPRICE_ISSET_ID, value);}public double getMinPrice() {return this.minPrice;}public void setMinPrice(double minPrice) {this.minPrice = minPrice;setMinPriceIsSet(true);}public void unsetMinPrice() {__isset_bit_vector.clear(__MINPRICE_ISSET_ID);}/** Returns true if field minPrice is set (has been assigned a value) and false otherwise */public boolean isSetMinPrice() {return __isset_bit_vector.get(__MINPRICE_ISSET_ID);}public void setMinPriceIsSet(boolean value) {__isset_bit_vector.set(__MINPRICE_ISSET_ID, value);}public double getMaxPrice() {return this.maxPrice;}public void setMaxPrice(double maxPrice) {this.maxPrice = maxPrice;setMaxPriceIsSet(true);}public void unsetMaxPrice() {__isset_bit_vector.clear(__MAXPRICE_ISSET_ID);}/** Returns true if field maxPrice is set (has been assigned a value) and false otherwise */public boolean isSetMaxPrice() {return __isset_bit_vector.get(__MAXPRICE_ISSET_ID);}public void setMaxPriceIsSet(boolean value) {__isset_bit_vector.set(__MAXPRICE_ISSET_ID, value);}public double getMinAdvancePrice() {return this.minAdvancePrice;}public void setMinAdvancePrice(double minAdvancePrice) {this.minAdvancePrice = minAdvancePrice;setMinAdvancePriceIsSet(true);}public void unsetMinAdvancePrice() {__isset_bit_vector.clear(__MINADVANCEPRICE_ISSET_ID);}/** Returns true if field minAdvancePrice is set (has been assigned a value) and false otherwise */public boolean isSetMinAdvancePrice() {return __isset_bit_vector.get(__MINADVANCEPRICE_ISSET_ID);}public void setMinAdvancePriceIsSet(boolean value) {__isset_bit_vector.set(__MINADVANCEPRICE_ISSET_ID, value);}public double getAbsoluteMinPrice() {return this.absoluteMinPrice;}public void setAbsoluteMinPrice(double absoluteMinPrice) {this.absoluteMinPrice = absoluteMinPrice;setAbsoluteMinPriceIsSet(true);}public void unsetAbsoluteMinPrice() {__isset_bit_vector.clear(__ABSOLUTEMINPRICE_ISSET_ID);}/** Returns true if field absoluteMinPrice is set (has been assigned a value) and false otherwise */public boolean isSetAbsoluteMinPrice() {return __isset_bit_vector.get(__ABSOLUTEMINPRICE_ISSET_ID);}public void setAbsoluteMinPriceIsSet(boolean value) {__isset_bit_vector.set(__ABSOLUTEMINPRICE_ISSET_ID, value);}public long getFreebieItemId() {return this.freebieItemId;}public void setFreebieItemId(long freebieItemId) {this.freebieItemId = freebieItemId;setFreebieItemIdIsSet(true);}public void unsetFreebieItemId() {__isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);}/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */public boolean isSetFreebieItemId() {return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);}public void setFreebieItemIdIsSet(boolean value) {__isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);}public String getBestDealText() {return this.bestDealText;}public void setBestDealText(String bestDealText) {this.bestDealText = bestDealText;}public void unsetBestDealText() {this.bestDealText = null;}/** Returns true if field bestDealText is set (has been assigned a value) and false otherwise */public boolean isSetBestDealText() {return this.bestDealText != null;}public void setBestDealTextIsSet(boolean value) {if (!value) {this.bestDealText = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case RECOMMENDED_PRICE:if (value == null) {unsetRecommendedPrice();} else {setRecommendedPrice((Double)value);}break;case MIN_PRICE:if (value == null) {unsetMinPrice();} else {setMinPrice((Double)value);}break;case MAX_PRICE:if (value == null) {unsetMaxPrice();} else {setMaxPrice((Double)value);}break;case MIN_ADVANCE_PRICE:if (value == null) {unsetMinAdvancePrice();} else {setMinAdvancePrice((Double)value);}break;case ABSOLUTE_MIN_PRICE:if (value == null) {unsetAbsoluteMinPrice();} else {setAbsoluteMinPrice((Double)value);}break;case FREEBIE_ITEM_ID:if (value == null) {unsetFreebieItemId();} else {setFreebieItemId((Long)value);}break;case BEST_DEAL_TEXT:if (value == null) {unsetBestDealText();} else {setBestDealText((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case RECOMMENDED_PRICE:return Double.valueOf(getRecommendedPrice());case MIN_PRICE:return Double.valueOf(getMinPrice());case MAX_PRICE:return Double.valueOf(getMaxPrice());case MIN_ADVANCE_PRICE:return Double.valueOf(getMinAdvancePrice());case ABSOLUTE_MIN_PRICE:return Double.valueOf(getAbsoluteMinPrice());case FREEBIE_ITEM_ID:return Long.valueOf(getFreebieItemId());case BEST_DEAL_TEXT:return getBestDealText();}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 isSetItemId();case RECOMMENDED_PRICE:return isSetRecommendedPrice();case MIN_PRICE:return isSetMinPrice();case MAX_PRICE:return isSetMaxPrice();case MIN_ADVANCE_PRICE:return isSetMinAdvancePrice();case ABSOLUTE_MIN_PRICE:return isSetAbsoluteMinPrice();case FREEBIE_ITEM_ID:return isSetFreebieItemId();case BEST_DEAL_TEXT:return isSetBestDealText();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof StorePricing)return this.equals((StorePricing)that);return false;}public boolean equals(StorePricing that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_recommendedPrice = true;boolean that_present_recommendedPrice = true;if (this_present_recommendedPrice || that_present_recommendedPrice) {if (!(this_present_recommendedPrice && that_present_recommendedPrice))return false;if (this.recommendedPrice != that.recommendedPrice)return false;}boolean this_present_minPrice = true;boolean that_present_minPrice = true;if (this_present_minPrice || that_present_minPrice) {if (!(this_present_minPrice && that_present_minPrice))return false;if (this.minPrice != that.minPrice)return false;}boolean this_present_maxPrice = true;boolean that_present_maxPrice = true;if (this_present_maxPrice || that_present_maxPrice) {if (!(this_present_maxPrice && that_present_maxPrice))return false;if (this.maxPrice != that.maxPrice)return false;}boolean this_present_minAdvancePrice = true;boolean that_present_minAdvancePrice = true;if (this_present_minAdvancePrice || that_present_minAdvancePrice) {if (!(this_present_minAdvancePrice && that_present_minAdvancePrice))return false;if (this.minAdvancePrice != that.minAdvancePrice)return false;}boolean this_present_absoluteMinPrice = true;boolean that_present_absoluteMinPrice = true;if (this_present_absoluteMinPrice || that_present_absoluteMinPrice) {if (!(this_present_absoluteMinPrice && that_present_absoluteMinPrice))return false;if (this.absoluteMinPrice != that.absoluteMinPrice)return false;}boolean this_present_freebieItemId = true;boolean that_present_freebieItemId = true;if (this_present_freebieItemId || that_present_freebieItemId) {if (!(this_present_freebieItemId && that_present_freebieItemId))return false;if (this.freebieItemId != that.freebieItemId)return false;}boolean this_present_bestDealText = true && this.isSetBestDealText();boolean that_present_bestDealText = true && that.isSetBestDealText();if (this_present_bestDealText || that_present_bestDealText) {if (!(this_present_bestDealText && that_present_bestDealText))return false;if (!this.bestDealText.equals(that.bestDealText))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(StorePricing other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;StorePricing typedOther = (StorePricing)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRecommendedPrice()).compareTo(typedOther.isSetRecommendedPrice());if (lastComparison != 0) {return lastComparison;}if (isSetRecommendedPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.recommendedPrice, typedOther.recommendedPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMinPrice()).compareTo(typedOther.isSetMinPrice());if (lastComparison != 0) {return lastComparison;}if (isSetMinPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minPrice, typedOther.minPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMaxPrice()).compareTo(typedOther.isSetMaxPrice());if (lastComparison != 0) {return lastComparison;}if (isSetMaxPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPrice, typedOther.maxPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMinAdvancePrice()).compareTo(typedOther.isSetMinAdvancePrice());if (lastComparison != 0) {return lastComparison;}if (isSetMinAdvancePrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minAdvancePrice, typedOther.minAdvancePrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAbsoluteMinPrice()).compareTo(typedOther.isSetAbsoluteMinPrice());if (lastComparison != 0) {return lastComparison;}if (isSetAbsoluteMinPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.absoluteMinPrice, typedOther.absoluteMinPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());if (lastComparison != 0) {return lastComparison;}if (isSetFreebieItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBestDealText()).compareTo(typedOther.isSetBestDealText());if (lastComparison != 0) {return lastComparison;}if (isSetBestDealText()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealText, typedOther.bestDealText);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.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RECOMMENDED_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.recommendedPrice = iprot.readDouble();setRecommendedPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // MIN_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.minPrice = iprot.readDouble();setMinPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // MAX_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.maxPrice = iprot.readDouble();setMaxPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // MIN_ADVANCE_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.minAdvancePrice = iprot.readDouble();setMinAdvancePriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // ABSOLUTE_MIN_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.absoluteMinPrice = iprot.readDouble();setAbsoluteMinPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // FREEBIE_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.freebieItemId = iprot.readI64();setFreebieItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // BEST_DEAL_TEXTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.bestDealText = iprot.readString();} 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.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(RECOMMENDED_PRICE_FIELD_DESC);oprot.writeDouble(this.recommendedPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(MIN_PRICE_FIELD_DESC);oprot.writeDouble(this.minPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(MAX_PRICE_FIELD_DESC);oprot.writeDouble(this.maxPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(MIN_ADVANCE_PRICE_FIELD_DESC);oprot.writeDouble(this.minAdvancePrice);oprot.writeFieldEnd();oprot.writeFieldBegin(ABSOLUTE_MIN_PRICE_FIELD_DESC);oprot.writeDouble(this.absoluteMinPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);oprot.writeI64(this.freebieItemId);oprot.writeFieldEnd();if (this.bestDealText != null) {oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);oprot.writeString(this.bestDealText);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("StorePricing(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("recommendedPrice:");sb.append(this.recommendedPrice);first = false;if (!first) sb.append(", ");sb.append("minPrice:");sb.append(this.minPrice);first = false;if (!first) sb.append(", ");sb.append("maxPrice:");sb.append(this.maxPrice);first = false;if (!first) sb.append(", ");sb.append("minAdvancePrice:");sb.append(this.minAdvancePrice);first = false;if (!first) sb.append(", ");sb.append("absoluteMinPrice:");sb.append(this.absoluteMinPrice);first = false;if (!first) sb.append(", ");sb.append("freebieItemId:");sb.append(this.freebieItemId);first = false;if (!first) sb.append(", ");sb.append("bestDealText:");if (this.bestDealText == null) {sb.append("null");} else {sb.append(this.bestDealText);}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);}}}