syft.core.common.group

Functions

object2proto(obj)

proto2object(proto)

Classes

VerifyAll()

class syft.core.common.group.VerifyAll

Bases: syft.core.common.serde.serializable.Serializable

static get_protobuf_schema()

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