如何使用 Python Apache pulsar pulsar-client 包中的 protobuf 模式消息?

How to work with protobuf schema messages in Python Apache pulsar pulsar-client package?

有没有一种方法可以使用 python 使用 pulsar-client 包使用 Protobuf 模式将消息发布到 Apache Pulsar 主题?

根据文档,它仅支持 Avro、字符串、Json 和字节。有什么解决办法吗? https://pulsar.apache.org/docs/ko/2.8.1/client-libraries-python/

该增强功能尚未完成

https://github.com/apache/pulsar/issues/12949

Java

https://medium.com/streamnative/apache-pulsar-2-7-0-25c505658589