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 MarketPlaceItemPrice implements org.apache.thrift.TBase<MarketPlaceItemPrice, MarketPlaceItemPrice._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MarketPlaceItemPrice");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);private static final org.apache.thrift.protocol.TField LAST_UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedOn", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField LAST_UPDATED_ON_MARKETPLACE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedOnMarketplace", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField IS_PRICE_OVERRIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("isPriceOverride", org.apache.thrift.protocol.TType.BOOL, (short)6);private static final org.apache.thrift.protocol.TField IS_LISTED_ON_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("isListedOnSource", org.apache.thrift.protocol.TType.BOOL, (short)7);private long item_id; // requiredprivate long source; // requiredprivate double sellingPrice; // requiredprivate long lastUpdatedOn; // requiredprivate long lastUpdatedOnMarketplace; // requiredprivate boolean isPriceOverride; // requiredprivate boolean isListedOnSource; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "item_id"),SOURCE((short)2, "source"),SELLING_PRICE((short)3, "sellingPrice"),LAST_UPDATED_ON((short)4, "lastUpdatedOn"),LAST_UPDATED_ON_MARKETPLACE((short)5, "lastUpdatedOnMarketplace"),IS_PRICE_OVERRIDE((short)6, "isPriceOverride"),IS_LISTED_ON_SOURCE((short)7, "isListedOnSource");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // SOURCEreturn SOURCE;case 3: // SELLING_PRICEreturn SELLING_PRICE;case 4: // LAST_UPDATED_ONreturn LAST_UPDATED_ON;case 5: // LAST_UPDATED_ON_MARKETPLACEreturn LAST_UPDATED_ON_MARKETPLACE;case 6: // IS_PRICE_OVERRIDEreturn IS_PRICE_OVERRIDE;case 7: // IS_LISTED_ON_SOURCEreturn IS_LISTED_ON_SOURCE;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 __ITEM_ID_ISSET_ID = 0;private static final int __SOURCE_ISSET_ID = 1;private static final int __SELLINGPRICE_ISSET_ID = 2;private static final int __LASTUPDATEDON_ISSET_ID = 3;private static final int __LASTUPDATEDONMARKETPLACE_ISSET_ID = 4;private static final int __ISPRICEOVERRIDE_ISSET_ID = 5;private static final int __ISLISTEDONSOURCE_ISSET_ID = 6;private BitSet __isset_bit_vector = new BitSet(7);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.LAST_UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LAST_UPDATED_ON_MARKETPLACE, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedOnMarketplace", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_PRICE_OVERRIDE, new org.apache.thrift.meta_data.FieldMetaData("isPriceOverride", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.IS_LISTED_ON_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("isListedOnSource", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MarketPlaceItemPrice.class, metaDataMap);}public MarketPlaceItemPrice() {}public MarketPlaceItemPrice(long item_id,long source,double sellingPrice,long lastUpdatedOn,long lastUpdatedOnMarketplace,boolean isPriceOverride,boolean isListedOnSource){this();this.item_id = item_id;setItem_idIsSet(true);this.source = source;setSourceIsSet(true);this.sellingPrice = sellingPrice;setSellingPriceIsSet(true);this.lastUpdatedOn = lastUpdatedOn;setLastUpdatedOnIsSet(true);this.lastUpdatedOnMarketplace = lastUpdatedOnMarketplace;setLastUpdatedOnMarketplaceIsSet(true);this.isPriceOverride = isPriceOverride;setIsPriceOverrideIsSet(true);this.isListedOnSource = isListedOnSource;setIsListedOnSourceIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public MarketPlaceItemPrice(MarketPlaceItemPrice other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.item_id = other.item_id;this.source = other.source;this.sellingPrice = other.sellingPrice;this.lastUpdatedOn = other.lastUpdatedOn;this.lastUpdatedOnMarketplace = other.lastUpdatedOnMarketplace;this.isPriceOverride = other.isPriceOverride;this.isListedOnSource = other.isListedOnSource;}public MarketPlaceItemPrice deepCopy() {return new MarketPlaceItemPrice(this);}@Overridepublic void clear() {setItem_idIsSet(false);this.item_id = 0;setSourceIsSet(false);this.source = 0;setSellingPriceIsSet(false);this.sellingPrice = 0.0;setLastUpdatedOnIsSet(false);this.lastUpdatedOn = 0;setLastUpdatedOnMarketplaceIsSet(false);this.lastUpdatedOnMarketplace = 0;setIsPriceOverrideIsSet(false);this.isPriceOverride = false;setIsListedOnSourceIsSet(false);this.isListedOnSource = false;}public long getItem_id() {return this.item_id;}public void setItem_id(long item_id) {this.item_id = item_id;setItem_idIsSet(true);}public void unsetItem_id() {__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);}/** Returns true if field item_id is set (has been assigned a value) and false otherwise */public boolean isSetItem_id() {return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);}public void setItem_idIsSet(boolean value) {__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);}public long getSource() {return this.source;}public void setSource(long source) {this.source = source;setSourceIsSet(true);}public void unsetSource() {__isset_bit_vector.clear(__SOURCE_ISSET_ID);}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return __isset_bit_vector.get(__SOURCE_ISSET_ID);}public void setSourceIsSet(boolean value) {__isset_bit_vector.set(__SOURCE_ISSET_ID, value);}public double getSellingPrice() {return this.sellingPrice;}public void setSellingPrice(double sellingPrice) {this.sellingPrice = sellingPrice;setSellingPriceIsSet(true);}public void unsetSellingPrice() {__isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);}/** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */public boolean isSetSellingPrice() {return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);}public void setSellingPriceIsSet(boolean value) {__isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);}public long getLastUpdatedOn() {return this.lastUpdatedOn;}public void setLastUpdatedOn(long lastUpdatedOn) {this.lastUpdatedOn = lastUpdatedOn;setLastUpdatedOnIsSet(true);}public void unsetLastUpdatedOn() {__isset_bit_vector.clear(__LASTUPDATEDON_ISSET_ID);}/** Returns true if field lastUpdatedOn is set (has been assigned a value) and false otherwise */public boolean isSetLastUpdatedOn() {return __isset_bit_vector.get(__LASTUPDATEDON_ISSET_ID);}public void setLastUpdatedOnIsSet(boolean value) {__isset_bit_vector.set(__LASTUPDATEDON_ISSET_ID, value);}public long getLastUpdatedOnMarketplace() {return this.lastUpdatedOnMarketplace;}public void setLastUpdatedOnMarketplace(long lastUpdatedOnMarketplace) {this.lastUpdatedOnMarketplace = lastUpdatedOnMarketplace;setLastUpdatedOnMarketplaceIsSet(true);}public void unsetLastUpdatedOnMarketplace() {__isset_bit_vector.clear(__LASTUPDATEDONMARKETPLACE_ISSET_ID);}/** Returns true if field lastUpdatedOnMarketplace is set (has been assigned a value) and false otherwise */public boolean isSetLastUpdatedOnMarketplace() {return __isset_bit_vector.get(__LASTUPDATEDONMARKETPLACE_ISSET_ID);}public void setLastUpdatedOnMarketplaceIsSet(boolean value) {__isset_bit_vector.set(__LASTUPDATEDONMARKETPLACE_ISSET_ID, value);}public boolean isIsPriceOverride() {return this.isPriceOverride;}public void setIsPriceOverride(boolean isPriceOverride) {this.isPriceOverride = isPriceOverride;setIsPriceOverrideIsSet(true);}public void unsetIsPriceOverride() {__isset_bit_vector.clear(__ISPRICEOVERRIDE_ISSET_ID);}/** Returns true if field isPriceOverride is set (has been assigned a value) and false otherwise */public boolean isSetIsPriceOverride() {return __isset_bit_vector.get(__ISPRICEOVERRIDE_ISSET_ID);}public void setIsPriceOverrideIsSet(boolean value) {__isset_bit_vector.set(__ISPRICEOVERRIDE_ISSET_ID, value);}public boolean isIsListedOnSource() {return this.isListedOnSource;}public void setIsListedOnSource(boolean isListedOnSource) {this.isListedOnSource = isListedOnSource;setIsListedOnSourceIsSet(true);}public void unsetIsListedOnSource() {__isset_bit_vector.clear(__ISLISTEDONSOURCE_ISSET_ID);}/** Returns true if field isListedOnSource is set (has been assigned a value) and false otherwise */public boolean isSetIsListedOnSource() {return __isset_bit_vector.get(__ISLISTEDONSOURCE_ISSET_ID);}public void setIsListedOnSourceIsSet(boolean value) {__isset_bit_vector.set(__ISLISTEDONSOURCE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItem_id();} else {setItem_id((Long)value);}break;case SOURCE:if (value == null) {unsetSource();} else {setSource((Long)value);}break;case SELLING_PRICE:if (value == null) {unsetSellingPrice();} else {setSellingPrice((Double)value);}break;case LAST_UPDATED_ON:if (value == null) {unsetLastUpdatedOn();} else {setLastUpdatedOn((Long)value);}break;case LAST_UPDATED_ON_MARKETPLACE:if (value == null) {unsetLastUpdatedOnMarketplace();} else {setLastUpdatedOnMarketplace((Long)value);}break;case IS_PRICE_OVERRIDE:if (value == null) {unsetIsPriceOverride();} else {setIsPriceOverride((Boolean)value);}break;case IS_LISTED_ON_SOURCE:if (value == null) {unsetIsListedOnSource();} else {setIsListedOnSource((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItem_id());case SOURCE:return Long.valueOf(getSource());case SELLING_PRICE:return Double.valueOf(getSellingPrice());case LAST_UPDATED_ON:return Long.valueOf(getLastUpdatedOn());case LAST_UPDATED_ON_MARKETPLACE:return Long.valueOf(getLastUpdatedOnMarketplace());case IS_PRICE_OVERRIDE:return Boolean.valueOf(isIsPriceOverride());case IS_LISTED_ON_SOURCE:return Boolean.valueOf(isIsListedOnSource());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItem_id();case SOURCE:return isSetSource();case SELLING_PRICE:return isSetSellingPrice();case LAST_UPDATED_ON:return isSetLastUpdatedOn();case LAST_UPDATED_ON_MARKETPLACE:return isSetLastUpdatedOnMarketplace();case IS_PRICE_OVERRIDE:return isSetIsPriceOverride();case IS_LISTED_ON_SOURCE:return isSetIsListedOnSource();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof MarketPlaceItemPrice)return this.equals((MarketPlaceItemPrice)that);return false;}public boolean equals(MarketPlaceItemPrice that) {if (that == null)return false;boolean this_present_item_id = true;boolean that_present_item_id = true;if (this_present_item_id || that_present_item_id) {if (!(this_present_item_id && that_present_item_id))return false;if (this.item_id != that.item_id)return false;}boolean this_present_source = true;boolean that_present_source = true;if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (this.source != that.source)return false;}boolean this_present_sellingPrice = true;boolean that_present_sellingPrice = true;if (this_present_sellingPrice || that_present_sellingPrice) {if (!(this_present_sellingPrice && that_present_sellingPrice))return false;if (this.sellingPrice != that.sellingPrice)return false;}boolean this_present_lastUpdatedOn = true;boolean that_present_lastUpdatedOn = true;if (this_present_lastUpdatedOn || that_present_lastUpdatedOn) {if (!(this_present_lastUpdatedOn && that_present_lastUpdatedOn))return false;if (this.lastUpdatedOn != that.lastUpdatedOn)return false;}boolean this_present_lastUpdatedOnMarketplace = true;boolean that_present_lastUpdatedOnMarketplace = true;if (this_present_lastUpdatedOnMarketplace || that_present_lastUpdatedOnMarketplace) {if (!(this_present_lastUpdatedOnMarketplace && that_present_lastUpdatedOnMarketplace))return false;if (this.lastUpdatedOnMarketplace != that.lastUpdatedOnMarketplace)return false;}boolean this_present_isPriceOverride = true;boolean that_present_isPriceOverride = true;if (this_present_isPriceOverride || that_present_isPriceOverride) {if (!(this_present_isPriceOverride && that_present_isPriceOverride))return false;if (this.isPriceOverride != that.isPriceOverride)return false;}boolean this_present_isListedOnSource = true;boolean that_present_isListedOnSource = true;if (this_present_isListedOnSource || that_present_isListedOnSource) {if (!(this_present_isListedOnSource && that_present_isListedOnSource))return false;if (this.isListedOnSource != that.isListedOnSource)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(MarketPlaceItemPrice other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;MarketPlaceItemPrice typedOther = (MarketPlaceItemPrice)other;lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());if (lastComparison != 0) {return lastComparison;}if (isSetItem_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetSellingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLastUpdatedOn()).compareTo(typedOther.isSetLastUpdatedOn());if (lastComparison != 0) {return lastComparison;}if (isSetLastUpdatedOn()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedOn, typedOther.lastUpdatedOn);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLastUpdatedOnMarketplace()).compareTo(typedOther.isSetLastUpdatedOnMarketplace());if (lastComparison != 0) {return lastComparison;}if (isSetLastUpdatedOnMarketplace()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedOnMarketplace, typedOther.lastUpdatedOnMarketplace);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsPriceOverride()).compareTo(typedOther.isSetIsPriceOverride());if (lastComparison != 0) {return lastComparison;}if (isSetIsPriceOverride()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isPriceOverride, typedOther.isPriceOverride);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsListedOnSource()).compareTo(typedOther.isSetIsListedOnSource());if (lastComparison != 0) {return lastComparison;}if (isSetIsListedOnSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isListedOnSource, typedOther.isListedOnSource);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.item_id = iprot.readI64();setItem_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SOURCEif (field.type == org.apache.thrift.protocol.TType.I64) {this.source = iprot.readI64();setSourceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // SELLING_PRICEif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.sellingPrice = iprot.readDouble();setSellingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // LAST_UPDATED_ONif (field.type == org.apache.thrift.protocol.TType.I64) {this.lastUpdatedOn = iprot.readI64();setLastUpdatedOnIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // LAST_UPDATED_ON_MARKETPLACEif (field.type == org.apache.thrift.protocol.TType.I64) {this.lastUpdatedOnMarketplace = iprot.readI64();setLastUpdatedOnMarketplaceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // IS_PRICE_OVERRIDEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isPriceOverride = iprot.readBool();setIsPriceOverrideIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // IS_LISTED_ON_SOURCEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isListedOnSource = iprot.readBool();setIsListedOnSourceIsSet(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(ITEM_ID_FIELD_DESC);oprot.writeI64(this.item_id);oprot.writeFieldEnd();oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeI64(this.source);oprot.writeFieldEnd();oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);oprot.writeDouble(this.sellingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(LAST_UPDATED_ON_FIELD_DESC);oprot.writeI64(this.lastUpdatedOn);oprot.writeFieldEnd();oprot.writeFieldBegin(LAST_UPDATED_ON_MARKETPLACE_FIELD_DESC);oprot.writeI64(this.lastUpdatedOnMarketplace);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_PRICE_OVERRIDE_FIELD_DESC);oprot.writeBool(this.isPriceOverride);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_LISTED_ON_SOURCE_FIELD_DESC);oprot.writeBool(this.isListedOnSource);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("MarketPlaceItemPrice(");boolean first = true;sb.append("item_id:");sb.append(this.item_id);first = false;if (!first) sb.append(", ");sb.append("source:");sb.append(this.source);first = false;if (!first) sb.append(", ");sb.append("sellingPrice:");sb.append(this.sellingPrice);first = false;if (!first) sb.append(", ");sb.append("lastUpdatedOn:");sb.append(this.lastUpdatedOn);first = false;if (!first) sb.append(", ");sb.append("lastUpdatedOnMarketplace:");sb.append(this.lastUpdatedOnMarketplace);first = false;if (!first) sb.append(", ");sb.append("isPriceOverride:");sb.append(this.isPriceOverride);first = false;if (!first) sb.append(", ");sb.append("isListedOnSource:");sb.append(this.isListedOnSource);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);}}}