All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cicada.departdriver.config.MemberTaskCreateParas Maven / Gradle / Ivy

There is a newer version: 1.0.0.7
Show newest version
/**
 * 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 MemberTaskCreateParas 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("MemberTaskCreateParas");

  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 USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)2);
  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)3);
  private static final org.apache.thrift.protocol.TField TASK_TITLE_FIELD_DESC = new org.apache.thrift.protocol.TField("taskTitle", org.apache.thrift.protocol.TType.STRING, (short)4);
  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)5);
  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)6);
  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)7);
  private static final org.apache.thrift.protocol.TField CREATE_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("CreateUserID", org.apache.thrift.protocol.TType.STRING, (short)8);
  private static final org.apache.thrift.protocol.TField CREATE_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("CreateUserName", org.apache.thrift.protocol.TType.STRING, (short)9);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MemberTaskCreateParasStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MemberTaskCreateParasTupleSchemeFactory();

  public java.lang.String enterpriseID; // required
  public java.lang.String userID; // required
  public int taskType; // required
  public java.lang.String taskTitle; // required
  public java.lang.String bussinessID1; // required
  public java.lang.String bussinessID2; // required
  public java.lang.String bussinessID3; // required
  public java.lang.String CreateUserID; // required
  public java.lang.String CreateUserName; // 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"),
    USER_ID((short)2, "userID"),
    TASK_TYPE((short)3, "taskType"),
    TASK_TITLE((short)4, "taskTitle"),
    BUSSINESS_ID1((short)5, "bussinessID1"),
    BUSSINESS_ID2((short)6, "bussinessID2"),
    BUSSINESS_ID3((short)7, "bussinessID3"),
    CREATE_USER_ID((short)8, "CreateUserID"),
    CREATE_USER_NAME((short)9, "CreateUserName");

    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: // USER_ID
          return USER_ID;
        case 3: // TASK_TYPE
          return TASK_TYPE;
        case 4: // TASK_TITLE
          return TASK_TITLE;
        case 5: // BUSSINESS_ID1
          return BUSSINESS_ID1;
        case 6: // BUSSINESS_ID2
          return BUSSINESS_ID2;
        case 7: // BUSSINESS_ID3
          return BUSSINESS_ID3;
        case 8: // CREATE_USER_ID
          return CREATE_USER_ID;
        case 9: // CREATE_USER_NAME
          return CREATE_USER_NAME;
        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.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", 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.TASK_TITLE, new org.apache.thrift.meta_data.FieldMetaData("taskTitle", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    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.CREATE_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("CreateUserID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CREATE_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("CreateUserName", 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(MemberTaskCreateParas.class, metaDataMap);
  }

  public MemberTaskCreateParas() {
  }

  public MemberTaskCreateParas(
    java.lang.String enterpriseID,
    java.lang.String userID,
    int taskType,
    java.lang.String taskTitle,
    java.lang.String bussinessID1,
    java.lang.String bussinessID2,
    java.lang.String bussinessID3,
    java.lang.String CreateUserID,
    java.lang.String CreateUserName)
  {
    this();
    this.enterpriseID = enterpriseID;
    this.userID = userID;
    this.taskType = taskType;
    setTaskTypeIsSet(true);
    this.taskTitle = taskTitle;
    this.bussinessID1 = bussinessID1;
    this.bussinessID2 = bussinessID2;
    this.bussinessID3 = bussinessID3;
    this.CreateUserID = CreateUserID;
    this.CreateUserName = CreateUserName;
  }

  /**
   * Performs a deep copy on other.
   */
  public MemberTaskCreateParas(MemberTaskCreateParas other) {
    __isset_bitfield = other.__isset_bitfield;
    if (other.isSetEnterpriseID()) {
      this.enterpriseID = other.enterpriseID;
    }
    if (other.isSetUserID()) {
      this.userID = other.userID;
    }
    this.taskType = other.taskType;
    if (other.isSetTaskTitle()) {
      this.taskTitle = other.taskTitle;
    }
    if (other.isSetBussinessID1()) {
      this.bussinessID1 = other.bussinessID1;
    }
    if (other.isSetBussinessID2()) {
      this.bussinessID2 = other.bussinessID2;
    }
    if (other.isSetBussinessID3()) {
      this.bussinessID3 = other.bussinessID3;
    }
    if (other.isSetCreateUserID()) {
      this.CreateUserID = other.CreateUserID;
    }
    if (other.isSetCreateUserName()) {
      this.CreateUserName = other.CreateUserName;
    }
  }

  public MemberTaskCreateParas deepCopy() {
    return new MemberTaskCreateParas(this);
  }

  @Override
  public void clear() {
    this.enterpriseID = null;
    this.userID = null;
    setTaskTypeIsSet(false);
    this.taskType = 0;
    this.taskTitle = null;
    this.bussinessID1 = null;
    this.bussinessID2 = null;
    this.bussinessID3 = null;
    this.CreateUserID = null;
    this.CreateUserName = null;
  }

  public java.lang.String getEnterpriseID() {
    return this.enterpriseID;
  }

  public MemberTaskCreateParas 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 getUserID() {
    return this.userID;
  }

  public MemberTaskCreateParas setUserID(java.lang.String userID) {
    this.userID = userID;
    return this;
  }

  public void unsetUserID() {
    this.userID = null;
  }

  /** Returns true if field userID is set (has been assigned a value) and false otherwise */
  public boolean isSetUserID() {
    return this.userID != null;
  }

  public void setUserIDIsSet(boolean value) {
    if (!value) {
      this.userID = null;
    }
  }

  public int getTaskType() {
    return this.taskType;
  }

  public MemberTaskCreateParas 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 getTaskTitle() {
    return this.taskTitle;
  }

  public MemberTaskCreateParas setTaskTitle(java.lang.String taskTitle) {
    this.taskTitle = taskTitle;
    return this;
  }

  public void unsetTaskTitle() {
    this.taskTitle = null;
  }

  /** Returns true if field taskTitle is set (has been assigned a value) and false otherwise */
  public boolean isSetTaskTitle() {
    return this.taskTitle != null;
  }

  public void setTaskTitleIsSet(boolean value) {
    if (!value) {
      this.taskTitle = null;
    }
  }

  public java.lang.String getBussinessID1() {
    return this.bussinessID1;
  }

  public MemberTaskCreateParas 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 MemberTaskCreateParas 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 MemberTaskCreateParas 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 java.lang.String getCreateUserID() {
    return this.CreateUserID;
  }

  public MemberTaskCreateParas setCreateUserID(java.lang.String CreateUserID) {
    this.CreateUserID = CreateUserID;
    return this;
  }

  public void unsetCreateUserID() {
    this.CreateUserID = null;
  }

  /** Returns true if field CreateUserID is set (has been assigned a value) and false otherwise */
  public boolean isSetCreateUserID() {
    return this.CreateUserID != null;
  }

  public void setCreateUserIDIsSet(boolean value) {
    if (!value) {
      this.CreateUserID = null;
    }
  }

  public java.lang.String getCreateUserName() {
    return this.CreateUserName;
  }

  public MemberTaskCreateParas setCreateUserName(java.lang.String CreateUserName) {
    this.CreateUserName = CreateUserName;
    return this;
  }

  public void unsetCreateUserName() {
    this.CreateUserName = null;
  }

  /** Returns true if field CreateUserName is set (has been assigned a value) and false otherwise */
  public boolean isSetCreateUserName() {
    return this.CreateUserName != null;
  }

  public void setCreateUserNameIsSet(boolean value) {
    if (!value) {
      this.CreateUserName = 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 USER_ID:
      if (value == null) {
        unsetUserID();
      } else {
        setUserID((java.lang.String)value);
      }
      break;

    case TASK_TYPE:
      if (value == null) {
        unsetTaskType();
      } else {
        setTaskType((java.lang.Integer)value);
      }
      break;

    case TASK_TITLE:
      if (value == null) {
        unsetTaskTitle();
      } else {
        setTaskTitle((java.lang.String)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 CREATE_USER_ID:
      if (value == null) {
        unsetCreateUserID();
      } else {
        setCreateUserID((java.lang.String)value);
      }
      break;

    case CREATE_USER_NAME:
      if (value == null) {
        unsetCreateUserName();
      } else {
        setCreateUserName((java.lang.String)value);
      }
      break;

    }
  }

  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case ENTERPRISE_ID:
      return getEnterpriseID();

    case USER_ID:
      return getUserID();

    case TASK_TYPE:
      return getTaskType();

    case TASK_TITLE:
      return getTaskTitle();

    case BUSSINESS_ID1:
      return getBussinessID1();

    case BUSSINESS_ID2:
      return getBussinessID2();

    case BUSSINESS_ID3:
      return getBussinessID3();

    case CREATE_USER_ID:
      return getCreateUserID();

    case CREATE_USER_NAME:
      return getCreateUserName();

    }
    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 USER_ID:
      return isSetUserID();
    case TASK_TYPE:
      return isSetTaskType();
    case TASK_TITLE:
      return isSetTaskTitle();
    case BUSSINESS_ID1:
      return isSetBussinessID1();
    case BUSSINESS_ID2:
      return isSetBussinessID2();
    case BUSSINESS_ID3:
      return isSetBussinessID3();
    case CREATE_USER_ID:
      return isSetCreateUserID();
    case CREATE_USER_NAME:
      return isSetCreateUserName();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that == null)
      return false;
    if (that instanceof MemberTaskCreateParas)
      return this.equals((MemberTaskCreateParas)that);
    return false;
  }

  public boolean equals(MemberTaskCreateParas 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_userID = true && this.isSetUserID();
    boolean that_present_userID = true && that.isSetUserID();
    if (this_present_userID || that_present_userID) {
      if (!(this_present_userID && that_present_userID))
        return false;
      if (!this.userID.equals(that.userID))
        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_taskTitle = true && this.isSetTaskTitle();
    boolean that_present_taskTitle = true && that.isSetTaskTitle();
    if (this_present_taskTitle || that_present_taskTitle) {
      if (!(this_present_taskTitle && that_present_taskTitle))
        return false;
      if (!this.taskTitle.equals(that.taskTitle))
        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_CreateUserID = true && this.isSetCreateUserID();
    boolean that_present_CreateUserID = true && that.isSetCreateUserID();
    if (this_present_CreateUserID || that_present_CreateUserID) {
      if (!(this_present_CreateUserID && that_present_CreateUserID))
        return false;
      if (!this.CreateUserID.equals(that.CreateUserID))
        return false;
    }

    boolean this_present_CreateUserName = true && this.isSetCreateUserName();
    boolean that_present_CreateUserName = true && that.isSetCreateUserName();
    if (this_present_CreateUserName || that_present_CreateUserName) {
      if (!(this_present_CreateUserName && that_present_CreateUserName))
        return false;
      if (!this.CreateUserName.equals(that.CreateUserName))
        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 + ((isSetUserID()) ? 131071 : 524287);
    if (isSetUserID())
      hashCode = hashCode * 8191 + userID.hashCode();

    hashCode = hashCode * 8191 + taskType;

    hashCode = hashCode * 8191 + ((isSetTaskTitle()) ? 131071 : 524287);
    if (isSetTaskTitle())
      hashCode = hashCode * 8191 + taskTitle.hashCode();

    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 + ((isSetCreateUserID()) ? 131071 : 524287);
    if (isSetCreateUserID())
      hashCode = hashCode * 8191 + CreateUserID.hashCode();

    hashCode = hashCode * 8191 + ((isSetCreateUserName()) ? 131071 : 524287);
    if (isSetCreateUserName())
      hashCode = hashCode * 8191 + CreateUserName.hashCode();

    return hashCode;
  }

  @Override
  public int compareTo(MemberTaskCreateParas 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(isSetUserID()).compareTo(other.isSetUserID());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetUserID()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID);
      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(isSetTaskTitle()).compareTo(other.isSetTaskTitle());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTaskTitle()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTitle, other.taskTitle);
      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(isSetCreateUserID()).compareTo(other.isSetCreateUserID());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreateUserID()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreateUserID, other.CreateUserID);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetCreateUserName()).compareTo(other.isSetCreateUserName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreateUserName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreateUserName, other.CreateUserName);
      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("MemberTaskCreateParas(");
    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("userID:");
    if (this.userID == null) {
      sb.append("null");
    } else {
      sb.append(this.userID);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("taskType:");
    sb.append(this.taskType);
    first = false;
    if (!first) sb.append(", ");
    sb.append("taskTitle:");
    if (this.taskTitle == null) {
      sb.append("null");
    } else {
      sb.append(this.taskTitle);
    }
    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("CreateUserID:");
    if (this.CreateUserID == null) {
      sb.append("null");
    } else {
      sb.append(this.CreateUserID);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("CreateUserName:");
    if (this.CreateUserName == null) {
      sb.append("null");
    } else {
      sb.append(this.CreateUserName);
    }
    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 MemberTaskCreateParasStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public MemberTaskCreateParasStandardScheme getScheme() {
      return new MemberTaskCreateParasStandardScheme();
    }
  }

  private static class MemberTaskCreateParasStandardScheme extends org.apache.thrift.scheme.StandardScheme {

    public void read(org.apache.thrift.protocol.TProtocol iprot, MemberTaskCreateParas 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: // USER_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.userID = iprot.readString();
              struct.setUserIDIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // 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 4: // TASK_TITLE
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.taskTitle = iprot.readString();
              struct.setTaskTitleIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // 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 6: // 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 7: // 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 8: // CREATE_USER_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.CreateUserID = iprot.readString();
              struct.setCreateUserIDIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // CREATE_USER_NAME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.CreateUserName = iprot.readString();
              struct.setCreateUserNameIsSet(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, MemberTaskCreateParas 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.userID != null) {
        oprot.writeFieldBegin(USER_ID_FIELD_DESC);
        oprot.writeString(struct.userID);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(TASK_TYPE_FIELD_DESC);
      oprot.writeI32(struct.taskType);
      oprot.writeFieldEnd();
      if (struct.taskTitle != null) {
        oprot.writeFieldBegin(TASK_TITLE_FIELD_DESC);
        oprot.writeString(struct.taskTitle);
        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.CreateUserID != null) {
        oprot.writeFieldBegin(CREATE_USER_ID_FIELD_DESC);
        oprot.writeString(struct.CreateUserID);
        oprot.writeFieldEnd();
      }
      if (struct.CreateUserName != null) {
        oprot.writeFieldBegin(CREATE_USER_NAME_FIELD_DESC);
        oprot.writeString(struct.CreateUserName);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class MemberTaskCreateParasTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public MemberTaskCreateParasTupleScheme getScheme() {
      return new MemberTaskCreateParasTupleScheme();
    }
  }

  private static class MemberTaskCreateParasTupleScheme extends org.apache.thrift.scheme.TupleScheme {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, MemberTaskCreateParas 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.isSetUserID()) {
        optionals.set(1);
      }
      if (struct.isSetTaskType()) {
        optionals.set(2);
      }
      if (struct.isSetTaskTitle()) {
        optionals.set(3);
      }
      if (struct.isSetBussinessID1()) {
        optionals.set(4);
      }
      if (struct.isSetBussinessID2()) {
        optionals.set(5);
      }
      if (struct.isSetBussinessID3()) {
        optionals.set(6);
      }
      if (struct.isSetCreateUserID()) {
        optionals.set(7);
      }
      if (struct.isSetCreateUserName()) {
        optionals.set(8);
      }
      oprot.writeBitSet(optionals, 9);
      if (struct.isSetEnterpriseID()) {
        oprot.writeString(struct.enterpriseID);
      }
      if (struct.isSetUserID()) {
        oprot.writeString(struct.userID);
      }
      if (struct.isSetTaskType()) {
        oprot.writeI32(struct.taskType);
      }
      if (struct.isSetTaskTitle()) {
        oprot.writeString(struct.taskTitle);
      }
      if (struct.isSetBussinessID1()) {
        oprot.writeString(struct.bussinessID1);
      }
      if (struct.isSetBussinessID2()) {
        oprot.writeString(struct.bussinessID2);
      }
      if (struct.isSetBussinessID3()) {
        oprot.writeString(struct.bussinessID3);
      }
      if (struct.isSetCreateUserID()) {
        oprot.writeString(struct.CreateUserID);
      }
      if (struct.isSetCreateUserName()) {
        oprot.writeString(struct.CreateUserName);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, MemberTaskCreateParas struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(9);
      if (incoming.get(0)) {
        struct.enterpriseID = iprot.readString();
        struct.setEnterpriseIDIsSet(true);
      }
      if (incoming.get(1)) {
        struct.userID = iprot.readString();
        struct.setUserIDIsSet(true);
      }
      if (incoming.get(2)) {
        struct.taskType = iprot.readI32();
        struct.setTaskTypeIsSet(true);
      }
      if (incoming.get(3)) {
        struct.taskTitle = iprot.readString();
        struct.setTaskTitleIsSet(true);
      }
      if (incoming.get(4)) {
        struct.bussinessID1 = iprot.readString();
        struct.setBussinessID1IsSet(true);
      }
      if (incoming.get(5)) {
        struct.bussinessID2 = iprot.readString();
        struct.setBussinessID2IsSet(true);
      }
      if (incoming.get(6)) {
        struct.bussinessID3 = iprot.readString();
        struct.setBussinessID3IsSet(true);
      }
      if (incoming.get(7)) {
        struct.CreateUserID = iprot.readString();
        struct.setCreateUserIDIsSet(true);
      }
      if (incoming.get(8)) {
        struct.CreateUserName = iprot.readString();
        struct.setCreateUserNameIsSet(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();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy