return AccessControlProtos.GrantRequest.newBuilder()
.setUserPermission(
AccessControlProtos.UserPermission.newBuilder()
.setUser(ByteString.copyFromUtf8(username))
.setPermission(ret)
<BUG>).build();
}</BUG>
public static AccessControlProtos.GrantRequest buildGrantRequest(
<BUG>String username, String namespace,
AccessControlProtos.Permission.Action... actions) {</BUG>
AccessControlProtos.Permission.Builder ret =

return AccessControlProtos.GrantRequest.newBuilder()
.setUserPermission(
AccessControlProtos.UserPermission.newBuilder()
.setUser(ByteString.copyFromUtf8(username))
.setPermission(ret)
).setMergeExistingPermissions(mergeExistingPermissions).build();
}
public static AccessControlProtos.GrantRequest buildGrantRequest(
String username, String namespace, boolean mergeExistingPermissions,
AccessControlProtos.Permission.Action... actions) {
AccessControlProtos.Permission.Builder ret =
