@classmethod<EOL><INDENT>def readFromProto(cls, proto):<DEDENT>
instance = cls(proto.columnCount, proto.inputWidth, proto.cellsPerColumn)<EOL>instance.temporalImp = proto.temporalImp<EOL>instance.learningMode = proto.learningMode<EOL>instance.inferenceMode = proto.inferenceMode<EOL>instance.anomalyMode = proto.anomalyMode<EOL>instance.topDownMode = proto.topDownMode<EOL>instance.computePredictedActiveCellIndices = (<EOL>proto.computePredictedActiveCellIndices)<EOL>instance.orColumnOutputs = proto.orColumnOutputs<EOL>if instance.temporalImp == "<STR_LIT>":<EOL><INDENT>tmProto = proto.backtrackingTM<EOL><DEDENT>elif instance.temporalImp == "<STR_LIT>":<EOL><INDENT>tmProto = proto.backtrackingTMCpp<EOL><DEDENT>elif instance.temporalImp == "<STR_LIT>":<EOL><INDENT>tmProto = proto.temporalMemory<EOL><DEDENT>elif instance.temporalImp == "<STR_LIT>":<EOL><INDENT>tmProto = proto.temporalMemory<EOL><DEDENT>else:<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>".format(<EOL>instance.temporalImp))<EOL><DEDENT>instance._tfdr = _getTPClass(proto.temporalImp).read(tmProto)<EOL>return instance<EOL>
Overrides :meth:`~nupic.bindings.regions.PyRegion.PyRegion.readFromProto`.

Read state from proto object.

:param proto: TMRegionProto capnproto object