Rev 2841 | Blame | 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 Warehouse implements org.apache.thrift.TBase<Warehouse, Warehouse._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Warehouse");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField WAREHOUSE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseStatus", org.apache.thrift.protocol.TType.I32, (short)4);private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField LAST_CHECKED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCheckedOn", org.apache.thrift.protocol.TType.I64, (short)6);private static final org.apache.thrift.protocol.TField TIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("tinNumber", org.apache.thrift.protocol.TType.STRING, (short)7);private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField VENDOR_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorString", org.apache.thrift.protocol.TType.STRING, (short)9);private static final org.apache.thrift.protocol.TField LOGISTICS_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsLocation", org.apache.thrift.protocol.TType.I32, (short)10);private static final org.apache.thrift.protocol.TField VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor", org.apache.thrift.protocol.TType.STRING, (short)11);private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)12);private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I32, (short)13);private long id; // requiredprivate String displayName; // requiredprivate String location; // requiredprivate status warehouseStatus; // requiredprivate long addedOn; // requiredprivate long lastCheckedOn; // requiredprivate String tinNumber; // requiredprivate String pincode; // requiredprivate String vendorString; // requiredprivate WarehouseLocation logisticsLocation; // requiredprivate String vendor; // requiredprivate long vendorId; // requiredprivate BillingType billingType; // 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 {ID((short)1, "id"),DISPLAY_NAME((short)2, "displayName"),LOCATION((short)3, "location"),/**** @see status*/WAREHOUSE_STATUS((short)4, "warehouseStatus"),ADDED_ON((short)5, "addedOn"),LAST_CHECKED_ON((short)6, "lastCheckedOn"),TIN_NUMBER((short)7, "tinNumber"),PINCODE((short)8, "pincode"),VENDOR_STRING((short)9, "vendorString"),/**** @see WarehouseLocation*/LOGISTICS_LOCATION((short)10, "logisticsLocation"),VENDOR((short)11, "vendor"),VENDOR_ID((short)12, "vendorId"),/**** @see BillingType*/BILLING_TYPE((short)13, "billingType");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: // IDreturn ID;case 2: // DISPLAY_NAMEreturn DISPLAY_NAME;case 3: // LOCATIONreturn LOCATION;case 4: // WAREHOUSE_STATUSreturn WAREHOUSE_STATUS;case 5: // ADDED_ONreturn ADDED_ON;case 6: // LAST_CHECKED_ONreturn LAST_CHECKED_ON;case 7: // TIN_NUMBERreturn TIN_NUMBER;case 8: // PINCODEreturn PINCODE;case 9: // VENDOR_STRINGreturn VENDOR_STRING;case 10: // LOGISTICS_LOCATIONreturn LOGISTICS_LOCATION;case 11: // VENDORreturn VENDOR;case 12: // VENDOR_IDreturn VENDOR_ID;case 13: // BILLING_TYPEreturn BILLING_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 __ID_ISSET_ID = 0;private static final int __ADDEDON_ISSET_ID = 1;private static final int __LASTCHECKEDON_ISSET_ID = 2;private static final int __VENDORID_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.WAREHOUSE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("warehouseStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LAST_CHECKED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastCheckedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("tinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.LOGISTICS_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocation", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseLocation.class)));tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BillingType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);}public Warehouse() {}public Warehouse(long id,String displayName,String location,status warehouseStatus,long addedOn,long lastCheckedOn,String tinNumber,String pincode,String vendorString,WarehouseLocation logisticsLocation,String vendor,long vendorId,BillingType billingType){this();this.id = id;setIdIsSet(true);this.displayName = displayName;this.location = location;this.warehouseStatus = warehouseStatus;this.addedOn = addedOn;setAddedOnIsSet(true);this.lastCheckedOn = lastCheckedOn;setLastCheckedOnIsSet(true);this.tinNumber = tinNumber;this.pincode = pincode;this.vendorString = vendorString;this.logisticsLocation = logisticsLocation;this.vendor = vendor;this.vendorId = vendorId;setVendorIdIsSet(true);this.billingType = billingType;}/*** Performs a deep copy on <i>other</i>.*/public Warehouse(Warehouse other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetDisplayName()) {this.displayName = other.displayName;}if (other.isSetLocation()) {this.location = other.location;}if (other.isSetWarehouseStatus()) {this.warehouseStatus = other.warehouseStatus;}this.addedOn = other.addedOn;this.lastCheckedOn = other.lastCheckedOn;if (other.isSetTinNumber()) {this.tinNumber = other.tinNumber;}if (other.isSetPincode()) {this.pincode = other.pincode;}if (other.isSetVendorString()) {this.vendorString = other.vendorString;}if (other.isSetLogisticsLocation()) {this.logisticsLocation = other.logisticsLocation;}if (other.isSetVendor()) {this.vendor = other.vendor;}this.vendorId = other.vendorId;if (other.isSetBillingType()) {this.billingType = other.billingType;}}public Warehouse deepCopy() {return new Warehouse(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;this.displayName = null;this.location = null;this.warehouseStatus = null;setAddedOnIsSet(false);this.addedOn = 0;setLastCheckedOnIsSet(false);this.lastCheckedOn = 0;this.tinNumber = null;this.pincode = null;this.vendorString = null;this.logisticsLocation = null;this.vendor = null;setVendorIdIsSet(false);this.vendorId = 0;this.billingType = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public String getDisplayName() {return this.displayName;}public void setDisplayName(String displayName) {this.displayName = displayName;}public void unsetDisplayName() {this.displayName = null;}/** Returns true if field displayName is set (has been assigned a value) and false otherwise */public boolean isSetDisplayName() {return this.displayName != null;}public void setDisplayNameIsSet(boolean value) {if (!value) {this.displayName = null;}}public String getLocation() {return this.location;}public void setLocation(String location) {this.location = location;}public void unsetLocation() {this.location = null;}/** Returns true if field location is set (has been assigned a value) and false otherwise */public boolean isSetLocation() {return this.location != null;}public void setLocationIsSet(boolean value) {if (!value) {this.location = null;}}/**** @see status*/public status getWarehouseStatus() {return this.warehouseStatus;}/**** @see status*/public void setWarehouseStatus(status warehouseStatus) {this.warehouseStatus = warehouseStatus;}public void unsetWarehouseStatus() {this.warehouseStatus = null;}/** Returns true if field warehouseStatus is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseStatus() {return this.warehouseStatus != null;}public void setWarehouseStatusIsSet(boolean value) {if (!value) {this.warehouseStatus = null;}}public long getAddedOn() {return this.addedOn;}public void setAddedOn(long addedOn) {this.addedOn = addedOn;setAddedOnIsSet(true);}public void unsetAddedOn() {__isset_bit_vector.clear(__ADDEDON_ISSET_ID);}/** Returns true if field addedOn is set (has been assigned a value) and false otherwise */public boolean isSetAddedOn() {return __isset_bit_vector.get(__ADDEDON_ISSET_ID);}public void setAddedOnIsSet(boolean value) {__isset_bit_vector.set(__ADDEDON_ISSET_ID, value);}public long getLastCheckedOn() {return this.lastCheckedOn;}public void setLastCheckedOn(long lastCheckedOn) {this.lastCheckedOn = lastCheckedOn;setLastCheckedOnIsSet(true);}public void unsetLastCheckedOn() {__isset_bit_vector.clear(__LASTCHECKEDON_ISSET_ID);}/** Returns true if field lastCheckedOn is set (has been assigned a value) and false otherwise */public boolean isSetLastCheckedOn() {return __isset_bit_vector.get(__LASTCHECKEDON_ISSET_ID);}public void setLastCheckedOnIsSet(boolean value) {__isset_bit_vector.set(__LASTCHECKEDON_ISSET_ID, value);}public String getTinNumber() {return this.tinNumber;}public void setTinNumber(String tinNumber) {this.tinNumber = tinNumber;}public void unsetTinNumber() {this.tinNumber = null;}/** Returns true if field tinNumber is set (has been assigned a value) and false otherwise */public boolean isSetTinNumber() {return this.tinNumber != null;}public void setTinNumberIsSet(boolean value) {if (!value) {this.tinNumber = null;}}public String getPincode() {return this.pincode;}public void setPincode(String pincode) {this.pincode = pincode;}public void unsetPincode() {this.pincode = null;}/** Returns true if field pincode is set (has been assigned a value) and false otherwise */public boolean isSetPincode() {return this.pincode != null;}public void setPincodeIsSet(boolean value) {if (!value) {this.pincode = null;}}public String getVendorString() {return this.vendorString;}public void setVendorString(String vendorString) {this.vendorString = vendorString;}public void unsetVendorString() {this.vendorString = null;}/** Returns true if field vendorString is set (has been assigned a value) and false otherwise */public boolean isSetVendorString() {return this.vendorString != null;}public void setVendorStringIsSet(boolean value) {if (!value) {this.vendorString = null;}}/**** @see WarehouseLocation*/public WarehouseLocation getLogisticsLocation() {return this.logisticsLocation;}/**** @see WarehouseLocation*/public void setLogisticsLocation(WarehouseLocation logisticsLocation) {this.logisticsLocation = logisticsLocation;}public void unsetLogisticsLocation() {this.logisticsLocation = null;}/** Returns true if field logisticsLocation is set (has been assigned a value) and false otherwise */public boolean isSetLogisticsLocation() {return this.logisticsLocation != null;}public void setLogisticsLocationIsSet(boolean value) {if (!value) {this.logisticsLocation = null;}}public String getVendor() {return this.vendor;}public void setVendor(String vendor) {this.vendor = vendor;}public void unsetVendor() {this.vendor = null;}/** Returns true if field vendor is set (has been assigned a value) and false otherwise */public boolean isSetVendor() {return this.vendor != null;}public void setVendorIsSet(boolean value) {if (!value) {this.vendor = null;}}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}/**** @see BillingType*/public BillingType getBillingType() {return this.billingType;}/**** @see BillingType*/public void setBillingType(BillingType billingType) {this.billingType = billingType;}public void unsetBillingType() {this.billingType = null;}/** Returns true if field billingType is set (has been assigned a value) and false otherwise */public boolean isSetBillingType() {return this.billingType != null;}public void setBillingTypeIsSet(boolean value) {if (!value) {this.billingType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case DISPLAY_NAME:if (value == null) {unsetDisplayName();} else {setDisplayName((String)value);}break;case LOCATION:if (value == null) {unsetLocation();} else {setLocation((String)value);}break;case WAREHOUSE_STATUS:if (value == null) {unsetWarehouseStatus();} else {setWarehouseStatus((status)value);}break;case ADDED_ON:if (value == null) {unsetAddedOn();} else {setAddedOn((Long)value);}break;case LAST_CHECKED_ON:if (value == null) {unsetLastCheckedOn();} else {setLastCheckedOn((Long)value);}break;case TIN_NUMBER:if (value == null) {unsetTinNumber();} else {setTinNumber((String)value);}break;case PINCODE:if (value == null) {unsetPincode();} else {setPincode((String)value);}break;case VENDOR_STRING:if (value == null) {unsetVendorString();} else {setVendorString((String)value);}break;case LOGISTICS_LOCATION:if (value == null) {unsetLogisticsLocation();} else {setLogisticsLocation((WarehouseLocation)value);}break;case VENDOR:if (value == null) {unsetVendor();} else {setVendor((String)value);}break;case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case BILLING_TYPE:if (value == null) {unsetBillingType();} else {setBillingType((BillingType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case DISPLAY_NAME:return getDisplayName();case LOCATION:return getLocation();case WAREHOUSE_STATUS:return getWarehouseStatus();case ADDED_ON:return Long.valueOf(getAddedOn());case LAST_CHECKED_ON:return Long.valueOf(getLastCheckedOn());case TIN_NUMBER:return getTinNumber();case PINCODE:return getPincode();case VENDOR_STRING:return getVendorString();case LOGISTICS_LOCATION:return getLogisticsLocation();case VENDOR:return getVendor();case VENDOR_ID:return Long.valueOf(getVendorId());case BILLING_TYPE:return getBillingType();}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 ID:return isSetId();case DISPLAY_NAME:return isSetDisplayName();case LOCATION:return isSetLocation();case WAREHOUSE_STATUS:return isSetWarehouseStatus();case ADDED_ON:return isSetAddedOn();case LAST_CHECKED_ON:return isSetLastCheckedOn();case TIN_NUMBER:return isSetTinNumber();case PINCODE:return isSetPincode();case VENDOR_STRING:return isSetVendorString();case LOGISTICS_LOCATION:return isSetLogisticsLocation();case VENDOR:return isSetVendor();case VENDOR_ID:return isSetVendorId();case BILLING_TYPE:return isSetBillingType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof Warehouse)return this.equals((Warehouse)that);return false;}public boolean equals(Warehouse that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_displayName = true && this.isSetDisplayName();boolean that_present_displayName = true && that.isSetDisplayName();if (this_present_displayName || that_present_displayName) {if (!(this_present_displayName && that_present_displayName))return false;if (!this.displayName.equals(that.displayName))return false;}boolean this_present_location = true && this.isSetLocation();boolean that_present_location = true && that.isSetLocation();if (this_present_location || that_present_location) {if (!(this_present_location && that_present_location))return false;if (!this.location.equals(that.location))return false;}boolean this_present_warehouseStatus = true && this.isSetWarehouseStatus();boolean that_present_warehouseStatus = true && that.isSetWarehouseStatus();if (this_present_warehouseStatus || that_present_warehouseStatus) {if (!(this_present_warehouseStatus && that_present_warehouseStatus))return false;if (!this.warehouseStatus.equals(that.warehouseStatus))return false;}boolean this_present_addedOn = true;boolean that_present_addedOn = true;if (this_present_addedOn || that_present_addedOn) {if (!(this_present_addedOn && that_present_addedOn))return false;if (this.addedOn != that.addedOn)return false;}boolean this_present_lastCheckedOn = true;boolean that_present_lastCheckedOn = true;if (this_present_lastCheckedOn || that_present_lastCheckedOn) {if (!(this_present_lastCheckedOn && that_present_lastCheckedOn))return false;if (this.lastCheckedOn != that.lastCheckedOn)return false;}boolean this_present_tinNumber = true && this.isSetTinNumber();boolean that_present_tinNumber = true && that.isSetTinNumber();if (this_present_tinNumber || that_present_tinNumber) {if (!(this_present_tinNumber && that_present_tinNumber))return false;if (!this.tinNumber.equals(that.tinNumber))return false;}boolean this_present_pincode = true && this.isSetPincode();boolean that_present_pincode = true && that.isSetPincode();if (this_present_pincode || that_present_pincode) {if (!(this_present_pincode && that_present_pincode))return false;if (!this.pincode.equals(that.pincode))return false;}boolean this_present_vendorString = true && this.isSetVendorString();boolean that_present_vendorString = true && that.isSetVendorString();if (this_present_vendorString || that_present_vendorString) {if (!(this_present_vendorString && that_present_vendorString))return false;if (!this.vendorString.equals(that.vendorString))return false;}boolean this_present_logisticsLocation = true && this.isSetLogisticsLocation();boolean that_present_logisticsLocation = true && that.isSetLogisticsLocation();if (this_present_logisticsLocation || that_present_logisticsLocation) {if (!(this_present_logisticsLocation && that_present_logisticsLocation))return false;if (!this.logisticsLocation.equals(that.logisticsLocation))return false;}boolean this_present_vendor = true && this.isSetVendor();boolean that_present_vendor = true && that.isSetVendor();if (this_present_vendor || that_present_vendor) {if (!(this_present_vendor && that_present_vendor))return false;if (!this.vendor.equals(that.vendor))return false;}boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_billingType = true && this.isSetBillingType();boolean that_present_billingType = true && that.isSetBillingType();if (this_present_billingType || that_present_billingType) {if (!(this_present_billingType && that_present_billingType))return false;if (!this.billingType.equals(that.billingType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(Warehouse other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;Warehouse typedOther = (Warehouse)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());if (lastComparison != 0) {return lastComparison;}if (isSetDisplayName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());if (lastComparison != 0) {return lastComparison;}if (isSetLocation()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseStatus()).compareTo(typedOther.isSetWarehouseStatus());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseStatus, typedOther.warehouseStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());if (lastComparison != 0) {return lastComparison;}if (isSetAddedOn()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLastCheckedOn()).compareTo(typedOther.isSetLastCheckedOn());if (lastComparison != 0) {return lastComparison;}if (isSetLastCheckedOn()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastCheckedOn, typedOther.lastCheckedOn);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(typedOther.isSetTinNumber());if (lastComparison != 0) {return lastComparison;}if (isSetTinNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinNumber, typedOther.tinNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());if (lastComparison != 0) {return lastComparison;}if (isSetPincode()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());if (lastComparison != 0) {return lastComparison;}if (isSetVendorString()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLogisticsLocation()).compareTo(typedOther.isSetLogisticsLocation());if (lastComparison != 0) {return lastComparison;}if (isSetLogisticsLocation()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocation, typedOther.logisticsLocation);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());if (lastComparison != 0) {return lastComparison;}if (isSetVendor()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());if (lastComparison != 0) {return lastComparison;}if (isSetBillingType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);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: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DISPLAY_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.displayName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LOCATIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.location = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // WAREHOUSE_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.warehouseStatus = status.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // ADDED_ONif (field.type == org.apache.thrift.protocol.TType.I64) {this.addedOn = iprot.readI64();setAddedOnIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // LAST_CHECKED_ONif (field.type == org.apache.thrift.protocol.TType.I64) {this.lastCheckedOn = iprot.readI64();setLastCheckedOnIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // TIN_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.tinNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // PINCODEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.pincode = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // VENDOR_STRINGif (field.type == org.apache.thrift.protocol.TType.STRING) {this.vendorString = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // LOGISTICS_LOCATIONif (field.type == org.apache.thrift.protocol.TType.I32) {this.logisticsLocation = WarehouseLocation.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // VENDORif (field.type == org.apache.thrift.protocol.TType.STRING) {this.vendor = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 13: // BILLING_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.billingType = BillingType.findByValue(iprot.readI32());} 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(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.displayName != null) {oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);oprot.writeString(this.displayName);oprot.writeFieldEnd();}if (this.location != null) {oprot.writeFieldBegin(LOCATION_FIELD_DESC);oprot.writeString(this.location);oprot.writeFieldEnd();}if (this.warehouseStatus != null) {oprot.writeFieldBegin(WAREHOUSE_STATUS_FIELD_DESC);oprot.writeI32(this.warehouseStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);oprot.writeI64(this.addedOn);oprot.writeFieldEnd();oprot.writeFieldBegin(LAST_CHECKED_ON_FIELD_DESC);oprot.writeI64(this.lastCheckedOn);oprot.writeFieldEnd();if (this.tinNumber != null) {oprot.writeFieldBegin(TIN_NUMBER_FIELD_DESC);oprot.writeString(this.tinNumber);oprot.writeFieldEnd();}if (this.pincode != null) {oprot.writeFieldBegin(PINCODE_FIELD_DESC);oprot.writeString(this.pincode);oprot.writeFieldEnd();}if (this.vendorString != null) {oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);oprot.writeString(this.vendorString);oprot.writeFieldEnd();}if (this.logisticsLocation != null) {oprot.writeFieldBegin(LOGISTICS_LOCATION_FIELD_DESC);oprot.writeI32(this.logisticsLocation.getValue());oprot.writeFieldEnd();}if (this.vendor != null) {oprot.writeFieldBegin(VENDOR_FIELD_DESC);oprot.writeString(this.vendor);oprot.writeFieldEnd();}oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();if (this.billingType != null) {oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);oprot.writeI32(this.billingType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("Warehouse(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("displayName:");if (this.displayName == null) {sb.append("null");} else {sb.append(this.displayName);}first = false;if (!first) sb.append(", ");sb.append("location:");if (this.location == null) {sb.append("null");} else {sb.append(this.location);}first = false;if (!first) sb.append(", ");sb.append("warehouseStatus:");if (this.warehouseStatus == null) {sb.append("null");} else {sb.append(this.warehouseStatus);}first = false;if (!first) sb.append(", ");sb.append("addedOn:");sb.append(this.addedOn);first = false;if (!first) sb.append(", ");sb.append("lastCheckedOn:");sb.append(this.lastCheckedOn);first = false;if (!first) sb.append(", ");sb.append("tinNumber:");if (this.tinNumber == null) {sb.append("null");} else {sb.append(this.tinNumber);}first = false;if (!first) sb.append(", ");sb.append("pincode:");if (this.pincode == null) {sb.append("null");} else {sb.append(this.pincode);}first = false;if (!first) sb.append(", ");sb.append("vendorString:");if (this.vendorString == null) {sb.append("null");} else {sb.append(this.vendorString);}first = false;if (!first) sb.append(", ");sb.append("logisticsLocation:");if (this.logisticsLocation == null) {sb.append("null");} else {sb.append(this.logisticsLocation);}first = false;if (!first) sb.append(", ");sb.append("vendor:");if (this.vendor == null) {sb.append("null");} else {sb.append(this.vendor);}first = false;if (!first) sb.append(", ");sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("billingType:");if (this.billingType == null) {sb.append("null");} else {sb.append(this.billingType);}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);}}}