public GrantRevokePrivilegeRequest build() throws MetaException {
    if (requestType == null || privileges.getPrivilegesSize() == 0) {
      throw new MetaException("The request type and at least one privilege must be provided.");
    }
    GrantRevokePrivilegeRequest rqst = new GrantRevokePrivilegeRequest(requestType, privileges);
    if (revokeGrantOption) rqst.setRevokeGrantOption(revokeGrantOption);
    return rqst;
  }
A builder for {@link GrantRevokePrivilegeRequest}.  The revoke of grant option defaults to
false.  The request Type and the privileges must be provided.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/client/builder/GrantRevokePrivilegeRequestBuilder.java