Rev 12615 | 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 FlipkartAdvantageOrder implements org.apache.thrift.TBase<FlipkartAdvantageOrder, FlipkartAdvantageOrder._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FlipkartAdvantageOrder");private static final org.apache.thrift.protocol.TField FK_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fkOrderId", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField FK_ORDER_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fkOrderItemId", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customerName", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField CUSTOMER_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("customerAddress", org.apache.thrift.protocol.TType.STRING, (short)6);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)7);private static final org.apache.thrift.protocol.TField CUSTOMER_CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("customerCity", org.apache.thrift.protocol.TType.STRING, (short)8);private static final org.apache.thrift.protocol.TField CUSTOMER_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("customerState", org.apache.thrift.protocol.TType.STRING, (short)9);private static final org.apache.thrift.protocol.TField CUSTOMER_PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("customerPhone", org.apache.thrift.protocol.TType.STRING, (short)10);private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)11);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)12);private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)13);private static final org.apache.thrift.protocol.TField LIST_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)14);private static final org.apache.thrift.protocol.TField MODIFIED_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("modifiedDate", org.apache.thrift.protocol.TType.I64, (short)15);private static final org.apache.thrift.protocol.TField LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("listingId", org.apache.thrift.protocol.TType.STRING, (short)16);private static final org.apache.thrift.protocol.TField CANCEL_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("cancelReason", org.apache.thrift.protocol.TType.STRING, (short)17);private static final org.apache.thrift.protocol.TField RETURN_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("returnReason", org.apache.thrift.protocol.TType.STRING, (short)18);private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.STRING, (short)19);private static final org.apache.thrift.protocol.TField PRODUCT_TITLE_FIELD_DESC = new org.apache.thrift.protocol.TField("productTitle", org.apache.thrift.protocol.TType.STRING, (short)20);private String fkOrderId; // requiredprivate String fkOrderItemId; // requiredprivate long sku; // requiredprivate long creationTimestamp; // requiredprivate String customerName; // requiredprivate String customerAddress; // requiredprivate String pincode; // requiredprivate String customerCity; // requiredprivate String customerState; // requiredprivate String customerPhone; // requiredprivate String status; // requiredprivate long quantity; // requiredprivate double totalPrice; // requiredprivate double listPrice; // requiredprivate long modifiedDate; // requiredprivate String listingId; // requiredprivate String cancelReason; // requiredprivate String returnReason; // requiredprivate String freebieItemId; // requiredprivate String productTitle; // 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 {FK_ORDER_ID((short)1, "fkOrderId"),FK_ORDER_ITEM_ID((short)2, "fkOrderItemId"),SKU((short)3, "sku"),CREATION_TIMESTAMP((short)4, "creationTimestamp"),CUSTOMER_NAME((short)5, "customerName"),CUSTOMER_ADDRESS((short)6, "customerAddress"),PINCODE((short)7, "pincode"),CUSTOMER_CITY((short)8, "customerCity"),CUSTOMER_STATE((short)9, "customerState"),CUSTOMER_PHONE((short)10, "customerPhone"),STATUS((short)11, "status"),QUANTITY((short)12, "quantity"),TOTAL_PRICE((short)13, "totalPrice"),LIST_PRICE((short)14, "listPrice"),MODIFIED_DATE((short)15, "modifiedDate"),LISTING_ID((short)16, "listingId"),CANCEL_REASON((short)17, "cancelReason"),RETURN_REASON((short)18, "returnReason"),FREEBIE_ITEM_ID((short)19, "freebieItemId"),PRODUCT_TITLE((short)20, "productTitle");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: // FK_ORDER_IDreturn FK_ORDER_ID;case 2: // FK_ORDER_ITEM_IDreturn FK_ORDER_ITEM_ID;case 3: // SKUreturn SKU;case 4: // CREATION_TIMESTAMPreturn CREATION_TIMESTAMP;case 5: // CUSTOMER_NAMEreturn CUSTOMER_NAME;case 6: // CUSTOMER_ADDRESSreturn CUSTOMER_ADDRESS;case 7: // PINCODEreturn PINCODE;case 8: // CUSTOMER_CITYreturn CUSTOMER_CITY;case 9: // CUSTOMER_STATEreturn CUSTOMER_STATE;case 10: // CUSTOMER_PHONEreturn CUSTOMER_PHONE;case 11: // STATUSreturn STATUS;case 12: // QUANTITYreturn QUANTITY;case 13: // TOTAL_PRICEreturn TOTAL_PRICE;case 14: // LIST_PRICEreturn LIST_PRICE;case 15: // MODIFIED_DATEreturn MODIFIED_DATE;case 16: // LISTING_IDreturn LISTING_ID;case 17: // CANCEL_REASONreturn CANCEL_REASON;case 18: // RETURN_REASONreturn RETURN_REASON;case 19: // FREEBIE_ITEM_IDreturn FREEBIE_ITEM_ID;case 20: // PRODUCT_TITLEreturn PRODUCT_TITLE;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 __SKU_ISSET_ID = 0;private static final int __CREATIONTIMESTAMP_ISSET_ID = 1;private static final int __QUANTITY_ISSET_ID = 2;private static final int __TOTALPRICE_ISSET_ID = 3;private static final int __LISTPRICE_ISSET_ID = 4;private static final int __MODIFIEDDATE_ISSET_ID = 5;private BitSet __isset_bit_vector = new BitSet(6);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.FK_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("fkOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.FK_ORDER_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("fkOrderItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SKU, new org.apache.thrift.meta_data.FieldMetaData("sku", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customerName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CUSTOMER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("customerAddress", 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.CUSTOMER_CITY, new org.apache.thrift.meta_data.FieldMetaData("customerCity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CUSTOMER_STATE, new org.apache.thrift.meta_data.FieldMetaData("customerState", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CUSTOMER_PHONE, new org.apache.thrift.meta_data.FieldMetaData("customerPhone", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LIST_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.MODIFIED_DATE, new org.apache.thrift.meta_data.FieldMetaData("modifiedDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("listingId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CANCEL_REASON, new org.apache.thrift.meta_data.FieldMetaData("cancelReason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.RETURN_REASON, new org.apache.thrift.meta_data.FieldMetaData("returnReason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PRODUCT_TITLE, new org.apache.thrift.meta_data.FieldMetaData("productTitle", 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(FlipkartAdvantageOrder.class, metaDataMap);}public FlipkartAdvantageOrder() {}public FlipkartAdvantageOrder(String fkOrderId,String fkOrderItemId,long sku,long creationTimestamp,String customerName,String customerAddress,String pincode,String customerCity,String customerState,String customerPhone,String status,long quantity,double totalPrice,double listPrice,long modifiedDate,String listingId,String cancelReason,String returnReason,String freebieItemId,String productTitle){this();this.fkOrderId = fkOrderId;this.fkOrderItemId = fkOrderItemId;this.sku = sku;setSkuIsSet(true);this.creationTimestamp = creationTimestamp;setCreationTimestampIsSet(true);this.customerName = customerName;this.customerAddress = customerAddress;this.pincode = pincode;this.customerCity = customerCity;this.customerState = customerState;this.customerPhone = customerPhone;this.status = status;this.quantity = quantity;setQuantityIsSet(true);this.totalPrice = totalPrice;setTotalPriceIsSet(true);this.listPrice = listPrice;setListPriceIsSet(true);this.modifiedDate = modifiedDate;setModifiedDateIsSet(true);this.listingId = listingId;this.cancelReason = cancelReason;this.returnReason = returnReason;this.freebieItemId = freebieItemId;this.productTitle = productTitle;}/*** Performs a deep copy on <i>other</i>.*/public FlipkartAdvantageOrder(FlipkartAdvantageOrder other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetFkOrderId()) {this.fkOrderId = other.fkOrderId;}if (other.isSetFkOrderItemId()) {this.fkOrderItemId = other.fkOrderItemId;}this.sku = other.sku;this.creationTimestamp = other.creationTimestamp;if (other.isSetCustomerName()) {this.customerName = other.customerName;}if (other.isSetCustomerAddress()) {this.customerAddress = other.customerAddress;}if (other.isSetPincode()) {this.pincode = other.pincode;}if (other.isSetCustomerCity()) {this.customerCity = other.customerCity;}if (other.isSetCustomerState()) {this.customerState = other.customerState;}if (other.isSetCustomerPhone()) {this.customerPhone = other.customerPhone;}if (other.isSetStatus()) {this.status = other.status;}this.quantity = other.quantity;this.totalPrice = other.totalPrice;this.listPrice = other.listPrice;this.modifiedDate = other.modifiedDate;if (other.isSetListingId()) {this.listingId = other.listingId;}if (other.isSetCancelReason()) {this.cancelReason = other.cancelReason;}if (other.isSetReturnReason()) {this.returnReason = other.returnReason;}if (other.isSetFreebieItemId()) {this.freebieItemId = other.freebieItemId;}if (other.isSetProductTitle()) {this.productTitle = other.productTitle;}}public FlipkartAdvantageOrder deepCopy() {return new FlipkartAdvantageOrder(this);}@Overridepublic void clear() {this.fkOrderId = null;this.fkOrderItemId = null;setSkuIsSet(false);this.sku = 0;setCreationTimestampIsSet(false);this.creationTimestamp = 0;this.customerName = null;this.customerAddress = null;this.pincode = null;this.customerCity = null;this.customerState = null;this.customerPhone = null;this.status = null;setQuantityIsSet(false);this.quantity = 0;setTotalPriceIsSet(false);this.totalPrice = 0.0;setListPriceIsSet(false);this.listPrice = 0.0;setModifiedDateIsSet(false);this.modifiedDate = 0;this.listingId = null;this.cancelReason = null;this.returnReason = null;this.freebieItemId = null;this.productTitle = null;}public String getFkOrderId() {return this.fkOrderId;}public void setFkOrderId(String fkOrderId) {this.fkOrderId = fkOrderId;}public void unsetFkOrderId() {this.fkOrderId = null;}/** Returns true if field fkOrderId is set (has been assigned a value) and false otherwise */public boolean isSetFkOrderId() {return this.fkOrderId != null;}public void setFkOrderIdIsSet(boolean value) {if (!value) {this.fkOrderId = null;}}public String getFkOrderItemId() {return this.fkOrderItemId;}public void setFkOrderItemId(String fkOrderItemId) {this.fkOrderItemId = fkOrderItemId;}public void unsetFkOrderItemId() {this.fkOrderItemId = null;}/** Returns true if field fkOrderItemId is set (has been assigned a value) and false otherwise */public boolean isSetFkOrderItemId() {return this.fkOrderItemId != null;}public void setFkOrderItemIdIsSet(boolean value) {if (!value) {this.fkOrderItemId = null;}}public long getSku() {return this.sku;}public void setSku(long sku) {this.sku = sku;setSkuIsSet(true);}public void unsetSku() {__isset_bit_vector.clear(__SKU_ISSET_ID);}/** Returns true if field sku is set (has been assigned a value) and false otherwise */public boolean isSetSku() {return __isset_bit_vector.get(__SKU_ISSET_ID);}public void setSkuIsSet(boolean value) {__isset_bit_vector.set(__SKU_ISSET_ID, value);}public long getCreationTimestamp() {return this.creationTimestamp;}public void setCreationTimestamp(long creationTimestamp) {this.creationTimestamp = creationTimestamp;setCreationTimestampIsSet(true);}public void unsetCreationTimestamp() {__isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);}/** Returns true if field creationTimestamp is set (has been assigned a value) and false otherwise */public boolean isSetCreationTimestamp() {return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);}public void setCreationTimestampIsSet(boolean value) {__isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);}public String getCustomerName() {return this.customerName;}public void setCustomerName(String customerName) {this.customerName = customerName;}public void unsetCustomerName() {this.customerName = null;}/** Returns true if field customerName is set (has been assigned a value) and false otherwise */public boolean isSetCustomerName() {return this.customerName != null;}public void setCustomerNameIsSet(boolean value) {if (!value) {this.customerName = null;}}public String getCustomerAddress() {return this.customerAddress;}public void setCustomerAddress(String customerAddress) {this.customerAddress = customerAddress;}public void unsetCustomerAddress() {this.customerAddress = null;}/** Returns true if field customerAddress is set (has been assigned a value) and false otherwise */public boolean isSetCustomerAddress() {return this.customerAddress != null;}public void setCustomerAddressIsSet(boolean value) {if (!value) {this.customerAddress = 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 getCustomerCity() {return this.customerCity;}public void setCustomerCity(String customerCity) {this.customerCity = customerCity;}public void unsetCustomerCity() {this.customerCity = null;}/** Returns true if field customerCity is set (has been assigned a value) and false otherwise */public boolean isSetCustomerCity() {return this.customerCity != null;}public void setCustomerCityIsSet(boolean value) {if (!value) {this.customerCity = null;}}public String getCustomerState() {return this.customerState;}public void setCustomerState(String customerState) {this.customerState = customerState;}public void unsetCustomerState() {this.customerState = null;}/** Returns true if field customerState is set (has been assigned a value) and false otherwise */public boolean isSetCustomerState() {return this.customerState != null;}public void setCustomerStateIsSet(boolean value) {if (!value) {this.customerState = null;}}public String getCustomerPhone() {return this.customerPhone;}public void setCustomerPhone(String customerPhone) {this.customerPhone = customerPhone;}public void unsetCustomerPhone() {this.customerPhone = null;}/** Returns true if field customerPhone is set (has been assigned a value) and false otherwise */public boolean isSetCustomerPhone() {return this.customerPhone != null;}public void setCustomerPhoneIsSet(boolean value) {if (!value) {this.customerPhone = null;}}public String getStatus() {return this.status;}public void setStatus(String status) {this.status = status;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public double getTotalPrice() {return this.totalPrice;}public void setTotalPrice(double totalPrice) {this.totalPrice = totalPrice;setTotalPriceIsSet(true);}public void unsetTotalPrice() {__isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);}/** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */public boolean isSetTotalPrice() {return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);}public void setTotalPriceIsSet(boolean value) {__isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);}public double getListPrice() {return this.listPrice;}public void setListPrice(double listPrice) {this.listPrice = listPrice;setListPriceIsSet(true);}public void unsetListPrice() {__isset_bit_vector.clear(__LISTPRICE_ISSET_ID);}/** Returns true if field listPrice is set (has been assigned a value) and false otherwise */public boolean isSetListPrice() {return __isset_bit_vector.get(__LISTPRICE_ISSET_ID);}public void setListPriceIsSet(boolean value) {__isset_bit_vector.set(__LISTPRICE_ISSET_ID, value);}public long getModifiedDate() {return this.modifiedDate;}public void setModifiedDate(long modifiedDate) {this.modifiedDate = modifiedDate;setModifiedDateIsSet(true);}public void unsetModifiedDate() {__isset_bit_vector.clear(__MODIFIEDDATE_ISSET_ID);}/** Returns true if field modifiedDate is set (has been assigned a value) and false otherwise */public boolean isSetModifiedDate() {return __isset_bit_vector.get(__MODIFIEDDATE_ISSET_ID);}public void setModifiedDateIsSet(boolean value) {__isset_bit_vector.set(__MODIFIEDDATE_ISSET_ID, value);}public String getListingId() {return this.listingId;}public void setListingId(String listingId) {this.listingId = listingId;}public void unsetListingId() {this.listingId = null;}/** Returns true if field listingId is set (has been assigned a value) and false otherwise */public boolean isSetListingId() {return this.listingId != null;}public void setListingIdIsSet(boolean value) {if (!value) {this.listingId = null;}}public String getCancelReason() {return this.cancelReason;}public void setCancelReason(String cancelReason) {this.cancelReason = cancelReason;}public void unsetCancelReason() {this.cancelReason = null;}/** Returns true if field cancelReason is set (has been assigned a value) and false otherwise */public boolean isSetCancelReason() {return this.cancelReason != null;}public void setCancelReasonIsSet(boolean value) {if (!value) {this.cancelReason = null;}}public String getReturnReason() {return this.returnReason;}public void setReturnReason(String returnReason) {this.returnReason = returnReason;}public void unsetReturnReason() {this.returnReason = null;}/** Returns true if field returnReason is set (has been assigned a value) and false otherwise */public boolean isSetReturnReason() {return this.returnReason != null;}public void setReturnReasonIsSet(boolean value) {if (!value) {this.returnReason = null;}}public String getFreebieItemId() {return this.freebieItemId;}public void setFreebieItemId(String freebieItemId) {this.freebieItemId = freebieItemId;}public void unsetFreebieItemId() {this.freebieItemId = null;}/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */public boolean isSetFreebieItemId() {return this.freebieItemId != null;}public void setFreebieItemIdIsSet(boolean value) {if (!value) {this.freebieItemId = null;}}public String getProductTitle() {return this.productTitle;}public void setProductTitle(String productTitle) {this.productTitle = productTitle;}public void unsetProductTitle() {this.productTitle = null;}/** Returns true if field productTitle is set (has been assigned a value) and false otherwise */public boolean isSetProductTitle() {return this.productTitle != null;}public void setProductTitleIsSet(boolean value) {if (!value) {this.productTitle = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case FK_ORDER_ID:if (value == null) {unsetFkOrderId();} else {setFkOrderId((String)value);}break;case FK_ORDER_ITEM_ID:if (value == null) {unsetFkOrderItemId();} else {setFkOrderItemId((String)value);}break;case SKU:if (value == null) {unsetSku();} else {setSku((Long)value);}break;case CREATION_TIMESTAMP:if (value == null) {unsetCreationTimestamp();} else {setCreationTimestamp((Long)value);}break;case CUSTOMER_NAME:if (value == null) {unsetCustomerName();} else {setCustomerName((String)value);}break;case CUSTOMER_ADDRESS:if (value == null) {unsetCustomerAddress();} else {setCustomerAddress((String)value);}break;case PINCODE:if (value == null) {unsetPincode();} else {setPincode((String)value);}break;case CUSTOMER_CITY:if (value == null) {unsetCustomerCity();} else {setCustomerCity((String)value);}break;case CUSTOMER_STATE:if (value == null) {unsetCustomerState();} else {setCustomerState((String)value);}break;case CUSTOMER_PHONE:if (value == null) {unsetCustomerPhone();} else {setCustomerPhone((String)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((String)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case TOTAL_PRICE:if (value == null) {unsetTotalPrice();} else {setTotalPrice((Double)value);}break;case LIST_PRICE:if (value == null) {unsetListPrice();} else {setListPrice((Double)value);}break;case MODIFIED_DATE:if (value == null) {unsetModifiedDate();} else {setModifiedDate((Long)value);}break;case LISTING_ID:if (value == null) {unsetListingId();} else {setListingId((String)value);}break;case CANCEL_REASON:if (value == null) {unsetCancelReason();} else {setCancelReason((String)value);}break;case RETURN_REASON:if (value == null) {unsetReturnReason();} else {setReturnReason((String)value);}break;case FREEBIE_ITEM_ID:if (value == null) {unsetFreebieItemId();} else {setFreebieItemId((String)value);}break;case PRODUCT_TITLE:if (value == null) {unsetProductTitle();} else {setProductTitle((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case FK_ORDER_ID:return getFkOrderId();case FK_ORDER_ITEM_ID:return getFkOrderItemId();case SKU:return Long.valueOf(getSku());case CREATION_TIMESTAMP:return Long.valueOf(getCreationTimestamp());case CUSTOMER_NAME:return getCustomerName();case CUSTOMER_ADDRESS:return getCustomerAddress();case PINCODE:return getPincode();case CUSTOMER_CITY:return getCustomerCity();case CUSTOMER_STATE:return getCustomerState();case CUSTOMER_PHONE:return getCustomerPhone();case STATUS:return getStatus();case QUANTITY:return Long.valueOf(getQuantity());case TOTAL_PRICE:return Double.valueOf(getTotalPrice());case LIST_PRICE:return Double.valueOf(getListPrice());case MODIFIED_DATE:return Long.valueOf(getModifiedDate());case LISTING_ID:return getListingId();case CANCEL_REASON:return getCancelReason();case RETURN_REASON:return getReturnReason();case FREEBIE_ITEM_ID:return getFreebieItemId();case PRODUCT_TITLE:return getProductTitle();}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 FK_ORDER_ID:return isSetFkOrderId();case FK_ORDER_ITEM_ID:return isSetFkOrderItemId();case SKU:return isSetSku();case CREATION_TIMESTAMP:return isSetCreationTimestamp();case CUSTOMER_NAME:return isSetCustomerName();case CUSTOMER_ADDRESS:return isSetCustomerAddress();case PINCODE:return isSetPincode();case CUSTOMER_CITY:return isSetCustomerCity();case CUSTOMER_STATE:return isSetCustomerState();case CUSTOMER_PHONE:return isSetCustomerPhone();case STATUS:return isSetStatus();case QUANTITY:return isSetQuantity();case TOTAL_PRICE:return isSetTotalPrice();case LIST_PRICE:return isSetListPrice();case MODIFIED_DATE:return isSetModifiedDate();case LISTING_ID:return isSetListingId();case CANCEL_REASON:return isSetCancelReason();case RETURN_REASON:return isSetReturnReason();case FREEBIE_ITEM_ID:return isSetFreebieItemId();case PRODUCT_TITLE:return isSetProductTitle();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof FlipkartAdvantageOrder)return this.equals((FlipkartAdvantageOrder)that);return false;}public boolean equals(FlipkartAdvantageOrder that) {if (that == null)return false;boolean this_present_fkOrderId = true && this.isSetFkOrderId();boolean that_present_fkOrderId = true && that.isSetFkOrderId();if (this_present_fkOrderId || that_present_fkOrderId) {if (!(this_present_fkOrderId && that_present_fkOrderId))return false;if (!this.fkOrderId.equals(that.fkOrderId))return false;}boolean this_present_fkOrderItemId = true && this.isSetFkOrderItemId();boolean that_present_fkOrderItemId = true && that.isSetFkOrderItemId();if (this_present_fkOrderItemId || that_present_fkOrderItemId) {if (!(this_present_fkOrderItemId && that_present_fkOrderItemId))return false;if (!this.fkOrderItemId.equals(that.fkOrderItemId))return false;}boolean this_present_sku = true;boolean that_present_sku = true;if (this_present_sku || that_present_sku) {if (!(this_present_sku && that_present_sku))return false;if (this.sku != that.sku)return false;}boolean this_present_creationTimestamp = true;boolean that_present_creationTimestamp = true;if (this_present_creationTimestamp || that_present_creationTimestamp) {if (!(this_present_creationTimestamp && that_present_creationTimestamp))return false;if (this.creationTimestamp != that.creationTimestamp)return false;}boolean this_present_customerName = true && this.isSetCustomerName();boolean that_present_customerName = true && that.isSetCustomerName();if (this_present_customerName || that_present_customerName) {if (!(this_present_customerName && that_present_customerName))return false;if (!this.customerName.equals(that.customerName))return false;}boolean this_present_customerAddress = true && this.isSetCustomerAddress();boolean that_present_customerAddress = true && that.isSetCustomerAddress();if (this_present_customerAddress || that_present_customerAddress) {if (!(this_present_customerAddress && that_present_customerAddress))return false;if (!this.customerAddress.equals(that.customerAddress))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_customerCity = true && this.isSetCustomerCity();boolean that_present_customerCity = true && that.isSetCustomerCity();if (this_present_customerCity || that_present_customerCity) {if (!(this_present_customerCity && that_present_customerCity))return false;if (!this.customerCity.equals(that.customerCity))return false;}boolean this_present_customerState = true && this.isSetCustomerState();boolean that_present_customerState = true && that.isSetCustomerState();if (this_present_customerState || that_present_customerState) {if (!(this_present_customerState && that_present_customerState))return false;if (!this.customerState.equals(that.customerState))return false;}boolean this_present_customerPhone = true && this.isSetCustomerPhone();boolean that_present_customerPhone = true && that.isSetCustomerPhone();if (this_present_customerPhone || that_present_customerPhone) {if (!(this_present_customerPhone && that_present_customerPhone))return false;if (!this.customerPhone.equals(that.customerPhone))return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_totalPrice = true;boolean that_present_totalPrice = true;if (this_present_totalPrice || that_present_totalPrice) {if (!(this_present_totalPrice && that_present_totalPrice))return false;if (this.totalPrice != that.totalPrice)return false;}boolean this_present_listPrice = true;boolean that_present_listPrice = true;if (this_present_listPrice || that_present_listPrice) {if (!(this_present_listPrice && that_present_listPrice))return false;if (this.listPrice != that.listPrice)return false;}boolean this_present_modifiedDate = true;boolean that_present_modifiedDate = true;if (this_present_modifiedDate || that_present_modifiedDate) {if (!(this_present_modifiedDate && that_present_modifiedDate))return false;if (this.modifiedDate != that.modifiedDate)return false;}boolean this_present_listingId = true && this.isSetListingId();boolean that_present_listingId = true && that.isSetListingId();if (this_present_listingId || that_present_listingId) {if (!(this_present_listingId && that_present_listingId))return false;if (!this.listingId.equals(that.listingId))return false;}boolean this_present_cancelReason = true && this.isSetCancelReason();boolean that_present_cancelReason = true && that.isSetCancelReason();if (this_present_cancelReason || that_present_cancelReason) {if (!(this_present_cancelReason && that_present_cancelReason))return false;if (!this.cancelReason.equals(that.cancelReason))return false;}boolean this_present_returnReason = true && this.isSetReturnReason();boolean that_present_returnReason = true && that.isSetReturnReason();if (this_present_returnReason || that_present_returnReason) {if (!(this_present_returnReason && that_present_returnReason))return false;if (!this.returnReason.equals(that.returnReason))return false;}boolean this_present_freebieItemId = true && this.isSetFreebieItemId();boolean that_present_freebieItemId = true && that.isSetFreebieItemId();if (this_present_freebieItemId || that_present_freebieItemId) {if (!(this_present_freebieItemId && that_present_freebieItemId))return false;if (!this.freebieItemId.equals(that.freebieItemId))return false;}boolean this_present_productTitle = true && this.isSetProductTitle();boolean that_present_productTitle = true && that.isSetProductTitle();if (this_present_productTitle || that_present_productTitle) {if (!(this_present_productTitle && that_present_productTitle))return false;if (!this.productTitle.equals(that.productTitle))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(FlipkartAdvantageOrder other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;FlipkartAdvantageOrder typedOther = (FlipkartAdvantageOrder)other;lastComparison = Boolean.valueOf(isSetFkOrderId()).compareTo(typedOther.isSetFkOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetFkOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fkOrderId, typedOther.fkOrderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFkOrderItemId()).compareTo(typedOther.isSetFkOrderItemId());if (lastComparison != 0) {return lastComparison;}if (isSetFkOrderItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fkOrderItemId, typedOther.fkOrderItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSku()).compareTo(typedOther.isSetSku());if (lastComparison != 0) {return lastComparison;}if (isSetSku()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sku, typedOther.sku);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetCreationTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTimestamp, typedOther.creationTimestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(typedOther.isSetCustomerName());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerAddress()).compareTo(typedOther.isSetCustomerAddress());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerAddress()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerAddress, typedOther.customerAddress);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(isSetCustomerCity()).compareTo(typedOther.isSetCustomerCity());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerCity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerCity, typedOther.customerCity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerState()).compareTo(typedOther.isSetCustomerState());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerState()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerState, typedOther.customerState);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerPhone()).compareTo(typedOther.isSetCustomerPhone());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerPhone()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerPhone, typedOther.customerPhone);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());if (lastComparison != 0) {return lastComparison;}if (isSetTotalPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetListPrice()).compareTo(typedOther.isSetListPrice());if (lastComparison != 0) {return lastComparison;}if (isSetListPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listPrice, typedOther.listPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetModifiedDate()).compareTo(typedOther.isSetModifiedDate());if (lastComparison != 0) {return lastComparison;}if (isSetModifiedDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedDate, typedOther.modifiedDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetListingId()).compareTo(typedOther.isSetListingId());if (lastComparison != 0) {return lastComparison;}if (isSetListingId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingId, typedOther.listingId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCancelReason()).compareTo(typedOther.isSetCancelReason());if (lastComparison != 0) {return lastComparison;}if (isSetCancelReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cancelReason, typedOther.cancelReason);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnReason()).compareTo(typedOther.isSetReturnReason());if (lastComparison != 0) {return lastComparison;}if (isSetReturnReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnReason, typedOther.returnReason);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());if (lastComparison != 0) {return lastComparison;}if (isSetFreebieItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProductTitle()).compareTo(typedOther.isSetProductTitle());if (lastComparison != 0) {return lastComparison;}if (isSetProductTitle()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productTitle, typedOther.productTitle);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: // FK_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.fkOrderId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FK_ORDER_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.fkOrderItemId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // SKUif (field.type == org.apache.thrift.protocol.TType.I64) {this.sku = iprot.readI64();setSkuIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // CREATION_TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.creationTimestamp = iprot.readI64();setCreationTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // CUSTOMER_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.customerName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // CUSTOMER_ADDRESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.customerAddress = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // 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 8: // CUSTOMER_CITYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.customerCity = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // CUSTOMER_STATEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.customerState = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // CUSTOMER_PHONEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.customerPhone = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // STATUSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.status = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 13: // TOTAL_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.totalPrice = iprot.readDouble();setTotalPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 14: // LIST_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.listPrice = iprot.readDouble();setListPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 15: // MODIFIED_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.modifiedDate = iprot.readI64();setModifiedDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 16: // LISTING_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.listingId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 17: // CANCEL_REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.cancelReason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 18: // RETURN_REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.returnReason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 19: // FREEBIE_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.freebieItemId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 20: // PRODUCT_TITLEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.productTitle = 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);if (this.fkOrderId != null) {oprot.writeFieldBegin(FK_ORDER_ID_FIELD_DESC);oprot.writeString(this.fkOrderId);oprot.writeFieldEnd();}if (this.fkOrderItemId != null) {oprot.writeFieldBegin(FK_ORDER_ITEM_ID_FIELD_DESC);oprot.writeString(this.fkOrderItemId);oprot.writeFieldEnd();}oprot.writeFieldBegin(SKU_FIELD_DESC);oprot.writeI64(this.sku);oprot.writeFieldEnd();oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);oprot.writeI64(this.creationTimestamp);oprot.writeFieldEnd();if (this.customerName != null) {oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);oprot.writeString(this.customerName);oprot.writeFieldEnd();}if (this.customerAddress != null) {oprot.writeFieldBegin(CUSTOMER_ADDRESS_FIELD_DESC);oprot.writeString(this.customerAddress);oprot.writeFieldEnd();}if (this.pincode != null) {oprot.writeFieldBegin(PINCODE_FIELD_DESC);oprot.writeString(this.pincode);oprot.writeFieldEnd();}if (this.customerCity != null) {oprot.writeFieldBegin(CUSTOMER_CITY_FIELD_DESC);oprot.writeString(this.customerCity);oprot.writeFieldEnd();}if (this.customerState != null) {oprot.writeFieldBegin(CUSTOMER_STATE_FIELD_DESC);oprot.writeString(this.customerState);oprot.writeFieldEnd();}if (this.customerPhone != null) {oprot.writeFieldBegin(CUSTOMER_PHONE_FIELD_DESC);oprot.writeString(this.customerPhone);oprot.writeFieldEnd();}if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeString(this.status);oprot.writeFieldEnd();}oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);oprot.writeDouble(this.totalPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(LIST_PRICE_FIELD_DESC);oprot.writeDouble(this.listPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(MODIFIED_DATE_FIELD_DESC);oprot.writeI64(this.modifiedDate);oprot.writeFieldEnd();if (this.listingId != null) {oprot.writeFieldBegin(LISTING_ID_FIELD_DESC);oprot.writeString(this.listingId);oprot.writeFieldEnd();}if (this.cancelReason != null) {oprot.writeFieldBegin(CANCEL_REASON_FIELD_DESC);oprot.writeString(this.cancelReason);oprot.writeFieldEnd();}if (this.returnReason != null) {oprot.writeFieldBegin(RETURN_REASON_FIELD_DESC);oprot.writeString(this.returnReason);oprot.writeFieldEnd();}if (this.freebieItemId != null) {oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);oprot.writeString(this.freebieItemId);oprot.writeFieldEnd();}if (this.productTitle != null) {oprot.writeFieldBegin(PRODUCT_TITLE_FIELD_DESC);oprot.writeString(this.productTitle);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("FlipkartAdvantageOrder(");boolean first = true;sb.append("fkOrderId:");if (this.fkOrderId == null) {sb.append("null");} else {sb.append(this.fkOrderId);}first = false;if (!first) sb.append(", ");sb.append("fkOrderItemId:");if (this.fkOrderItemId == null) {sb.append("null");} else {sb.append(this.fkOrderItemId);}first = false;if (!first) sb.append(", ");sb.append("sku:");sb.append(this.sku);first = false;if (!first) sb.append(", ");sb.append("creationTimestamp:");sb.append(this.creationTimestamp);first = false;if (!first) sb.append(", ");sb.append("customerName:");if (this.customerName == null) {sb.append("null");} else {sb.append(this.customerName);}first = false;if (!first) sb.append(", ");sb.append("customerAddress:");if (this.customerAddress == null) {sb.append("null");} else {sb.append(this.customerAddress);}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("customerCity:");if (this.customerCity == null) {sb.append("null");} else {sb.append(this.customerCity);}first = false;if (!first) sb.append(", ");sb.append("customerState:");if (this.customerState == null) {sb.append("null");} else {sb.append(this.customerState);}first = false;if (!first) sb.append(", ");sb.append("customerPhone:");if (this.customerPhone == null) {sb.append("null");} else {sb.append(this.customerPhone);}first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {sb.append(this.status);}first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("totalPrice:");sb.append(this.totalPrice);first = false;if (!first) sb.append(", ");sb.append("listPrice:");sb.append(this.listPrice);first = false;if (!first) sb.append(", ");sb.append("modifiedDate:");sb.append(this.modifiedDate);first = false;if (!first) sb.append(", ");sb.append("listingId:");if (this.listingId == null) {sb.append("null");} else {sb.append(this.listingId);}first = false;if (!first) sb.append(", ");sb.append("cancelReason:");if (this.cancelReason == null) {sb.append("null");} else {sb.append(this.cancelReason);}first = false;if (!first) sb.append(", ");sb.append("returnReason:");if (this.returnReason == null) {sb.append("null");} else {sb.append(this.returnReason);}first = false;if (!first) sb.append(", ");sb.append("freebieItemId:");if (this.freebieItemId == null) {sb.append("null");} else {sb.append(this.freebieItemId);}first = false;if (!first) sb.append(", ");sb.append("productTitle:");if (this.productTitle == null) {sb.append("null");} else {sb.append(this.productTitle);}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);}}}