> You could easily design a stream parser that rejects duplicates before it passes them off to the user, by maintaining a set of already encountered keys within the parser state.
You could, but you are not allowed to. Protobuf parsing requires that the last duplicate key wins.
You could, but you are not allowed to. Protobuf parsing requires that the last duplicate key wins.