return new NamedItemCollection<BucketData>(node, BucketData.newBuilder(), BucketData.getDescriptor()
.findFieldByNumber(BucketData.KEY_FIELD_NUMBER));
}
public NumberedItemCollection<DirectoryData> getDirectories(long projectId) {
StateNode root = stateStore.getRoot("dir");
StateNode node = root.child(Long.toHexString(projectId));
return new NumberedItemCollection<DirectoryData>(node, DirectoryData.newBuilder(), DirectoryData
.getDescriptor().findFieldByNumber(DirectoryData.ID_FIELD_NUMBER));
}