Python 3.9 is now generally available.

google.appengine.ext.db.model_from_protobuf

Decodes a model instance from a protocol buffer.

pb The protocol buffer representation of the model instance. Can be an entity_pb.EntityProto or str encoding of an entity_bp.EntityProto

Model instance resulting from decoding the protocol buffer