This way we can verify that the message is encoded exactly the same way as the official protobuf implementation would do it.