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

    hashCode = hashCode * 8191 + ((isSetHiveObject()) ? 131071 : 524287);
    if (isSetHiveObject())
      hashCode = hashCode * 8191 + hiveObject.hashCode();

    hashCode = hashCode * 8191 + ((isSetPrincipalName()) ? 131071 : 524287);
    if (isSetPrincipalName())
      hashCode = hashCode * 8191 + principalName.hashCode();

    hashCode = hashCode * 8191 + ((isSetPrincipalType()) ? 131071 : 524287);
    if (isSetPrincipalType())
      hashCode = hashCode * 8191 + principalType.getValue();

    hashCode = hashCode * 8191 + ((isSetGrantInfo()) ? 131071 : 524287);
    if (isSetGrantInfo())
      hashCode = hashCode * 8191 + grantInfo.hashCode();

    hashCode = hashCode * 8191 + ((isSetAuthorizer()) ? 131071 : 524287);
    if (isSetAuthorizer())
      hashCode = hashCode * 8191 + authorizer.hashCode();

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