def get_proto_deserializer(proto_class):
    """
    Return a basic proto deserializer that takes in a proto type to deserialize
    to
    """
    def _deserialize_proto(serialized_rule):
        proto = proto_class()
        proto.ParseFromString(serialized_rule)
        return proto
    return _deserialize_proto