Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / types / gen-py3 / module / builders.pyx
blobe86100e4e9a088e03b1f24a68b94def9edaac23f
2 # Autogenerated by Thrift
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 # @generated
7 cdef class decorated_struct_Builder(thrift.py3.builder.StructBuilder):
8 _struct_type = _module_types.decorated_struct
10 def __iter__(self):
11 yield "field", self.field
13 cdef class ContainerStruct_Builder(thrift.py3.builder.StructBuilder):
14 _struct_type = _module_types.ContainerStruct
16 def __iter__(self):
17 yield "fieldA", self.fieldA
18 yield "fieldB", self.fieldB
19 yield "fieldC", self.fieldC
20 yield "fieldD", self.fieldD
21 yield "fieldE", self.fieldE
22 yield "fieldF", self.fieldF
23 yield "fieldG", self.fieldG
24 yield "fieldH", self.fieldH
26 cdef class CppTypeStruct_Builder(thrift.py3.builder.StructBuilder):
27 _struct_type = _module_types.CppTypeStruct
29 def __iter__(self):
30 yield "fieldA", self.fieldA
32 cdef class VirtualStruct_Builder(thrift.py3.builder.StructBuilder):
33 _struct_type = _module_types.VirtualStruct
35 def __iter__(self):
36 yield "MyIntField", self.MyIntField
38 cdef class MyStructWithForwardRefEnum_Builder(thrift.py3.builder.StructBuilder):
39 _struct_type = _module_types.MyStructWithForwardRefEnum
41 def __iter__(self):
42 yield "a", self.a
43 yield "b", self.b
45 cdef class TrivialNumeric_Builder(thrift.py3.builder.StructBuilder):
46 _struct_type = _module_types.TrivialNumeric
48 def __iter__(self):
49 yield "a", self.a
50 yield "b", self.b
52 cdef class TrivialNestedWithDefault_Builder(thrift.py3.builder.StructBuilder):
53 _struct_type = _module_types.TrivialNestedWithDefault
55 def __iter__(self):
56 yield "z", self.z
57 yield "n", self.n
59 cdef class ComplexString_Builder(thrift.py3.builder.StructBuilder):
60 _struct_type = _module_types.ComplexString
62 def __iter__(self):
63 yield "a", self.a
64 yield "b", self.b
66 cdef class ComplexNestedWithDefault_Builder(thrift.py3.builder.StructBuilder):
67 _struct_type = _module_types.ComplexNestedWithDefault
69 def __iter__(self):
70 yield "z", self.z
71 yield "n", self.n
73 cdef class MinPadding_Builder(thrift.py3.builder.StructBuilder):
74 _struct_type = _module_types.MinPadding
76 def __iter__(self):
77 yield "small", self.small
78 yield "big", self.big
79 yield "medium", self.medium
80 yield "biggish", self.biggish
81 yield "tiny", self.tiny
83 cdef class MyStruct_Builder(thrift.py3.builder.StructBuilder):
84 _struct_type = _module_types.MyStruct
86 def __iter__(self):
87 yield "MyIntField", self.MyIntField
88 yield "MyStringField", self.MyStringField
89 yield "majorVer", self.majorVer
90 yield "data", self.data
92 cdef class MyDataItem_Builder(thrift.py3.builder.StructBuilder):
93 _struct_type = _module_types.MyDataItem
95 def __iter__(self):
96 pass
98 cdef class Renaming_Builder(thrift.py3.builder.StructBuilder):
99 _struct_type = _module_types.Renaming
101 def __iter__(self):
102 yield "foo", self.foo
104 cdef class AnnotatedTypes_Builder(thrift.py3.builder.StructBuilder):
105 _struct_type = _module_types.AnnotatedTypes
107 def __iter__(self):
108 yield "binary_field", self.binary_field
109 yield "list_field", self.list_field
111 cdef class ForwardUsageRoot_Builder(thrift.py3.builder.StructBuilder):
112 _struct_type = _module_types.ForwardUsageRoot
114 def __iter__(self):
115 yield "ForwardUsageStruct", self.ForwardUsageStruct
116 yield "ForwardUsageByRef", self.ForwardUsageByRef
118 cdef class ForwardUsageStruct_Builder(thrift.py3.builder.StructBuilder):
119 _struct_type = _module_types.ForwardUsageStruct
121 def __iter__(self):
122 yield "foo", self.foo
124 cdef class ForwardUsageByRef_Builder(thrift.py3.builder.StructBuilder):
125 _struct_type = _module_types.ForwardUsageByRef
127 def __iter__(self):
128 yield "foo", self.foo
130 cdef class NoexceptMoveEmpty_Builder(thrift.py3.builder.StructBuilder):
131 _struct_type = _module_types.NoexceptMoveEmpty
133 def __iter__(self):
134 pass
136 cdef class NoexceptMoveSimpleStruct_Builder(thrift.py3.builder.StructBuilder):
137 _struct_type = _module_types.NoexceptMoveSimpleStruct
139 def __iter__(self):
140 yield "boolField", self.boolField
142 cdef class NoexceptMoveComplexStruct_Builder(thrift.py3.builder.StructBuilder):
143 _struct_type = _module_types.NoexceptMoveComplexStruct
145 def __iter__(self):
146 yield "MyBoolField", self.MyBoolField
147 yield "MyIntField", self.MyIntField
148 yield "MyStringField", self.MyStringField
149 yield "MyStringField2", self.MyStringField2
150 yield "MyBinaryField", self.MyBinaryField
151 yield "MyBinaryField2", self.MyBinaryField2
152 yield "MyBinaryField3", self.MyBinaryField3
153 yield "MyBinaryListField4", self.MyBinaryListField4
154 yield "MyMapEnumAndInt", self.MyMapEnumAndInt
156 cdef class NoExceptMoveUnion_Builder(thrift.py3.builder.StructBuilder):
157 _struct_type = _module_types.NoExceptMoveUnion
159 def __iter__(self):
160 yield "string_field", self.string_field
161 yield "i32_field", self.i32_field
163 cdef class AllocatorAware_Builder(thrift.py3.builder.StructBuilder):
164 _struct_type = _module_types.AllocatorAware
166 def __iter__(self):
167 yield "aa_list", self.aa_list
168 yield "aa_set", self.aa_set
169 yield "aa_map", self.aa_map
170 yield "aa_string", self.aa_string
171 yield "not_a_container", self.not_a_container
172 yield "aa_unique", self.aa_unique
173 yield "aa_shared", self.aa_shared
175 cdef class AllocatorAware2_Builder(thrift.py3.builder.StructBuilder):
176 _struct_type = _module_types.AllocatorAware2
178 def __iter__(self):
179 yield "not_a_container", self.not_a_container
181 cdef class TypedefStruct_Builder(thrift.py3.builder.StructBuilder):
182 _struct_type = _module_types.TypedefStruct
184 def __iter__(self):
185 yield "i32_field", self.i32_field
186 yield "IntTypedef_field", self.IntTypedef_field
187 yield "UintTypedef_field", self.UintTypedef_field
189 cdef class StructWithDoubleUnderscores_Builder(thrift.py3.builder.StructBuilder):
190 _struct_type = _module_types.StructWithDoubleUnderscores
192 def __iter__(self):
193 yield "__field", self.__field