def read(cls, proto):
    """
    Calls :meth:`~nupic.bindings.regions.PyRegion.PyRegion.readFromProto`
    on subclass after converting proto to specific type using
    :meth:`~nupic.bindings.regions.PyRegion.PyRegion.getSchema`.

    :param proto: PyRegionProto capnproto object
    """
    regionImpl = proto.regionImpl.as_struct(cls.getSchema())
    return cls.readFromProto(regionImpl)
Calls :meth:`~nupic.bindings.regions.PyRegion.PyRegion.readFromProto`
    on subclass after converting proto to specific type using
    :meth:`~nupic.bindings.regions.PyRegion.PyRegion.getSchema`.

    :param proto: PyRegionProto capnproto object