Protobuf-compatible codecs using scodec