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

    boolean this_present_id = true;
    boolean that_present_id = true;
    if (this_present_id || that_present_id) {
      if (!(this_present_id && that_present_id))
        return false;
      if (this.id != that.id)
        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_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_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_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_metaInfo = true && this.isSetMetaInfo();
    boolean that_present_metaInfo = true && that.isSetMetaInfo();
    if (this_present_metaInfo || that_present_metaInfo) {
      if (!(this_present_metaInfo && that_present_metaInfo))
        return false;
      if (!this.metaInfo.equals(that.metaInfo))
        return false;
    }

    boolean this_present_startedTime = true && this.isSetStartedTime();
    boolean that_present_startedTime = true && that.isSetStartedTime();
    if (this_present_startedTime || that_present_startedTime) {
      if (!(this_present_startedTime && that_present_startedTime))
        return false;
      if (this.startedTime != that.startedTime)
        return false;
    }

    boolean this_present_lastHeartbeatTime = true && this.isSetLastHeartbeatTime();
    boolean that_present_lastHeartbeatTime = true && that.isSetLastHeartbeatTime();
    if (this_present_lastHeartbeatTime || that_present_lastHeartbeatTime) {
      if (!(this_present_lastHeartbeatTime && that_present_lastHeartbeatTime))
        return false;
      if (this.lastHeartbeatTime != that.lastHeartbeatTime)
        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/TxnInfo.java