retainAll

fun retainAll(schema: Schema, markSet: MarkSet): ProtoFile

Returns a new proto file that omits types, services, extensions, and options not in pruningRules.