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

    boolean this_present_component = true && this.isSetComponent();
    boolean that_present_component = true && that.isSetComponent();
    if (this_present_component || that_present_component) {
      if (!(this_present_component && that_present_component))
        return false;
      if (!this.component.equals(that.component))
        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_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_zeroWaitReadEnabled = true && this.isSetZeroWaitReadEnabled();
    boolean that_present_zeroWaitReadEnabled = true && that.isSetZeroWaitReadEnabled();
    if (this_present_zeroWaitReadEnabled || that_present_zeroWaitReadEnabled) {
      if (!(this_present_zeroWaitReadEnabled && that_present_zeroWaitReadEnabled))
        return false;
      if (this.zeroWaitReadEnabled != that.zeroWaitReadEnabled)
        return false;
    }

    boolean this_present_exclusiveCTAS = true && this.isSetExclusiveCTAS();
    boolean that_present_exclusiveCTAS = true && that.isSetExclusiveCTAS();
    if (this_present_exclusiveCTAS || that_present_exclusiveCTAS) {
      if (!(this_present_exclusiveCTAS && that_present_exclusiveCTAS))
        return false;
      if (this.exclusiveCTAS != that.exclusiveCTAS)
        return false;
    }

    boolean this_present_locklessReadsEnabled = true && this.isSetLocklessReadsEnabled();
    boolean that_present_locklessReadsEnabled = true && that.isSetLocklessReadsEnabled();
    if (this_present_locklessReadsEnabled || that_present_locklessReadsEnabled) {
      if (!(this_present_locklessReadsEnabled && that_present_locklessReadsEnabled))
        return false;
      if (this.locklessReadsEnabled != that.locklessReadsEnabled)
        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/LockRequest.java