예제 #1
0
class OptionalNested(Model):
    x = props.Integer()
예제 #2
0
class DeepD(Model):
    x = props.Integer()
예제 #3
0
class Nested(Model):
    y = props.Integer()
    z = props.Integer(indexed=True)
예제 #4
0
class ModelWithRepeatedIndexedInteger(Model):
    xs = props.Integer(indexed=True, repeated=True)
예제 #5
0
class ModelWithCustomPropertyName(Model):
    x = props.Integer(name="y")
예제 #6
0
class ModelWithDefaulInteger(Model):
    x = props.Integer(default=42)
예제 #7
0
class ModelWithRepeatedInteger(Model):
    xs = props.Integer(repeated=True)
예제 #8
0
class ModelWithOptionalIndexedInteger(Model):
    x = props.Integer(indexed=True, optional=True)
예제 #9
0
class ModelWithIndexedInteger(Model):
    x = props.Integer(indexed=True)
예제 #10
0
class ModelWithInteger(Model):
    x = props.Integer()
예제 #11
0
class ModelWithCustomKind(Model):
    _kind = "CustomKind"

    x = props.Integer()
예제 #12
0
class BankAccount(Model):
    balance = props.Integer()