Probuilder UV Editor Collapse UVs via script

I’m using Probuilder to “Probuilderize” a lot of existing models to make edits. Unfortunately this results in tons of broken UVs and I have to manually select every face with a broken UV and “Collapse UVs” in the UV editor window. There can be hundreds of these on a single object and it takes forever.

I wrote a quick script to do it automatically but quickly discovered that there appears to be no ability to collapse UVs via script, as far as I can tell. Basically I’m trying to do this:

pb = GetComponent<ProBuilderMesh>();

foreach (Face face in pb.faces)
{
    face.uv.Collapse();
}

Does this exist somewhere and I’m just missing it? Or some other way to do it?