QProtobufMessage: add qprotobufmessage_cast() and metaObject()
Provides public access to the internal meta-object via metaObject() and
introduces qprotobufmessage_cast, a qobject_cast-like function that
relies on it.
This is a prerequisite for interceptors, which require run-time type
information to inspect and cast messages to their concrete types.
Task-number: QTBUG-128338
Change-Id: Idfede87c5f2f2358f2409bc488b6abece4cc718b
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>