validateFields

fun validateFields(fields: Iterable<Field>, reserveds: List<Reserved>, syntaxRules: SyntaxRules)

Validate that the tags of fields are unique and in range, that proto3 message cannot reference proto2 enums.