retainLinked

fun retainLinked(linkedTypes: Set<ProtoType>, linkedFields: Set<Field>): ProtoFile

Return a copy of this file with only the marked types.