Rev 13691 | 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.order;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 HsOrder implements org.apache.thrift.TBase<HsOrder, HsOrder._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HsOrder");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField HS_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderNo", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField HS_SUB_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsSubOrderNo", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField CATALOGUE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogueName", org.apache.thrift.protocol.TType.STRING, (short)4);private static final org.apache.thrift.protocol.TField HS_ORDER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderDate", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField HS_PRODUCT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsProductId", org.apache.thrift.protocol.TType.STRING, (short)6);private static final org.apache.thrift.protocol.TField HS_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItemId", org.apache.thrift.protocol.TType.STRING, (short)7);private static final org.apache.thrift.protocol.TField SELLER_SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sellerSku", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField PAYMENT_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentMode", org.apache.thrift.protocol.TType.STRING, (short)9);private static final org.apache.thrift.protocol.TField COURIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("courierName", org.apache.thrift.protocol.TType.STRING, (short)10);private static final org.apache.thrift.protocol.TField SLA_DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("slaDays", org.apache.thrift.protocol.TType.I64, (short)11);private static final org.apache.thrift.protocol.TField SHIPPING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingName", org.apache.thrift.protocol.TType.STRING, (short)12);private long orderId; // requiredprivate String hsOrderNo; // requiredprivate String hsSubOrderNo; // requiredprivate String catalogueName; // requiredprivate long hsOrderDate; // requiredprivate String hsProductId; // requiredprivate String hsItemId; // requiredprivate String sellerSku; // requiredprivate String paymentMode; // requiredprivate String courierName; // requiredprivate long slaDays; // requiredprivate String shippingName; // 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 {ORDER_ID((short)1, "orderId"),HS_ORDER_NO((short)2, "hsOrderNo"),HS_SUB_ORDER_NO((short)3, "hsSubOrderNo"),CATALOGUE_NAME((short)4, "catalogueName"),HS_ORDER_DATE((short)5, "hsOrderDate"),HS_PRODUCT_ID((short)6, "hsProductId"),HS_ITEM_ID((short)7, "hsItemId"),SELLER_SKU((short)8, "sellerSku"),PAYMENT_MODE((short)9, "paymentMode"),COURIER_NAME((short)10, "courierName"),SLA_DAYS((short)11, "slaDays"),SHIPPING_NAME((short)12, "shippingName");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: // ORDER_IDreturn ORDER_ID;case 2: // HS_ORDER_NOreturn HS_ORDER_NO;case 3: // HS_SUB_ORDER_NOreturn HS_SUB_ORDER_NO;case 4: // CATALOGUE_NAMEreturn CATALOGUE_NAME;case 5: // HS_ORDER_DATEreturn HS_ORDER_DATE;case 6: // HS_PRODUCT_IDreturn HS_PRODUCT_ID;case 7: // HS_ITEM_IDreturn HS_ITEM_ID;case 8: // SELLER_SKUreturn SELLER_SKU;case 9: // PAYMENT_MODEreturn PAYMENT_MODE;case 10: // COURIER_NAMEreturn COURIER_NAME;case 11: // SLA_DAYSreturn SLA_DAYS;case 12: // SHIPPING_NAMEreturn SHIPPING_NAME;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 __ORDERID_ISSET_ID = 0;private static final int __HSORDERDATE_ISSET_ID = 1;private static final int __SLADAYS_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);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.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.HS_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.HS_SUB_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsSubOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CATALOGUE_NAME, new org.apache.thrift.meta_data.FieldMetaData("catalogueName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.HS_ORDER_DATE, new org.apache.thrift.meta_data.FieldMetaData("hsOrderDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.HS_PRODUCT_ID, new org.apache.thrift.meta_data.FieldMetaData("hsProductId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.HS_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("hsItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SELLER_SKU, new org.apache.thrift.meta_data.FieldMetaData("sellerSku", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PAYMENT_MODE, new org.apache.thrift.meta_data.FieldMetaData("paymentMode", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.COURIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("courierName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SLA_DAYS, new org.apache.thrift.meta_data.FieldMetaData("slaDays", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SHIPPING_NAME, new org.apache.thrift.meta_data.FieldMetaData("shippingName", 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(HsOrder.class, metaDataMap);}public HsOrder() {}public HsOrder(long orderId,String hsOrderNo,String hsSubOrderNo,String catalogueName,long hsOrderDate,String hsProductId,String hsItemId,String sellerSku,String paymentMode,String courierName,long slaDays,String shippingName){this();this.orderId = orderId;setOrderIdIsSet(true);this.hsOrderNo = hsOrderNo;this.hsSubOrderNo = hsSubOrderNo;this.catalogueName = catalogueName;this.hsOrderDate = hsOrderDate;setHsOrderDateIsSet(true);this.hsProductId = hsProductId;this.hsItemId = hsItemId;this.sellerSku = sellerSku;this.paymentMode = paymentMode;this.courierName = courierName;this.slaDays = slaDays;setSlaDaysIsSet(true);this.shippingName = shippingName;}/*** Performs a deep copy on <i>other</i>.*/public HsOrder(HsOrder other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetHsOrderNo()) {this.hsOrderNo = other.hsOrderNo;}if (other.isSetHsSubOrderNo()) {this.hsSubOrderNo = other.hsSubOrderNo;}if (other.isSetCatalogueName()) {this.catalogueName = other.catalogueName;}this.hsOrderDate = other.hsOrderDate;if (other.isSetHsProductId()) {this.hsProductId = other.hsProductId;}if (other.isSetHsItemId()) {this.hsItemId = other.hsItemId;}if (other.isSetSellerSku()) {this.sellerSku = other.sellerSku;}if (other.isSetPaymentMode()) {this.paymentMode = other.paymentMode;}if (other.isSetCourierName()) {this.courierName = other.courierName;}this.slaDays = other.slaDays;if (other.isSetShippingName()) {this.shippingName = other.shippingName;}}public HsOrder deepCopy() {return new HsOrder(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.hsOrderNo = null;this.hsSubOrderNo = null;this.catalogueName = null;setHsOrderDateIsSet(false);this.hsOrderDate = 0;this.hsProductId = null;this.hsItemId = null;this.sellerSku = null;this.paymentMode = null;this.courierName = null;setSlaDaysIsSet(false);this.slaDays = 0;this.shippingName = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getHsOrderNo() {return this.hsOrderNo;}public void setHsOrderNo(String hsOrderNo) {this.hsOrderNo = hsOrderNo;}public void unsetHsOrderNo() {this.hsOrderNo = null;}/** Returns true if field hsOrderNo is set (has been assigned a value) and false otherwise */public boolean isSetHsOrderNo() {return this.hsOrderNo != null;}public void setHsOrderNoIsSet(boolean value) {if (!value) {this.hsOrderNo = null;}}public String getHsSubOrderNo() {return this.hsSubOrderNo;}public void setHsSubOrderNo(String hsSubOrderNo) {this.hsSubOrderNo = hsSubOrderNo;}public void unsetHsSubOrderNo() {this.hsSubOrderNo = null;}/** Returns true if field hsSubOrderNo is set (has been assigned a value) and false otherwise */public boolean isSetHsSubOrderNo() {return this.hsSubOrderNo != null;}public void setHsSubOrderNoIsSet(boolean value) {if (!value) {this.hsSubOrderNo = null;}}public String getCatalogueName() {return this.catalogueName;}public void setCatalogueName(String catalogueName) {this.catalogueName = catalogueName;}public void unsetCatalogueName() {this.catalogueName = null;}/** Returns true if field catalogueName is set (has been assigned a value) and false otherwise */public boolean isSetCatalogueName() {return this.catalogueName != null;}public void setCatalogueNameIsSet(boolean value) {if (!value) {this.catalogueName = null;}}public long getHsOrderDate() {return this.hsOrderDate;}public void setHsOrderDate(long hsOrderDate) {this.hsOrderDate = hsOrderDate;setHsOrderDateIsSet(true);}public void unsetHsOrderDate() {__isset_bit_vector.clear(__HSORDERDATE_ISSET_ID);}/** Returns true if field hsOrderDate is set (has been assigned a value) and false otherwise */public boolean isSetHsOrderDate() {return __isset_bit_vector.get(__HSORDERDATE_ISSET_ID);}public void setHsOrderDateIsSet(boolean value) {__isset_bit_vector.set(__HSORDERDATE_ISSET_ID, value);}public String getHsProductId() {return this.hsProductId;}public void setHsProductId(String hsProductId) {this.hsProductId = hsProductId;}public void unsetHsProductId() {this.hsProductId = null;}/** Returns true if field hsProductId is set (has been assigned a value) and false otherwise */public boolean isSetHsProductId() {return this.hsProductId != null;}public void setHsProductIdIsSet(boolean value) {if (!value) {this.hsProductId = null;}}public String getHsItemId() {return this.hsItemId;}public void setHsItemId(String hsItemId) {this.hsItemId = hsItemId;}public void unsetHsItemId() {this.hsItemId = null;}/** Returns true if field hsItemId is set (has been assigned a value) and false otherwise */public boolean isSetHsItemId() {return this.hsItemId != null;}public void setHsItemIdIsSet(boolean value) {if (!value) {this.hsItemId = null;}}public String getSellerSku() {return this.sellerSku;}public void setSellerSku(String sellerSku) {this.sellerSku = sellerSku;}public void unsetSellerSku() {this.sellerSku = null;}/** Returns true if field sellerSku is set (has been assigned a value) and false otherwise */public boolean isSetSellerSku() {return this.sellerSku != null;}public void setSellerSkuIsSet(boolean value) {if (!value) {this.sellerSku = null;}}public String getPaymentMode() {return this.paymentMode;}public void setPaymentMode(String paymentMode) {this.paymentMode = paymentMode;}public void unsetPaymentMode() {this.paymentMode = null;}/** Returns true if field paymentMode is set (has been assigned a value) and false otherwise */public boolean isSetPaymentMode() {return this.paymentMode != null;}public void setPaymentModeIsSet(boolean value) {if (!value) {this.paymentMode = null;}}public String getCourierName() {return this.courierName;}public void setCourierName(String courierName) {this.courierName = courierName;}public void unsetCourierName() {this.courierName = null;}/** Returns true if field courierName is set (has been assigned a value) and false otherwise */public boolean isSetCourierName() {return this.courierName != null;}public void setCourierNameIsSet(boolean value) {if (!value) {this.courierName = null;}}public long getSlaDays() {return this.slaDays;}public void setSlaDays(long slaDays) {this.slaDays = slaDays;setSlaDaysIsSet(true);}public void unsetSlaDays() {__isset_bit_vector.clear(__SLADAYS_ISSET_ID);}/** Returns true if field slaDays is set (has been assigned a value) and false otherwise */public boolean isSetSlaDays() {return __isset_bit_vector.get(__SLADAYS_ISSET_ID);}public void setSlaDaysIsSet(boolean value) {__isset_bit_vector.set(__SLADAYS_ISSET_ID, value);}public String getShippingName() {return this.shippingName;}public void setShippingName(String shippingName) {this.shippingName = shippingName;}public void unsetShippingName() {this.shippingName = null;}/** Returns true if field shippingName is set (has been assigned a value) and false otherwise */public boolean isSetShippingName() {return this.shippingName != null;}public void setShippingNameIsSet(boolean value) {if (!value) {this.shippingName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case HS_ORDER_NO:if (value == null) {unsetHsOrderNo();} else {setHsOrderNo((String)value);}break;case HS_SUB_ORDER_NO:if (value == null) {unsetHsSubOrderNo();} else {setHsSubOrderNo((String)value);}break;case CATALOGUE_NAME:if (value == null) {unsetCatalogueName();} else {setCatalogueName((String)value);}break;case HS_ORDER_DATE:if (value == null) {unsetHsOrderDate();} else {setHsOrderDate((Long)value);}break;case HS_PRODUCT_ID:if (value == null) {unsetHsProductId();} else {setHsProductId((String)value);}break;case HS_ITEM_ID:if (value == null) {unsetHsItemId();} else {setHsItemId((String)value);}break;case SELLER_SKU:if (value == null) {unsetSellerSku();} else {setSellerSku((String)value);}break;case PAYMENT_MODE:if (value == null) {unsetPaymentMode();} else {setPaymentMode((String)value);}break;case COURIER_NAME:if (value == null) {unsetCourierName();} else {setCourierName((String)value);}break;case SLA_DAYS:if (value == null) {unsetSlaDays();} else {setSlaDays((Long)value);}break;case SHIPPING_NAME:if (value == null) {unsetShippingName();} else {setShippingName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case HS_ORDER_NO:return getHsOrderNo();case HS_SUB_ORDER_NO:return getHsSubOrderNo();case CATALOGUE_NAME:return getCatalogueName();case HS_ORDER_DATE:return Long.valueOf(getHsOrderDate());case HS_PRODUCT_ID:return getHsProductId();case HS_ITEM_ID:return getHsItemId();case SELLER_SKU:return getSellerSku();case PAYMENT_MODE:return getPaymentMode();case COURIER_NAME:return getCourierName();case SLA_DAYS:return Long.valueOf(getSlaDays());case SHIPPING_NAME:return getShippingName();}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 ORDER_ID:return isSetOrderId();case HS_ORDER_NO:return isSetHsOrderNo();case HS_SUB_ORDER_NO:return isSetHsSubOrderNo();case CATALOGUE_NAME:return isSetCatalogueName();case HS_ORDER_DATE:return isSetHsOrderDate();case HS_PRODUCT_ID:return isSetHsProductId();case HS_ITEM_ID:return isSetHsItemId();case SELLER_SKU:return isSetSellerSku();case PAYMENT_MODE:return isSetPaymentMode();case COURIER_NAME:return isSetCourierName();case SLA_DAYS:return isSetSlaDays();case SHIPPING_NAME:return isSetShippingName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof HsOrder)return this.equals((HsOrder)that);return false;}public boolean equals(HsOrder that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_hsOrderNo = true && this.isSetHsOrderNo();boolean that_present_hsOrderNo = true && that.isSetHsOrderNo();if (this_present_hsOrderNo || that_present_hsOrderNo) {if (!(this_present_hsOrderNo && that_present_hsOrderNo))return false;if (!this.hsOrderNo.equals(that.hsOrderNo))return false;}boolean this_present_hsSubOrderNo = true && this.isSetHsSubOrderNo();boolean that_present_hsSubOrderNo = true && that.isSetHsSubOrderNo();if (this_present_hsSubOrderNo || that_present_hsSubOrderNo) {if (!(this_present_hsSubOrderNo && that_present_hsSubOrderNo))return false;if (!this.hsSubOrderNo.equals(that.hsSubOrderNo))return false;}boolean this_present_catalogueName = true && this.isSetCatalogueName();boolean that_present_catalogueName = true && that.isSetCatalogueName();if (this_present_catalogueName || that_present_catalogueName) {if (!(this_present_catalogueName && that_present_catalogueName))return false;if (!this.catalogueName.equals(that.catalogueName))return false;}boolean this_present_hsOrderDate = true;boolean that_present_hsOrderDate = true;if (this_present_hsOrderDate || that_present_hsOrderDate) {if (!(this_present_hsOrderDate && that_present_hsOrderDate))return false;if (this.hsOrderDate != that.hsOrderDate)return false;}boolean this_present_hsProductId = true && this.isSetHsProductId();boolean that_present_hsProductId = true && that.isSetHsProductId();if (this_present_hsProductId || that_present_hsProductId) {if (!(this_present_hsProductId && that_present_hsProductId))return false;if (!this.hsProductId.equals(that.hsProductId))return false;}boolean this_present_hsItemId = true && this.isSetHsItemId();boolean that_present_hsItemId = true && that.isSetHsItemId();if (this_present_hsItemId || that_present_hsItemId) {if (!(this_present_hsItemId && that_present_hsItemId))return false;if (!this.hsItemId.equals(that.hsItemId))return false;}boolean this_present_sellerSku = true && this.isSetSellerSku();boolean that_present_sellerSku = true && that.isSetSellerSku();if (this_present_sellerSku || that_present_sellerSku) {if (!(this_present_sellerSku && that_present_sellerSku))return false;if (!this.sellerSku.equals(that.sellerSku))return false;}boolean this_present_paymentMode = true && this.isSetPaymentMode();boolean that_present_paymentMode = true && that.isSetPaymentMode();if (this_present_paymentMode || that_present_paymentMode) {if (!(this_present_paymentMode && that_present_paymentMode))return false;if (!this.paymentMode.equals(that.paymentMode))return false;}boolean this_present_courierName = true && this.isSetCourierName();boolean that_present_courierName = true && that.isSetCourierName();if (this_present_courierName || that_present_courierName) {if (!(this_present_courierName && that_present_courierName))return false;if (!this.courierName.equals(that.courierName))return false;}boolean this_present_slaDays = true;boolean that_present_slaDays = true;if (this_present_slaDays || that_present_slaDays) {if (!(this_present_slaDays && that_present_slaDays))return false;if (this.slaDays != that.slaDays)return false;}boolean this_present_shippingName = true && this.isSetShippingName();boolean that_present_shippingName = true && that.isSetShippingName();if (this_present_shippingName || that_present_shippingName) {if (!(this_present_shippingName && that_present_shippingName))return false;if (!this.shippingName.equals(that.shippingName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(HsOrder other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;HsOrder typedOther = (HsOrder)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHsOrderNo()).compareTo(typedOther.isSetHsOrderNo());if (lastComparison != 0) {return lastComparison;}if (isSetHsOrderNo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderNo, typedOther.hsOrderNo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHsSubOrderNo()).compareTo(typedOther.isSetHsSubOrderNo());if (lastComparison != 0) {return lastComparison;}if (isSetHsSubOrderNo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsSubOrderNo, typedOther.hsSubOrderNo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCatalogueName()).compareTo(typedOther.isSetCatalogueName());if (lastComparison != 0) {return lastComparison;}if (isSetCatalogueName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogueName, typedOther.catalogueName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHsOrderDate()).compareTo(typedOther.isSetHsOrderDate());if (lastComparison != 0) {return lastComparison;}if (isSetHsOrderDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderDate, typedOther.hsOrderDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHsProductId()).compareTo(typedOther.isSetHsProductId());if (lastComparison != 0) {return lastComparison;}if (isSetHsProductId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsProductId, typedOther.hsProductId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHsItemId()).compareTo(typedOther.isSetHsItemId());if (lastComparison != 0) {return lastComparison;}if (isSetHsItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItemId, typedOther.hsItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSellerSku()).compareTo(typedOther.isSetSellerSku());if (lastComparison != 0) {return lastComparison;}if (isSetSellerSku()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellerSku, typedOther.sellerSku);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPaymentMode()).compareTo(typedOther.isSetPaymentMode());if (lastComparison != 0) {return lastComparison;}if (isSetPaymentMode()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentMode, typedOther.paymentMode);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCourierName()).compareTo(typedOther.isSetCourierName());if (lastComparison != 0) {return lastComparison;}if (isSetCourierName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierName, typedOther.courierName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSlaDays()).compareTo(typedOther.isSetSlaDays());if (lastComparison != 0) {return lastComparison;}if (isSetSlaDays()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slaDays, typedOther.slaDays);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetShippingName()).compareTo(typedOther.isSetShippingName());if (lastComparison != 0) {return lastComparison;}if (isSetShippingName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingName, typedOther.shippingName);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: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // HS_ORDER_NOif (field.type == org.apache.thrift.protocol.TType.STRING) {this.hsOrderNo = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // HS_SUB_ORDER_NOif (field.type == org.apache.thrift.protocol.TType.STRING) {this.hsSubOrderNo = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CATALOGUE_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.catalogueName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // HS_ORDER_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.hsOrderDate = iprot.readI64();setHsOrderDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // HS_PRODUCT_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.hsProductId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // HS_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.hsItemId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // SELLER_SKUif (field.type == org.apache.thrift.protocol.TType.STRING) {this.sellerSku = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // PAYMENT_MODEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.paymentMode = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // COURIER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.courierName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // SLA_DAYSif (field.type == org.apache.thrift.protocol.TType.I64) {this.slaDays = iprot.readI64();setSlaDaysIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // SHIPPING_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.shippingName = 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(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.hsOrderNo != null) {oprot.writeFieldBegin(HS_ORDER_NO_FIELD_DESC);oprot.writeString(this.hsOrderNo);oprot.writeFieldEnd();}if (this.hsSubOrderNo != null) {oprot.writeFieldBegin(HS_SUB_ORDER_NO_FIELD_DESC);oprot.writeString(this.hsSubOrderNo);oprot.writeFieldEnd();}if (this.catalogueName != null) {oprot.writeFieldBegin(CATALOGUE_NAME_FIELD_DESC);oprot.writeString(this.catalogueName);oprot.writeFieldEnd();}oprot.writeFieldBegin(HS_ORDER_DATE_FIELD_DESC);oprot.writeI64(this.hsOrderDate);oprot.writeFieldEnd();if (this.hsProductId != null) {oprot.writeFieldBegin(HS_PRODUCT_ID_FIELD_DESC);oprot.writeString(this.hsProductId);oprot.writeFieldEnd();}if (this.hsItemId != null) {oprot.writeFieldBegin(HS_ITEM_ID_FIELD_DESC);oprot.writeString(this.hsItemId);oprot.writeFieldEnd();}if (this.sellerSku != null) {oprot.writeFieldBegin(SELLER_SKU_FIELD_DESC);oprot.writeString(this.sellerSku);oprot.writeFieldEnd();}if (this.paymentMode != null) {oprot.writeFieldBegin(PAYMENT_MODE_FIELD_DESC);oprot.writeString(this.paymentMode);oprot.writeFieldEnd();}if (this.courierName != null) {oprot.writeFieldBegin(COURIER_NAME_FIELD_DESC);oprot.writeString(this.courierName);oprot.writeFieldEnd();}oprot.writeFieldBegin(SLA_DAYS_FIELD_DESC);oprot.writeI64(this.slaDays);oprot.writeFieldEnd();if (this.shippingName != null) {oprot.writeFieldBegin(SHIPPING_NAME_FIELD_DESC);oprot.writeString(this.shippingName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("HsOrder(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("hsOrderNo:");if (this.hsOrderNo == null) {sb.append("null");} else {sb.append(this.hsOrderNo);}first = false;if (!first) sb.append(", ");sb.append("hsSubOrderNo:");if (this.hsSubOrderNo == null) {sb.append("null");} else {sb.append(this.hsSubOrderNo);}first = false;if (!first) sb.append(", ");sb.append("catalogueName:");if (this.catalogueName == null) {sb.append("null");} else {sb.append(this.catalogueName);}first = false;if (!first) sb.append(", ");sb.append("hsOrderDate:");sb.append(this.hsOrderDate);first = false;if (!first) sb.append(", ");sb.append("hsProductId:");if (this.hsProductId == null) {sb.append("null");} else {sb.append(this.hsProductId);}first = false;if (!first) sb.append(", ");sb.append("hsItemId:");if (this.hsItemId == null) {sb.append("null");} else {sb.append(this.hsItemId);}first = false;if (!first) sb.append(", ");sb.append("sellerSku:");if (this.sellerSku == null) {sb.append("null");} else {sb.append(this.sellerSku);}first = false;if (!first) sb.append(", ");sb.append("paymentMode:");if (this.paymentMode == null) {sb.append("null");} else {sb.append(this.paymentMode);}first = false;if (!first) sb.append(", ");sb.append("courierName:");if (this.courierName == null) {sb.append("null");} else {sb.append(this.courierName);}first = false;if (!first) sb.append(", ");sb.append("slaDays:");sb.append(this.slaDays);first = false;if (!first) sb.append(", ");sb.append("shippingName:");if (this.shippingName == null) {sb.append("null");} else {sb.append(this.shippingName);}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);}}}