Initial support for exporting to protobuf