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

cicada.departdriver.config.SaleEnterprise 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 SaleEnterprise 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("SaleEnterprise");

  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 ENTERPRISE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("EnterpriseName", org.apache.thrift.protocol.TType.STRING, (short)2);
  private static final org.apache.thrift.protocol.TField CONTACTS_FIELD_DESC = new org.apache.thrift.protocol.TField("Contacts", org.apache.thrift.protocol.TType.STRING, (short)3);
  private static final org.apache.thrift.protocol.TField CONTACTS_MOBLIE_FIELD_DESC = new org.apache.thrift.protocol.TField("ContactsMoblie", org.apache.thrift.protocol.TType.STRING, (short)4);
  private static final org.apache.thrift.protocol.TField CREATED_BY_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("CreatedByUserID", org.apache.thrift.protocol.TType.STRING, (short)5);
  private static final org.apache.thrift.protocol.TField CREATED_BY_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("CreatedByUserName", org.apache.thrift.protocol.TType.STRING, (short)6);
  private static final org.apache.thrift.protocol.TField CREATED_DATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("CreatedDateTime", org.apache.thrift.protocol.TType.STRING, (short)7);
  private static final org.apache.thrift.protocol.TField SALE_USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleUserID", org.apache.thrift.protocol.TType.STRING, (short)8);
  private static final org.apache.thrift.protocol.TField SALE_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleUserName", org.apache.thrift.protocol.TType.STRING, (short)9);
  private static final org.apache.thrift.protocol.TField SALE_MOBLIE_FIELD_DESC = new org.apache.thrift.protocol.TField("SaleMoblie", org.apache.thrift.protocol.TType.STRING, (short)10);
  private static final org.apache.thrift.protocol.TField ENTERPRISE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("EnterpriseStatus", org.apache.thrift.protocol.TType.STRING, (short)11);

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

  public java.lang.String EnterpriseID; // required
  public java.lang.String EnterpriseName; // required
  public java.lang.String Contacts; // required
  public java.lang.String ContactsMoblie; // required
  public java.lang.String CreatedByUserID; // required
  public java.lang.String CreatedByUserName; // required
  public java.lang.String CreatedDateTime; // required
  public java.lang.String SaleUserID; // required
  public java.lang.String SaleUserName; // required
  public java.lang.String SaleMoblie; // required
  public java.lang.String EnterpriseStatus; // 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"),
    ENTERPRISE_NAME((short)2, "EnterpriseName"),
    CONTACTS((short)3, "Contacts"),
    CONTACTS_MOBLIE((short)4, "ContactsMoblie"),
    CREATED_BY_USER_ID((short)5, "CreatedByUserID"),
    CREATED_BY_USER_NAME((short)6, "CreatedByUserName"),
    CREATED_DATE_TIME((short)7, "CreatedDateTime"),
    SALE_USER_ID((short)8, "SaleUserID"),
    SALE_USER_NAME((short)9, "SaleUserName"),
    SALE_MOBLIE((short)10, "SaleMoblie"),
    ENTERPRISE_STATUS((short)11, "EnterpriseStatus");

    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: // ENTERPRISE_NAME
          return ENTERPRISE_NAME;
        case 3: // CONTACTS
          return CONTACTS;
        case 4: // CONTACTS_MOBLIE
          return CONTACTS_MOBLIE;
        case 5: // CREATED_BY_USER_ID
          return CREATED_BY_USER_ID;
        case 6: // CREATED_BY_USER_NAME
          return CREATED_BY_USER_NAME;
        case 7: // CREATED_DATE_TIME
          return CREATED_DATE_TIME;
        case 8: // SALE_USER_ID
          return SALE_USER_ID;
        case 9: // SALE_USER_NAME
          return SALE_USER_NAME;
        case 10: // SALE_MOBLIE
          return SALE_MOBLIE;
        case 11: // ENTERPRISE_STATUS
          return ENTERPRISE_STATUS;
        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.ENTERPRISE_NAME, new org.apache.thrift.meta_data.FieldMetaData("EnterpriseName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CONTACTS, new org.apache.thrift.meta_data.FieldMetaData("Contacts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CONTACTS_MOBLIE, new org.apache.thrift.meta_data.FieldMetaData("ContactsMoblie", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CREATED_BY_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("CreatedByUserID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CREATED_BY_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("CreatedByUserName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CREATED_DATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("CreatedDateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.SALE_USER_ID, new org.apache.thrift.meta_data.FieldMetaData("SaleUserID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.SALE_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("SaleUserName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.SALE_MOBLIE, new org.apache.thrift.meta_data.FieldMetaData("SaleMoblie", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.ENTERPRISE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("EnterpriseStatus", 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(SaleEnterprise.class, metaDataMap);
  }

  public SaleEnterprise() {
  }

  public SaleEnterprise(
    java.lang.String EnterpriseID,
    java.lang.String EnterpriseName,
    java.lang.String Contacts,
    java.lang.String ContactsMoblie,
    java.lang.String CreatedByUserID,
    java.lang.String CreatedByUserName,
    java.lang.String CreatedDateTime,
    java.lang.String SaleUserID,
    java.lang.String SaleUserName,
    java.lang.String SaleMoblie,
    java.lang.String EnterpriseStatus)
  {
    this();
    this.EnterpriseID = EnterpriseID;
    this.EnterpriseName = EnterpriseName;
    this.Contacts = Contacts;
    this.ContactsMoblie = ContactsMoblie;
    this.CreatedByUserID = CreatedByUserID;
    this.CreatedByUserName = CreatedByUserName;
    this.CreatedDateTime = CreatedDateTime;
    this.SaleUserID = SaleUserID;
    this.SaleUserName = SaleUserName;
    this.SaleMoblie = SaleMoblie;
    this.EnterpriseStatus = EnterpriseStatus;
  }

  /**
   * Performs a deep copy on other.
   */
  public SaleEnterprise(SaleEnterprise other) {
    if (other.isSetEnterpriseID()) {
      this.EnterpriseID = other.EnterpriseID;
    }
    if (other.isSetEnterpriseName()) {
      this.EnterpriseName = other.EnterpriseName;
    }
    if (other.isSetContacts()) {
      this.Contacts = other.Contacts;
    }
    if (other.isSetContactsMoblie()) {
      this.ContactsMoblie = other.ContactsMoblie;
    }
    if (other.isSetCreatedByUserID()) {
      this.CreatedByUserID = other.CreatedByUserID;
    }
    if (other.isSetCreatedByUserName()) {
      this.CreatedByUserName = other.CreatedByUserName;
    }
    if (other.isSetCreatedDateTime()) {
      this.CreatedDateTime = other.CreatedDateTime;
    }
    if (other.isSetSaleUserID()) {
      this.SaleUserID = other.SaleUserID;
    }
    if (other.isSetSaleUserName()) {
      this.SaleUserName = other.SaleUserName;
    }
    if (other.isSetSaleMoblie()) {
      this.SaleMoblie = other.SaleMoblie;
    }
    if (other.isSetEnterpriseStatus()) {
      this.EnterpriseStatus = other.EnterpriseStatus;
    }
  }

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

  @Override
  public void clear() {
    this.EnterpriseID = null;
    this.EnterpriseName = null;
    this.Contacts = null;
    this.ContactsMoblie = null;
    this.CreatedByUserID = null;
    this.CreatedByUserName = null;
    this.CreatedDateTime = null;
    this.SaleUserID = null;
    this.SaleUserName = null;
    this.SaleMoblie = null;
    this.EnterpriseStatus = null;
  }

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

  public SaleEnterprise 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 getEnterpriseName() {
    return this.EnterpriseName;
  }

  public SaleEnterprise setEnterpriseName(java.lang.String EnterpriseName) {
    this.EnterpriseName = EnterpriseName;
    return this;
  }

  public void unsetEnterpriseName() {
    this.EnterpriseName = null;
  }

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

  public void setEnterpriseNameIsSet(boolean value) {
    if (!value) {
      this.EnterpriseName = null;
    }
  }

  public java.lang.String getContacts() {
    return this.Contacts;
  }

  public SaleEnterprise setContacts(java.lang.String Contacts) {
    this.Contacts = Contacts;
    return this;
  }

  public void unsetContacts() {
    this.Contacts = null;
  }

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

  public void setContactsIsSet(boolean value) {
    if (!value) {
      this.Contacts = null;
    }
  }

  public java.lang.String getContactsMoblie() {
    return this.ContactsMoblie;
  }

  public SaleEnterprise setContactsMoblie(java.lang.String ContactsMoblie) {
    this.ContactsMoblie = ContactsMoblie;
    return this;
  }

  public void unsetContactsMoblie() {
    this.ContactsMoblie = null;
  }

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

  public void setContactsMoblieIsSet(boolean value) {
    if (!value) {
      this.ContactsMoblie = null;
    }
  }

  public java.lang.String getCreatedByUserID() {
    return this.CreatedByUserID;
  }

  public SaleEnterprise setCreatedByUserID(java.lang.String CreatedByUserID) {
    this.CreatedByUserID = CreatedByUserID;
    return this;
  }

  public void unsetCreatedByUserID() {
    this.CreatedByUserID = null;
  }

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

  public void setCreatedByUserIDIsSet(boolean value) {
    if (!value) {
      this.CreatedByUserID = null;
    }
  }

  public java.lang.String getCreatedByUserName() {
    return this.CreatedByUserName;
  }

  public SaleEnterprise setCreatedByUserName(java.lang.String CreatedByUserName) {
    this.CreatedByUserName = CreatedByUserName;
    return this;
  }

  public void unsetCreatedByUserName() {
    this.CreatedByUserName = null;
  }

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

  public void setCreatedByUserNameIsSet(boolean value) {
    if (!value) {
      this.CreatedByUserName = null;
    }
  }

  public java.lang.String getCreatedDateTime() {
    return this.CreatedDateTime;
  }

  public SaleEnterprise setCreatedDateTime(java.lang.String CreatedDateTime) {
    this.CreatedDateTime = CreatedDateTime;
    return this;
  }

  public void unsetCreatedDateTime() {
    this.CreatedDateTime = null;
  }

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

  public void setCreatedDateTimeIsSet(boolean value) {
    if (!value) {
      this.CreatedDateTime = null;
    }
  }

  public java.lang.String getSaleUserID() {
    return this.SaleUserID;
  }

  public SaleEnterprise setSaleUserID(java.lang.String SaleUserID) {
    this.SaleUserID = SaleUserID;
    return this;
  }

  public void unsetSaleUserID() {
    this.SaleUserID = null;
  }

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

  public void setSaleUserIDIsSet(boolean value) {
    if (!value) {
      this.SaleUserID = null;
    }
  }

  public java.lang.String getSaleUserName() {
    return this.SaleUserName;
  }

  public SaleEnterprise setSaleUserName(java.lang.String SaleUserName) {
    this.SaleUserName = SaleUserName;
    return this;
  }

  public void unsetSaleUserName() {
    this.SaleUserName = null;
  }

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

  public void setSaleUserNameIsSet(boolean value) {
    if (!value) {
      this.SaleUserName = null;
    }
  }

  public java.lang.String getSaleMoblie() {
    return this.SaleMoblie;
  }

  public SaleEnterprise setSaleMoblie(java.lang.String SaleMoblie) {
    this.SaleMoblie = SaleMoblie;
    return this;
  }

  public void unsetSaleMoblie() {
    this.SaleMoblie = null;
  }

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

  public void setSaleMoblieIsSet(boolean value) {
    if (!value) {
      this.SaleMoblie = null;
    }
  }

  public java.lang.String getEnterpriseStatus() {
    return this.EnterpriseStatus;
  }

  public SaleEnterprise setEnterpriseStatus(java.lang.String EnterpriseStatus) {
    this.EnterpriseStatus = EnterpriseStatus;
    return this;
  }

  public void unsetEnterpriseStatus() {
    this.EnterpriseStatus = null;
  }

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

  public void setEnterpriseStatusIsSet(boolean value) {
    if (!value) {
      this.EnterpriseStatus = 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 ENTERPRISE_NAME:
      if (value == null) {
        unsetEnterpriseName();
      } else {
        setEnterpriseName((java.lang.String)value);
      }
      break;

    case CONTACTS:
      if (value == null) {
        unsetContacts();
      } else {
        setContacts((java.lang.String)value);
      }
      break;

    case CONTACTS_MOBLIE:
      if (value == null) {
        unsetContactsMoblie();
      } else {
        setContactsMoblie((java.lang.String)value);
      }
      break;

    case CREATED_BY_USER_ID:
      if (value == null) {
        unsetCreatedByUserID();
      } else {
        setCreatedByUserID((java.lang.String)value);
      }
      break;

    case CREATED_BY_USER_NAME:
      if (value == null) {
        unsetCreatedByUserName();
      } else {
        setCreatedByUserName((java.lang.String)value);
      }
      break;

    case CREATED_DATE_TIME:
      if (value == null) {
        unsetCreatedDateTime();
      } else {
        setCreatedDateTime((java.lang.String)value);
      }
      break;

    case SALE_USER_ID:
      if (value == null) {
        unsetSaleUserID();
      } else {
        setSaleUserID((java.lang.String)value);
      }
      break;

    case SALE_USER_NAME:
      if (value == null) {
        unsetSaleUserName();
      } else {
        setSaleUserName((java.lang.String)value);
      }
      break;

    case SALE_MOBLIE:
      if (value == null) {
        unsetSaleMoblie();
      } else {
        setSaleMoblie((java.lang.String)value);
      }
      break;

    case ENTERPRISE_STATUS:
      if (value == null) {
        unsetEnterpriseStatus();
      } else {
        setEnterpriseStatus((java.lang.String)value);
      }
      break;

    }
  }

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

    case ENTERPRISE_NAME:
      return getEnterpriseName();

    case CONTACTS:
      return getContacts();

    case CONTACTS_MOBLIE:
      return getContactsMoblie();

    case CREATED_BY_USER_ID:
      return getCreatedByUserID();

    case CREATED_BY_USER_NAME:
      return getCreatedByUserName();

    case CREATED_DATE_TIME:
      return getCreatedDateTime();

    case SALE_USER_ID:
      return getSaleUserID();

    case SALE_USER_NAME:
      return getSaleUserName();

    case SALE_MOBLIE:
      return getSaleMoblie();

    case ENTERPRISE_STATUS:
      return getEnterpriseStatus();

    }
    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 ENTERPRISE_NAME:
      return isSetEnterpriseName();
    case CONTACTS:
      return isSetContacts();
    case CONTACTS_MOBLIE:
      return isSetContactsMoblie();
    case CREATED_BY_USER_ID:
      return isSetCreatedByUserID();
    case CREATED_BY_USER_NAME:
      return isSetCreatedByUserName();
    case CREATED_DATE_TIME:
      return isSetCreatedDateTime();
    case SALE_USER_ID:
      return isSetSaleUserID();
    case SALE_USER_NAME:
      return isSetSaleUserName();
    case SALE_MOBLIE:
      return isSetSaleMoblie();
    case ENTERPRISE_STATUS:
      return isSetEnterpriseStatus();
    }
    throw new java.lang.IllegalStateException();
  }

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

  public boolean equals(SaleEnterprise 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_EnterpriseName = true && this.isSetEnterpriseName();
    boolean that_present_EnterpriseName = true && that.isSetEnterpriseName();
    if (this_present_EnterpriseName || that_present_EnterpriseName) {
      if (!(this_present_EnterpriseName && that_present_EnterpriseName))
        return false;
      if (!this.EnterpriseName.equals(that.EnterpriseName))
        return false;
    }

    boolean this_present_Contacts = true && this.isSetContacts();
    boolean that_present_Contacts = true && that.isSetContacts();
    if (this_present_Contacts || that_present_Contacts) {
      if (!(this_present_Contacts && that_present_Contacts))
        return false;
      if (!this.Contacts.equals(that.Contacts))
        return false;
    }

    boolean this_present_ContactsMoblie = true && this.isSetContactsMoblie();
    boolean that_present_ContactsMoblie = true && that.isSetContactsMoblie();
    if (this_present_ContactsMoblie || that_present_ContactsMoblie) {
      if (!(this_present_ContactsMoblie && that_present_ContactsMoblie))
        return false;
      if (!this.ContactsMoblie.equals(that.ContactsMoblie))
        return false;
    }

    boolean this_present_CreatedByUserID = true && this.isSetCreatedByUserID();
    boolean that_present_CreatedByUserID = true && that.isSetCreatedByUserID();
    if (this_present_CreatedByUserID || that_present_CreatedByUserID) {
      if (!(this_present_CreatedByUserID && that_present_CreatedByUserID))
        return false;
      if (!this.CreatedByUserID.equals(that.CreatedByUserID))
        return false;
    }

    boolean this_present_CreatedByUserName = true && this.isSetCreatedByUserName();
    boolean that_present_CreatedByUserName = true && that.isSetCreatedByUserName();
    if (this_present_CreatedByUserName || that_present_CreatedByUserName) {
      if (!(this_present_CreatedByUserName && that_present_CreatedByUserName))
        return false;
      if (!this.CreatedByUserName.equals(that.CreatedByUserName))
        return false;
    }

    boolean this_present_CreatedDateTime = true && this.isSetCreatedDateTime();
    boolean that_present_CreatedDateTime = true && that.isSetCreatedDateTime();
    if (this_present_CreatedDateTime || that_present_CreatedDateTime) {
      if (!(this_present_CreatedDateTime && that_present_CreatedDateTime))
        return false;
      if (!this.CreatedDateTime.equals(that.CreatedDateTime))
        return false;
    }

    boolean this_present_SaleUserID = true && this.isSetSaleUserID();
    boolean that_present_SaleUserID = true && that.isSetSaleUserID();
    if (this_present_SaleUserID || that_present_SaleUserID) {
      if (!(this_present_SaleUserID && that_present_SaleUserID))
        return false;
      if (!this.SaleUserID.equals(that.SaleUserID))
        return false;
    }

    boolean this_present_SaleUserName = true && this.isSetSaleUserName();
    boolean that_present_SaleUserName = true && that.isSetSaleUserName();
    if (this_present_SaleUserName || that_present_SaleUserName) {
      if (!(this_present_SaleUserName && that_present_SaleUserName))
        return false;
      if (!this.SaleUserName.equals(that.SaleUserName))
        return false;
    }

    boolean this_present_SaleMoblie = true && this.isSetSaleMoblie();
    boolean that_present_SaleMoblie = true && that.isSetSaleMoblie();
    if (this_present_SaleMoblie || that_present_SaleMoblie) {
      if (!(this_present_SaleMoblie && that_present_SaleMoblie))
        return false;
      if (!this.SaleMoblie.equals(that.SaleMoblie))
        return false;
    }

    boolean this_present_EnterpriseStatus = true && this.isSetEnterpriseStatus();
    boolean that_present_EnterpriseStatus = true && that.isSetEnterpriseStatus();
    if (this_present_EnterpriseStatus || that_present_EnterpriseStatus) {
      if (!(this_present_EnterpriseStatus && that_present_EnterpriseStatus))
        return false;
      if (!this.EnterpriseStatus.equals(that.EnterpriseStatus))
        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 + ((isSetEnterpriseName()) ? 131071 : 524287);
    if (isSetEnterpriseName())
      hashCode = hashCode * 8191 + EnterpriseName.hashCode();

    hashCode = hashCode * 8191 + ((isSetContacts()) ? 131071 : 524287);
    if (isSetContacts())
      hashCode = hashCode * 8191 + Contacts.hashCode();

    hashCode = hashCode * 8191 + ((isSetContactsMoblie()) ? 131071 : 524287);
    if (isSetContactsMoblie())
      hashCode = hashCode * 8191 + ContactsMoblie.hashCode();

    hashCode = hashCode * 8191 + ((isSetCreatedByUserID()) ? 131071 : 524287);
    if (isSetCreatedByUserID())
      hashCode = hashCode * 8191 + CreatedByUserID.hashCode();

    hashCode = hashCode * 8191 + ((isSetCreatedByUserName()) ? 131071 : 524287);
    if (isSetCreatedByUserName())
      hashCode = hashCode * 8191 + CreatedByUserName.hashCode();

    hashCode = hashCode * 8191 + ((isSetCreatedDateTime()) ? 131071 : 524287);
    if (isSetCreatedDateTime())
      hashCode = hashCode * 8191 + CreatedDateTime.hashCode();

    hashCode = hashCode * 8191 + ((isSetSaleUserID()) ? 131071 : 524287);
    if (isSetSaleUserID())
      hashCode = hashCode * 8191 + SaleUserID.hashCode();

    hashCode = hashCode * 8191 + ((isSetSaleUserName()) ? 131071 : 524287);
    if (isSetSaleUserName())
      hashCode = hashCode * 8191 + SaleUserName.hashCode();

    hashCode = hashCode * 8191 + ((isSetSaleMoblie()) ? 131071 : 524287);
    if (isSetSaleMoblie())
      hashCode = hashCode * 8191 + SaleMoblie.hashCode();

    hashCode = hashCode * 8191 + ((isSetEnterpriseStatus()) ? 131071 : 524287);
    if (isSetEnterpriseStatus())
      hashCode = hashCode * 8191 + EnterpriseStatus.hashCode();

    return hashCode;
  }

  @Override
  public int compareTo(SaleEnterprise 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(isSetEnterpriseName()).compareTo(other.isSetEnterpriseName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetEnterpriseName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EnterpriseName, other.EnterpriseName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetContacts()).compareTo(other.isSetContacts());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetContacts()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Contacts, other.Contacts);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetContactsMoblie()).compareTo(other.isSetContactsMoblie());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetContactsMoblie()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ContactsMoblie, other.ContactsMoblie);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetCreatedByUserID()).compareTo(other.isSetCreatedByUserID());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreatedByUserID()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreatedByUserID, other.CreatedByUserID);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetCreatedByUserName()).compareTo(other.isSetCreatedByUserName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreatedByUserName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreatedByUserName, other.CreatedByUserName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetCreatedDateTime()).compareTo(other.isSetCreatedDateTime());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreatedDateTime()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.CreatedDateTime, other.CreatedDateTime);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetSaleUserID()).compareTo(other.isSetSaleUserID());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSaleUserID()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleUserID, other.SaleUserID);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetSaleUserName()).compareTo(other.isSetSaleUserName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSaleUserName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleUserName, other.SaleUserName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetSaleMoblie()).compareTo(other.isSetSaleMoblie());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSaleMoblie()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SaleMoblie, other.SaleMoblie);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.valueOf(isSetEnterpriseStatus()).compareTo(other.isSetEnterpriseStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetEnterpriseStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.EnterpriseStatus, other.EnterpriseStatus);
      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("SaleEnterprise(");
    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("EnterpriseName:");
    if (this.EnterpriseName == null) {
      sb.append("null");
    } else {
      sb.append(this.EnterpriseName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("Contacts:");
    if (this.Contacts == null) {
      sb.append("null");
    } else {
      sb.append(this.Contacts);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("ContactsMoblie:");
    if (this.ContactsMoblie == null) {
      sb.append("null");
    } else {
      sb.append(this.ContactsMoblie);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("CreatedByUserID:");
    if (this.CreatedByUserID == null) {
      sb.append("null");
    } else {
      sb.append(this.CreatedByUserID);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("CreatedByUserName:");
    if (this.CreatedByUserName == null) {
      sb.append("null");
    } else {
      sb.append(this.CreatedByUserName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("CreatedDateTime:");
    if (this.CreatedDateTime == null) {
      sb.append("null");
    } else {
      sb.append(this.CreatedDateTime);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("SaleUserID:");
    if (this.SaleUserID == null) {
      sb.append("null");
    } else {
      sb.append(this.SaleUserID);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("SaleUserName:");
    if (this.SaleUserName == null) {
      sb.append("null");
    } else {
      sb.append(this.SaleUserName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("SaleMoblie:");
    if (this.SaleMoblie == null) {
      sb.append("null");
    } else {
      sb.append(this.SaleMoblie);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("EnterpriseStatus:");
    if (this.EnterpriseStatus == null) {
      sb.append("null");
    } else {
      sb.append(this.EnterpriseStatus);
    }
    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 SaleEnterpriseStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public SaleEnterpriseStandardScheme getScheme() {
      return new SaleEnterpriseStandardScheme();
    }
  }

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

    public void read(org.apache.thrift.protocol.TProtocol iprot, SaleEnterprise 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: // ENTERPRISE_NAME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.EnterpriseName = iprot.readString();
              struct.setEnterpriseNameIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // CONTACTS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.Contacts = iprot.readString();
              struct.setContactsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // CONTACTS_MOBLIE
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.ContactsMoblie = iprot.readString();
              struct.setContactsMoblieIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // CREATED_BY_USER_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.CreatedByUserID = iprot.readString();
              struct.setCreatedByUserIDIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // CREATED_BY_USER_NAME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.CreatedByUserName = iprot.readString();
              struct.setCreatedByUserNameIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // CREATED_DATE_TIME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.CreatedDateTime = iprot.readString();
              struct.setCreatedDateTimeIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // SALE_USER_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.SaleUserID = iprot.readString();
              struct.setSaleUserIDIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // SALE_USER_NAME
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.SaleUserName = iprot.readString();
              struct.setSaleUserNameIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 10: // SALE_MOBLIE
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.SaleMoblie = iprot.readString();
              struct.setSaleMoblieIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 11: // ENTERPRISE_STATUS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.EnterpriseStatus = iprot.readString();
              struct.setEnterpriseStatusIsSet(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, SaleEnterprise 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.EnterpriseName != null) {
        oprot.writeFieldBegin(ENTERPRISE_NAME_FIELD_DESC);
        oprot.writeString(struct.EnterpriseName);
        oprot.writeFieldEnd();
      }
      if (struct.Contacts != null) {
        oprot.writeFieldBegin(CONTACTS_FIELD_DESC);
        oprot.writeString(struct.Contacts);
        oprot.writeFieldEnd();
      }
      if (struct.ContactsMoblie != null) {
        oprot.writeFieldBegin(CONTACTS_MOBLIE_FIELD_DESC);
        oprot.writeString(struct.ContactsMoblie);
        oprot.writeFieldEnd();
      }
      if (struct.CreatedByUserID != null) {
        oprot.writeFieldBegin(CREATED_BY_USER_ID_FIELD_DESC);
        oprot.writeString(struct.CreatedByUserID);
        oprot.writeFieldEnd();
      }
      if (struct.CreatedByUserName != null) {
        oprot.writeFieldBegin(CREATED_BY_USER_NAME_FIELD_DESC);
        oprot.writeString(struct.CreatedByUserName);
        oprot.writeFieldEnd();
      }
      if (struct.CreatedDateTime != null) {
        oprot.writeFieldBegin(CREATED_DATE_TIME_FIELD_DESC);
        oprot.writeString(struct.CreatedDateTime);
        oprot.writeFieldEnd();
      }
      if (struct.SaleUserID != null) {
        oprot.writeFieldBegin(SALE_USER_ID_FIELD_DESC);
        oprot.writeString(struct.SaleUserID);
        oprot.writeFieldEnd();
      }
      if (struct.SaleUserName != null) {
        oprot.writeFieldBegin(SALE_USER_NAME_FIELD_DESC);
        oprot.writeString(struct.SaleUserName);
        oprot.writeFieldEnd();
      }
      if (struct.SaleMoblie != null) {
        oprot.writeFieldBegin(SALE_MOBLIE_FIELD_DESC);
        oprot.writeString(struct.SaleMoblie);
        oprot.writeFieldEnd();
      }
      if (struct.EnterpriseStatus != null) {
        oprot.writeFieldBegin(ENTERPRISE_STATUS_FIELD_DESC);
        oprot.writeString(struct.EnterpriseStatus);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

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

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

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, SaleEnterprise 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.isSetEnterpriseName()) {
        optionals.set(1);
      }
      if (struct.isSetContacts()) {
        optionals.set(2);
      }
      if (struct.isSetContactsMoblie()) {
        optionals.set(3);
      }
      if (struct.isSetCreatedByUserID()) {
        optionals.set(4);
      }
      if (struct.isSetCreatedByUserName()) {
        optionals.set(5);
      }
      if (struct.isSetCreatedDateTime()) {
        optionals.set(6);
      }
      if (struct.isSetSaleUserID()) {
        optionals.set(7);
      }
      if (struct.isSetSaleUserName()) {
        optionals.set(8);
      }
      if (struct.isSetSaleMoblie()) {
        optionals.set(9);
      }
      if (struct.isSetEnterpriseStatus()) {
        optionals.set(10);
      }
      oprot.writeBitSet(optionals, 11);
      if (struct.isSetEnterpriseID()) {
        oprot.writeString(struct.EnterpriseID);
      }
      if (struct.isSetEnterpriseName()) {
        oprot.writeString(struct.EnterpriseName);
      }
      if (struct.isSetContacts()) {
        oprot.writeString(struct.Contacts);
      }
      if (struct.isSetContactsMoblie()) {
        oprot.writeString(struct.ContactsMoblie);
      }
      if (struct.isSetCreatedByUserID()) {
        oprot.writeString(struct.CreatedByUserID);
      }
      if (struct.isSetCreatedByUserName()) {
        oprot.writeString(struct.CreatedByUserName);
      }
      if (struct.isSetCreatedDateTime()) {
        oprot.writeString(struct.CreatedDateTime);
      }
      if (struct.isSetSaleUserID()) {
        oprot.writeString(struct.SaleUserID);
      }
      if (struct.isSetSaleUserName()) {
        oprot.writeString(struct.SaleUserName);
      }
      if (struct.isSetSaleMoblie()) {
        oprot.writeString(struct.SaleMoblie);
      }
      if (struct.isSetEnterpriseStatus()) {
        oprot.writeString(struct.EnterpriseStatus);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, SaleEnterprise struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(11);
      if (incoming.get(0)) {
        struct.EnterpriseID = iprot.readString();
        struct.setEnterpriseIDIsSet(true);
      }
      if (incoming.get(1)) {
        struct.EnterpriseName = iprot.readString();
        struct.setEnterpriseNameIsSet(true);
      }
      if (incoming.get(2)) {
        struct.Contacts = iprot.readString();
        struct.setContactsIsSet(true);
      }
      if (incoming.get(3)) {
        struct.ContactsMoblie = iprot.readString();
        struct.setContactsMoblieIsSet(true);
      }
      if (incoming.get(4)) {
        struct.CreatedByUserID = iprot.readString();
        struct.setCreatedByUserIDIsSet(true);
      }
      if (incoming.get(5)) {
        struct.CreatedByUserName = iprot.readString();
        struct.setCreatedByUserNameIsSet(true);
      }
      if (incoming.get(6)) {
        struct.CreatedDateTime = iprot.readString();
        struct.setCreatedDateTimeIsSet(true);
      }
      if (incoming.get(7)) {
        struct.SaleUserID = iprot.readString();
        struct.setSaleUserIDIsSet(true);
      }
      if (incoming.get(8)) {
        struct.SaleUserName = iprot.readString();
        struct.setSaleUserNameIsSet(true);
      }
      if (incoming.get(9)) {
        struct.SaleMoblie = iprot.readString();
        struct.setSaleMoblieIsSet(true);
      }
      if (incoming.get(10)) {
        struct.EnterpriseStatus = iprot.readString();
        struct.setEnterpriseStatusIsSet(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