google.appengine.api.datastore_types.ReferenceToKeyValue

Converts a key into a comparable hashable key value.

key The entity_pb2.Reference or googledatastore.Key from which to construct the key value.
id_resolver An optional datastore_pbs.IdResolver. Only necessary for googledatastore.Key values.

A comparable and hashable representation of the given key that is compatible with one derived from a key property value.