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.WorkReportInfo 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 WorkReportInfo 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("WorkReportInfo");
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 REPORT_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ReportUserID", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField REPORT_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("ReportUserName", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField REPORT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("ReportType", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField BEGIN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("BeginDate", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("EndDate", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField REPORT_CONTENT_FIELD_DESC = new org.apache.thrift.protocol.TField("ReportContent", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField IMAGE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ImageIDs", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField RECEIVE_USER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ReceiveUserIDs", org.apache.thrift.protocol.TType.STRING, (short)9);
private static final org.apache.thrift.protocol.TField RECEIVE_USER_FIELD_DESC = new org.apache.thrift.protocol.TField("ReceiveUser", org.apache.thrift.protocol.TType.STRING, (short)10);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new WorkReportInfoStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new WorkReportInfoTupleSchemeFactory();
public java.lang.String EnterpriseID; // required
public java.lang.String ReportUserID; // required
public java.lang.String ReportUserName; // required
public java.lang.String ReportType; // required
public java.lang.String BeginDate; // required
public java.lang.String EndDate; // required
public java.lang.String ReportContent; // required
public java.lang.String ImageIDs; // required
public java.lang.String ReceiveUserIDs; // required
public java.lang.String ReceiveUser; // 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"),
REPORT_USER_ID((short)2, "ReportUserID"),
REPORT_USER_NAME((short)3, "ReportUserName"),
REPORT_TYPE((short)4, "ReportType"),
BEGIN_DATE((short)5, "BeginDate"),
END_DATE((short)6, "EndDate"),
REPORT_CONTENT((short)7, "ReportContent"),
IMAGE_IDS((short)8, "ImageIDs"),
RECEIVE_USER_IDS((short)9, "ReceiveUserIDs"),
RECEIVE_USER((short)10, "ReceiveUser");
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: // REPORT_USER_ID
return REPORT_USER_ID;
case 3: // REPORT_USER_NAME
return REPORT_USER_NAME;
case 4: // REPORT_TYPE
return REPORT_TYPE;
case 5: // BEGIN_DATE
return BEGIN_DATE;
case 6: // END_DATE
return END_DATE;
case 7: // REPORT_CONTENT
return REPORT_CONTENT;
case 8: // IMAGE_IDS
return IMAGE_IDS;
case 9: // RECEIVE_USER_IDS
return RECEIVE_USER_IDS;
case 10: // RECEIVE_USER
return RECEIVE_USER;
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
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.REPORT_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("ReportUserID", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.REPORT_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("ReportUserName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.REPORT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("ReportType", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.BEGIN_DATE, new org.apache.thrift.meta_data.FieldMetaData("BeginDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("EndDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.REPORT_CONTENT, new org.apache.thrift.meta_data.FieldMetaData("ReportContent", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IMAGE_IDS, new org.apache.thrift.meta_data.FieldMetaData("ImageIDs", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RECEIVE_USER_IDS, new org.apache.thrift.meta_data.FieldMetaData("ReceiveUserIDs", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.RECEIVE_USER, new org.apache.thrift.meta_data.FieldMetaData("ReceiveUser", 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(WorkReportInfo.class, metaDataMap);
}
public WorkReportInfo() {
}
public WorkReportInfo(
java.lang.String EnterpriseID,
java.lang.String ReportUserID,
java.lang.String ReportUserName,
java.lang.String ReportType,
java.lang.String BeginDate,
java.lang.String EndDate,
java.lang.String ReportContent,
java.lang.String ImageIDs,
java.lang.String ReceiveUserIDs,
java.lang.String ReceiveUser)
{
this();
this.EnterpriseID = EnterpriseID;
this.ReportUserID = ReportUserID;
this.ReportUserName = ReportUserName;
this.ReportType = ReportType;
this.BeginDate = BeginDate;
this.EndDate = EndDate;
this.ReportContent = ReportContent;
this.ImageIDs = ImageIDs;
this.ReceiveUserIDs = ReceiveUserIDs;
this.ReceiveUser = ReceiveUser;
}
/**
* Performs a deep copy on other .
*/
public WorkReportInfo(WorkReportInfo other) {
if (other.isSetEnterpriseID()) {
this.EnterpriseID = other.EnterpriseID;
}
if (other.isSetReportUserID()) {
this.ReportUserID = other.ReportUserID;
}
if (other.isSetReportUserName()) {
this.ReportUserName = other.ReportUserName;
}
if (other.isSetReportType()) {
this.ReportType = other.ReportType;
}
if (other.isSetBeginDate()) {
this.BeginDate = other.BeginDate;
}
if (other.isSetEndDate()) {
this.EndDate = other.EndDate;
}
if (other.isSetReportContent()) {
this.ReportContent = other.ReportContent;
}
if (other.isSetImageIDs()) {
this.ImageIDs = other.ImageIDs;
}
if (other.isSetReceiveUserIDs()) {
this.ReceiveUserIDs = other.ReceiveUserIDs;
}
if (other.isSetReceiveUser()) {
this.ReceiveUser = other.ReceiveUser;
}
}
public WorkReportInfo deepCopy() {
return new WorkReportInfo(this);
}
@Override
public void clear() {
this.EnterpriseID = null;
this.ReportUserID = null;
this.ReportUserName = null;
this.ReportType = null;
this.BeginDate = null;
this.EndDate = null;
this.ReportContent = null;
this.ImageIDs = null;
this.ReceiveUserIDs = null;
this.ReceiveUser = null;
}
public java.lang.String getEnterpriseID() {
return this.EnterpriseID;
}
public WorkReportInfo 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 java.lang.String getReportUserID() {
return this.ReportUserID;
}
public WorkReportInfo setReportUserID(java.lang.String ReportUserID) {
this.ReportUserID = ReportUserID;
return this;
}
public void unsetReportUserID() {
this.ReportUserID = null;
}
/** Returns true if field ReportUserID is set (has been assigned a value) and false otherwise */
public boolean isSetReportUserID() {
return this.ReportUserID != null;
}
public void setReportUserIDIsSet(boolean value) {
if (!value) {
this.ReportUserID = null;
}
}
public java.lang.String getReportUserName() {
return this.ReportUserName;
}
public WorkReportInfo setReportUserName(java.lang.String ReportUserName) {
this.ReportUserName = ReportUserName;
return this;
}
public void unsetReportUserName() {
this.ReportUserName = null;
}
/** Returns true if field ReportUserName is set (has been assigned a value) and false otherwise */
public boolean isSetReportUserName() {
return this.ReportUserName != null;
}
public void setReportUserNameIsSet(boolean value) {
if (!value) {
this.ReportUserName = null;
}
}
public java.lang.String getReportType() {
return this.ReportType;
}
public WorkReportInfo setReportType(java.lang.String ReportType) {
this.ReportType = ReportType;
return this;
}
public void unsetReportType() {
this.ReportType = null;
}
/** Returns true if field ReportType is set (has been assigned a value) and false otherwise */
public boolean isSetReportType() {
return this.ReportType != null;
}
public void setReportTypeIsSet(boolean value) {
if (!value) {
this.ReportType = null;
}
}
public java.lang.String getBeginDate() {
return this.BeginDate;
}
public WorkReportInfo setBeginDate(java.lang.String BeginDate) {
this.BeginDate = BeginDate;
return this;
}
public void unsetBeginDate() {
this.BeginDate = null;
}
/** Returns true if field BeginDate is set (has been assigned a value) and false otherwise */
public boolean isSetBeginDate() {
return this.BeginDate != null;
}
public void setBeginDateIsSet(boolean value) {
if (!value) {
this.BeginDate = null;
}
}
public java.lang.String getEndDate() {
return this.EndDate;
}
public WorkReportInfo setEndDate(java.lang.String EndDate) {
this.EndDate = EndDate;
return this;
}
public void unsetEndDate() {
this.EndDate = null;
}
/** Returns true if field EndDate is set (has been assigned a value) and false otherwise */
public boolean isSetEndDate() {
return this.EndDate != null;
}
public void setEndDateIsSet(boolean value) {
if (!value) {
this.EndDate = null;
}
}
public java.lang.String getReportContent() {
return this.ReportContent;
}
public WorkReportInfo setReportContent(java.lang.String ReportContent) {
this.ReportContent = ReportContent;
return this;
}
public void unsetReportContent() {
this.ReportContent = null;
}
/** Returns true if field ReportContent is set (has been assigned a value) and false otherwise */
public boolean isSetReportContent() {
return this.ReportContent != null;
}
public void setReportContentIsSet(boolean value) {
if (!value) {
this.ReportContent = null;
}
}
public java.lang.String getImageIDs() {
return this.ImageIDs;
}
public WorkReportInfo setImageIDs(java.lang.String ImageIDs) {
this.ImageIDs = ImageIDs;
return this;
}
public void unsetImageIDs() {
this.ImageIDs = null;
}
/** Returns true if field ImageIDs is set (has been assigned a value) and false otherwise */
public boolean isSetImageIDs() {
return this.ImageIDs != null;
}
public void setImageIDsIsSet(boolean value) {
if (!value) {
this.ImageIDs = null;
}
}
public java.lang.String getReceiveUserIDs() {
return this.ReceiveUserIDs;
}
public WorkReportInfo setReceiveUserIDs(java.lang.String ReceiveUserIDs) {
this.ReceiveUserIDs = ReceiveUserIDs;
return this;
}
public void unsetReceiveUserIDs() {
this.ReceiveUserIDs = null;
}
/** Returns true if field ReceiveUserIDs is set (has been assigned a value) and false otherwise */
public boolean isSetReceiveUserIDs() {
return this.ReceiveUserIDs != null;
}
public void setReceiveUserIDsIsSet(boolean value) {
if (!value) {
this.ReceiveUserIDs = null;
}
}
public java.lang.String getReceiveUser() {
return this.ReceiveUser;
}
public WorkReportInfo setReceiveUser(java.lang.String ReceiveUser) {
this.ReceiveUser = ReceiveUser;
return this;
}
public void unsetReceiveUser() {
this.ReceiveUser = null;
}
/** Returns true if field ReceiveUser is set (has been assigned a value) and false otherwise */
public boolean isSetReceiveUser() {
return this.ReceiveUser != null;
}
public void setReceiveUserIsSet(boolean value) {
if (!value) {
this.ReceiveUser = 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 REPORT_USER_ID:
if (value == null) {
unsetReportUserID();
} else {
setReportUserID((java.lang.String)value);
}
break;
case REPORT_USER_NAME:
if (value == null) {
unsetReportUserName();
} else {
setReportUserName((java.lang.String)value);
}
break;
case REPORT_TYPE:
if (value == null) {
unsetReportType();
} else {
setReportType((java.lang.String)value);
}
break;
case BEGIN_DATE:
if (value == null) {
unsetBeginDate();
} else {
setBeginDate((java.lang.String)value);
}
break;
case END_DATE:
if (value == null) {
unsetEndDate();
} else {
setEndDate((java.lang.String)value);
}
break;
case REPORT_CONTENT:
if (value == null) {
unsetReportContent();
} else {
setReportContent((java.lang.String)value);
}
break;
case IMAGE_IDS:
if (value == null) {
unsetImageIDs();
} else {
setImageIDs((java.lang.String)value);
}
break;
case RECEIVE_USER_IDS:
if (value == null) {
unsetReceiveUserIDs();
} else {
setReceiveUserIDs((java.lang.String)value);
}
break;
case RECEIVE_USER:
if (value == null) {
unsetReceiveUser();
} else {
setReceiveUser((java.lang.String)value);
}
break;
}
}
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case ENTERPRISE_ID:
return getEnterpriseID();
case REPORT_USER_ID:
return getReportUserID();
case REPORT_USER_NAME:
return getReportUserName();
case REPORT_TYPE:
return getReportType();
case BEGIN_DATE:
return getBeginDate();
case END_DATE:
return getEndDate();
case REPORT_CONTENT:
return getReportContent();
case IMAGE_IDS:
return getImageIDs();
case RECEIVE_USER_IDS:
return getReceiveUserIDs();
case RECEIVE_USER:
return getReceiveUser();
}
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 REPORT_USER_ID:
return isSetReportUserID();
case REPORT_USER_NAME:
return isSetReportUserName();
case REPORT_TYPE:
return isSetReportType();
case BEGIN_DATE:
return isSetBeginDate();
case END_DATE:
return isSetEndDate();
case REPORT_CONTENT:
return isSetReportContent();
case IMAGE_IDS:
return isSetImageIDs();
case RECEIVE_USER_IDS:
return isSetReceiveUserIDs();
case RECEIVE_USER:
return isSetReceiveUser();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that == null)
return false;
if (that instanceof WorkReportInfo)
return this.equals((WorkReportInfo)that);
return false;
}
public boolean equals(WorkReportInfo 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_ReportUserID = true && this.isSetReportUserID();
boolean that_present_ReportUserID = true && that.isSetReportUserID();
if (this_present_ReportUserID || that_present_ReportUserID) {
if (!(this_present_ReportUserID && that_present_ReportUserID))
return false;
if (!this.ReportUserID.equals(that.ReportUserID))
return false;
}
boolean this_present_ReportUserName = true && this.isSetReportUserName();
boolean that_present_ReportUserName = true && that.isSetReportUserName();
if (this_present_ReportUserName || that_present_ReportUserName) {
if (!(this_present_ReportUserName && that_present_ReportUserName))
return false;
if (!this.ReportUserName.equals(that.ReportUserName))
return false;
}
boolean this_present_ReportType = true && this.isSetReportType();
boolean that_present_ReportType = true && that.isSetReportType();
if (this_present_ReportType || that_present_ReportType) {
if (!(this_present_ReportType && that_present_ReportType))
return false;
if (!this.ReportType.equals(that.ReportType))
return false;
}
boolean this_present_BeginDate = true && this.isSetBeginDate();
boolean that_present_BeginDate = true && that.isSetBeginDate();
if (this_present_BeginDate || that_present_BeginDate) {
if (!(this_present_BeginDate && that_present_BeginDate))
return false;
if (!this.BeginDate.equals(that.BeginDate))
return false;
}
boolean this_present_EndDate = true && this.isSetEndDate();
boolean that_present_EndDate = true && that.isSetEndDate();
if (this_present_EndDate || that_present_EndDate) {
if (!(this_present_EndDate && that_present_EndDate))
return false;
if (!this.EndDate.equals(that.EndDate))
return false;
}
boolean this_present_ReportContent = true && this.isSetReportContent();
boolean that_present_ReportContent = true && that.isSetReportContent();
if (this_present_ReportContent || that_present_ReportContent) {
if (!(this_present_ReportContent && that_present_ReportContent))
return false;
if (!this.ReportContent.equals(that.ReportContent))
return false;
}
boolean this_present_ImageIDs = true && this.isSetImageIDs();
boolean that_present_ImageIDs = true && that.isSetImageIDs();
if (this_present_ImageIDs || that_present_ImageIDs) {
if (!(this_present_ImageIDs && that_present_ImageIDs))
return false;
if (!this.ImageIDs.equals(that.ImageIDs))
return false;
}
boolean this_present_ReceiveUserIDs = true && this.isSetReceiveUserIDs();
boolean that_present_ReceiveUserIDs = true && that.isSetReceiveUserIDs();
if (this_present_ReceiveUserIDs || that_present_ReceiveUserIDs) {
if (!(this_present_ReceiveUserIDs && that_present_ReceiveUserIDs))
return false;
if (!this.ReceiveUserIDs.equals(that.ReceiveUserIDs))
return false;
}
boolean this_present_ReceiveUser = true && this.isSetReceiveUser();
boolean that_present_ReceiveUser = true && that.isSetReceiveUser();
if (this_present_ReceiveUser || that_present_ReceiveUser) {
if (!(this_present_ReceiveUser && that_present_ReceiveUser))
return false;
if (!this.ReceiveUser.equals(that.ReceiveUser))
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 + ((isSetReportUserID()) ? 131071 : 524287);
if (isSetReportUserID())
hashCode = hashCode * 8191 + ReportUserID.hashCode();
hashCode = hashCode * 8191 + ((isSetReportUserName()) ? 131071 : 524287);
if (isSetReportUserName())
hashCode = hashCode * 8191 + ReportUserName.hashCode();
hashCode = hashCode * 8191 + ((isSetReportType()) ? 131071 : 524287);
if (isSetReportType())
hashCode = hashCode * 8191 + ReportType.hashCode();
hashCode = hashCode * 8191 + ((isSetBeginDate()) ? 131071 : 524287);
if (isSetBeginDate())
hashCode = hashCode * 8191 + BeginDate.hashCode();
hashCode = hashCode * 8191 + ((isSetEndDate()) ? 131071 : 524287);
if (isSetEndDate())
hashCode = hashCode * 8191 + EndDate.hashCode();
hashCode = hashCode * 8191 + ((isSetReportContent()) ? 131071 : 524287);
if (isSetReportContent())
hashCode = hashCode * 8191 + ReportContent.hashCode();
hashCode = hashCode * 8191 + ((isSetImageIDs()) ? 131071 : 524287);
if (isSetImageIDs())
hashCode = hashCode * 8191 + ImageIDs.hashCode();
hashCode = hashCode * 8191 + ((isSetReceiveUserIDs()) ? 131071 : 524287);
if (isSetReceiveUserIDs())
hashCode = hashCode * 8191 + ReceiveUserIDs.hashCode();
hashCode = hashCode * 8191 + ((isSetReceiveUser()) ? 131071 : 524287);
if (isSetReceiveUser())
hashCode = hashCode * 8191 + ReceiveUser.hashCode();
return hashCode;
}
@Override
public int compareTo(WorkReportInfo 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(isSetReportUserID()).compareTo(other.isSetReportUserID());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReportUserID()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReportUserID, other.ReportUserID);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetReportUserName()).compareTo(other.isSetReportUserName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReportUserName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReportUserName, other.ReportUserName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetReportType()).compareTo(other.isSetReportType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReportType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReportType, other.ReportType);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetBeginDate()).compareTo(other.isSetBeginDate());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBeginDate()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.BeginDate, other.BeginDate);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEndDate()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EndDate, other.EndDate);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetReportContent()).compareTo(other.isSetReportContent());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReportContent()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReportContent, other.ReportContent);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetImageIDs()).compareTo(other.isSetImageIDs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetImageIDs()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ImageIDs, other.ImageIDs);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetReceiveUserIDs()).compareTo(other.isSetReceiveUserIDs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReceiveUserIDs()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReceiveUserIDs, other.ReceiveUserIDs);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetReceiveUser()).compareTo(other.isSetReceiveUser());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReceiveUser()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ReceiveUser, other.ReceiveUser);
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("WorkReportInfo(");
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("ReportUserID:");
if (this.ReportUserID == null) {
sb.append("null");
} else {
sb.append(this.ReportUserID);
}
first = false;
if (!first) sb.append(", ");
sb.append("ReportUserName:");
if (this.ReportUserName == null) {
sb.append("null");
} else {
sb.append(this.ReportUserName);
}
first = false;
if (!first) sb.append(", ");
sb.append("ReportType:");
if (this.ReportType == null) {
sb.append("null");
} else {
sb.append(this.ReportType);
}
first = false;
if (!first) sb.append(", ");
sb.append("BeginDate:");
if (this.BeginDate == null) {
sb.append("null");
} else {
sb.append(this.BeginDate);
}
first = false;
if (!first) sb.append(", ");
sb.append("EndDate:");
if (this.EndDate == null) {
sb.append("null");
} else {
sb.append(this.EndDate);
}
first = false;
if (!first) sb.append(", ");
sb.append("ReportContent:");
if (this.ReportContent == null) {
sb.append("null");
} else {
sb.append(this.ReportContent);
}
first = false;
if (!first) sb.append(", ");
sb.append("ImageIDs:");
if (this.ImageIDs == null) {
sb.append("null");
} else {
sb.append(this.ImageIDs);
}
first = false;
if (!first) sb.append(", ");
sb.append("ReceiveUserIDs:");
if (this.ReceiveUserIDs == null) {
sb.append("null");
} else {
sb.append(this.ReceiveUserIDs);
}
first = false;
if (!first) sb.append(", ");
sb.append("ReceiveUser:");
if (this.ReceiveUser == null) {
sb.append("null");
} else {
sb.append(this.ReceiveUser);
}
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 {
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 WorkReportInfoStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public WorkReportInfoStandardScheme getScheme() {
return new WorkReportInfoStandardScheme();
}
}
private static class WorkReportInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, WorkReportInfo 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: // REPORT_USER_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReportUserID = iprot.readString();
struct.setReportUserIDIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // REPORT_USER_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReportUserName = iprot.readString();
struct.setReportUserNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // REPORT_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReportType = iprot.readString();
struct.setReportTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // BEGIN_DATE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.BeginDate = iprot.readString();
struct.setBeginDateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // END_DATE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.EndDate = iprot.readString();
struct.setEndDateIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // REPORT_CONTENT
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReportContent = iprot.readString();
struct.setReportContentIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // IMAGE_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ImageIDs = iprot.readString();
struct.setImageIDsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // RECEIVE_USER_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReceiveUserIDs = iprot.readString();
struct.setReceiveUserIDsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // RECEIVE_USER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ReceiveUser = iprot.readString();
struct.setReceiveUserIsSet(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, WorkReportInfo 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();
}
if (struct.ReportUserID != null) {
oprot.writeFieldBegin(REPORT_USER_ID_FIELD_DESC);
oprot.writeString(struct.ReportUserID);
oprot.writeFieldEnd();
}
if (struct.ReportUserName != null) {
oprot.writeFieldBegin(REPORT_USER_NAME_FIELD_DESC);
oprot.writeString(struct.ReportUserName);
oprot.writeFieldEnd();
}
if (struct.ReportType != null) {
oprot.writeFieldBegin(REPORT_TYPE_FIELD_DESC);
oprot.writeString(struct.ReportType);
oprot.writeFieldEnd();
}
if (struct.BeginDate != null) {
oprot.writeFieldBegin(BEGIN_DATE_FIELD_DESC);
oprot.writeString(struct.BeginDate);
oprot.writeFieldEnd();
}
if (struct.EndDate != null) {
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
oprot.writeString(struct.EndDate);
oprot.writeFieldEnd();
}
if (struct.ReportContent != null) {
oprot.writeFieldBegin(REPORT_CONTENT_FIELD_DESC);
oprot.writeString(struct.ReportContent);
oprot.writeFieldEnd();
}
if (struct.ImageIDs != null) {
oprot.writeFieldBegin(IMAGE_IDS_FIELD_DESC);
oprot.writeString(struct.ImageIDs);
oprot.writeFieldEnd();
}
if (struct.ReceiveUserIDs != null) {
oprot.writeFieldBegin(RECEIVE_USER_IDS_FIELD_DESC);
oprot.writeString(struct.ReceiveUserIDs);
oprot.writeFieldEnd();
}
if (struct.ReceiveUser != null) {
oprot.writeFieldBegin(RECEIVE_USER_FIELD_DESC);
oprot.writeString(struct.ReceiveUser);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class WorkReportInfoTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public WorkReportInfoTupleScheme getScheme() {
return new WorkReportInfoTupleScheme();
}
}
private static class WorkReportInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, WorkReportInfo 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.isSetReportUserID()) {
optionals.set(1);
}
if (struct.isSetReportUserName()) {
optionals.set(2);
}
if (struct.isSetReportType()) {
optionals.set(3);
}
if (struct.isSetBeginDate()) {
optionals.set(4);
}
if (struct.isSetEndDate()) {
optionals.set(5);
}
if (struct.isSetReportContent()) {
optionals.set(6);
}
if (struct.isSetImageIDs()) {
optionals.set(7);
}
if (struct.isSetReceiveUserIDs()) {
optionals.set(8);
}
if (struct.isSetReceiveUser()) {
optionals.set(9);
}
oprot.writeBitSet(optionals, 10);
if (struct.isSetEnterpriseID()) {
oprot.writeString(struct.EnterpriseID);
}
if (struct.isSetReportUserID()) {
oprot.writeString(struct.ReportUserID);
}
if (struct.isSetReportUserName()) {
oprot.writeString(struct.ReportUserName);
}
if (struct.isSetReportType()) {
oprot.writeString(struct.ReportType);
}
if (struct.isSetBeginDate()) {
oprot.writeString(struct.BeginDate);
}
if (struct.isSetEndDate()) {
oprot.writeString(struct.EndDate);
}
if (struct.isSetReportContent()) {
oprot.writeString(struct.ReportContent);
}
if (struct.isSetImageIDs()) {
oprot.writeString(struct.ImageIDs);
}
if (struct.isSetReceiveUserIDs()) {
oprot.writeString(struct.ReceiveUserIDs);
}
if (struct.isSetReceiveUser()) {
oprot.writeString(struct.ReceiveUser);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, WorkReportInfo struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(10);
if (incoming.get(0)) {
struct.EnterpriseID = iprot.readString();
struct.setEnterpriseIDIsSet(true);
}
if (incoming.get(1)) {
struct.ReportUserID = iprot.readString();
struct.setReportUserIDIsSet(true);
}
if (incoming.get(2)) {
struct.ReportUserName = iprot.readString();
struct.setReportUserNameIsSet(true);
}
if (incoming.get(3)) {
struct.ReportType = iprot.readString();
struct.setReportTypeIsSet(true);
}
if (incoming.get(4)) {
struct.BeginDate = iprot.readString();
struct.setBeginDateIsSet(true);
}
if (incoming.get(5)) {
struct.EndDate = iprot.readString();
struct.setEndDateIsSet(true);
}
if (incoming.get(6)) {
struct.ReportContent = iprot.readString();
struct.setReportContentIsSet(true);
}
if (incoming.get(7)) {
struct.ImageIDs = iprot.readString();
struct.setImageIDsIsSet(true);
}
if (incoming.get(8)) {
struct.ReceiveUserIDs = iprot.readString();
struct.setReceiveUserIDsIsSet(true);
}
if (incoming.get(9)) {
struct.ReceiveUser = iprot.readString();
struct.setReceiveUserIsSet(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();
}
}