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

    hashCode = hashCode * 8191 + num_txns;

    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 + ((isSetReplPolicy()) ? 131071 : 524287);
    if (isSetReplPolicy())
      hashCode = hashCode * 8191 + replPolicy.hashCode();

    hashCode = hashCode * 8191 + ((isSetReplSrcTxnIds()) ? 131071 : 524287);
    if (isSetReplSrcTxnIds())
      hashCode = hashCode * 8191 + replSrcTxnIds.hashCode();

    hashCode = hashCode * 8191 + ((isSetTxn_type()) ? 131071 : 524287);
    if (isSetTxn_type())
      hashCode = hashCode * 8191 + txn_type.getValue();

    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/OpenTxnRequest.java