class Node4(AttributeAsDict): attr_tag = 'attr' a = BytesField('b') b = NDArrayField('c') c = Datetime64Field('d') d = Timedelta64Field('e') e = DataTypeField('f') f = DictField('g', ValueType.string, ValueType.list(ValueType.bool)) g = DictField('h') h = TupleField('i', ValueType.int64, ValueType.unicode, ValueType.string, ValueType.float32, ValueType.datetime64, ValueType.timedelta64, ValueType.dtype) i = TupleField('j', ValueType.slice) j = ReferenceField('k', Node5) k = ListField('l', ValueType.reference('Node5')) l = OneOfField('m', n5=Node5, n6=Node6) m = IndexField('n') mm = IndexField('mn') n = SeriesField('o') o = DataFrameField('p') p = ListField('q') @classmethod def cls(cls, provider): if provider.type == ProviderType.protobuf: from mars.serialize.tests.testser_pb2 import Node4Def return Node4Def return super(Node4, cls).cls(provider)
class Node3(Serializable): value = OneOfField('value', n1='Node1', n2='Node2') @classmethod def cls(cls, provider): if provider.type == ProviderType.protobuf: from mars.serialize.tests.testser_pb2 import Node3Def return Node3Def return super(Node3, cls).cls(provider)