syft.core.io.location.specific

Classes

SpecificLocation([id, name])

This represents the location of a single Node object represented by a single UID.

class syft.core.io.location.specific.SpecificLocation(id=None, name=None)[source]

Bases: syft.core.common.object.ObjectWithID, syft.core.io.location.location.Location

This represents the location of a single Node object represented by a single UID. It may not have any functionality beyond Location but there is logic, which interprets it differently.

static get_protobuf_schema()[source]

Return the type of protobuf object which stores a class of this type

As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this.

Importantly, this method is also used to create the reverse lookup ability within the metaclass of Serializable. In the metaclass, it calls this method and then it takes whatever type is returned from this method and adds an attribute to it with the type of this class attached to it. See the MetaSerializable class for details.

Returns

the type of protobuf object which corresponds to this class.

Return type

GeneratedProtocolMessageType