@@ -17,22 +17,22 @@ const capnp_ts_1 = require("capnp-ts");
17
17
exports . _capnpFileId = BigInt ( "0xb597bf4897e54f89" ) ;
18
18
class AddressBook extends capnp_ts_1 . Struct {
19
19
adoptPeople ( value ) {
20
- capnp_ts_1 . utils . adopt ( value , capnp_ts_1 . utils . getPointer ( 0 , this ) ) ;
20
+ capnp_ts_1 . Struct . adopt ( value , capnp_ts_1 . Struct . getPointer ( 0 , this ) ) ;
21
21
}
22
22
disownPeople ( ) {
23
- return capnp_ts_1 . utils . disown ( this . getPeople ( ) ) ;
23
+ return capnp_ts_1 . Struct . disown ( this . getPeople ( ) ) ;
24
24
}
25
25
getPeople ( ) {
26
- return capnp_ts_1 . utils . getList ( 0 , AddressBook . _People , this ) ;
26
+ return capnp_ts_1 . Struct . getList ( 0 , AddressBook . _People , this ) ;
27
27
}
28
28
hasPeople ( ) {
29
- return ! capnp_ts_1 . utils . isNull ( capnp_ts_1 . utils . getPointer ( 0 , this ) ) ;
29
+ return ! capnp_ts_1 . Struct . isNull ( capnp_ts_1 . Struct . getPointer ( 0 , this ) ) ;
30
30
}
31
31
initPeople ( length ) {
32
- return capnp_ts_1 . utils . initList ( 0 , AddressBook . _People , length , this ) ;
32
+ return capnp_ts_1 . Struct . initList ( 0 , AddressBook . _People , length , this ) ;
33
33
}
34
34
setPeople ( value ) {
35
- capnp_ts_1 . utils . copyFrom ( value , capnp_ts_1 . utils . getPointer ( 0 , this ) ) ;
35
+ capnp_ts_1 . Struct . copyFrom ( value , capnp_ts_1 . Struct . getPointer ( 0 , this ) ) ;
36
36
}
37
37
toString ( ) {
38
38
return "AddressBook_" + super . toString ( ) ;
@@ -55,16 +55,16 @@ var Person_PhoneNumber_Type;
55
55
) ;
56
56
class Person_PhoneNumber extends capnp_ts_1 . Struct {
57
57
getNumber ( ) {
58
- return capnp_ts_1 . utils . getText ( 0 , this ) ;
58
+ return capnp_ts_1 . Struct . getText ( 0 , this ) ;
59
59
}
60
60
setNumber ( value ) {
61
- capnp_ts_1 . utils . setText ( 0 , value , this ) ;
61
+ capnp_ts_1 . Struct . setText ( 0 , value , this ) ;
62
62
}
63
63
getType ( ) {
64
- return capnp_ts_1 . utils . getUint16 ( 0 , this ) ;
64
+ return capnp_ts_1 . Struct . getUint16 ( 0 , this ) ;
65
65
}
66
66
setType ( value ) {
67
- capnp_ts_1 . utils . setUint16 ( 0 , value , this ) ;
67
+ capnp_ts_1 . Struct . setUint16 ( 0 , value , this ) ;
68
68
}
69
69
toString ( ) {
70
70
return "Person_PhoneNumber_" + super . toString ( ) ;
@@ -92,74 +92,74 @@ var Person_Employment_Which;
92
92
) ;
93
93
class Person_Employment extends capnp_ts_1 . Struct {
94
94
getEmployer ( ) {
95
- capnp_ts_1 . utils . testWhich (
95
+ capnp_ts_1 . Struct . testWhich (
96
96
"employer" ,
97
- capnp_ts_1 . utils . getUint16 ( 6 , this ) ,
97
+ capnp_ts_1 . Struct . getUint16 ( 6 , this ) ,
98
98
1 ,
99
99
this ,
100
100
) ;
101
- return capnp_ts_1 . utils . getText ( 3 , this ) ;
101
+ return capnp_ts_1 . Struct . getText ( 3 , this ) ;
102
102
}
103
103
isEmployer ( ) {
104
- return capnp_ts_1 . utils . getUint16 ( 6 , this ) === 1 ;
104
+ return capnp_ts_1 . Struct . getUint16 ( 6 , this ) === 1 ;
105
105
}
106
106
setEmployer ( value ) {
107
- capnp_ts_1 . utils . setUint16 ( 6 , 1 , this ) ;
108
- capnp_ts_1 . utils . setText ( 3 , value , this ) ;
107
+ capnp_ts_1 . Struct . setUint16 ( 6 , 1 , this ) ;
108
+ capnp_ts_1 . Struct . setText ( 3 , value , this ) ;
109
109
}
110
110
getSchool ( ) {
111
- capnp_ts_1 . utils . testWhich (
111
+ capnp_ts_1 . Struct . testWhich (
112
112
"school" ,
113
- capnp_ts_1 . utils . getUint16 ( 6 , this ) ,
113
+ capnp_ts_1 . Struct . getUint16 ( 6 , this ) ,
114
114
2 ,
115
115
this ,
116
116
) ;
117
- return capnp_ts_1 . utils . getText ( 3 , this ) ;
117
+ return capnp_ts_1 . Struct . getText ( 3 , this ) ;
118
118
}
119
119
isSchool ( ) {
120
- return capnp_ts_1 . utils . getUint16 ( 6 , this ) === 2 ;
120
+ return capnp_ts_1 . Struct . getUint16 ( 6 , this ) === 2 ;
121
121
}
122
122
setSchool ( value ) {
123
- capnp_ts_1 . utils . setUint16 ( 6 , 2 , this ) ;
124
- capnp_ts_1 . utils . setText ( 3 , value , this ) ;
123
+ capnp_ts_1 . Struct . setUint16 ( 6 , 2 , this ) ;
124
+ capnp_ts_1 . Struct . setText ( 3 , value , this ) ;
125
125
}
126
126
getUnemployed ( ) {
127
- capnp_ts_1 . utils . testWhich (
127
+ capnp_ts_1 . Struct . testWhich (
128
128
"unemployed" ,
129
- capnp_ts_1 . utils . getUint16 ( 6 , this ) ,
129
+ capnp_ts_1 . Struct . getUint16 ( 6 , this ) ,
130
130
0 ,
131
131
this ,
132
132
) ;
133
- return capnp_ts_1 . utils . getBit ( 32 , this ) ;
133
+ return capnp_ts_1 . Struct . getBit ( 32 , this ) ;
134
134
}
135
135
isUnemployed ( ) {
136
- return capnp_ts_1 . utils . getUint16 ( 6 , this ) === 0 ;
136
+ return capnp_ts_1 . Struct . getUint16 ( 6 , this ) === 0 ;
137
137
}
138
138
setUnemployed ( value ) {
139
- capnp_ts_1 . utils . setUint16 ( 6 , 0 , this ) ;
140
- capnp_ts_1 . utils . setBit ( 32 , value , this ) ;
139
+ capnp_ts_1 . Struct . setUint16 ( 6 , 0 , this ) ;
140
+ capnp_ts_1 . Struct . setBit ( 32 , value , this ) ;
141
141
}
142
142
getSelfEmployed ( ) {
143
- capnp_ts_1 . utils . testWhich (
143
+ capnp_ts_1 . Struct . testWhich (
144
144
"selfEmployed" ,
145
- capnp_ts_1 . utils . getUint16 ( 6 , this ) ,
145
+ capnp_ts_1 . Struct . getUint16 ( 6 , this ) ,
146
146
3 ,
147
147
this ,
148
148
) ;
149
- return capnp_ts_1 . utils . getBit ( 32 , this ) ;
149
+ return capnp_ts_1 . Struct . getBit ( 32 , this ) ;
150
150
}
151
151
isSelfEmployed ( ) {
152
- return capnp_ts_1 . utils . getUint16 ( 6 , this ) === 3 ;
152
+ return capnp_ts_1 . Struct . getUint16 ( 6 , this ) === 3 ;
153
153
}
154
154
setSelfEmployed ( value ) {
155
- capnp_ts_1 . utils . setUint16 ( 6 , 3 , this ) ;
156
- capnp_ts_1 . utils . setBit ( 32 , value , this ) ;
155
+ capnp_ts_1 . Struct . setUint16 ( 6 , 3 , this ) ;
156
+ capnp_ts_1 . Struct . setBit ( 32 , value , this ) ;
157
157
}
158
158
toString ( ) {
159
159
return "Person_Employment_" + super . toString ( ) ;
160
160
}
161
161
which ( ) {
162
- return capnp_ts_1 . utils . getUint16 ( 6 , this ) ;
162
+ return capnp_ts_1 . Struct . getUint16 ( 6 , this ) ;
163
163
}
164
164
}
165
165
exports . Person_Employment = Person_Employment ;
@@ -174,46 +174,46 @@ Person_Employment._capnp = {
174
174
} ;
175
175
class Person extends capnp_ts_1 . Struct {
176
176
getId ( ) {
177
- return capnp_ts_1 . utils . getUint32 ( 0 , this ) ;
177
+ return capnp_ts_1 . Struct . getUint32 ( 0 , this ) ;
178
178
}
179
179
setId ( value ) {
180
- capnp_ts_1 . utils . setUint32 ( 0 , value , this ) ;
180
+ capnp_ts_1 . Struct . setUint32 ( 0 , value , this ) ;
181
181
}
182
182
getName ( ) {
183
- return capnp_ts_1 . utils . getText ( 0 , this ) ;
183
+ return capnp_ts_1 . Struct . getText ( 0 , this ) ;
184
184
}
185
185
setName ( value ) {
186
- capnp_ts_1 . utils . setText ( 0 , value , this ) ;
186
+ capnp_ts_1 . Struct . setText ( 0 , value , this ) ;
187
187
}
188
188
getEmail ( ) {
189
- return capnp_ts_1 . utils . getText ( 1 , this ) ;
189
+ return capnp_ts_1 . Struct . getText ( 1 , this ) ;
190
190
}
191
191
setEmail ( value ) {
192
- capnp_ts_1 . utils . setText ( 1 , value , this ) ;
192
+ capnp_ts_1 . Struct . setText ( 1 , value , this ) ;
193
193
}
194
194
adoptPhones ( value ) {
195
- capnp_ts_1 . utils . adopt ( value , capnp_ts_1 . utils . getPointer ( 2 , this ) ) ;
195
+ capnp_ts_1 . Struct . adopt ( value , capnp_ts_1 . Struct . getPointer ( 2 , this ) ) ;
196
196
}
197
197
disownPhones ( ) {
198
- return capnp_ts_1 . utils . disown ( this . getPhones ( ) ) ;
198
+ return capnp_ts_1 . Struct . disown ( this . getPhones ( ) ) ;
199
199
}
200
200
getPhones ( ) {
201
- return capnp_ts_1 . utils . getList ( 2 , Person . _Phones , this ) ;
201
+ return capnp_ts_1 . Struct . getList ( 2 , Person . _Phones , this ) ;
202
202
}
203
203
hasPhones ( ) {
204
- return ! capnp_ts_1 . utils . isNull ( capnp_ts_1 . utils . getPointer ( 2 , this ) ) ;
204
+ return ! capnp_ts_1 . Struct . isNull ( capnp_ts_1 . Struct . getPointer ( 2 , this ) ) ;
205
205
}
206
206
initPhones ( length ) {
207
- return capnp_ts_1 . utils . initList ( 2 , Person . _Phones , length , this ) ;
207
+ return capnp_ts_1 . Struct . initList ( 2 , Person . _Phones , length , this ) ;
208
208
}
209
209
setPhones ( value ) {
210
- capnp_ts_1 . utils . copyFrom ( value , capnp_ts_1 . utils . getPointer ( 2 , this ) ) ;
210
+ capnp_ts_1 . Struct . copyFrom ( value , capnp_ts_1 . Struct . getPointer ( 2 , this ) ) ;
211
211
}
212
212
getEmployment ( ) {
213
- return capnp_ts_1 . utils . getAs ( Person_Employment , this ) ;
213
+ return capnp_ts_1 . Struct . getAs ( Person_Employment , this ) ;
214
214
}
215
215
initEmployment ( ) {
216
- return capnp_ts_1 . utils . getAs ( Person_Employment , this ) ;
216
+ return capnp_ts_1 . Struct . getAs ( Person_Employment , this ) ;
217
217
}
218
218
toString ( ) {
219
219
return "Person_" + super . toString ( ) ;
0 commit comments