Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cicada.departdriver.config.MemberTaskCompleteParas Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package cicada.departdriver.config;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-06-19")
public class MemberTaskCompleteParas implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MemberTaskCompleteParas");
private static final org.apache.thrift.protocol.TField ENTERPRISE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("enterpriseID", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField TASK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taskType", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField BUSSINESS_ID1_FIELD_DESC = new org.apache.thrift.protocol.TField("bussinessID1", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField BUSSINESS_ID2_FIELD_DESC = new org.apache.thrift.protocol.TField("bussinessID2", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField BUSSINESS_ID3_FIELD_DESC = new org.apache.thrift.protocol.TField("bussinessID3", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField RESULT_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("resultCode", org.apache.thrift.protocol.TType.I32, (short)6);
private static final org.apache.thrift.protocol.TField REMARK_FIELD_DESC = new org.apache.thrift.protocol.TField("remark", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MemberTaskCompleteParasStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MemberTaskCompleteParasTupleSchemeFactory();
public java.lang.String enterpriseID; // required
public int taskType; // required
public java.lang.String bussinessID1; // required
public java.lang.String bussinessID2; // required
public java.lang.String bussinessID3; // required
public MemberTaskResultCodeEnum resultCode; // required
public java.lang.String remark; // 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 {
ENTERPRISE_ID((short)1, "enterpriseID"),
TASK_TYPE((short)2, "taskType"),
BUSSINESS_ID1((short)3, "bussinessID1"),
BUSSINESS_ID2((short)4, "bussinessID2"),
BUSSINESS_ID3((short)5, "bussinessID3"),
RESULT_CODE((short)6, "resultCode"),
REMARK((short)7, "remark");
private static final java.util.Map byName = new java.util.HashMap();
static {
for (_Fields field : java.util.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: // ENTERPRISE_ID
return ENTERPRISE_ID;
case 2: // TASK_TYPE
return TASK_TYPE;
case 3: // BUSSINESS_ID1
return BUSSINESS_ID1;
case 4: // BUSSINESS_ID2
return BUSSINESS_ID2;
case 5: // BUSSINESS_ID3
return BUSSINESS_ID3;
case 6: // RESULT_CODE
return RESULT_CODE;
case 7: // REMARK
return REMARK;
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 java.lang.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(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __TASKTYPE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.ENTERPRISE_ID, new org.apache.thrift.meta_data.FieldMetaData("enterpriseID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TASK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taskType", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.BUSSINESS_ID1, new org.apache.thrift.meta_data.FieldMetaData("bussinessID1", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.BUSSINESS_ID2, new org.apache.thrift.meta_data.FieldMetaData("bussinessID2", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.BUSSINESS_ID3, new org.apache.thrift.meta_data.FieldMetaData("bussinessID3", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RESULT_CODE, new org.apache.thrift.meta_data.FieldMetaData("resultCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.ENUM , "MemberTaskResultCodeEnum")));
tmpMap.put(_Fields.REMARK, new org.apache.thrift.meta_data.FieldMetaData("remark", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MemberTaskCompleteParas.class, metaDataMap);
}
public MemberTaskCompleteParas() {
}
public MemberTaskCompleteParas(
java.lang.String enterpriseID,
int taskType,
java.lang.String bussinessID1,
java.lang.String bussinessID2,
java.lang.String bussinessID3,
MemberTaskResultCodeEnum resultCode,
java.lang.String remark)
{
this();
this.enterpriseID = enterpriseID;
this.taskType = taskType;
setTaskTypeIsSet(true);
this.bussinessID1 = bussinessID1;
this.bussinessID2 = bussinessID2;
this.bussinessID3 = bussinessID3;
this.resultCode = resultCode;
this.remark = remark;
}
/**
* Performs a deep copy on other .
*/
public MemberTaskCompleteParas(MemberTaskCompleteParas other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetEnterpriseID()) {
this.enterpriseID = other.enterpriseID;
}
this.taskType = other.taskType;
if (other.isSetBussinessID1()) {
this.bussinessID1 = other.bussinessID1;
}
if (other.isSetBussinessID2()) {
this.bussinessID2 = other.bussinessID2;
}
if (other.isSetBussinessID3()) {
this.bussinessID3 = other.bussinessID3;
}
if (other.isSetResultCode()) {
this.resultCode = other.resultCode;
}
if (other.isSetRemark()) {
this.remark = other.remark;
}
}
public MemberTaskCompleteParas deepCopy() {
return new MemberTaskCompleteParas(this);
}
@Override
public void clear() {
this.enterpriseID = null;
setTaskTypeIsSet(false);
this.taskType = 0;
this.bussinessID1 = null;
this.bussinessID2 = null;
this.bussinessID3 = null;
this.resultCode = null;
this.remark = null;
}
public java.lang.String getEnterpriseID() {
return this.enterpriseID;
}
public MemberTaskCompleteParas setEnterpriseID(java.lang.String enterpriseID) {
this.enterpriseID = enterpriseID;
return this;
}
public void unsetEnterpriseID() {
this.enterpriseID = null;
}
/** Returns true if field enterpriseID is set (has been assigned a value) and false otherwise */
public boolean isSetEnterpriseID() {
return this.enterpriseID != null;
}
public void setEnterpriseIDIsSet(boolean value) {
if (!value) {
this.enterpriseID = null;
}
}
public int getTaskType() {
return this.taskType;
}
public MemberTaskCompleteParas setTaskType(int taskType) {
this.taskType = taskType;
setTaskTypeIsSet(true);
return this;
}
public void unsetTaskType() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TASKTYPE_ISSET_ID);
}
/** Returns true if field taskType is set (has been assigned a value) and false otherwise */
public boolean isSetTaskType() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TASKTYPE_ISSET_ID);
}
public void setTaskTypeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TASKTYPE_ISSET_ID, value);
}
public java.lang.String getBussinessID1() {
return this.bussinessID1;
}
public MemberTaskCompleteParas setBussinessID1(java.lang.String bussinessID1) {
this.bussinessID1 = bussinessID1;
return this;
}
public void unsetBussinessID1() {
this.bussinessID1 = null;
}
/** Returns true if field bussinessID1 is set (has been assigned a value) and false otherwise */
public boolean isSetBussinessID1() {
return this.bussinessID1 != null;
}
public void setBussinessID1IsSet(boolean value) {
if (!value) {
this.bussinessID1 = null;
}
}
public java.lang.String getBussinessID2() {
return this.bussinessID2;
}
public MemberTaskCompleteParas setBussinessID2(java.lang.String bussinessID2) {
this.bussinessID2 = bussinessID2;
return this;
}
public void unsetBussinessID2() {
this.bussinessID2 = null;
}
/** Returns true if field bussinessID2 is set (has been assigned a value) and false otherwise */
public boolean isSetBussinessID2() {
return this.bussinessID2 != null;
}
public void setBussinessID2IsSet(boolean value) {
if (!value) {
this.bussinessID2 = null;
}
}
public java.lang.String getBussinessID3() {
return this.bussinessID3;
}
public MemberTaskCompleteParas setBussinessID3(java.lang.String bussinessID3) {
this.bussinessID3 = bussinessID3;
return this;
}
public void unsetBussinessID3() {
this.bussinessID3 = null;
}
/** Returns true if field bussinessID3 is set (has been assigned a value) and false otherwise */
public boolean isSetBussinessID3() {
return this.bussinessID3 != null;
}
public void setBussinessID3IsSet(boolean value) {
if (!value) {
this.bussinessID3 = null;
}
}
public MemberTaskResultCodeEnum getResultCode() {
return this.resultCode;
}
public MemberTaskCompleteParas setResultCode(MemberTaskResultCodeEnum resultCode) {
this.resultCode = resultCode;
return this;
}
public void unsetResultCode() {
this.resultCode = null;
}
/** Returns true if field resultCode is set (has been assigned a value) and false otherwise */
public boolean isSetResultCode() {
return this.resultCode != null;
}
public void setResultCodeIsSet(boolean value) {
if (!value) {
this.resultCode = null;
}
}
public java.lang.String getRemark() {
return this.remark;
}
public MemberTaskCompleteParas setRemark(java.lang.String remark) {
this.remark = remark;
return this;
}
public void unsetRemark() {
this.remark = null;
}
/** Returns true if field remark is set (has been assigned a value) and false otherwise */
public boolean isSetRemark() {
return this.remark != null;
}
public void setRemarkIsSet(boolean value) {
if (!value) {
this.remark = null;
}
}
public void setFieldValue(_Fields field, java.lang.Object value) {
switch (field) {
case ENTERPRISE_ID:
if (value == null) {
unsetEnterpriseID();
} else {
setEnterpriseID((java.lang.String)value);
}
break;
case TASK_TYPE:
if (value == null) {
unsetTaskType();
} else {
setTaskType((java.lang.Integer)value);
}
break;
case BUSSINESS_ID1:
if (value == null) {
unsetBussinessID1();
} else {
setBussinessID1((java.lang.String)value);
}
break;
case BUSSINESS_ID2:
if (value == null) {
unsetBussinessID2();
} else {
setBussinessID2((java.lang.String)value);
}
break;
case BUSSINESS_ID3:
if (value == null) {
unsetBussinessID3();
} else {
setBussinessID3((java.lang.String)value);
}
break;
case RESULT_CODE:
if (value == null) {
unsetResultCode();
} else {
setResultCode((MemberTaskResultCodeEnum)value);
}
break;
case REMARK:
if (value == null) {
unsetRemark();
} else {
setRemark((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ENTERPRISE_ID:
return getEnterpriseID();
case TASK_TYPE:
return getTaskType();
case BUSSINESS_ID1:
return getBussinessID1();
case BUSSINESS_ID2:
return getBussinessID2();
case BUSSINESS_ID3:
return getBussinessID3();
case RESULT_CODE:
return getResultCode();
case REMARK:
return getRemark();
}
throw new java.lang.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 java.lang.IllegalArgumentException();
}
switch (field) {
case ENTERPRISE_ID:
return isSetEnterpriseID();
case TASK_TYPE:
return isSetTaskType();
case BUSSINESS_ID1:
return isSetBussinessID1();
case BUSSINESS_ID2:
return isSetBussinessID2();
case BUSSINESS_ID3:
return isSetBussinessID3();
case RESULT_CODE:
return isSetResultCode();
case REMARK:
return isSetRemark();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof MemberTaskCompleteParas)
return this.equals((MemberTaskCompleteParas)that);
return false;
}
public boolean equals(MemberTaskCompleteParas that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_enterpriseID = true && this.isSetEnterpriseID();
boolean that_present_enterpriseID = true && that.isSetEnterpriseID();
if (this_present_enterpriseID || that_present_enterpriseID) {
if (!(this_present_enterpriseID && that_present_enterpriseID))
return false;
if (!this.enterpriseID.equals(that.enterpriseID))
return false;
}
boolean this_present_taskType = true;
boolean that_present_taskType = true;
if (this_present_taskType || that_present_taskType) {
if (!(this_present_taskType && that_present_taskType))
return false;
if (this.taskType != that.taskType)
return false;
}
boolean this_present_bussinessID1 = true && this.isSetBussinessID1();
boolean that_present_bussinessID1 = true && that.isSetBussinessID1();
if (this_present_bussinessID1 || that_present_bussinessID1) {
if (!(this_present_bussinessID1 && that_present_bussinessID1))
return false;
if (!this.bussinessID1.equals(that.bussinessID1))
return false;
}
boolean this_present_bussinessID2 = true && this.isSetBussinessID2();
boolean that_present_bussinessID2 = true && that.isSetBussinessID2();
if (this_present_bussinessID2 || that_present_bussinessID2) {
if (!(this_present_bussinessID2 && that_present_bussinessID2))
return false;
if (!this.bussinessID2.equals(that.bussinessID2))
return false;
}
boolean this_present_bussinessID3 = true && this.isSetBussinessID3();
boolean that_present_bussinessID3 = true && that.isSetBussinessID3();
if (this_present_bussinessID3 || that_present_bussinessID3) {
if (!(this_present_bussinessID3 && that_present_bussinessID3))
return false;
if (!this.bussinessID3.equals(that.bussinessID3))
return false;
}
boolean this_present_resultCode = true && this.isSetResultCode();
boolean that_present_resultCode = true && that.isSetResultCode();
if (this_present_resultCode || that_present_resultCode) {
if (!(this_present_resultCode && that_present_resultCode))
return false;
if (!this.resultCode.equals(that.resultCode))
return false;
}
boolean this_present_remark = true && this.isSetRemark();
boolean that_present_remark = true && that.isSetRemark();
if (this_present_remark || that_present_remark) {
if (!(this_present_remark && that_present_remark))
return false;
if (!this.remark.equals(that.remark))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetEnterpriseID()) ? 131071 : 524287);
if (isSetEnterpriseID())
hashCode = hashCode * 8191 + enterpriseID.hashCode();
hashCode = hashCode * 8191 + taskType;
hashCode = hashCode * 8191 + ((isSetBussinessID1()) ? 131071 : 524287);
if (isSetBussinessID1())
hashCode = hashCode * 8191 + bussinessID1.hashCode();
hashCode = hashCode * 8191 + ((isSetBussinessID2()) ? 131071 : 524287);
if (isSetBussinessID2())
hashCode = hashCode * 8191 + bussinessID2.hashCode();
hashCode = hashCode * 8191 + ((isSetBussinessID3()) ? 131071 : 524287);
if (isSetBussinessID3())
hashCode = hashCode * 8191 + bussinessID3.hashCode();
hashCode = hashCode * 8191 + ((isSetResultCode()) ? 131071 : 524287);
if (isSetResultCode())
hashCode = hashCode * 8191 + resultCode.getValue();
hashCode = hashCode * 8191 + ((isSetRemark()) ? 131071 : 524287);
if (isSetRemark())
hashCode = hashCode * 8191 + remark.hashCode();
return hashCode;
}
@Override
public int compareTo(MemberTaskCompleteParas other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetEnterpriseID()).compareTo(other.isSetEnterpriseID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEnterpriseID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enterpriseID, other.enterpriseID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetTaskType()).compareTo(other.isSetTaskType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTaskType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, other.taskType);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetBussinessID1()).compareTo(other.isSetBussinessID1());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBussinessID1()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bussinessID1, other.bussinessID1);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetBussinessID2()).compareTo(other.isSetBussinessID2());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBussinessID2()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bussinessID2, other.bussinessID2);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetBussinessID3()).compareTo(other.isSetBussinessID3());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBussinessID3()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bussinessID3, other.bussinessID3);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetResultCode()).compareTo(other.isSetResultCode());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetResultCode()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resultCode, other.resultCode);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetRemark()).compareTo(other.isSetRemark());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRemark()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remark, other.remark);
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 {
scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("MemberTaskCompleteParas(");
boolean first = true;
sb.append("enterpriseID:");
if (this.enterpriseID == null) {
sb.append("null");
} else {
sb.append(this.enterpriseID);
}
first = false;
if (!first) sb.append(", ");
sb.append("taskType:");
sb.append(this.taskType);
first = false;
if (!first) sb.append(", ");
sb.append("bussinessID1:");
if (this.bussinessID1 == null) {
sb.append("null");
} else {
sb.append(this.bussinessID1);
}
first = false;
if (!first) sb.append(", ");
sb.append("bussinessID2:");
if (this.bussinessID2 == null) {
sb.append("null");
} else {
sb.append(this.bussinessID2);
}
first = false;
if (!first) sb.append(", ");
sb.append("bussinessID3:");
if (this.bussinessID3 == null) {
sb.append("null");
} else {
sb.append(this.bussinessID3);
}
first = false;
if (!first) sb.append(", ");
sb.append("resultCode:");
if (this.resultCode == null) {
sb.append("null");
} else {
sb.append(this.resultCode);
}
first = false;
if (!first) sb.append(", ");
sb.append("remark:");
if (this.remark == null) {
sb.append("null");
} else {
sb.append(this.remark);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
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, java.lang.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_bitfield = 0;
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);
}
}
private static class MemberTaskCompleteParasStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public MemberTaskCompleteParasStandardScheme getScheme() {
return new MemberTaskCompleteParasStandardScheme();
}
}
private static class MemberTaskCompleteParasStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, MemberTaskCompleteParas struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // ENTERPRISE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.enterpriseID = iprot.readString();
struct.setEnterpriseIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TASK_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.taskType = iprot.readI32();
struct.setTaskTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // BUSSINESS_ID1
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.bussinessID1 = iprot.readString();
struct.setBussinessID1IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // BUSSINESS_ID2
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.bussinessID2 = iprot.readString();
struct.setBussinessID2IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // BUSSINESS_ID3
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.bussinessID3 = iprot.readString();
struct.setBussinessID3IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // RESULT_CODE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.resultCode = cicada.departdriver.config.MemberTaskResultCodeEnum.findByValue(iprot.readI32());
struct.setResultCodeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // REMARK
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.remark = iprot.readString();
struct.setRemarkIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, MemberTaskCompleteParas struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.enterpriseID != null) {
oprot.writeFieldBegin(ENTERPRISE_ID_FIELD_DESC);
oprot.writeString(struct.enterpriseID);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(TASK_TYPE_FIELD_DESC);
oprot.writeI32(struct.taskType);
oprot.writeFieldEnd();
if (struct.bussinessID1 != null) {
oprot.writeFieldBegin(BUSSINESS_ID1_FIELD_DESC);
oprot.writeString(struct.bussinessID1);
oprot.writeFieldEnd();
}
if (struct.bussinessID2 != null) {
oprot.writeFieldBegin(BUSSINESS_ID2_FIELD_DESC);
oprot.writeString(struct.bussinessID2);
oprot.writeFieldEnd();
}
if (struct.bussinessID3 != null) {
oprot.writeFieldBegin(BUSSINESS_ID3_FIELD_DESC);
oprot.writeString(struct.bussinessID3);
oprot.writeFieldEnd();
}
if (struct.resultCode != null) {
oprot.writeFieldBegin(RESULT_CODE_FIELD_DESC);
oprot.writeI32(struct.resultCode.getValue());
oprot.writeFieldEnd();
}
if (struct.remark != null) {
oprot.writeFieldBegin(REMARK_FIELD_DESC);
oprot.writeString(struct.remark);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class MemberTaskCompleteParasTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public MemberTaskCompleteParasTupleScheme getScheme() {
return new MemberTaskCompleteParasTupleScheme();
}
}
private static class MemberTaskCompleteParasTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, MemberTaskCompleteParas struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetEnterpriseID()) {
optionals.set(0);
}
if (struct.isSetTaskType()) {
optionals.set(1);
}
if (struct.isSetBussinessID1()) {
optionals.set(2);
}
if (struct.isSetBussinessID2()) {
optionals.set(3);
}
if (struct.isSetBussinessID3()) {
optionals.set(4);
}
if (struct.isSetResultCode()) {
optionals.set(5);
}
if (struct.isSetRemark()) {
optionals.set(6);
}
oprot.writeBitSet(optionals, 7);
if (struct.isSetEnterpriseID()) {
oprot.writeString(struct.enterpriseID);
}
if (struct.isSetTaskType()) {
oprot.writeI32(struct.taskType);
}
if (struct.isSetBussinessID1()) {
oprot.writeString(struct.bussinessID1);
}
if (struct.isSetBussinessID2()) {
oprot.writeString(struct.bussinessID2);
}
if (struct.isSetBussinessID3()) {
oprot.writeString(struct.bussinessID3);
}
if (struct.isSetResultCode()) {
oprot.writeI32(struct.resultCode.getValue());
}
if (struct.isSetRemark()) {
oprot.writeString(struct.remark);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, MemberTaskCompleteParas struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(7);
if (incoming.get(0)) {
struct.enterpriseID = iprot.readString();
struct.setEnterpriseIDIsSet(true);
}
if (incoming.get(1)) {
struct.taskType = iprot.readI32();
struct.setTaskTypeIsSet(true);
}
if (incoming.get(2)) {
struct.bussinessID1 = iprot.readString();
struct.setBussinessID1IsSet(true);
}
if (incoming.get(3)) {
struct.bussinessID2 = iprot.readString();
struct.setBussinessID2IsSet(true);
}
if (incoming.get(4)) {
struct.bussinessID3 = iprot.readString();
struct.setBussinessID3IsSet(true);
}
if (incoming.get(5)) {
struct.resultCode = cicada.departdriver.config.MemberTaskResultCodeEnum.findByValue(iprot.readI32());
struct.setResultCodeIsSet(true);
}
if (incoming.get(6)) {
struct.remark = iprot.readString();
struct.setRemarkIsSet(true);
}
}
}
private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}