class ScalarTypeMessage(TestORMMessage): name = StringField() number = Int32Field() big_number = Int64Field() active = BooleanField() deleted = BooleanField() raw_data = BytesField()
class Test(Message): name = StringField() number = Int32Field() big_number = Int64Field() active = BooleanField() deleted = BooleanField() raw_data = BytesField()
class TestMessage(Message): name = StringField()
class TextPost(Post): content = StringField()
class Post(Message): title = StringField()
class TestMapRef(Message): map_field = MapField(StringField(), ReferenceField(Test()))
class TestMessageThree(Message): name = StringField() ref = ReferenceField(TestMessageOne())
class TestMessageTwo(Message): __filename__ = "test" name = StringField()
class TestBlueprintMessage(Message): __filename__ = "test_blueprint" name = StringField()
class CompositeMessage(TestORMMessage): ref_field = ReferenceField(SimpleMessage()) list_test_field = RepeatedField(ReferenceField(SimpleMessage())) list_int_field = RepeatedField(Int32Field()) map_field = MapField(StringField(), ReferenceField(SimpleMessage()))