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

    boolean this_present_roleName = true && this.isSetRoleName();
    boolean that_present_roleName = true && that.isSetRoleName();
    if (this_present_roleName || that_present_roleName) {
      if (!(this_present_roleName && that_present_roleName))
        return false;
      if (!this.roleName.equals(that.roleName))
        return false;
    }

    boolean this_present_principalName = true && this.isSetPrincipalName();
    boolean that_present_principalName = true && that.isSetPrincipalName();
    if (this_present_principalName || that_present_principalName) {
      if (!(this_present_principalName && that_present_principalName))
        return false;
      if (!this.principalName.equals(that.principalName))
        return false;
    }

    boolean this_present_principalType = true && this.isSetPrincipalType();
    boolean that_present_principalType = true && that.isSetPrincipalType();
    if (this_present_principalType || that_present_principalType) {
      if (!(this_present_principalType && that_present_principalType))
        return false;
      if (!this.principalType.equals(that.principalType))
        return false;
    }

    boolean this_present_grantOption = true;
    boolean that_present_grantOption = true;
    if (this_present_grantOption || that_present_grantOption) {
      if (!(this_present_grantOption && that_present_grantOption))
        return false;
      if (this.grantOption != that.grantOption)
        return false;
    }

    boolean this_present_grantTime = true;
    boolean that_present_grantTime = true;
    if (this_present_grantTime || that_present_grantTime) {
      if (!(this_present_grantTime && that_present_grantTime))
        return false;
      if (this.grantTime != that.grantTime)
        return false;
    }

    boolean this_present_grantorName = true && this.isSetGrantorName();
    boolean that_present_grantorName = true && that.isSetGrantorName();
    if (this_present_grantorName || that_present_grantorName) {
      if (!(this_present_grantorName && that_present_grantorName))
        return false;
      if (!this.grantorName.equals(that.grantorName))
        return false;
    }

    boolean this_present_grantorPrincipalType = true && this.isSetGrantorPrincipalType();
    boolean that_present_grantorPrincipalType = true && that.isSetGrantorPrincipalType();
    if (this_present_grantorPrincipalType || that_present_grantorPrincipalType) {
      if (!(this_present_grantorPrincipalType && that_present_grantorPrincipalType))
        return false;
      if (!this.grantorPrincipalType.equals(that.grantorPrincipalType))
        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/RolePrincipalGrant.java