public boolean equals(ShowLocksResponseElement that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_lockid = true;
    boolean that_present_lockid = true;
    if (this_present_lockid || that_present_lockid) {
      if (!(this_present_lockid && that_present_lockid))
        return false;
      if (this.lockid != that.lockid)
        return false;
    }

    boolean this_present_dbname = true && this.isSetDbname();
    boolean that_present_dbname = true && that.isSetDbname();
    if (this_present_dbname || that_present_dbname) {
      if (!(this_present_dbname && that_present_dbname))
        return false;
      if (!this.dbname.equals(that.dbname))
        return false;
    }

    boolean this_present_tablename = true && this.isSetTablename();
    boolean that_present_tablename = true && that.isSetTablename();
    if (this_present_tablename || that_present_tablename) {
      if (!(this_present_tablename && that_present_tablename))
        return false;
      if (!this.tablename.equals(that.tablename))
        return false;
    }

    boolean this_present_partname = true && this.isSetPartname();
    boolean that_present_partname = true && that.isSetPartname();
    if (this_present_partname || that_present_partname) {
      if (!(this_present_partname && that_present_partname))
        return false;
      if (!this.partname.equals(that.partname))
        return false;
    }

    boolean this_present_state = true && this.isSetState();
    boolean that_present_state = true && that.isSetState();
    if (this_present_state || that_present_state) {
      if (!(this_present_state && that_present_state))
        return false;
      if (!this.state.equals(that.state))
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_txnid = true && this.isSetTxnid();
    boolean that_present_txnid = true && that.isSetTxnid();
    if (this_present_txnid || that_present_txnid) {
      if (!(this_present_txnid && that_present_txnid))
        return false;
      if (this.txnid != that.txnid)
        return false;
    }

    boolean this_present_lastheartbeat = true;
    boolean that_present_lastheartbeat = true;
    if (this_present_lastheartbeat || that_present_lastheartbeat) {
      if (!(this_present_lastheartbeat && that_present_lastheartbeat))
        return false;
      if (this.lastheartbeat != that.lastheartbeat)
        return false;
    }

    boolean this_present_acquiredat = true && this.isSetAcquiredat();
    boolean that_present_acquiredat = true && that.isSetAcquiredat();
    if (this_present_acquiredat || that_present_acquiredat) {
      if (!(this_present_acquiredat && that_present_acquiredat))
        return false;
      if (this.acquiredat != that.acquiredat)
        return false;
    }

    boolean this_present_user = true && this.isSetUser();
    boolean that_present_user = true && that.isSetUser();
    if (this_present_user || that_present_user) {
      if (!(this_present_user && that_present_user))
        return false;
      if (!this.user.equals(that.user))
        return false;
    }

    boolean this_present_hostname = true && this.isSetHostname();
    boolean that_present_hostname = true && that.isSetHostname();
    if (this_present_hostname || that_present_hostname) {
      if (!(this_present_hostname && that_present_hostname))
        return false;
      if (!this.hostname.equals(that.hostname))
        return false;
    }

    boolean this_present_heartbeatCount = true && this.isSetHeartbeatCount();
    boolean that_present_heartbeatCount = true && that.isSetHeartbeatCount();
    if (this_present_heartbeatCount || that_present_heartbeatCount) {
      if (!(this_present_heartbeatCount && that_present_heartbeatCount))
        return false;
      if (this.heartbeatCount != that.heartbeatCount)
        return false;
    }

    boolean this_present_agentInfo = true && this.isSetAgentInfo();
    boolean that_present_agentInfo = true && that.isSetAgentInfo();
    if (this_present_agentInfo || that_present_agentInfo) {
      if (!(this_present_agentInfo && that_present_agentInfo))
        return false;
      if (!this.agentInfo.equals(that.agentInfo))
        return false;
    }

    boolean this_present_blockedByExtId = true && this.isSetBlockedByExtId();
    boolean that_present_blockedByExtId = true && that.isSetBlockedByExtId();
    if (this_present_blockedByExtId || that_present_blockedByExtId) {
      if (!(this_present_blockedByExtId && that_present_blockedByExtId))
        return false;
      if (this.blockedByExtId != that.blockedByExtId)
        return false;
    }

    boolean this_present_blockedByIntId = true && this.isSetBlockedByIntId();
    boolean that_present_blockedByIntId = true && that.isSetBlockedByIntId();
    if (this_present_blockedByIntId || that_present_blockedByIntId) {
      if (!(this_present_blockedByIntId && that_present_blockedByIntId))
        return false;
      if (this.blockedByIntId != that.blockedByIntId)
        return false;
    }

    boolean this_present_lockIdInternal = true && this.isSetLockIdInternal();
    boolean that_present_lockIdInternal = true && that.isSetLockIdInternal();
    if (this_present_lockIdInternal || that_present_lockIdInternal) {
      if (!(this_present_lockIdInternal && that_present_lockIdInternal))
        return false;
      if (this.lockIdInternal != that.lockIdInternal)
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java