Expose ReadProto and WriteProto.