예제 #1
0
        class MyMessage(dynamic.Message):

            f1 = dynamic.IntegerField(1)

            class Nested(dynamic.Message):

                f2 = dynamic.IntegerField(1)
예제 #2
0
            class MyMessage(dynamic.Message):

                f1 = dynamic.IntegerField(
                    1, variant=descriptor.FieldDescriptor.TYPE_STRING)
예제 #3
0
        class MyMessage(dynamic.Message):

            f1 = dynamic.IntegerField(1)
            f2 = dynamic.IntegerField(
                2, variant=descriptor.FieldDescriptor.TYPE_UINT32)
예제 #4
0
            class MyMessage(dynamic.Message):

                f1 = dynamic.IntegerField(1, repeated=True, default=[1, 2, 3])
예제 #5
0
        class MyMessage(dynamic.Message):

            f1 = dynamic.IntegerField(1, default=10)
예제 #6
0
            class MyMessage(dynamic.Message):

                f1 = dynamic.IntegerField(1, required=True, repeated=True)
예제 #7
0
        class MyMessage(dynamic.Message):

            f1 = dynamic.IntegerField(1, repeated=True)
            f2 = dynamic.StringField(2, repeated=True)
예제 #8
0
        class MyMessage(dynamic.Message):

            f1 = dynamic.IntegerField(1)
            f2 = dynamic.StringField(2)