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

    boolean this_present_requestType = true && this.isSetRequestType();
    boolean that_present_requestType = true && that.isSetRequestType();
    if (this_present_requestType || that_present_requestType) {
      if (!(this_present_requestType && that_present_requestType))
        return false;
      if (!this.requestType.equals(that.requestType))
        return false;
    }

    boolean this_present_privileges = true && this.isSetPrivileges();
    boolean that_present_privileges = true && that.isSetPrivileges();
    if (this_present_privileges || that_present_privileges) {
      if (!(this_present_privileges && that_present_privileges))
        return false;
      if (!this.privileges.equals(that.privileges))
        return false;
    }

    boolean this_present_revokeGrantOption = true && this.isSetRevokeGrantOption();
    boolean that_present_revokeGrantOption = true && that.isSetRevokeGrantOption();
    if (this_present_revokeGrantOption || that_present_revokeGrantOption) {
      if (!(this_present_revokeGrantOption && that_present_revokeGrantOption))
        return false;
      if (this.revokeGrantOption != that.revokeGrantOption)
        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/GrantRevokePrivilegeRequest.java