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 EbayItem implements org.apache.thrift.TBase<EbayItem, EbayItem._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EbayItem");private static final org.apache.thrift.protocol.TField EBAY_LISTING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayListingId", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField LISTING_EXPIRY_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingExpiryDate", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField SUBSIDY_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidy", org.apache.thrift.protocol.TType.DOUBLE, (short)6);private static final org.apache.thrift.protocol.TField DEFAULT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultWarehouseId", org.apache.thrift.protocol.TType.I64, (short)7);private String ebayListingId; // requiredprivate long itemId; // requiredprivate String listingName; // requiredprivate long listingPrice; // requiredprivate long listingExpiryDate; // requiredprivate double subsidy; // requiredprivate long defaultWarehouseId; // 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 {EBAY_LISTING_ID((short)1, "ebayListingId"),ITEM_ID((short)2, "itemId"),LISTING_NAME((short)3, "listingName"),LISTING_PRICE((short)4, "listingPrice"),LISTING_EXPIRY_DATE((short)5, "listingExpiryDate"),SUBSIDY((short)6, "subsidy"),DEFAULT_WAREHOUSE_ID((short)7, "defaultWarehouseId");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: // EBAY_LISTING_IDreturn EBAY_LISTING_ID;case 2: // ITEM_IDreturn ITEM_ID;case 3: // LISTING_NAMEreturn LISTING_NAME;case 4: // LISTING_PRICEreturn LISTING_PRICE;case 5: // LISTING_EXPIRY_DATEreturn LISTING_EXPIRY_DATE;case 6: // SUBSIDYreturn SUBSIDY;case 7: // DEFAULT_WAREHOUSE_IDreturn DEFAULT_WAREHOUSE_ID;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 __ITEMID_ISSET_ID = 0;private static final int __LISTINGPRICE_ISSET_ID = 1;private static final int __LISTINGEXPIRYDATE_ISSET_ID = 2;private static final int __SUBSIDY_ISSET_ID = 3;private static final int __DEFAULTWAREHOUSEID_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);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.EBAY_LISTING_ID, new org.apache.thrift.meta_data.FieldMetaData("ebayListingId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LISTING_EXPIRY_DATE, new org.apache.thrift.meta_data.FieldMetaData("listingExpiryDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SUBSIDY, new org.apache.thrift.meta_data.FieldMetaData("subsidy", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.DEFAULT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultWarehouseId", 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(EbayItem.class, metaDataMap);}public EbayItem() {}public EbayItem(String ebayListingId,long itemId,String listingName,long listingPrice,long listingExpiryDate,double subsidy,long defaultWarehouseId){this();this.ebayListingId = ebayListingId;this.itemId = itemId;setItemIdIsSet(true);this.listingName = listingName;this.listingPrice = listingPrice;setListingPriceIsSet(true);this.listingExpiryDate = listingExpiryDate;setListingExpiryDateIsSet(true);this.subsidy = subsidy;setSubsidyIsSet(true);this.defaultWarehouseId = defaultWarehouseId;setDefaultWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public EbayItem(EbayItem other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetEbayListingId()) {this.ebayListingId = other.ebayListingId;}this.itemId = other.itemId;if (other.isSetListingName()) {this.listingName = other.listingName;}this.listingPrice = other.listingPrice;this.listingExpiryDate = other.listingExpiryDate;this.subsidy = other.subsidy;this.defaultWarehouseId = other.defaultWarehouseId;}public EbayItem deepCopy() {return new EbayItem(this);}@Overridepublic void clear() {this.ebayListingId = null;setItemIdIsSet(false);this.itemId = 0;this.listingName = null;setListingPriceIsSet(false);this.listingPrice = 0;setListingExpiryDateIsSet(false);this.listingExpiryDate = 0;setSubsidyIsSet(false);this.subsidy = 0.0;setDefaultWarehouseIdIsSet(false);this.defaultWarehouseId = 0;}public String getEbayListingId() {return this.ebayListingId;}public void setEbayListingId(String ebayListingId) {this.ebayListingId = ebayListingId;}public void unsetEbayListingId() {this.ebayListingId = null;}/** Returns true if field ebayListingId is set (has been assigned a value) and false otherwise */public boolean isSetEbayListingId() {return this.ebayListingId != null;}public void setEbayListingIdIsSet(boolean value) {if (!value) {this.ebayListingId = null;}}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public String getListingName() {return this.listingName;}public void setListingName(String listingName) {this.listingName = listingName;}public void unsetListingName() {this.listingName = null;}/** Returns true if field listingName is set (has been assigned a value) and false otherwise */public boolean isSetListingName() {return this.listingName != null;}public void setListingNameIsSet(boolean value) {if (!value) {this.listingName = null;}}public long getListingPrice() {return this.listingPrice;}public void setListingPrice(long listingPrice) {this.listingPrice = listingPrice;setListingPriceIsSet(true);}public void unsetListingPrice() {__isset_bit_vector.clear(__LISTINGPRICE_ISSET_ID);}/** Returns true if field listingPrice is set (has been assigned a value) and false otherwise */public boolean isSetListingPrice() {return __isset_bit_vector.get(__LISTINGPRICE_ISSET_ID);}public void setListingPriceIsSet(boolean value) {__isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);}public long getListingExpiryDate() {return this.listingExpiryDate;}public void setListingExpiryDate(long listingExpiryDate) {this.listingExpiryDate = listingExpiryDate;setListingExpiryDateIsSet(true);}public void unsetListingExpiryDate() {__isset_bit_vector.clear(__LISTINGEXPIRYDATE_ISSET_ID);}/** Returns true if field listingExpiryDate is set (has been assigned a value) and false otherwise */public boolean isSetListingExpiryDate() {return __isset_bit_vector.get(__LISTINGEXPIRYDATE_ISSET_ID);}public void setListingExpiryDateIsSet(boolean value) {__isset_bit_vector.set(__LISTINGEXPIRYDATE_ISSET_ID, value);}public double getSubsidy() {return this.subsidy;}public void setSubsidy(double subsidy) {this.subsidy = subsidy;setSubsidyIsSet(true);}public void unsetSubsidy() {__isset_bit_vector.clear(__SUBSIDY_ISSET_ID);}/** Returns true if field subsidy is set (has been assigned a value) and false otherwise */public boolean isSetSubsidy() {return __isset_bit_vector.get(__SUBSIDY_ISSET_ID);}public void setSubsidyIsSet(boolean value) {__isset_bit_vector.set(__SUBSIDY_ISSET_ID, value);}public long getDefaultWarehouseId() {return this.defaultWarehouseId;}public void setDefaultWarehouseId(long defaultWarehouseId) {this.defaultWarehouseId = defaultWarehouseId;setDefaultWarehouseIdIsSet(true);}public void unsetDefaultWarehouseId() {__isset_bit_vector.clear(__DEFAULTWAREHOUSEID_ISSET_ID);}/** Returns true if field defaultWarehouseId is set (has been assigned a value) and false otherwise */public boolean isSetDefaultWarehouseId() {return __isset_bit_vector.get(__DEFAULTWAREHOUSEID_ISSET_ID);}public void setDefaultWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__DEFAULTWAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case EBAY_LISTING_ID:if (value == null) {unsetEbayListingId();} else {setEbayListingId((String)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case LISTING_NAME:if (value == null) {unsetListingName();} else {setListingName((String)value);}break;case LISTING_PRICE:if (value == null) {unsetListingPrice();} else {setListingPrice((Long)value);}break;case LISTING_EXPIRY_DATE:if (value == null) {unsetListingExpiryDate();} else {setListingExpiryDate((Long)value);}break;case SUBSIDY:if (value == null) {unsetSubsidy();} else {setSubsidy((Double)value);}break;case DEFAULT_WAREHOUSE_ID:if (value == null) {unsetDefaultWarehouseId();} else {setDefaultWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EBAY_LISTING_ID:return getEbayListingId();case ITEM_ID:return Long.valueOf(getItemId());case LISTING_NAME:return getListingName();case LISTING_PRICE:return Long.valueOf(getListingPrice());case LISTING_EXPIRY_DATE:return Long.valueOf(getListingExpiryDate());case SUBSIDY:return Double.valueOf(getSubsidy());case DEFAULT_WAREHOUSE_ID:return Long.valueOf(getDefaultWarehouseId());}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 EBAY_LISTING_ID:return isSetEbayListingId();case ITEM_ID:return isSetItemId();case LISTING_NAME:return isSetListingName();case LISTING_PRICE:return isSetListingPrice();case LISTING_EXPIRY_DATE:return isSetListingExpiryDate();case SUBSIDY:return isSetSubsidy();case DEFAULT_WAREHOUSE_ID:return isSetDefaultWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof EbayItem)return this.equals((EbayItem)that);return false;}public boolean equals(EbayItem that) {if (that == null)return false;boolean this_present_ebayListingId = true && this.isSetEbayListingId();boolean that_present_ebayListingId = true && that.isSetEbayListingId();if (this_present_ebayListingId || that_present_ebayListingId) {if (!(this_present_ebayListingId && that_present_ebayListingId))return false;if (!this.ebayListingId.equals(that.ebayListingId))return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_listingName = true && this.isSetListingName();boolean that_present_listingName = true && that.isSetListingName();if (this_present_listingName || that_present_listingName) {if (!(this_present_listingName && that_present_listingName))return false;if (!this.listingName.equals(that.listingName))return false;}boolean this_present_listingPrice = true;boolean that_present_listingPrice = true;if (this_present_listingPrice || that_present_listingPrice) {if (!(this_present_listingPrice && that_present_listingPrice))return false;if (this.listingPrice != that.listingPrice)return false;}boolean this_present_listingExpiryDate = true;boolean that_present_listingExpiryDate = true;if (this_present_listingExpiryDate || that_present_listingExpiryDate) {if (!(this_present_listingExpiryDate && that_present_listingExpiryDate))return false;if (this.listingExpiryDate != that.listingExpiryDate)return false;}boolean this_present_subsidy = true;boolean that_present_subsidy = true;if (this_present_subsidy || that_present_subsidy) {if (!(this_present_subsidy && that_present_subsidy))return false;if (this.subsidy != that.subsidy)return false;}boolean this_present_defaultWarehouseId = true;boolean that_present_defaultWarehouseId = true;if (this_present_defaultWarehouseId || that_present_defaultWarehouseId) {if (!(this_present_defaultWarehouseId && that_present_defaultWarehouseId))return false;if (this.defaultWarehouseId != that.defaultWarehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(EbayItem other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;EbayItem typedOther = (EbayItem)other;lastComparison = Boolean.valueOf(isSetEbayListingId()).compareTo(typedOther.isSetEbayListingId());if (lastComparison != 0) {return lastComparison;}if (isSetEbayListingId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ebayListingId, typedOther.ebayListingId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetListingName()).compareTo(typedOther.isSetListingName());if (lastComparison != 0) {return lastComparison;}if (isSetListingName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingName, typedOther.listingName);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetListingPrice()).compareTo(typedOther.isSetListingPrice());if (lastComparison != 0) {return lastComparison;}if (isSetListingPrice()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingPrice, typedOther.listingPrice);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetListingExpiryDate()).compareTo(typedOther.isSetListingExpiryDate());if (lastComparison != 0) {return lastComparison;}if (isSetListingExpiryDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingExpiryDate, typedOther.listingExpiryDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSubsidy()).compareTo(typedOther.isSetSubsidy());if (lastComparison != 0) {return lastComparison;}if (isSetSubsidy()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subsidy, typedOther.subsidy);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDefaultWarehouseId()).compareTo(typedOther.isSetDefaultWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetDefaultWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultWarehouseId, typedOther.defaultWarehouseId);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: // EBAY_LISTING_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.ebayListingId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LISTING_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.listingName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // LISTING_PRICEif (field.type == org.apache.thrift.protocol.TType.I64) {this.listingPrice = iprot.readI64();setListingPriceIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // LISTING_EXPIRY_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.listingExpiryDate = iprot.readI64();setListingExpiryDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // SUBSIDYif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.subsidy = iprot.readDouble();setSubsidyIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // DEFAULT_WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.defaultWarehouseId = iprot.readI64();setDefaultWarehouseIdIsSet(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);if (this.ebayListingId != null) {oprot.writeFieldBegin(EBAY_LISTING_ID_FIELD_DESC);oprot.writeString(this.ebayListingId);oprot.writeFieldEnd();}oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();if (this.listingName != null) {oprot.writeFieldBegin(LISTING_NAME_FIELD_DESC);oprot.writeString(this.listingName);oprot.writeFieldEnd();}oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);oprot.writeI64(this.listingPrice);oprot.writeFieldEnd();oprot.writeFieldBegin(LISTING_EXPIRY_DATE_FIELD_DESC);oprot.writeI64(this.listingExpiryDate);oprot.writeFieldEnd();oprot.writeFieldBegin(SUBSIDY_FIELD_DESC);oprot.writeDouble(this.subsidy);oprot.writeFieldEnd();oprot.writeFieldBegin(DEFAULT_WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.defaultWarehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("EbayItem(");boolean first = true;sb.append("ebayListingId:");if (this.ebayListingId == null) {sb.append("null");} else {sb.append(this.ebayListingId);}first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("listingName:");if (this.listingName == null) {sb.append("null");} else {sb.append(this.listingName);}first = false;if (!first) sb.append(", ");sb.append("listingPrice:");sb.append(this.listingPrice);first = false;if (!first) sb.append(", ");sb.append("listingExpiryDate:");sb.append(this.listingExpiryDate);first = false;if (!first) sb.append(", ");sb.append("subsidy:");sb.append(this.subsidy);first = false;if (!first) sb.append(", ");sb.append("defaultWarehouseId:");sb.append(this.defaultWarehouseId);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);}}}