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

    hashCode = hashCode * 8191 + ((isSetRequestType()) ? 131071 : 524287);
    if (isSetRequestType())
      hashCode = hashCode * 8191 + requestType.getValue();

    hashCode = hashCode * 8191 + ((isSetRoleName()) ? 131071 : 524287);
    if (isSetRoleName())
      hashCode = hashCode * 8191 + roleName.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 + ((isSetGrantor()) ? 131071 : 524287);
    if (isSetGrantor())
      hashCode = hashCode * 8191 + grantor.hashCode();

    hashCode = hashCode * 8191 + ((isSetGrantorType()) ? 131071 : 524287);
    if (isSetGrantorType())
      hashCode = hashCode * 8191 + grantorType.getValue();

    hashCode = hashCode * 8191 + ((isSetGrantOption()) ? 131071 : 524287);
    if (isSetGrantOption())
      hashCode = hashCode * 8191 + ((grantOption) ? 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/GrantRevokeRoleRequest.java