Rev 10689 | 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.warehouse;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 AmazonTransferredSkuDetail implements org.apache.thrift.TBase<AmazonTransferredSkuDetail, AmazonTransferredSkuDetail._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonTransferredSkuDetail");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 PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField PURCHASE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseDate", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)5);private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)6);private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)7);private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)9);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)10);private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)11);private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.STRING, (short)12);private long itemId; // requiredprivate long purchaseId; // requiredprivate long purchaseDate; // requiredprivate long quantity; // requiredprivate double unitPrice; // requiredprivate double nlc; // requiredprivate String brand; // requiredprivate String modelName; // requiredprivate String modelNumber; // requiredprivate String category; // requiredprivate String color; // requiredprivate String taxType; // 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"),PURCHASE_ID((short)2, "purchaseId"),PURCHASE_DATE((short)3, "purchaseDate"),QUANTITY((short)4, "quantity"),UNIT_PRICE((short)5, "unitPrice"),NLC((short)6, "nlc"),BRAND((short)7, "brand"),MODEL_NAME((short)8, "modelName"),MODEL_NUMBER((short)9, "modelNumber"),CATEGORY((short)10, "category"),COLOR((short)11, "color"),TAX_TYPE((short)12, "taxType");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: // PURCHASE_IDreturn PURCHASE_ID;case 3: // PURCHASE_DATEreturn PURCHASE_DATE;case 4: // QUANTITYreturn QUANTITY;case 5: // UNIT_PRICEreturn UNIT_PRICE;case 6: // NLCreturn NLC;case 7: // BRANDreturn BRAND;case 8: // MODEL_NAMEreturn MODEL_NAME;case 9: // MODEL_NUMBERreturn MODEL_NUMBER;case 10: // CATEGORYreturn CATEGORY;case 11: // COLORreturn COLOR;case 12: // TAX_TYPEreturn TAX_TYPE;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 __PURCHASEID_ISSET_ID = 1;private static final int __PURCHASEDATE_ISSET_ID = 2;private static final int __QUANTITY_ISSET_ID = 3;private static final int __UNITPRICE_ISSET_ID = 4;private static final int __NLC_ISSET_ID = 5;private BitSet __isset_bit_vector = new BitSet(6);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.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PURCHASE_DATE, new org.apache.thrift.meta_data.FieldMetaData("purchaseDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", 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(AmazonTransferredSkuDetail.class, metaDataMap);}public AmazonTransferredSkuDetail() {}public AmazonTransferredSkuDetail(long itemId,long purchaseId,long purchaseDate,long quantity,double unitPrice,double nlc,String brand,String modelName,String modelNumber,String category,String color,String taxType){this();this.itemId = itemId;setItemIdIsSet(true);this.purchaseId = purchaseId;setPurchaseIdIsSet(true);this.purchaseDate = purchaseDate;setPurchaseDateIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.unitPrice = unitPrice;setUnitPriceIsSet(true);this.nlc = nlc;setNlcIsSet(true);this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.category = category;this.color = color;this.taxType = taxType;}/*** Performs a deep copy on <i>other</i>.*/public AmazonTransferredSkuDetail(AmazonTransferredSkuDetail other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.purchaseId = other.purchaseId;this.purchaseDate = other.purchaseDate;this.quantity = other.quantity;this.unitPrice = other.unitPrice;this.nlc = other.nlc;if (other.isSetBrand()) {this.brand = other.brand;}if (other.isSetModelName()) {this.modelName = other.modelName;}if (other.isSetModelNumber()) {this.modelNumber = other.modelNumber;}if (other.isSetCategory()) {this.category = other.category;}if (other.isSetColor()) {this.color = other.color;}if (other.isSetTaxType()) {this.taxType = other.taxType;}}public AmazonTransferredSkuDetail deepCopy() {return new AmazonTransferredSkuDetail(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setPurchaseIdIsSet(false);this.purchaseId = 0;setPurchaseDateIsSet(false);this.purchaseDate = 0;setQuantityIsSet(false);this.quantity = 0;setUnitPriceIsSet(false);this.unitPrice = 0.0;setNlcIsSet(false);this.nlc = 0.0;this.brand = null;this.modelName = null;this.modelNumber = null;this.category = null;this.color = null;this.taxType = 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 long getPurchaseId() {return this.purchaseId;}public void setPurchaseId(long purchaseId) {this.purchaseId = purchaseId;setPurchaseIdIsSet(true);}public void unsetPurchaseId() {__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);}/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */public boolean isSetPurchaseId() {return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);}public void setPurchaseIdIsSet(boolean value) {__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);}public long getPurchaseDate() {return this.purchaseDate;}public void setPurchaseDate(long purchaseDate) {this.purchaseDate = purchaseDate;setPurchaseDateIsSet(true);}public void unsetPurchaseDate() {__isset_bit_vector.clear(__PURCHASEDATE_ISSET_ID);}/** Returns true if field purchaseDate is set (has been assigned a value) and false otherwise */public boolean isSetPurchaseDate() {return __isset_bit_vector.get(__PURCHASEDATE_ISSET_ID);}public void setPurchaseDateIsSet(boolean value) {__isset_bit_vector.set(__PURCHASEDATE_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public double getUnitPrice() {return this.unitPrice;}public void setUnitPrice(double unitPrice) {this.unitPrice = unitPrice;setUnitPriceIsSet(true);}public void unsetUnitPrice() {__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);}/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */public boolean isSetUnitPrice() {return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);}public void setUnitPriceIsSet(boolean value) {__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);}public double getNlc() {return this.nlc;}public void setNlc(double nlc) {this.nlc = nlc;setNlcIsSet(true);}public void unsetNlc() {__isset_bit_vector.clear(__NLC_ISSET_ID);}/** Returns true if field nlc is set (has been assigned a value) and false otherwise */public boolean isSetNlc() {return __isset_bit_vector.get(__NLC_ISSET_ID);}public void setNlcIsSet(boolean value) {__isset_bit_vector.set(__NLC_ISSET_ID, value);}public String getBrand() {return this.brand;}public void setBrand(String brand) {this.brand = brand;}public void unsetBrand() {this.brand = null;}/** Returns true if field brand is set (has been assigned a value) and false otherwise */public boolean isSetBrand() {return this.brand != null;}public void setBrandIsSet(boolean value) {if (!value) {this.brand = null;}}public String getModelName() {return this.modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public void unsetModelName() {this.modelName = null;}/** Returns true if field modelName is set (has been assigned a value) and false otherwise */public boolean isSetModelName() {return this.modelName != null;}public void setModelNameIsSet(boolean value) {if (!value) {this.modelName = null;}}public String getModelNumber() {return this.modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public void unsetModelNumber() {this.modelNumber = null;}/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */public boolean isSetModelNumber() {return this.modelNumber != null;}public void setModelNumberIsSet(boolean value) {if (!value) {this.modelNumber = null;}}public String getCategory() {return this.category;}public void setCategory(String category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public String getColor() {return this.color;}public void setColor(String color) {this.color = color;}public void unsetColor() {this.color = null;}/** Returns true if field color is set (has been assigned a value) and false otherwise */public boolean isSetColor() {return this.color != null;}public void setColorIsSet(boolean value) {if (!value) {this.color = null;}}public String getTaxType() {return this.taxType;}public void setTaxType(String taxType) {this.taxType = taxType;}public void unsetTaxType() {this.taxType = null;}/** Returns true if field taxType is set (has been assigned a value) and false otherwise */public boolean isSetTaxType() {return this.taxType != null;}public void setTaxTypeIsSet(boolean value) {if (!value) {this.taxType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case PURCHASE_ID:if (value == null) {unsetPurchaseId();} else {setPurchaseId((Long)value);}break;case PURCHASE_DATE:if (value == null) {unsetPurchaseDate();} else {setPurchaseDate((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case UNIT_PRICE:if (value == null) {unsetUnitPrice();} else {setUnitPrice((Double)value);}break;case NLC:if (value == null) {unsetNlc();} else {setNlc((Double)value);}break;case BRAND:if (value == null) {unsetBrand();} else {setBrand((String)value);}break;case MODEL_NAME:if (value == null) {unsetModelName();} else {setModelName((String)value);}break;case MODEL_NUMBER:if (value == null) {unsetModelNumber();} else {setModelNumber((String)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((String)value);}break;case COLOR:if (value == null) {unsetColor();} else {setColor((String)value);}break;case TAX_TYPE:if (value == null) {unsetTaxType();} else {setTaxType((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case PURCHASE_ID:return Long.valueOf(getPurchaseId());case PURCHASE_DATE:return Long.valueOf(getPurchaseDate());case QUANTITY:return Long.valueOf(getQuantity());case UNIT_PRICE:return Double.valueOf(getUnitPrice());case NLC:return Double.valueOf(getNlc());case BRAND:return getBrand();case MODEL_NAME:return getModelName();case MODEL_NUMBER:return getModelNumber();case CATEGORY:return getCategory();case COLOR:return getColor();case TAX_TYPE:return getTaxType();}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 PURCHASE_ID:return isSetPurchaseId();case PURCHASE_DATE:return isSetPurchaseDate();case QUANTITY:return isSetQuantity();case UNIT_PRICE:return isSetUnitPrice();case NLC:return isSetNlc();case BRAND:return isSetBrand();case MODEL_NAME:return isSetModelName();case MODEL_NUMBER:return isSetModelNumber();case CATEGORY:return isSetCategory();case COLOR:return isSetColor();case TAX_TYPE:return isSetTaxType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof AmazonTransferredSkuDetail)return this.equals((AmazonTransferredSkuDetail)that);return false;}public boolean equals(AmazonTransferredSkuDetail 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_purchaseId = true;boolean that_present_purchaseId = true;if (this_present_purchaseId || that_present_purchaseId) {if (!(this_present_purchaseId && that_present_purchaseId))return false;if (this.purchaseId != that.purchaseId)return false;}boolean this_present_purchaseDate = true;boolean that_present_purchaseDate = true;if (this_present_purchaseDate || that_present_purchaseDate) {if (!(this_present_purchaseDate && that_present_purchaseDate))return false;if (this.purchaseDate != that.purchaseDate)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_unitPrice = true;boolean that_present_unitPrice = true;if (this_present_unitPrice || that_present_unitPrice) {if (!(this_present_unitPrice && that_present_unitPrice))return false;if (this.unitPrice != that.unitPrice)return false;}boolean this_present_nlc = true;boolean that_present_nlc = true;if (this_present_nlc || that_present_nlc) {if (!(this_present_nlc && that_present_nlc))return false;if (this.nlc != that.nlc)return false;}boolean this_present_brand = true && this.isSetBrand();boolean that_present_brand = true && that.isSetBrand();if (this_present_brand || that_present_brand) {if (!(this_present_brand && that_present_brand))return false;if (!this.brand.equals(that.brand))return false;}boolean this_present_modelName = true && this.isSetModelName();boolean that_present_modelName = true && that.isSetModelName();if (this_present_modelName || that_present_modelName) {if (!(this_present_modelName && that_present_modelName))return false;if (!this.modelName.equals(that.modelName))return false;}boolean this_present_modelNumber = true && this.isSetModelNumber();boolean that_present_modelNumber = true && that.isSetModelNumber();if (this_present_modelNumber || that_present_modelNumber) {if (!(this_present_modelNumber && that_present_modelNumber))return false;if (!this.modelNumber.equals(that.modelNumber))return false;}boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}boolean this_present_color = true && this.isSetColor();boolean that_present_color = true && that.isSetColor();if (this_present_color || that_present_color) {if (!(this_present_color && that_present_color))return false;if (!this.color.equals(that.color))return false;}boolean this_present_taxType = true && this.isSetTaxType();boolean that_present_taxType = true && that.isSetTaxType();if (this_present_taxType || that_present_taxType) {if (!(this_present_taxType && that_present_taxType))return false;if (!this.taxType.equals(that.taxType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(AmazonTransferredSkuDetail other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;AmazonTransferredSkuDetail typedOther = (AmazonTransferredSkuDetail)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(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());if (lastComparison != 0) {return lastComparison;}if (isSetPurchaseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPurchaseDate()).compareTo(typedOther.isSetPurchaseDate());if (lastComparison != 0) {return lastComparison;}if (isSetPurchaseDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseDate, typedOther.purchaseDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());if (lastComparison != 0) {return lastComparison;}if (isSetUnitPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());if (lastComparison != 0) {return lastComparison;}if (isSetNlc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());if (lastComparison != 0) {return lastComparison;}if (isSetBrand()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());if (lastComparison != 0) {return lastComparison;}if (isSetModelName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());if (lastComparison != 0) {return lastComparison;}if (isSetModelNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());if (lastComparison != 0) {return lastComparison;}if (isSetColor()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());if (lastComparison != 0) {return lastComparison;}if (isSetTaxType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);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: // PURCHASE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.purchaseId = iprot.readI64();setPurchaseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // PURCHASE_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.purchaseDate = iprot.readI64();setPurchaseDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // UNIT_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.unitPrice = iprot.readDouble();setUnitPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // NLCif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.nlc = iprot.readDouble();setNlcIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // BRANDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.brand = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // MODEL_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // MODEL_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.modelNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.category = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // COLORif (field.type == org.apache.thrift.protocol.TType.STRING) {this.color = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // TAX_TYPEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.taxType = 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(PURCHASE_ID_FIELD_DESC);oprot.writeI64(this.purchaseId);oprot.writeFieldEnd();oprot.writeFieldBegin(PURCHASE_DATE_FIELD_DESC);oprot.writeI64(this.purchaseDate);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);oprot.writeDouble(this.unitPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(NLC_FIELD_DESC);oprot.writeDouble(this.nlc);oprot.writeFieldEnd();if (this.brand != null) {oprot.writeFieldBegin(BRAND_FIELD_DESC);oprot.writeString(this.brand);oprot.writeFieldEnd();}if (this.modelName != null) {oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);oprot.writeString(this.modelName);oprot.writeFieldEnd();}if (this.modelNumber != null) {oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);oprot.writeString(this.modelNumber);oprot.writeFieldEnd();}if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeString(this.category);oprot.writeFieldEnd();}if (this.color != null) {oprot.writeFieldBegin(COLOR_FIELD_DESC);oprot.writeString(this.color);oprot.writeFieldEnd();}if (this.taxType != null) {oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);oprot.writeString(this.taxType);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("AmazonTransferredSkuDetail(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("purchaseId:");sb.append(this.purchaseId);first = false;if (!first) sb.append(", ");sb.append("purchaseDate:");sb.append(this.purchaseDate);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("unitPrice:");sb.append(this.unitPrice);first = false;if (!first) sb.append(", ");sb.append("nlc:");sb.append(this.nlc);first = false;if (!first) sb.append(", ");sb.append("brand:");if (this.brand == null) {sb.append("null");} else {sb.append(this.brand);}first = false;if (!first) sb.append(", ");sb.append("modelName:");if (this.modelName == null) {sb.append("null");} else {sb.append(this.modelName);}first = false;if (!first) sb.append(", ");sb.append("modelNumber:");if (this.modelNumber == null) {sb.append("null");} else {sb.append(this.modelNumber);}first = false;if (!first) sb.append(", ");sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;if (!first) sb.append(", ");sb.append("color:");if (this.color == null) {sb.append("null");} else {sb.append(this.color);}first = false;if (!first) sb.append(", ");sb.append("taxType:");if (this.taxType == null) {sb.append("null");} else {sb.append(this.taxType);}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);}}}