Blame | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.order;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class WalletHistoryForCompany implements org.apache.thrift.TBase<WalletHistoryForCompany, WalletHistoryForCompany._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WalletHistoryForCompany");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);private static final org.apache.thrift.protocol.TField TRANSACTION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionTime", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField OPENING_BAL_FIELD_DESC = new org.apache.thrift.protocol.TField("openingBal", org.apache.thrift.protocol.TType.DOUBLE, (short)5);private static final org.apache.thrift.protocol.TField CLOSING_BAL_FIELD_DESC = new org.apache.thrift.protocol.TField("closingBal", org.apache.thrift.protocol.TType.DOUBLE, (short)6);private static final org.apache.thrift.protocol.TField REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceNumber", org.apache.thrift.protocol.TType.I64, (short)7);private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)8);private long id; // requiredprivate long walletId; // requiredprivate double amount; // requiredprivate long transactionTime; // requiredprivate double openingBal; // requiredprivate double closingBal; // requiredprivate long referenceNumber; // requiredprivate String description; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),WALLET_ID((short)2, "walletId"),AMOUNT((short)3, "amount"),TRANSACTION_TIME((short)4, "transactionTime"),OPENING_BAL((short)5, "openingBal"),CLOSING_BAL((short)6, "closingBal"),REFERENCE_NUMBER((short)7, "referenceNumber"),DESCRIPTION((short)8, "description");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // WALLET_IDreturn WALLET_ID;case 3: // AMOUNTreturn AMOUNT;case 4: // TRANSACTION_TIMEreturn TRANSACTION_TIME;case 5: // OPENING_BALreturn OPENING_BAL;case 6: // CLOSING_BALreturn CLOSING_BAL;case 7: // REFERENCE_NUMBERreturn REFERENCE_NUMBER;case 8: // DESCRIPTIONreturn DESCRIPTION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private static final int __WALLETID_ISSET_ID = 1;private static final int __AMOUNT_ISSET_ID = 2;private static final int __TRANSACTIONTIME_ISSET_ID = 3;private static final int __OPENINGBAL_ISSET_ID = 4;private static final int __CLOSINGBAL_ISSET_ID = 5;private static final int __REFERENCENUMBER_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.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WALLET_ID, new org.apache.thrift.meta_data.FieldMetaData("walletId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.TRANSACTION_TIME, new org.apache.thrift.meta_data.FieldMetaData("transactionTime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.OPENING_BAL, new org.apache.thrift.meta_data.FieldMetaData("openingBal", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.CLOSING_BAL, new org.apache.thrift.meta_data.FieldMetaData("closingBal", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("referenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", 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(WalletHistoryForCompany.class, metaDataMap);}public WalletHistoryForCompany() {}public WalletHistoryForCompany(long id,long walletId,double amount,long transactionTime,double openingBal,double closingBal,long referenceNumber,String description){this();this.id = id;setIdIsSet(true);this.walletId = walletId;setWalletIdIsSet(true);this.amount = amount;setAmountIsSet(true);this.transactionTime = transactionTime;setTransactionTimeIsSet(true);this.openingBal = openingBal;setOpeningBalIsSet(true);this.closingBal = closingBal;setClosingBalIsSet(true);this.referenceNumber = referenceNumber;setReferenceNumberIsSet(true);this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public WalletHistoryForCompany(WalletHistoryForCompany other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;this.walletId = other.walletId;this.amount = other.amount;this.transactionTime = other.transactionTime;this.openingBal = other.openingBal;this.closingBal = other.closingBal;this.referenceNumber = other.referenceNumber;if (other.isSetDescription()) {this.description = other.description;}}public WalletHistoryForCompany deepCopy() {return new WalletHistoryForCompany(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;setWalletIdIsSet(false);this.walletId = 0;setAmountIsSet(false);this.amount = 0.0;setTransactionTimeIsSet(false);this.transactionTime = 0;setOpeningBalIsSet(false);this.openingBal = 0.0;setClosingBalIsSet(false);this.closingBal = 0.0;setReferenceNumberIsSet(false);this.referenceNumber = 0;this.description = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public long getWalletId() {return this.walletId;}public void setWalletId(long walletId) {this.walletId = walletId;setWalletIdIsSet(true);}public void unsetWalletId() {__isset_bit_vector.clear(__WALLETID_ISSET_ID);}/** Returns true if field walletId is set (has been assigned a value) and false otherwise */public boolean isSetWalletId() {return __isset_bit_vector.get(__WALLETID_ISSET_ID);}public void setWalletIdIsSet(boolean value) {__isset_bit_vector.set(__WALLETID_ISSET_ID, value);}public double getAmount() {return this.amount;}public void setAmount(double amount) {this.amount = amount;setAmountIsSet(true);}public void unsetAmount() {__isset_bit_vector.clear(__AMOUNT_ISSET_ID);}/** Returns true if field amount is set (has been assigned a value) and false otherwise */public boolean isSetAmount() {return __isset_bit_vector.get(__AMOUNT_ISSET_ID);}public void setAmountIsSet(boolean value) {__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);}public long getTransactionTime() {return this.transactionTime;}public void setTransactionTime(long transactionTime) {this.transactionTime = transactionTime;setTransactionTimeIsSet(true);}public void unsetTransactionTime() {__isset_bit_vector.clear(__TRANSACTIONTIME_ISSET_ID);}/** Returns true if field transactionTime is set (has been assigned a value) and false otherwise */public boolean isSetTransactionTime() {return __isset_bit_vector.get(__TRANSACTIONTIME_ISSET_ID);}public void setTransactionTimeIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONTIME_ISSET_ID, value);}public double getOpeningBal() {return this.openingBal;}public void setOpeningBal(double openingBal) {this.openingBal = openingBal;setOpeningBalIsSet(true);}public void unsetOpeningBal() {__isset_bit_vector.clear(__OPENINGBAL_ISSET_ID);}/** Returns true if field openingBal is set (has been assigned a value) and false otherwise */public boolean isSetOpeningBal() {return __isset_bit_vector.get(__OPENINGBAL_ISSET_ID);}public void setOpeningBalIsSet(boolean value) {__isset_bit_vector.set(__OPENINGBAL_ISSET_ID, value);}public double getClosingBal() {return this.closingBal;}public void setClosingBal(double closingBal) {this.closingBal = closingBal;setClosingBalIsSet(true);}public void unsetClosingBal() {__isset_bit_vector.clear(__CLOSINGBAL_ISSET_ID);}/** Returns true if field closingBal is set (has been assigned a value) and false otherwise */public boolean isSetClosingBal() {return __isset_bit_vector.get(__CLOSINGBAL_ISSET_ID);}public void setClosingBalIsSet(boolean value) {__isset_bit_vector.set(__CLOSINGBAL_ISSET_ID, value);}public long getReferenceNumber() {return this.referenceNumber;}public void setReferenceNumber(long referenceNumber) {this.referenceNumber = referenceNumber;setReferenceNumberIsSet(true);}public void unsetReferenceNumber() {__isset_bit_vector.clear(__REFERENCENUMBER_ISSET_ID);}/** Returns true if field referenceNumber is set (has been assigned a value) and false otherwise */public boolean isSetReferenceNumber() {return __isset_bit_vector.get(__REFERENCENUMBER_ISSET_ID);}public void setReferenceNumberIsSet(boolean value) {__isset_bit_vector.set(__REFERENCENUMBER_ISSET_ID, value);}public String getDescription() {return this.description;}public void setDescription(String description) {this.description = description;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been assigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case WALLET_ID:if (value == null) {unsetWalletId();} else {setWalletId((Long)value);}break;case AMOUNT:if (value == null) {unsetAmount();} else {setAmount((Double)value);}break;case TRANSACTION_TIME:if (value == null) {unsetTransactionTime();} else {setTransactionTime((Long)value);}break;case OPENING_BAL:if (value == null) {unsetOpeningBal();} else {setOpeningBal((Double)value);}break;case CLOSING_BAL:if (value == null) {unsetClosingBal();} else {setClosingBal((Double)value);}break;case REFERENCE_NUMBER:if (value == null) {unsetReferenceNumber();} else {setReferenceNumber((Long)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case WALLET_ID:return Long.valueOf(getWalletId());case AMOUNT:return Double.valueOf(getAmount());case TRANSACTION_TIME:return Long.valueOf(getTransactionTime());case OPENING_BAL:return Double.valueOf(getOpeningBal());case CLOSING_BAL:return Double.valueOf(getClosingBal());case REFERENCE_NUMBER:return Long.valueOf(getReferenceNumber());case DESCRIPTION:return getDescription();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case WALLET_ID:return isSetWalletId();case AMOUNT:return isSetAmount();case TRANSACTION_TIME:return isSetTransactionTime();case OPENING_BAL:return isSetOpeningBal();case CLOSING_BAL:return isSetClosingBal();case REFERENCE_NUMBER:return isSetReferenceNumber();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof WalletHistoryForCompany)return this.equals((WalletHistoryForCompany)that);return false;}public boolean equals(WalletHistoryForCompany that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_walletId = true;boolean that_present_walletId = true;if (this_present_walletId || that_present_walletId) {if (!(this_present_walletId && that_present_walletId))return false;if (this.walletId != that.walletId)return false;}boolean this_present_amount = true;boolean that_present_amount = true;if (this_present_amount || that_present_amount) {if (!(this_present_amount && that_present_amount))return false;if (this.amount != that.amount)return false;}boolean this_present_transactionTime = true;boolean that_present_transactionTime = true;if (this_present_transactionTime || that_present_transactionTime) {if (!(this_present_transactionTime && that_present_transactionTime))return false;if (this.transactionTime != that.transactionTime)return false;}boolean this_present_openingBal = true;boolean that_present_openingBal = true;if (this_present_openingBal || that_present_openingBal) {if (!(this_present_openingBal && that_present_openingBal))return false;if (this.openingBal != that.openingBal)return false;}boolean this_present_closingBal = true;boolean that_present_closingBal = true;if (this_present_closingBal || that_present_closingBal) {if (!(this_present_closingBal && that_present_closingBal))return false;if (this.closingBal != that.closingBal)return false;}boolean this_present_referenceNumber = true;boolean that_present_referenceNumber = true;if (this_present_referenceNumber || that_present_referenceNumber) {if (!(this_present_referenceNumber && that_present_referenceNumber))return false;if (this.referenceNumber != that.referenceNumber)return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(WalletHistoryForCompany other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;WalletHistoryForCompany typedOther = (WalletHistoryForCompany)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWalletId()).compareTo(typedOther.isSetWalletId());if (lastComparison != 0) {return lastComparison;}if (isSetWalletId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.walletId, typedOther.walletId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());if (lastComparison != 0) {return lastComparison;}if (isSetAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTransactionTime()).compareTo(typedOther.isSetTransactionTime());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionTime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionTime, typedOther.transactionTime);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOpeningBal()).compareTo(typedOther.isSetOpeningBal());if (lastComparison != 0) {return lastComparison;}if (isSetOpeningBal()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.openingBal, typedOther.openingBal);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetClosingBal()).compareTo(typedOther.isSetClosingBal());if (lastComparison != 0) {return lastComparison;}if (isSetClosingBal()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.closingBal, typedOther.closingBal);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReferenceNumber()).compareTo(typedOther.isSetReferenceNumber());if (lastComparison != 0) {return lastComparison;}if (isSetReferenceNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceNumber, typedOther.referenceNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());if (lastComparison != 0) {return lastComparison;}if (isSetDescription()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WALLET_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.walletId = iprot.readI64();setWalletIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // AMOUNTif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.amount = iprot.readDouble();setAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // TRANSACTION_TIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionTime = iprot.readI64();setTransactionTimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // OPENING_BALif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.openingBal = iprot.readDouble();setOpeningBalIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // CLOSING_BALif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.closingBal = iprot.readDouble();setClosingBalIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // REFERENCE_NUMBERif (field.type == org.apache.thrift.protocol.TType.I64) {this.referenceNumber = iprot.readI64();setReferenceNumberIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // DESCRIPTIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.description = 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);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldBegin(WALLET_ID_FIELD_DESC);oprot.writeI64(this.walletId);oprot.writeFieldEnd();oprot.writeFieldBegin(AMOUNT_FIELD_DESC);oprot.writeDouble(this.amount);oprot.writeFieldEnd();oprot.writeFieldBegin(TRANSACTION_TIME_FIELD_DESC);oprot.writeI64(this.transactionTime);oprot.writeFieldEnd();oprot.writeFieldBegin(OPENING_BAL_FIELD_DESC);oprot.writeDouble(this.openingBal);oprot.writeFieldEnd();oprot.writeFieldBegin(CLOSING_BAL_FIELD_DESC);oprot.writeDouble(this.closingBal);oprot.writeFieldEnd();oprot.writeFieldBegin(REFERENCE_NUMBER_FIELD_DESC);oprot.writeI64(this.referenceNumber);oprot.writeFieldEnd();if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("WalletHistoryForCompany(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("walletId:");sb.append(this.walletId);first = false;if (!first) sb.append(", ");sb.append("amount:");sb.append(this.amount);first = false;if (!first) sb.append(", ");sb.append("transactionTime:");sb.append(this.transactionTime);first = false;if (!first) sb.append(", ");sb.append("openingBal:");sb.append(this.openingBal);first = false;if (!first) sb.append(", ");sb.append("closingBal:");sb.append(this.closingBal);first = false;if (!first) sb.append(", ");sb.append("referenceNumber:");sb.append(this.referenceNumber);first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}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);}}}