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

    boolean this_present_principal_name = true && this.isSetPrincipal_name();
    boolean that_present_principal_name = true && that.isSetPrincipal_name();
    if (this_present_principal_name || that_present_principal_name) {
      if (!(this_present_principal_name && that_present_principal_name))
        return false;
      if (!this.principal_name.equals(that.principal_name))
        return false;
    }

    boolean this_present_principal_type = true && this.isSetPrincipal_type();
    boolean that_present_principal_type = true && that.isSetPrincipal_type();
    if (this_present_principal_type || that_present_principal_type) {
      if (!(this_present_principal_type && that_present_principal_type))
        return false;
      if (!this.principal_type.equals(that.principal_type))
        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/GetRoleGrantsForPrincipalRequest.java