Read the entire tutorial: https://codingharbour.com/apache-kafka/how-to-use-protobuf-with-apache-kafka-and-schema-registry/
Examples of working with Protobuf (de)serialization