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.warehouse;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 RemovalStockShipmentReference implements org.apache.thrift.TBase<RemovalStockShipmentReference, RemovalStockShipmentReference._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RemovalStockShipmentReference");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 SHIPMENT_REFERENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentReference", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)4);private static final org.apache.thrift.protocol.TField INVENTORY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryType", org.apache.thrift.protocol.TType.I64, (short)5);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)6);private static final org.apache.thrift.protocol.TField UNFULFIL_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilQuantity", org.apache.thrift.protocol.TType.I64, (short)7);private static final org.apache.thrift.protocol.TField COMPLETED_FIELD_DESC = new org.apache.thrift.protocol.TField("completed", org.apache.thrift.protocol.TType.BOOL, (short)8);private long id; // requiredprivate String shipmentReference; // requiredprivate long createdOn; // requiredprivate String source; // requiredprivate long inventoryType; // requiredprivate long quantity; // requiredprivate long unfulfilQuantity; // requiredprivate boolean completed; // 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"),SHIPMENT_REFERENCE((short)2, "shipmentReference"),CREATED_ON((short)3, "createdOn"),SOURCE((short)4, "source"),INVENTORY_TYPE((short)5, "inventoryType"),QUANTITY((short)6, "quantity"),UNFULFIL_QUANTITY((short)7, "unfulfilQuantity"),COMPLETED((short)8, "completed");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: // SHIPMENT_REFERENCEreturn SHIPMENT_REFERENCE;case 3: // CREATED_ONreturn CREATED_ON;case 4: // SOURCEreturn SOURCE;case 5: // INVENTORY_TYPEreturn INVENTORY_TYPE;case 6: // QUANTITYreturn QUANTITY;case 7: // UNFULFIL_QUANTITYreturn UNFULFIL_QUANTITY;case 8: // COMPLETEDreturn COMPLETED;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 __CREATEDON_ISSET_ID = 1;private static final int __INVENTORYTYPE_ISSET_ID = 2;private static final int __QUANTITY_ISSET_ID = 3;private static final int __UNFULFILQUANTITY_ISSET_ID = 4;private static final int __COMPLETED_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.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.SHIPMENT_REFERENCE, new org.apache.thrift.meta_data.FieldMetaData("shipmentReference", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));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.STRING)));tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));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.UNFULFIL_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("unfulfilQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.COMPLETED, new org.apache.thrift.meta_data.FieldMetaData("completed", 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(RemovalStockShipmentReference.class, metaDataMap);}public RemovalStockShipmentReference() {}public RemovalStockShipmentReference(long id,String shipmentReference,long createdOn,String source,long inventoryType,long quantity,long unfulfilQuantity,boolean completed){this();this.id = id;setIdIsSet(true);this.shipmentReference = shipmentReference;this.createdOn = createdOn;setCreatedOnIsSet(true);this.source = source;this.inventoryType = inventoryType;setInventoryTypeIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.unfulfilQuantity = unfulfilQuantity;setUnfulfilQuantityIsSet(true);this.completed = completed;setCompletedIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public RemovalStockShipmentReference(RemovalStockShipmentReference other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetShipmentReference()) {this.shipmentReference = other.shipmentReference;}this.createdOn = other.createdOn;if (other.isSetSource()) {this.source = other.source;}this.inventoryType = other.inventoryType;this.quantity = other.quantity;this.unfulfilQuantity = other.unfulfilQuantity;this.completed = other.completed;}public RemovalStockShipmentReference deepCopy() {return new RemovalStockShipmentReference(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;this.shipmentReference = null;setCreatedOnIsSet(false);this.createdOn = 0;this.source = null;setInventoryTypeIsSet(false);this.inventoryType = 0;setQuantityIsSet(false);this.quantity = 0;setUnfulfilQuantityIsSet(false);this.unfulfilQuantity = 0;setCompletedIsSet(false);this.completed = false;}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 String getShipmentReference() {return this.shipmentReference;}public void setShipmentReference(String shipmentReference) {this.shipmentReference = shipmentReference;}public void unsetShipmentReference() {this.shipmentReference = null;}/** Returns true if field shipmentReference is set (has been assigned a value) and false otherwise */public boolean isSetShipmentReference() {return this.shipmentReference != null;}public void setShipmentReferenceIsSet(boolean value) {if (!value) {this.shipmentReference = null;}}public long getCreatedOn() {return this.createdOn;}public void setCreatedOn(long createdOn) {this.createdOn = createdOn;setCreatedOnIsSet(true);}public void unsetCreatedOn() {__isset_bit_vector.clear(__CREATEDON_ISSET_ID);}/** Returns true if field createdOn is set (has been assigned a value) and false otherwise */public boolean isSetCreatedOn() {return __isset_bit_vector.get(__CREATEDON_ISSET_ID);}public void setCreatedOnIsSet(boolean value) {__isset_bit_vector.set(__CREATEDON_ISSET_ID, value);}public String getSource() {return this.source;}public void setSource(String source) {this.source = source;}public void unsetSource() {this.source = null;}/** Returns true if field source is set (has been assigned a value) and false otherwise */public boolean isSetSource() {return this.source != null;}public void setSourceIsSet(boolean value) {if (!value) {this.source = null;}}public long getInventoryType() {return this.inventoryType;}public void setInventoryType(long inventoryType) {this.inventoryType = inventoryType;setInventoryTypeIsSet(true);}public void unsetInventoryType() {__isset_bit_vector.clear(__INVENTORYTYPE_ISSET_ID);}/** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */public boolean isSetInventoryType() {return __isset_bit_vector.get(__INVENTORYTYPE_ISSET_ID);}public void setInventoryTypeIsSet(boolean value) {__isset_bit_vector.set(__INVENTORYTYPE_ISSET_ID, value);}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 long getUnfulfilQuantity() {return this.unfulfilQuantity;}public void setUnfulfilQuantity(long unfulfilQuantity) {this.unfulfilQuantity = unfulfilQuantity;setUnfulfilQuantityIsSet(true);}public void unsetUnfulfilQuantity() {__isset_bit_vector.clear(__UNFULFILQUANTITY_ISSET_ID);}/** Returns true if field unfulfilQuantity is set (has been assigned a value) and false otherwise */public boolean isSetUnfulfilQuantity() {return __isset_bit_vector.get(__UNFULFILQUANTITY_ISSET_ID);}public void setUnfulfilQuantityIsSet(boolean value) {__isset_bit_vector.set(__UNFULFILQUANTITY_ISSET_ID, value);}public boolean isCompleted() {return this.completed;}public void setCompleted(boolean completed) {this.completed = completed;setCompletedIsSet(true);}public void unsetCompleted() {__isset_bit_vector.clear(__COMPLETED_ISSET_ID);}/** Returns true if field completed is set (has been assigned a value) and false otherwise */public boolean isSetCompleted() {return __isset_bit_vector.get(__COMPLETED_ISSET_ID);}public void setCompletedIsSet(boolean value) {__isset_bit_vector.set(__COMPLETED_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case SHIPMENT_REFERENCE:if (value == null) {unsetShipmentReference();} else {setShipmentReference((String)value);}break;case CREATED_ON:if (value == null) {unsetCreatedOn();} else {setCreatedOn((Long)value);}break;case SOURCE:if (value == null) {unsetSource();} else {setSource((String)value);}break;case INVENTORY_TYPE:if (value == null) {unsetInventoryType();} else {setInventoryType((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case UNFULFIL_QUANTITY:if (value == null) {unsetUnfulfilQuantity();} else {setUnfulfilQuantity((Long)value);}break;case COMPLETED:if (value == null) {unsetCompleted();} else {setCompleted((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case SHIPMENT_REFERENCE:return getShipmentReference();case CREATED_ON:return Long.valueOf(getCreatedOn());case SOURCE:return getSource();case INVENTORY_TYPE:return Long.valueOf(getInventoryType());case QUANTITY:return Long.valueOf(getQuantity());case UNFULFIL_QUANTITY:return Long.valueOf(getUnfulfilQuantity());case COMPLETED:return Boolean.valueOf(isCompleted());}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 SHIPMENT_REFERENCE:return isSetShipmentReference();case CREATED_ON:return isSetCreatedOn();case SOURCE:return isSetSource();case INVENTORY_TYPE:return isSetInventoryType();case QUANTITY:return isSetQuantity();case UNFULFIL_QUANTITY:return isSetUnfulfilQuantity();case COMPLETED:return isSetCompleted();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof RemovalStockShipmentReference)return this.equals((RemovalStockShipmentReference)that);return false;}public boolean equals(RemovalStockShipmentReference 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_shipmentReference = true && this.isSetShipmentReference();boolean that_present_shipmentReference = true && that.isSetShipmentReference();if (this_present_shipmentReference || that_present_shipmentReference) {if (!(this_present_shipmentReference && that_present_shipmentReference))return false;if (!this.shipmentReference.equals(that.shipmentReference))return false;}boolean this_present_createdOn = true;boolean that_present_createdOn = true;if (this_present_createdOn || that_present_createdOn) {if (!(this_present_createdOn && that_present_createdOn))return false;if (this.createdOn != that.createdOn)return false;}boolean this_present_source = true && this.isSetSource();boolean that_present_source = true && that.isSetSource();if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (!this.source.equals(that.source))return false;}boolean this_present_inventoryType = true;boolean that_present_inventoryType = true;if (this_present_inventoryType || that_present_inventoryType) {if (!(this_present_inventoryType && that_present_inventoryType))return false;if (this.inventoryType != that.inventoryType)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_unfulfilQuantity = true;boolean that_present_unfulfilQuantity = true;if (this_present_unfulfilQuantity || that_present_unfulfilQuantity) {if (!(this_present_unfulfilQuantity && that_present_unfulfilQuantity))return false;if (this.unfulfilQuantity != that.unfulfilQuantity)return false;}boolean this_present_completed = true;boolean that_present_completed = true;if (this_present_completed || that_present_completed) {if (!(this_present_completed && that_present_completed))return false;if (this.completed != that.completed)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(RemovalStockShipmentReference other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;RemovalStockShipmentReference typedOther = (RemovalStockShipmentReference)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(isSetShipmentReference()).compareTo(typedOther.isSetShipmentReference());if (lastComparison != 0) {return lastComparison;}if (isSetShipmentReference()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipmentReference, typedOther.shipmentReference);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());if (lastComparison != 0) {return lastComparison;}if (isSetCreatedOn()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);if (lastComparison != 0) {return lastComparison;}}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(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());if (lastComparison != 0) {return lastComparison;}if (isSetInventoryType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);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(isSetUnfulfilQuantity()).compareTo(typedOther.isSetUnfulfilQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetUnfulfilQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfilQuantity, typedOther.unfulfilQuantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCompleted()).compareTo(typedOther.isSetCompleted());if (lastComparison != 0) {return lastComparison;}if (isSetCompleted()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.completed, typedOther.completed);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: // SHIPMENT_REFERENCEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.shipmentReference = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // CREATED_ONif (field.type == org.apache.thrift.protocol.TType.I64) {this.createdOn = iprot.readI64();setCreatedOnIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // SOURCEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.source = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // INVENTORY_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.inventoryType = iprot.readI64();setInventoryTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // 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 7: // UNFULFIL_QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.unfulfilQuantity = iprot.readI64();setUnfulfilQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // COMPLETEDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.completed = iprot.readBool();setCompletedIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.shipmentReference != null) {oprot.writeFieldBegin(SHIPMENT_REFERENCE_FIELD_DESC);oprot.writeString(this.shipmentReference);oprot.writeFieldEnd();}oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);oprot.writeI64(this.createdOn);oprot.writeFieldEnd();if (this.source != null) {oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeString(this.source);oprot.writeFieldEnd();}oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);oprot.writeI64(this.inventoryType);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(UNFULFIL_QUANTITY_FIELD_DESC);oprot.writeI64(this.unfulfilQuantity);oprot.writeFieldEnd();oprot.writeFieldBegin(COMPLETED_FIELD_DESC);oprot.writeBool(this.completed);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("RemovalStockShipmentReference(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("shipmentReference:");if (this.shipmentReference == null) {sb.append("null");} else {sb.append(this.shipmentReference);}first = false;if (!first) sb.append(", ");sb.append("createdOn:");sb.append(this.createdOn);first = false;if (!first) sb.append(", ");sb.append("source:");if (this.source == null) {sb.append("null");} else {sb.append(this.source);}first = false;if (!first) sb.append(", ");sb.append("inventoryType:");sb.append(this.inventoryType);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("unfulfilQuantity:");sb.append(this.unfulfilQuantity);first = false;if (!first) sb.append(", ");sb.append("completed:");sb.append(this.completed);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);}}}