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.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 PendingStoreOrder implements org.apache.thrift.TBase<PendingStoreOrder, PendingStoreOrder._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PendingStoreOrder");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 STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField PRODUCT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("productId", org.apache.thrift.protocol.TType.I64, (short)3);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)4);private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)6);private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)7);private static final org.apache.thrift.protocol.TField LINE1_FIELD_DESC = new org.apache.thrift.protocol.TField("line1", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField LINE2_FIELD_DESC = new org.apache.thrift.protocol.TField("line2", org.apache.thrift.protocol.TType.STRING, (short)9);private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)10);private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)11);private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)12);private long id; // requiredprivate long storeId; // requiredprivate long productId; // requiredprivate String pincode; // requiredprivate String name; // requiredprivate String email; // requiredprivate String phone; // requiredprivate String line1; // requiredprivate String line2; // requiredprivate String city; // requiredprivate String state; // requiredprivate long createdOn; // 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"),STORE_ID((short)2, "storeId"),PRODUCT_ID((short)3, "productId"),PINCODE((short)4, "pincode"),NAME((short)5, "name"),EMAIL((short)6, "email"),PHONE((short)7, "phone"),LINE1((short)8, "line1"),LINE2((short)9, "line2"),CITY((short)10, "city"),STATE((short)11, "state"),CREATED_ON((short)12, "createdOn");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: // STORE_IDreturn STORE_ID;case 3: // PRODUCT_IDreturn PRODUCT_ID;case 4: // PINCODEreturn PINCODE;case 5: // NAMEreturn NAME;case 6: // EMAILreturn EMAIL;case 7: // PHONEreturn PHONE;case 8: // LINE1return LINE1;case 9: // LINE2return LINE2;case 10: // CITYreturn CITY;case 11: // STATEreturn STATE;case 12: // CREATED_ONreturn CREATED_ON;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 __STOREID_ISSET_ID = 1;private static final int __PRODUCTID_ISSET_ID = 2;private static final int __CREATEDON_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.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PRODUCT_ID, new org.apache.thrift.meta_data.FieldMetaData("productId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.LINE1, new org.apache.thrift.meta_data.FieldMetaData("line1", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.LINE2, new org.apache.thrift.meta_data.FieldMetaData("line2", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CITY, new org.apache.thrift.meta_data.FieldMetaData("city", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PendingStoreOrder.class, metaDataMap);}public PendingStoreOrder() {}public PendingStoreOrder(long id,long storeId,long productId,String pincode,String name,String email,String phone,String line1,String line2,String city,String state,long createdOn){this();this.id = id;setIdIsSet(true);this.storeId = storeId;setStoreIdIsSet(true);this.productId = productId;setProductIdIsSet(true);this.pincode = pincode;this.name = name;this.email = email;this.phone = phone;this.line1 = line1;this.line2 = line2;this.city = city;this.state = state;this.createdOn = createdOn;setCreatedOnIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public PendingStoreOrder(PendingStoreOrder other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;this.storeId = other.storeId;this.productId = other.productId;if (other.isSetPincode()) {this.pincode = other.pincode;}if (other.isSetName()) {this.name = other.name;}if (other.isSetEmail()) {this.email = other.email;}if (other.isSetPhone()) {this.phone = other.phone;}if (other.isSetLine1()) {this.line1 = other.line1;}if (other.isSetLine2()) {this.line2 = other.line2;}if (other.isSetCity()) {this.city = other.city;}if (other.isSetState()) {this.state = other.state;}this.createdOn = other.createdOn;}public PendingStoreOrder deepCopy() {return new PendingStoreOrder(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;setStoreIdIsSet(false);this.storeId = 0;setProductIdIsSet(false);this.productId = 0;this.pincode = null;this.name = null;this.email = null;this.phone = null;this.line1 = null;this.line2 = null;this.city = null;this.state = null;setCreatedOnIsSet(false);this.createdOn = 0;}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 long getStoreId() {return this.storeId;}public void setStoreId(long storeId) {this.storeId = storeId;setStoreIdIsSet(true);}public void unsetStoreId() {__isset_bit_vector.clear(__STOREID_ISSET_ID);}/** Returns true if field storeId is set (has been assigned a value) and false otherwise */public boolean isSetStoreId() {return __isset_bit_vector.get(__STOREID_ISSET_ID);}public void setStoreIdIsSet(boolean value) {__isset_bit_vector.set(__STOREID_ISSET_ID, value);}public long getProductId() {return this.productId;}public void setProductId(long productId) {this.productId = productId;setProductIdIsSet(true);}public void unsetProductId() {__isset_bit_vector.clear(__PRODUCTID_ISSET_ID);}/** Returns true if field productId is set (has been assigned a value) and false otherwise */public boolean isSetProductId() {return __isset_bit_vector.get(__PRODUCTID_ISSET_ID);}public void setProductIdIsSet(boolean value) {__isset_bit_vector.set(__PRODUCTID_ISSET_ID, value);}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 getName() {return this.name;}public void setName(String name) {this.name = name;}public void unsetName() {this.name = null;}/** Returns true if field name is set (has been assigned a value) and false otherwise */public boolean isSetName() {return this.name != null;}public void setNameIsSet(boolean value) {if (!value) {this.name = null;}}public String getEmail() {return this.email;}public void setEmail(String email) {this.email = email;}public void unsetEmail() {this.email = null;}/** Returns true if field email is set (has been assigned a value) and false otherwise */public boolean isSetEmail() {return this.email != null;}public void setEmailIsSet(boolean value) {if (!value) {this.email = null;}}public String getPhone() {return this.phone;}public void setPhone(String phone) {this.phone = phone;}public void unsetPhone() {this.phone = null;}/** Returns true if field phone is set (has been assigned a value) and false otherwise */public boolean isSetPhone() {return this.phone != null;}public void setPhoneIsSet(boolean value) {if (!value) {this.phone = null;}}public String getLine1() {return this.line1;}public void setLine1(String line1) {this.line1 = line1;}public void unsetLine1() {this.line1 = null;}/** Returns true if field line1 is set (has been assigned a value) and false otherwise */public boolean isSetLine1() {return this.line1 != null;}public void setLine1IsSet(boolean value) {if (!value) {this.line1 = null;}}public String getLine2() {return this.line2;}public void setLine2(String line2) {this.line2 = line2;}public void unsetLine2() {this.line2 = null;}/** Returns true if field line2 is set (has been assigned a value) and false otherwise */public boolean isSetLine2() {return this.line2 != null;}public void setLine2IsSet(boolean value) {if (!value) {this.line2 = null;}}public String getCity() {return this.city;}public void setCity(String city) {this.city = city;}public void unsetCity() {this.city = null;}/** Returns true if field city is set (has been assigned a value) and false otherwise */public boolean isSetCity() {return this.city != null;}public void setCityIsSet(boolean value) {if (!value) {this.city = null;}}public String getState() {return this.state;}public void setState(String state) {this.state = state;}public void unsetState() {this.state = null;}/** Returns true if field state is set (has been assigned a value) and false otherwise */public boolean isSetState() {return this.state != null;}public void setStateIsSet(boolean value) {if (!value) {this.state = null;}}public long getCreatedOn() {return this.createdOn;}public void setCreatedOn(long createdOn) {this.createdOn = createdOn;setCreatedOnIsSet(true);}public void unsetCreatedOn() {__isset_bit_vector.clear(__CREATEDON_ISSET_ID);}/** Returns true if field createdOn is set (has been assigned a value) and false otherwise */public boolean isSetCreatedOn() {return __isset_bit_vector.get(__CREATEDON_ISSET_ID);}public void setCreatedOnIsSet(boolean value) {__isset_bit_vector.set(__CREATEDON_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case STORE_ID:if (value == null) {unsetStoreId();} else {setStoreId((Long)value);}break;case PRODUCT_ID:if (value == null) {unsetProductId();} else {setProductId((Long)value);}break;case PINCODE:if (value == null) {unsetPincode();} else {setPincode((String)value);}break;case NAME:if (value == null) {unsetName();} else {setName((String)value);}break;case EMAIL:if (value == null) {unsetEmail();} else {setEmail((String)value);}break;case PHONE:if (value == null) {unsetPhone();} else {setPhone((String)value);}break;case LINE1:if (value == null) {unsetLine1();} else {setLine1((String)value);}break;case LINE2:if (value == null) {unsetLine2();} else {setLine2((String)value);}break;case CITY:if (value == null) {unsetCity();} else {setCity((String)value);}break;case STATE:if (value == null) {unsetState();} else {setState((String)value);}break;case CREATED_ON:if (value == null) {unsetCreatedOn();} else {setCreatedOn((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case STORE_ID:return Long.valueOf(getStoreId());case PRODUCT_ID:return Long.valueOf(getProductId());case PINCODE:return getPincode();case NAME:return getName();case EMAIL:return getEmail();case PHONE:return getPhone();case LINE1:return getLine1();case LINE2:return getLine2();case CITY:return getCity();case STATE:return getState();case CREATED_ON:return Long.valueOf(getCreatedOn());}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 STORE_ID:return isSetStoreId();case PRODUCT_ID:return isSetProductId();case PINCODE:return isSetPincode();case NAME:return isSetName();case EMAIL:return isSetEmail();case PHONE:return isSetPhone();case LINE1:return isSetLine1();case LINE2:return isSetLine2();case CITY:return isSetCity();case STATE:return isSetState();case CREATED_ON:return isSetCreatedOn();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof PendingStoreOrder)return this.equals((PendingStoreOrder)that);return false;}public boolean equals(PendingStoreOrder 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_storeId = true;boolean that_present_storeId = true;if (this_present_storeId || that_present_storeId) {if (!(this_present_storeId && that_present_storeId))return false;if (this.storeId != that.storeId)return false;}boolean this_present_productId = true;boolean that_present_productId = true;if (this_present_productId || that_present_productId) {if (!(this_present_productId && that_present_productId))return false;if (this.productId != that.productId)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_name = true && this.isSetName();boolean that_present_name = true && that.isSetName();if (this_present_name || that_present_name) {if (!(this_present_name && that_present_name))return false;if (!this.name.equals(that.name))return false;}boolean this_present_email = true && this.isSetEmail();boolean that_present_email = true && that.isSetEmail();if (this_present_email || that_present_email) {if (!(this_present_email && that_present_email))return false;if (!this.email.equals(that.email))return false;}boolean this_present_phone = true && this.isSetPhone();boolean that_present_phone = true && that.isSetPhone();if (this_present_phone || that_present_phone) {if (!(this_present_phone && that_present_phone))return false;if (!this.phone.equals(that.phone))return false;}boolean this_present_line1 = true && this.isSetLine1();boolean that_present_line1 = true && that.isSetLine1();if (this_present_line1 || that_present_line1) {if (!(this_present_line1 && that_present_line1))return false;if (!this.line1.equals(that.line1))return false;}boolean this_present_line2 = true && this.isSetLine2();boolean that_present_line2 = true && that.isSetLine2();if (this_present_line2 || that_present_line2) {if (!(this_present_line2 && that_present_line2))return false;if (!this.line2.equals(that.line2))return false;}boolean this_present_city = true && this.isSetCity();boolean that_present_city = true && that.isSetCity();if (this_present_city || that_present_city) {if (!(this_present_city && that_present_city))return false;if (!this.city.equals(that.city))return false;}boolean this_present_state = true && this.isSetState();boolean that_present_state = true && that.isSetState();if (this_present_state || that_present_state) {if (!(this_present_state && that_present_state))return false;if (!this.state.equals(that.state))return false;}boolean this_present_createdOn = true;boolean that_present_createdOn = true;if (this_present_createdOn || that_present_createdOn) {if (!(this_present_createdOn && that_present_createdOn))return false;if (this.createdOn != that.createdOn)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(PendingStoreOrder other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;PendingStoreOrder typedOther = (PendingStoreOrder)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(isSetStoreId()).compareTo(typedOther.isSetStoreId());if (lastComparison != 0) {return lastComparison;}if (isSetStoreId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProductId()).compareTo(typedOther.isSetProductId());if (lastComparison != 0) {return lastComparison;}if (isSetProductId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productId, typedOther.productId);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(isSetName()).compareTo(typedOther.isSetName());if (lastComparison != 0) {return lastComparison;}if (isSetName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());if (lastComparison != 0) {return lastComparison;}if (isSetEmail()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());if (lastComparison != 0) {return lastComparison;}if (isSetPhone()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLine1()).compareTo(typedOther.isSetLine1());if (lastComparison != 0) {return lastComparison;}if (isSetLine1()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line1, typedOther.line1);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLine2()).compareTo(typedOther.isSetLine2());if (lastComparison != 0) {return lastComparison;}if (isSetLine2()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line2, typedOther.line2);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCity()).compareTo(typedOther.isSetCity());if (lastComparison != 0) {return lastComparison;}if (isSetCity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.city, typedOther.city);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());if (lastComparison != 0) {return lastComparison;}if (isSetState()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());if (lastComparison != 0) {return lastComparison;}if (isSetCreatedOn()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);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: // STORE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.storeId = iprot.readI64();setStoreIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // PRODUCT_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.productId = iprot.readI64();setProductIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // 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 5: // NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.name = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // EMAILif (field.type == org.apache.thrift.protocol.TType.STRING) {this.email = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // PHONEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.phone = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // LINE1if (field.type == org.apache.thrift.protocol.TType.STRING) {this.line1 = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // LINE2if (field.type == org.apache.thrift.protocol.TType.STRING) {this.line2 = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // CITYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.city = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // STATEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.state = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // CREATED_ONif (field.type == org.apache.thrift.protocol.TType.I64) {this.createdOn = iprot.readI64();setCreatedOnIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldBegin(STORE_ID_FIELD_DESC);oprot.writeI64(this.storeId);oprot.writeFieldEnd();oprot.writeFieldBegin(PRODUCT_ID_FIELD_DESC);oprot.writeI64(this.productId);oprot.writeFieldEnd();if (this.pincode != null) {oprot.writeFieldBegin(PINCODE_FIELD_DESC);oprot.writeString(this.pincode);oprot.writeFieldEnd();}if (this.name != null) {oprot.writeFieldBegin(NAME_FIELD_DESC);oprot.writeString(this.name);oprot.writeFieldEnd();}if (this.email != null) {oprot.writeFieldBegin(EMAIL_FIELD_DESC);oprot.writeString(this.email);oprot.writeFieldEnd();}if (this.phone != null) {oprot.writeFieldBegin(PHONE_FIELD_DESC);oprot.writeString(this.phone);oprot.writeFieldEnd();}if (this.line1 != null) {oprot.writeFieldBegin(LINE1_FIELD_DESC);oprot.writeString(this.line1);oprot.writeFieldEnd();}if (this.line2 != null) {oprot.writeFieldBegin(LINE2_FIELD_DESC);oprot.writeString(this.line2);oprot.writeFieldEnd();}if (this.city != null) {oprot.writeFieldBegin(CITY_FIELD_DESC);oprot.writeString(this.city);oprot.writeFieldEnd();}if (this.state != null) {oprot.writeFieldBegin(STATE_FIELD_DESC);oprot.writeString(this.state);oprot.writeFieldEnd();}oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);oprot.writeI64(this.createdOn);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("PendingStoreOrder(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("storeId:");sb.append(this.storeId);first = false;if (!first) sb.append(", ");sb.append("productId:");sb.append(this.productId);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("name:");if (this.name == null) {sb.append("null");} else {sb.append(this.name);}first = false;if (!first) sb.append(", ");sb.append("email:");if (this.email == null) {sb.append("null");} else {sb.append(this.email);}first = false;if (!first) sb.append(", ");sb.append("phone:");if (this.phone == null) {sb.append("null");} else {sb.append(this.phone);}first = false;if (!first) sb.append(", ");sb.append("line1:");if (this.line1 == null) {sb.append("null");} else {sb.append(this.line1);}first = false;if (!first) sb.append(", ");sb.append("line2:");if (this.line2 == null) {sb.append("null");} else {sb.append(this.line2);}first = false;if (!first) sb.append(", ");sb.append("city:");if (this.city == null) {sb.append("null");} else {sb.append(this.city);}first = false;if (!first) sb.append(", ");sb.append("state:");if (this.state == null) {sb.append("null");} else {sb.append(this.state);}first = false;if (!first) sb.append(", ");sb.append("createdOn:");sb.append(this.createdOn);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);}}}