@Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetComponent()) ? 131071 : 524287);
    if (isSetComponent())
      hashCode = hashCode * 8191 + component.hashCode();

    hashCode = hashCode * 8191 + ((isSetTxnid()) ? 131071 : 524287);
    if (isSetTxnid())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(txnid);

    hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287);
    if (isSetUser())
      hashCode = hashCode * 8191 + user.hashCode();

    hashCode = hashCode * 8191 + ((isSetHostname()) ? 131071 : 524287);
    if (isSetHostname())
      hashCode = hashCode * 8191 + hostname.hashCode();

    hashCode = hashCode * 8191 + ((isSetAgentInfo()) ? 131071 : 524287);
    if (isSetAgentInfo())
      hashCode = hashCode * 8191 + agentInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetZeroWaitReadEnabled()) ? 131071 : 524287);
    if (isSetZeroWaitReadEnabled())
      hashCode = hashCode * 8191 + ((zeroWaitReadEnabled) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetExclusiveCTAS()) ? 131071 : 524287);
    if (isSetExclusiveCTAS())
      hashCode = hashCode * 8191 + ((exclusiveCTAS) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetLocklessReadsEnabled()) ? 131071 : 524287);
    if (isSetLocklessReadsEnabled())
      hashCode = hashCode * 8191 + ((locklessReadsEnabled) ? 131071 : 524287);

    return hashCode;
  }
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