@ccmaymay/concrete 4.15.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ActiveLearnerClientService.js +249 -249
- package/ActiveLearnerServerService.js +642 -642
- package/AnnotateCommunicationService.js +696 -696
- package/AnnotateWithContextService.js +298 -298
- package/FeedbackService.js +750 -750
- package/FetchCommunicationService.js +709 -709
- package/README.md +125 -0
- package/ResultsServerService.js +2138 -2138
- package/SearchProxyService.js +962 -962
- package/SearchService.js +685 -685
- package/Service.js +373 -373
- package/StoreCommunicationService.js +255 -255
- package/SummarizationService.js +479 -479
- package/access_types.js +168 -168
- package/annotate_types.js +26 -26
- package/audio_types.js +110 -110
- package/cluster_types.js +398 -398
- package/communication_fu.js +432 -432
- package/communication_types.js +845 -845
- package/concrete.js +64 -64
- package/context_types.js +65 -65
- package/email_types.js +477 -477
- package/entities_types.js +658 -658
- package/ex_types.js +82 -82
- package/language_types.js +123 -123
- package/learn_types.js +207 -207
- package/linking_types.js +286 -286
- package/metadata_types.js +926 -926
- package/nitf_types.js +1005 -1005
- package/package.json +26 -5
- package/results_types.js +18 -18
- package/search_types.js +661 -661
- package/services_types.js +384 -384
- package/situations_types.js +1268 -1268
- package/spans_types.js +151 -151
- package/structure_types.js +2311 -2311
- package/summarization_types.js +433 -433
- package/tokenization_fu.js +33 -33
- package/tokentagging_fu.js +241 -241
- package/twitter_types.js +1553 -1553
- package/util.js +117 -117
- package/uuid_types.js +67 -67
package/metadata_types.js
CHANGED
@@ -1,926 +1,926 @@
|
|
1
|
-
//
|
2
|
-
// Autogenerated by Thrift Compiler (0.15.0)
|
3
|
-
//
|
4
|
-
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
-
//
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
const thrift = require('thrift');
|
9
|
-
const Thrift = thrift.Thrift;
|
10
|
-
const Int64 = require('node-int64');
|
11
|
-
|
12
|
-
const uuid_ttypes = require('./uuid_types');
|
13
|
-
const twitter_ttypes = require('./twitter_types');
|
14
|
-
const email_ttypes = require('./email_types');
|
15
|
-
const nitf_ttypes = require('./nitf_types');
|
16
|
-
|
17
|
-
|
18
|
-
const ttypes = module.exports = {};
|
19
|
-
const TheoryDependencies = module.exports.TheoryDependencies = class {
|
20
|
-
constructor(args) {
|
21
|
-
this.sectionTheoryList = null;
|
22
|
-
this.sentenceTheoryList = null;
|
23
|
-
this.tokenizationTheoryList = null;
|
24
|
-
this.posTagTheoryList = null;
|
25
|
-
this.nerTagTheoryList = null;
|
26
|
-
this.lemmaTheoryList = null;
|
27
|
-
this.langIdTheoryList = null;
|
28
|
-
this.parseTheoryList = null;
|
29
|
-
this.dependencyParseTheoryList = null;
|
30
|
-
this.tokenAnnotationTheoryList = null;
|
31
|
-
this.entityMentionSetTheoryList = null;
|
32
|
-
this.entitySetTheoryList = null;
|
33
|
-
this.situationMentionSetTheoryList = null;
|
34
|
-
this.situationSetTheoryList = null;
|
35
|
-
this.communicationsList = null;
|
36
|
-
if (args) {
|
37
|
-
if (args.sectionTheoryList !== undefined && args.sectionTheoryList !== null) {
|
38
|
-
this.sectionTheoryList = Thrift.copyList(args.sectionTheoryList, [uuid_ttypes.UUID]);
|
39
|
-
}
|
40
|
-
if (args.sentenceTheoryList !== undefined && args.sentenceTheoryList !== null) {
|
41
|
-
this.sentenceTheoryList = Thrift.copyList(args.sentenceTheoryList, [uuid_ttypes.UUID]);
|
42
|
-
}
|
43
|
-
if (args.tokenizationTheoryList !== undefined && args.tokenizationTheoryList !== null) {
|
44
|
-
this.tokenizationTheoryList = Thrift.copyList(args.tokenizationTheoryList, [uuid_ttypes.UUID]);
|
45
|
-
}
|
46
|
-
if (args.posTagTheoryList !== undefined && args.posTagTheoryList !== null) {
|
47
|
-
this.posTagTheoryList = Thrift.copyList(args.posTagTheoryList, [uuid_ttypes.UUID]);
|
48
|
-
}
|
49
|
-
if (args.nerTagTheoryList !== undefined && args.nerTagTheoryList !== null) {
|
50
|
-
this.nerTagTheoryList = Thrift.copyList(args.nerTagTheoryList, [uuid_ttypes.UUID]);
|
51
|
-
}
|
52
|
-
if (args.lemmaTheoryList !== undefined && args.lemmaTheoryList !== null) {
|
53
|
-
this.lemmaTheoryList = Thrift.copyList(args.lemmaTheoryList, [uuid_ttypes.UUID]);
|
54
|
-
}
|
55
|
-
if (args.langIdTheoryList !== undefined && args.langIdTheoryList !== null) {
|
56
|
-
this.langIdTheoryList = Thrift.copyList(args.langIdTheoryList, [uuid_ttypes.UUID]);
|
57
|
-
}
|
58
|
-
if (args.parseTheoryList !== undefined && args.parseTheoryList !== null) {
|
59
|
-
this.parseTheoryList = Thrift.copyList(args.parseTheoryList, [uuid_ttypes.UUID]);
|
60
|
-
}
|
61
|
-
if (args.dependencyParseTheoryList !== undefined && args.dependencyParseTheoryList !== null) {
|
62
|
-
this.dependencyParseTheoryList = Thrift.copyList(args.dependencyParseTheoryList, [uuid_ttypes.UUID]);
|
63
|
-
}
|
64
|
-
if (args.tokenAnnotationTheoryList !== undefined && args.tokenAnnotationTheoryList !== null) {
|
65
|
-
this.tokenAnnotationTheoryList = Thrift.copyList(args.tokenAnnotationTheoryList, [uuid_ttypes.UUID]);
|
66
|
-
}
|
67
|
-
if (args.entityMentionSetTheoryList !== undefined && args.entityMentionSetTheoryList !== null) {
|
68
|
-
this.entityMentionSetTheoryList = Thrift.copyList(args.entityMentionSetTheoryList, [uuid_ttypes.UUID]);
|
69
|
-
}
|
70
|
-
if (args.entitySetTheoryList !== undefined && args.entitySetTheoryList !== null) {
|
71
|
-
this.entitySetTheoryList = Thrift.copyList(args.entitySetTheoryList, [uuid_ttypes.UUID]);
|
72
|
-
}
|
73
|
-
if (args.situationMentionSetTheoryList !== undefined && args.situationMentionSetTheoryList !== null) {
|
74
|
-
this.situationMentionSetTheoryList = Thrift.copyList(args.situationMentionSetTheoryList, [uuid_ttypes.UUID]);
|
75
|
-
}
|
76
|
-
if (args.situationSetTheoryList !== undefined && args.situationSetTheoryList !== null) {
|
77
|
-
this.situationSetTheoryList = Thrift.copyList(args.situationSetTheoryList, [uuid_ttypes.UUID]);
|
78
|
-
}
|
79
|
-
if (args.communicationsList !== undefined && args.communicationsList !== null) {
|
80
|
-
this.communicationsList = Thrift.copyList(args.communicationsList, [uuid_ttypes.UUID]);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
read (input) {
|
86
|
-
input.readStructBegin();
|
87
|
-
while (true) {
|
88
|
-
const ret = input.readFieldBegin();
|
89
|
-
const ftype = ret.ftype;
|
90
|
-
const fid = ret.fid;
|
91
|
-
if (ftype == Thrift.Type.STOP) {
|
92
|
-
break;
|
93
|
-
}
|
94
|
-
switch (fid) {
|
95
|
-
case 1:
|
96
|
-
if (ftype == Thrift.Type.LIST) {
|
97
|
-
this.sectionTheoryList = [];
|
98
|
-
const _rtmp31 = input.readListBegin();
|
99
|
-
const _size0 = _rtmp31.size || 0;
|
100
|
-
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
101
|
-
let elem3 = null;
|
102
|
-
elem3 = new uuid_ttypes.UUID();
|
103
|
-
elem3.read(input);
|
104
|
-
this.sectionTheoryList.push(elem3);
|
105
|
-
}
|
106
|
-
input.readListEnd();
|
107
|
-
} else {
|
108
|
-
input.skip(ftype);
|
109
|
-
}
|
110
|
-
break;
|
111
|
-
case 2:
|
112
|
-
if (ftype == Thrift.Type.LIST) {
|
113
|
-
this.sentenceTheoryList = [];
|
114
|
-
const _rtmp35 = input.readListBegin();
|
115
|
-
const _size4 = _rtmp35.size || 0;
|
116
|
-
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
117
|
-
let elem7 = null;
|
118
|
-
elem7 = new uuid_ttypes.UUID();
|
119
|
-
elem7.read(input);
|
120
|
-
this.sentenceTheoryList.push(elem7);
|
121
|
-
}
|
122
|
-
input.readListEnd();
|
123
|
-
} else {
|
124
|
-
input.skip(ftype);
|
125
|
-
}
|
126
|
-
break;
|
127
|
-
case 3:
|
128
|
-
if (ftype == Thrift.Type.LIST) {
|
129
|
-
this.tokenizationTheoryList = [];
|
130
|
-
const _rtmp39 = input.readListBegin();
|
131
|
-
const _size8 = _rtmp39.size || 0;
|
132
|
-
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
133
|
-
let elem11 = null;
|
134
|
-
elem11 = new uuid_ttypes.UUID();
|
135
|
-
elem11.read(input);
|
136
|
-
this.tokenizationTheoryList.push(elem11);
|
137
|
-
}
|
138
|
-
input.readListEnd();
|
139
|
-
} else {
|
140
|
-
input.skip(ftype);
|
141
|
-
}
|
142
|
-
break;
|
143
|
-
case 4:
|
144
|
-
if (ftype == Thrift.Type.LIST) {
|
145
|
-
this.posTagTheoryList = [];
|
146
|
-
const _rtmp313 = input.readListBegin();
|
147
|
-
const _size12 = _rtmp313.size || 0;
|
148
|
-
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
149
|
-
let elem15 = null;
|
150
|
-
elem15 = new uuid_ttypes.UUID();
|
151
|
-
elem15.read(input);
|
152
|
-
this.posTagTheoryList.push(elem15);
|
153
|
-
}
|
154
|
-
input.readListEnd();
|
155
|
-
} else {
|
156
|
-
input.skip(ftype);
|
157
|
-
}
|
158
|
-
break;
|
159
|
-
case 5:
|
160
|
-
if (ftype == Thrift.Type.LIST) {
|
161
|
-
this.nerTagTheoryList = [];
|
162
|
-
const _rtmp317 = input.readListBegin();
|
163
|
-
const _size16 = _rtmp317.size || 0;
|
164
|
-
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
165
|
-
let elem19 = null;
|
166
|
-
elem19 = new uuid_ttypes.UUID();
|
167
|
-
elem19.read(input);
|
168
|
-
this.nerTagTheoryList.push(elem19);
|
169
|
-
}
|
170
|
-
input.readListEnd();
|
171
|
-
} else {
|
172
|
-
input.skip(ftype);
|
173
|
-
}
|
174
|
-
break;
|
175
|
-
case 6:
|
176
|
-
if (ftype == Thrift.Type.LIST) {
|
177
|
-
this.lemmaTheoryList = [];
|
178
|
-
const _rtmp321 = input.readListBegin();
|
179
|
-
const _size20 = _rtmp321.size || 0;
|
180
|
-
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
181
|
-
let elem23 = null;
|
182
|
-
elem23 = new uuid_ttypes.UUID();
|
183
|
-
elem23.read(input);
|
184
|
-
this.lemmaTheoryList.push(elem23);
|
185
|
-
}
|
186
|
-
input.readListEnd();
|
187
|
-
} else {
|
188
|
-
input.skip(ftype);
|
189
|
-
}
|
190
|
-
break;
|
191
|
-
case 7:
|
192
|
-
if (ftype == Thrift.Type.LIST) {
|
193
|
-
this.langIdTheoryList = [];
|
194
|
-
const _rtmp325 = input.readListBegin();
|
195
|
-
const _size24 = _rtmp325.size || 0;
|
196
|
-
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
197
|
-
let elem27 = null;
|
198
|
-
elem27 = new uuid_ttypes.UUID();
|
199
|
-
elem27.read(input);
|
200
|
-
this.langIdTheoryList.push(elem27);
|
201
|
-
}
|
202
|
-
input.readListEnd();
|
203
|
-
} else {
|
204
|
-
input.skip(ftype);
|
205
|
-
}
|
206
|
-
break;
|
207
|
-
case 8:
|
208
|
-
if (ftype == Thrift.Type.LIST) {
|
209
|
-
this.parseTheoryList = [];
|
210
|
-
const _rtmp329 = input.readListBegin();
|
211
|
-
const _size28 = _rtmp329.size || 0;
|
212
|
-
for (let _i30 = 0; _i30 < _size28; ++_i30) {
|
213
|
-
let elem31 = null;
|
214
|
-
elem31 = new uuid_ttypes.UUID();
|
215
|
-
elem31.read(input);
|
216
|
-
this.parseTheoryList.push(elem31);
|
217
|
-
}
|
218
|
-
input.readListEnd();
|
219
|
-
} else {
|
220
|
-
input.skip(ftype);
|
221
|
-
}
|
222
|
-
break;
|
223
|
-
case 9:
|
224
|
-
if (ftype == Thrift.Type.LIST) {
|
225
|
-
this.dependencyParseTheoryList = [];
|
226
|
-
const _rtmp333 = input.readListBegin();
|
227
|
-
const _size32 = _rtmp333.size || 0;
|
228
|
-
for (let _i34 = 0; _i34 < _size32; ++_i34) {
|
229
|
-
let elem35 = null;
|
230
|
-
elem35 = new uuid_ttypes.UUID();
|
231
|
-
elem35.read(input);
|
232
|
-
this.dependencyParseTheoryList.push(elem35);
|
233
|
-
}
|
234
|
-
input.readListEnd();
|
235
|
-
} else {
|
236
|
-
input.skip(ftype);
|
237
|
-
}
|
238
|
-
break;
|
239
|
-
case 10:
|
240
|
-
if (ftype == Thrift.Type.LIST) {
|
241
|
-
this.tokenAnnotationTheoryList = [];
|
242
|
-
const _rtmp337 = input.readListBegin();
|
243
|
-
const _size36 = _rtmp337.size || 0;
|
244
|
-
for (let _i38 = 0; _i38 < _size36; ++_i38) {
|
245
|
-
let elem39 = null;
|
246
|
-
elem39 = new uuid_ttypes.UUID();
|
247
|
-
elem39.read(input);
|
248
|
-
this.tokenAnnotationTheoryList.push(elem39);
|
249
|
-
}
|
250
|
-
input.readListEnd();
|
251
|
-
} else {
|
252
|
-
input.skip(ftype);
|
253
|
-
}
|
254
|
-
break;
|
255
|
-
case 11:
|
256
|
-
if (ftype == Thrift.Type.LIST) {
|
257
|
-
this.entityMentionSetTheoryList = [];
|
258
|
-
const _rtmp341 = input.readListBegin();
|
259
|
-
const _size40 = _rtmp341.size || 0;
|
260
|
-
for (let _i42 = 0; _i42 < _size40; ++_i42) {
|
261
|
-
let elem43 = null;
|
262
|
-
elem43 = new uuid_ttypes.UUID();
|
263
|
-
elem43.read(input);
|
264
|
-
this.entityMentionSetTheoryList.push(elem43);
|
265
|
-
}
|
266
|
-
input.readListEnd();
|
267
|
-
} else {
|
268
|
-
input.skip(ftype);
|
269
|
-
}
|
270
|
-
break;
|
271
|
-
case 12:
|
272
|
-
if (ftype == Thrift.Type.LIST) {
|
273
|
-
this.entitySetTheoryList = [];
|
274
|
-
const _rtmp345 = input.readListBegin();
|
275
|
-
const _size44 = _rtmp345.size || 0;
|
276
|
-
for (let _i46 = 0; _i46 < _size44; ++_i46) {
|
277
|
-
let elem47 = null;
|
278
|
-
elem47 = new uuid_ttypes.UUID();
|
279
|
-
elem47.read(input);
|
280
|
-
this.entitySetTheoryList.push(elem47);
|
281
|
-
}
|
282
|
-
input.readListEnd();
|
283
|
-
} else {
|
284
|
-
input.skip(ftype);
|
285
|
-
}
|
286
|
-
break;
|
287
|
-
case 13:
|
288
|
-
if (ftype == Thrift.Type.LIST) {
|
289
|
-
this.situationMentionSetTheoryList = [];
|
290
|
-
const _rtmp349 = input.readListBegin();
|
291
|
-
const _size48 = _rtmp349.size || 0;
|
292
|
-
for (let _i50 = 0; _i50 < _size48; ++_i50) {
|
293
|
-
let elem51 = null;
|
294
|
-
elem51 = new uuid_ttypes.UUID();
|
295
|
-
elem51.read(input);
|
296
|
-
this.situationMentionSetTheoryList.push(elem51);
|
297
|
-
}
|
298
|
-
input.readListEnd();
|
299
|
-
} else {
|
300
|
-
input.skip(ftype);
|
301
|
-
}
|
302
|
-
break;
|
303
|
-
case 14:
|
304
|
-
if (ftype == Thrift.Type.LIST) {
|
305
|
-
this.situationSetTheoryList = [];
|
306
|
-
const _rtmp353 = input.readListBegin();
|
307
|
-
const _size52 = _rtmp353.size || 0;
|
308
|
-
for (let _i54 = 0; _i54 < _size52; ++_i54) {
|
309
|
-
let elem55 = null;
|
310
|
-
elem55 = new uuid_ttypes.UUID();
|
311
|
-
elem55.read(input);
|
312
|
-
this.situationSetTheoryList.push(elem55);
|
313
|
-
}
|
314
|
-
input.readListEnd();
|
315
|
-
} else {
|
316
|
-
input.skip(ftype);
|
317
|
-
}
|
318
|
-
break;
|
319
|
-
case 15:
|
320
|
-
if (ftype == Thrift.Type.LIST) {
|
321
|
-
this.communicationsList = [];
|
322
|
-
const _rtmp357 = input.readListBegin();
|
323
|
-
const _size56 = _rtmp357.size || 0;
|
324
|
-
for (let _i58 = 0; _i58 < _size56; ++_i58) {
|
325
|
-
let elem59 = null;
|
326
|
-
elem59 = new uuid_ttypes.UUID();
|
327
|
-
elem59.read(input);
|
328
|
-
this.communicationsList.push(elem59);
|
329
|
-
}
|
330
|
-
input.readListEnd();
|
331
|
-
} else {
|
332
|
-
input.skip(ftype);
|
333
|
-
}
|
334
|
-
break;
|
335
|
-
default:
|
336
|
-
input.skip(ftype);
|
337
|
-
}
|
338
|
-
input.readFieldEnd();
|
339
|
-
}
|
340
|
-
input.readStructEnd();
|
341
|
-
return;
|
342
|
-
}
|
343
|
-
|
344
|
-
write (output) {
|
345
|
-
output.writeStructBegin('TheoryDependencies');
|
346
|
-
if (this.sectionTheoryList !== null && this.sectionTheoryList !== undefined) {
|
347
|
-
output.writeFieldBegin('sectionTheoryList', Thrift.Type.LIST, 1);
|
348
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.sectionTheoryList.length);
|
349
|
-
for (let iter60 in this.sectionTheoryList) {
|
350
|
-
if (this.sectionTheoryList.hasOwnProperty(iter60)) {
|
351
|
-
iter60 = this.sectionTheoryList[iter60];
|
352
|
-
iter60.write(output);
|
353
|
-
}
|
354
|
-
}
|
355
|
-
output.writeListEnd();
|
356
|
-
output.writeFieldEnd();
|
357
|
-
}
|
358
|
-
if (this.sentenceTheoryList !== null && this.sentenceTheoryList !== undefined) {
|
359
|
-
output.writeFieldBegin('sentenceTheoryList', Thrift.Type.LIST, 2);
|
360
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.sentenceTheoryList.length);
|
361
|
-
for (let iter61 in this.sentenceTheoryList) {
|
362
|
-
if (this.sentenceTheoryList.hasOwnProperty(iter61)) {
|
363
|
-
iter61 = this.sentenceTheoryList[iter61];
|
364
|
-
iter61.write(output);
|
365
|
-
}
|
366
|
-
}
|
367
|
-
output.writeListEnd();
|
368
|
-
output.writeFieldEnd();
|
369
|
-
}
|
370
|
-
if (this.tokenizationTheoryList !== null && this.tokenizationTheoryList !== undefined) {
|
371
|
-
output.writeFieldBegin('tokenizationTheoryList', Thrift.Type.LIST, 3);
|
372
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.tokenizationTheoryList.length);
|
373
|
-
for (let iter62 in this.tokenizationTheoryList) {
|
374
|
-
if (this.tokenizationTheoryList.hasOwnProperty(iter62)) {
|
375
|
-
iter62 = this.tokenizationTheoryList[iter62];
|
376
|
-
iter62.write(output);
|
377
|
-
}
|
378
|
-
}
|
379
|
-
output.writeListEnd();
|
380
|
-
output.writeFieldEnd();
|
381
|
-
}
|
382
|
-
if (this.posTagTheoryList !== null && this.posTagTheoryList !== undefined) {
|
383
|
-
output.writeFieldBegin('posTagTheoryList', Thrift.Type.LIST, 4);
|
384
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.posTagTheoryList.length);
|
385
|
-
for (let iter63 in this.posTagTheoryList) {
|
386
|
-
if (this.posTagTheoryList.hasOwnProperty(iter63)) {
|
387
|
-
iter63 = this.posTagTheoryList[iter63];
|
388
|
-
iter63.write(output);
|
389
|
-
}
|
390
|
-
}
|
391
|
-
output.writeListEnd();
|
392
|
-
output.writeFieldEnd();
|
393
|
-
}
|
394
|
-
if (this.nerTagTheoryList !== null && this.nerTagTheoryList !== undefined) {
|
395
|
-
output.writeFieldBegin('nerTagTheoryList', Thrift.Type.LIST, 5);
|
396
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.nerTagTheoryList.length);
|
397
|
-
for (let iter64 in this.nerTagTheoryList) {
|
398
|
-
if (this.nerTagTheoryList.hasOwnProperty(iter64)) {
|
399
|
-
iter64 = this.nerTagTheoryList[iter64];
|
400
|
-
iter64.write(output);
|
401
|
-
}
|
402
|
-
}
|
403
|
-
output.writeListEnd();
|
404
|
-
output.writeFieldEnd();
|
405
|
-
}
|
406
|
-
if (this.lemmaTheoryList !== null && this.lemmaTheoryList !== undefined) {
|
407
|
-
output.writeFieldBegin('lemmaTheoryList', Thrift.Type.LIST, 6);
|
408
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.lemmaTheoryList.length);
|
409
|
-
for (let iter65 in this.lemmaTheoryList) {
|
410
|
-
if (this.lemmaTheoryList.hasOwnProperty(iter65)) {
|
411
|
-
iter65 = this.lemmaTheoryList[iter65];
|
412
|
-
iter65.write(output);
|
413
|
-
}
|
414
|
-
}
|
415
|
-
output.writeListEnd();
|
416
|
-
output.writeFieldEnd();
|
417
|
-
}
|
418
|
-
if (this.langIdTheoryList !== null && this.langIdTheoryList !== undefined) {
|
419
|
-
output.writeFieldBegin('langIdTheoryList', Thrift.Type.LIST, 7);
|
420
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.langIdTheoryList.length);
|
421
|
-
for (let iter66 in this.langIdTheoryList) {
|
422
|
-
if (this.langIdTheoryList.hasOwnProperty(iter66)) {
|
423
|
-
iter66 = this.langIdTheoryList[iter66];
|
424
|
-
iter66.write(output);
|
425
|
-
}
|
426
|
-
}
|
427
|
-
output.writeListEnd();
|
428
|
-
output.writeFieldEnd();
|
429
|
-
}
|
430
|
-
if (this.parseTheoryList !== null && this.parseTheoryList !== undefined) {
|
431
|
-
output.writeFieldBegin('parseTheoryList', Thrift.Type.LIST, 8);
|
432
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.parseTheoryList.length);
|
433
|
-
for (let iter67 in this.parseTheoryList) {
|
434
|
-
if (this.parseTheoryList.hasOwnProperty(iter67)) {
|
435
|
-
iter67 = this.parseTheoryList[iter67];
|
436
|
-
iter67.write(output);
|
437
|
-
}
|
438
|
-
}
|
439
|
-
output.writeListEnd();
|
440
|
-
output.writeFieldEnd();
|
441
|
-
}
|
442
|
-
if (this.dependencyParseTheoryList !== null && this.dependencyParseTheoryList !== undefined) {
|
443
|
-
output.writeFieldBegin('dependencyParseTheoryList', Thrift.Type.LIST, 9);
|
444
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.dependencyParseTheoryList.length);
|
445
|
-
for (let iter68 in this.dependencyParseTheoryList) {
|
446
|
-
if (this.dependencyParseTheoryList.hasOwnProperty(iter68)) {
|
447
|
-
iter68 = this.dependencyParseTheoryList[iter68];
|
448
|
-
iter68.write(output);
|
449
|
-
}
|
450
|
-
}
|
451
|
-
output.writeListEnd();
|
452
|
-
output.writeFieldEnd();
|
453
|
-
}
|
454
|
-
if (this.tokenAnnotationTheoryList !== null && this.tokenAnnotationTheoryList !== undefined) {
|
455
|
-
output.writeFieldBegin('tokenAnnotationTheoryList', Thrift.Type.LIST, 10);
|
456
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.tokenAnnotationTheoryList.length);
|
457
|
-
for (let iter69 in this.tokenAnnotationTheoryList) {
|
458
|
-
if (this.tokenAnnotationTheoryList.hasOwnProperty(iter69)) {
|
459
|
-
iter69 = this.tokenAnnotationTheoryList[iter69];
|
460
|
-
iter69.write(output);
|
461
|
-
}
|
462
|
-
}
|
463
|
-
output.writeListEnd();
|
464
|
-
output.writeFieldEnd();
|
465
|
-
}
|
466
|
-
if (this.entityMentionSetTheoryList !== null && this.entityMentionSetTheoryList !== undefined) {
|
467
|
-
output.writeFieldBegin('entityMentionSetTheoryList', Thrift.Type.LIST, 11);
|
468
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.entityMentionSetTheoryList.length);
|
469
|
-
for (let iter70 in this.entityMentionSetTheoryList) {
|
470
|
-
if (this.entityMentionSetTheoryList.hasOwnProperty(iter70)) {
|
471
|
-
iter70 = this.entityMentionSetTheoryList[iter70];
|
472
|
-
iter70.write(output);
|
473
|
-
}
|
474
|
-
}
|
475
|
-
output.writeListEnd();
|
476
|
-
output.writeFieldEnd();
|
477
|
-
}
|
478
|
-
if (this.entitySetTheoryList !== null && this.entitySetTheoryList !== undefined) {
|
479
|
-
output.writeFieldBegin('entitySetTheoryList', Thrift.Type.LIST, 12);
|
480
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.entitySetTheoryList.length);
|
481
|
-
for (let iter71 in this.entitySetTheoryList) {
|
482
|
-
if (this.entitySetTheoryList.hasOwnProperty(iter71)) {
|
483
|
-
iter71 = this.entitySetTheoryList[iter71];
|
484
|
-
iter71.write(output);
|
485
|
-
}
|
486
|
-
}
|
487
|
-
output.writeListEnd();
|
488
|
-
output.writeFieldEnd();
|
489
|
-
}
|
490
|
-
if (this.situationMentionSetTheoryList !== null && this.situationMentionSetTheoryList !== undefined) {
|
491
|
-
output.writeFieldBegin('situationMentionSetTheoryList', Thrift.Type.LIST, 13);
|
492
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.situationMentionSetTheoryList.length);
|
493
|
-
for (let iter72 in this.situationMentionSetTheoryList) {
|
494
|
-
if (this.situationMentionSetTheoryList.hasOwnProperty(iter72)) {
|
495
|
-
iter72 = this.situationMentionSetTheoryList[iter72];
|
496
|
-
iter72.write(output);
|
497
|
-
}
|
498
|
-
}
|
499
|
-
output.writeListEnd();
|
500
|
-
output.writeFieldEnd();
|
501
|
-
}
|
502
|
-
if (this.situationSetTheoryList !== null && this.situationSetTheoryList !== undefined) {
|
503
|
-
output.writeFieldBegin('situationSetTheoryList', Thrift.Type.LIST, 14);
|
504
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.situationSetTheoryList.length);
|
505
|
-
for (let iter73 in this.situationSetTheoryList) {
|
506
|
-
if (this.situationSetTheoryList.hasOwnProperty(iter73)) {
|
507
|
-
iter73 = this.situationSetTheoryList[iter73];
|
508
|
-
iter73.write(output);
|
509
|
-
}
|
510
|
-
}
|
511
|
-
output.writeListEnd();
|
512
|
-
output.writeFieldEnd();
|
513
|
-
}
|
514
|
-
if (this.communicationsList !== null && this.communicationsList !== undefined) {
|
515
|
-
output.writeFieldBegin('communicationsList', Thrift.Type.LIST, 15);
|
516
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.communicationsList.length);
|
517
|
-
for (let iter74 in this.communicationsList) {
|
518
|
-
if (this.communicationsList.hasOwnProperty(iter74)) {
|
519
|
-
iter74 = this.communicationsList[iter74];
|
520
|
-
iter74.write(output);
|
521
|
-
}
|
522
|
-
}
|
523
|
-
output.writeListEnd();
|
524
|
-
output.writeFieldEnd();
|
525
|
-
}
|
526
|
-
output.writeFieldStop();
|
527
|
-
output.writeStructEnd();
|
528
|
-
return;
|
529
|
-
}
|
530
|
-
|
531
|
-
};
|
532
|
-
const Digest = module.exports.Digest = class {
|
533
|
-
constructor(args) {
|
534
|
-
this.bytesValue = null;
|
535
|
-
this.int64Value = null;
|
536
|
-
this.doubleValue = null;
|
537
|
-
this.stringValue = null;
|
538
|
-
this.int64List = null;
|
539
|
-
this.doubleList = null;
|
540
|
-
this.stringList = null;
|
541
|
-
if (args) {
|
542
|
-
if (args.bytesValue !== undefined && args.bytesValue !== null) {
|
543
|
-
this.bytesValue = args.bytesValue;
|
544
|
-
}
|
545
|
-
if (args.int64Value !== undefined && args.int64Value !== null) {
|
546
|
-
this.int64Value = args.int64Value;
|
547
|
-
}
|
548
|
-
if (args.doubleValue !== undefined && args.doubleValue !== null) {
|
549
|
-
this.doubleValue = args.doubleValue;
|
550
|
-
}
|
551
|
-
if (args.stringValue !== undefined && args.stringValue !== null) {
|
552
|
-
this.stringValue = args.stringValue;
|
553
|
-
}
|
554
|
-
if (args.int64List !== undefined && args.int64List !== null) {
|
555
|
-
this.int64List = Thrift.copyList(args.int64List, [null]);
|
556
|
-
}
|
557
|
-
if (args.doubleList !== undefined && args.doubleList !== null) {
|
558
|
-
this.doubleList = Thrift.copyList(args.doubleList, [null]);
|
559
|
-
}
|
560
|
-
if (args.stringList !== undefined && args.stringList !== null) {
|
561
|
-
this.stringList = Thrift.copyList(args.stringList, [null]);
|
562
|
-
}
|
563
|
-
}
|
564
|
-
}
|
565
|
-
|
566
|
-
read (input) {
|
567
|
-
input.readStructBegin();
|
568
|
-
while (true) {
|
569
|
-
const ret = input.readFieldBegin();
|
570
|
-
const ftype = ret.ftype;
|
571
|
-
const fid = ret.fid;
|
572
|
-
if (ftype == Thrift.Type.STOP) {
|
573
|
-
break;
|
574
|
-
}
|
575
|
-
switch (fid) {
|
576
|
-
case 1:
|
577
|
-
if (ftype == Thrift.Type.STRING) {
|
578
|
-
this.bytesValue = input.readBinary();
|
579
|
-
} else {
|
580
|
-
input.skip(ftype);
|
581
|
-
}
|
582
|
-
break;
|
583
|
-
case 2:
|
584
|
-
if (ftype == Thrift.Type.I64) {
|
585
|
-
this.int64Value = input.readI64();
|
586
|
-
} else {
|
587
|
-
input.skip(ftype);
|
588
|
-
}
|
589
|
-
break;
|
590
|
-
case 3:
|
591
|
-
if (ftype == Thrift.Type.DOUBLE) {
|
592
|
-
this.doubleValue = input.readDouble();
|
593
|
-
} else {
|
594
|
-
input.skip(ftype);
|
595
|
-
}
|
596
|
-
break;
|
597
|
-
case 4:
|
598
|
-
if (ftype == Thrift.Type.STRING) {
|
599
|
-
this.stringValue = input.readString();
|
600
|
-
} else {
|
601
|
-
input.skip(ftype);
|
602
|
-
}
|
603
|
-
break;
|
604
|
-
case 5:
|
605
|
-
if (ftype == Thrift.Type.LIST) {
|
606
|
-
this.int64List = [];
|
607
|
-
const _rtmp376 = input.readListBegin();
|
608
|
-
const _size75 = _rtmp376.size || 0;
|
609
|
-
for (let _i77 = 0; _i77 < _size75; ++_i77) {
|
610
|
-
let elem78 = null;
|
611
|
-
elem78 = input.readI64();
|
612
|
-
this.int64List.push(elem78);
|
613
|
-
}
|
614
|
-
input.readListEnd();
|
615
|
-
} else {
|
616
|
-
input.skip(ftype);
|
617
|
-
}
|
618
|
-
break;
|
619
|
-
case 6:
|
620
|
-
if (ftype == Thrift.Type.LIST) {
|
621
|
-
this.doubleList = [];
|
622
|
-
const _rtmp380 = input.readListBegin();
|
623
|
-
const _size79 = _rtmp380.size || 0;
|
624
|
-
for (let _i81 = 0; _i81 < _size79; ++_i81) {
|
625
|
-
let elem82 = null;
|
626
|
-
elem82 = input.readDouble();
|
627
|
-
this.doubleList.push(elem82);
|
628
|
-
}
|
629
|
-
input.readListEnd();
|
630
|
-
} else {
|
631
|
-
input.skip(ftype);
|
632
|
-
}
|
633
|
-
break;
|
634
|
-
case 7:
|
635
|
-
if (ftype == Thrift.Type.LIST) {
|
636
|
-
this.stringList = [];
|
637
|
-
const _rtmp384 = input.readListBegin();
|
638
|
-
const _size83 = _rtmp384.size || 0;
|
639
|
-
for (let _i85 = 0; _i85 < _size83; ++_i85) {
|
640
|
-
let elem86 = null;
|
641
|
-
elem86 = input.readString();
|
642
|
-
this.stringList.push(elem86);
|
643
|
-
}
|
644
|
-
input.readListEnd();
|
645
|
-
} else {
|
646
|
-
input.skip(ftype);
|
647
|
-
}
|
648
|
-
break;
|
649
|
-
default:
|
650
|
-
input.skip(ftype);
|
651
|
-
}
|
652
|
-
input.readFieldEnd();
|
653
|
-
}
|
654
|
-
input.readStructEnd();
|
655
|
-
return;
|
656
|
-
}
|
657
|
-
|
658
|
-
write (output) {
|
659
|
-
output.writeStructBegin('Digest');
|
660
|
-
if (this.bytesValue !== null && this.bytesValue !== undefined) {
|
661
|
-
output.writeFieldBegin('bytesValue', Thrift.Type.STRING, 1);
|
662
|
-
output.writeBinary(this.bytesValue);
|
663
|
-
output.writeFieldEnd();
|
664
|
-
}
|
665
|
-
if (this.int64Value !== null && this.int64Value !== undefined) {
|
666
|
-
output.writeFieldBegin('int64Value', Thrift.Type.I64, 2);
|
667
|
-
output.writeI64(this.int64Value);
|
668
|
-
output.writeFieldEnd();
|
669
|
-
}
|
670
|
-
if (this.doubleValue !== null && this.doubleValue !== undefined) {
|
671
|
-
output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 3);
|
672
|
-
output.writeDouble(this.doubleValue);
|
673
|
-
output.writeFieldEnd();
|
674
|
-
}
|
675
|
-
if (this.stringValue !== null && this.stringValue !== undefined) {
|
676
|
-
output.writeFieldBegin('stringValue', Thrift.Type.STRING, 4);
|
677
|
-
output.writeString(this.stringValue);
|
678
|
-
output.writeFieldEnd();
|
679
|
-
}
|
680
|
-
if (this.int64List !== null && this.int64List !== undefined) {
|
681
|
-
output.writeFieldBegin('int64List', Thrift.Type.LIST, 5);
|
682
|
-
output.writeListBegin(Thrift.Type.I64, this.int64List.length);
|
683
|
-
for (let iter87 in this.int64List) {
|
684
|
-
if (this.int64List.hasOwnProperty(iter87)) {
|
685
|
-
iter87 = this.int64List[iter87];
|
686
|
-
output.writeI64(iter87);
|
687
|
-
}
|
688
|
-
}
|
689
|
-
output.writeListEnd();
|
690
|
-
output.writeFieldEnd();
|
691
|
-
}
|
692
|
-
if (this.doubleList !== null && this.doubleList !== undefined) {
|
693
|
-
output.writeFieldBegin('doubleList', Thrift.Type.LIST, 6);
|
694
|
-
output.writeListBegin(Thrift.Type.DOUBLE, this.doubleList.length);
|
695
|
-
for (let iter88 in this.doubleList) {
|
696
|
-
if (this.doubleList.hasOwnProperty(iter88)) {
|
697
|
-
iter88 = this.doubleList[iter88];
|
698
|
-
output.writeDouble(iter88);
|
699
|
-
}
|
700
|
-
}
|
701
|
-
output.writeListEnd();
|
702
|
-
output.writeFieldEnd();
|
703
|
-
}
|
704
|
-
if (this.stringList !== null && this.stringList !== undefined) {
|
705
|
-
output.writeFieldBegin('stringList', Thrift.Type.LIST, 7);
|
706
|
-
output.writeListBegin(Thrift.Type.STRING, this.stringList.length);
|
707
|
-
for (let iter89 in this.stringList) {
|
708
|
-
if (this.stringList.hasOwnProperty(iter89)) {
|
709
|
-
iter89 = this.stringList[iter89];
|
710
|
-
output.writeString(iter89);
|
711
|
-
}
|
712
|
-
}
|
713
|
-
output.writeListEnd();
|
714
|
-
output.writeFieldEnd();
|
715
|
-
}
|
716
|
-
output.writeFieldStop();
|
717
|
-
output.writeStructEnd();
|
718
|
-
return;
|
719
|
-
}
|
720
|
-
|
721
|
-
};
|
722
|
-
const AnnotationMetadata = module.exports.AnnotationMetadata = class {
|
723
|
-
constructor(args) {
|
724
|
-
this.tool = null;
|
725
|
-
this.timestamp = null;
|
726
|
-
this.digest = null;
|
727
|
-
this.dependencies = null;
|
728
|
-
this.kBest = 1;
|
729
|
-
if (args) {
|
730
|
-
if (args.tool !== undefined && args.tool !== null) {
|
731
|
-
this.tool = args.tool;
|
732
|
-
} else {
|
733
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field tool is unset!');
|
734
|
-
}
|
735
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
736
|
-
this.timestamp = args.timestamp;
|
737
|
-
} else {
|
738
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field timestamp is unset!');
|
739
|
-
}
|
740
|
-
if (args.digest !== undefined && args.digest !== null) {
|
741
|
-
this.digest = new ttypes.Digest(args.digest);
|
742
|
-
}
|
743
|
-
if (args.dependencies !== undefined && args.dependencies !== null) {
|
744
|
-
this.dependencies = new ttypes.TheoryDependencies(args.dependencies);
|
745
|
-
}
|
746
|
-
if (args.kBest !== undefined && args.kBest !== null) {
|
747
|
-
this.kBest = args.kBest;
|
748
|
-
} else {
|
749
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field kBest is unset!');
|
750
|
-
}
|
751
|
-
}
|
752
|
-
}
|
753
|
-
|
754
|
-
read (input) {
|
755
|
-
input.readStructBegin();
|
756
|
-
while (true) {
|
757
|
-
const ret = input.readFieldBegin();
|
758
|
-
const ftype = ret.ftype;
|
759
|
-
const fid = ret.fid;
|
760
|
-
if (ftype == Thrift.Type.STOP) {
|
761
|
-
break;
|
762
|
-
}
|
763
|
-
switch (fid) {
|
764
|
-
case 1:
|
765
|
-
if (ftype == Thrift.Type.STRING) {
|
766
|
-
this.tool = input.readString();
|
767
|
-
} else {
|
768
|
-
input.skip(ftype);
|
769
|
-
}
|
770
|
-
break;
|
771
|
-
case 2:
|
772
|
-
if (ftype == Thrift.Type.I64) {
|
773
|
-
this.timestamp = input.readI64();
|
774
|
-
} else {
|
775
|
-
input.skip(ftype);
|
776
|
-
}
|
777
|
-
break;
|
778
|
-
case 4:
|
779
|
-
if (ftype == Thrift.Type.STRUCT) {
|
780
|
-
this.digest = new ttypes.Digest();
|
781
|
-
this.digest.read(input);
|
782
|
-
} else {
|
783
|
-
input.skip(ftype);
|
784
|
-
}
|
785
|
-
break;
|
786
|
-
case 5:
|
787
|
-
if (ftype == Thrift.Type.STRUCT) {
|
788
|
-
this.dependencies = new ttypes.TheoryDependencies();
|
789
|
-
this.dependencies.read(input);
|
790
|
-
} else {
|
791
|
-
input.skip(ftype);
|
792
|
-
}
|
793
|
-
break;
|
794
|
-
case 6:
|
795
|
-
if (ftype == Thrift.Type.I32) {
|
796
|
-
this.kBest = input.readI32();
|
797
|
-
} else {
|
798
|
-
input.skip(ftype);
|
799
|
-
}
|
800
|
-
break;
|
801
|
-
default:
|
802
|
-
input.skip(ftype);
|
803
|
-
}
|
804
|
-
input.readFieldEnd();
|
805
|
-
}
|
806
|
-
input.readStructEnd();
|
807
|
-
return;
|
808
|
-
}
|
809
|
-
|
810
|
-
write (output) {
|
811
|
-
output.writeStructBegin('AnnotationMetadata');
|
812
|
-
if (this.tool !== null && this.tool !== undefined) {
|
813
|
-
output.writeFieldBegin('tool', Thrift.Type.STRING, 1);
|
814
|
-
output.writeString(this.tool);
|
815
|
-
output.writeFieldEnd();
|
816
|
-
}
|
817
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
818
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
819
|
-
output.writeI64(this.timestamp);
|
820
|
-
output.writeFieldEnd();
|
821
|
-
}
|
822
|
-
if (this.digest !== null && this.digest !== undefined) {
|
823
|
-
output.writeFieldBegin('digest', Thrift.Type.STRUCT, 4);
|
824
|
-
this.digest.write(output);
|
825
|
-
output.writeFieldEnd();
|
826
|
-
}
|
827
|
-
if (this.dependencies !== null && this.dependencies !== undefined) {
|
828
|
-
output.writeFieldBegin('dependencies', Thrift.Type.STRUCT, 5);
|
829
|
-
this.dependencies.write(output);
|
830
|
-
output.writeFieldEnd();
|
831
|
-
}
|
832
|
-
if (this.kBest !== null && this.kBest !== undefined) {
|
833
|
-
output.writeFieldBegin('kBest', Thrift.Type.I32, 6);
|
834
|
-
output.writeI32(this.kBest);
|
835
|
-
output.writeFieldEnd();
|
836
|
-
}
|
837
|
-
output.writeFieldStop();
|
838
|
-
output.writeStructEnd();
|
839
|
-
return;
|
840
|
-
}
|
841
|
-
|
842
|
-
};
|
843
|
-
const CommunicationMetadata = module.exports.CommunicationMetadata = class {
|
844
|
-
constructor(args) {
|
845
|
-
this.tweetInfo = null;
|
846
|
-
this.emailInfo = null;
|
847
|
-
this.nitfInfo = null;
|
848
|
-
if (args) {
|
849
|
-
if (args.tweetInfo !== undefined && args.tweetInfo !== null) {
|
850
|
-
this.tweetInfo = new twitter_ttypes.TweetInfo(args.tweetInfo);
|
851
|
-
}
|
852
|
-
if (args.emailInfo !== undefined && args.emailInfo !== null) {
|
853
|
-
this.emailInfo = new email_ttypes.EmailCommunicationInfo(args.emailInfo);
|
854
|
-
}
|
855
|
-
if (args.nitfInfo !== undefined && args.nitfInfo !== null) {
|
856
|
-
this.nitfInfo = new nitf_ttypes.NITFInfo(args.nitfInfo);
|
857
|
-
}
|
858
|
-
}
|
859
|
-
}
|
860
|
-
|
861
|
-
read (input) {
|
862
|
-
input.readStructBegin();
|
863
|
-
while (true) {
|
864
|
-
const ret = input.readFieldBegin();
|
865
|
-
const ftype = ret.ftype;
|
866
|
-
const fid = ret.fid;
|
867
|
-
if (ftype == Thrift.Type.STOP) {
|
868
|
-
break;
|
869
|
-
}
|
870
|
-
switch (fid) {
|
871
|
-
case 1:
|
872
|
-
if (ftype == Thrift.Type.STRUCT) {
|
873
|
-
this.tweetInfo = new twitter_ttypes.TweetInfo();
|
874
|
-
this.tweetInfo.read(input);
|
875
|
-
} else {
|
876
|
-
input.skip(ftype);
|
877
|
-
}
|
878
|
-
break;
|
879
|
-
case 2:
|
880
|
-
if (ftype == Thrift.Type.STRUCT) {
|
881
|
-
this.emailInfo = new email_ttypes.EmailCommunicationInfo();
|
882
|
-
this.emailInfo.read(input);
|
883
|
-
} else {
|
884
|
-
input.skip(ftype);
|
885
|
-
}
|
886
|
-
break;
|
887
|
-
case 3:
|
888
|
-
if (ftype == Thrift.Type.STRUCT) {
|
889
|
-
this.nitfInfo = new nitf_ttypes.NITFInfo();
|
890
|
-
this.nitfInfo.read(input);
|
891
|
-
} else {
|
892
|
-
input.skip(ftype);
|
893
|
-
}
|
894
|
-
break;
|
895
|
-
default:
|
896
|
-
input.skip(ftype);
|
897
|
-
}
|
898
|
-
input.readFieldEnd();
|
899
|
-
}
|
900
|
-
input.readStructEnd();
|
901
|
-
return;
|
902
|
-
}
|
903
|
-
|
904
|
-
write (output) {
|
905
|
-
output.writeStructBegin('CommunicationMetadata');
|
906
|
-
if (this.tweetInfo !== null && this.tweetInfo !== undefined) {
|
907
|
-
output.writeFieldBegin('tweetInfo', Thrift.Type.STRUCT, 1);
|
908
|
-
this.tweetInfo.write(output);
|
909
|
-
output.writeFieldEnd();
|
910
|
-
}
|
911
|
-
if (this.emailInfo !== null && this.emailInfo !== undefined) {
|
912
|
-
output.writeFieldBegin('emailInfo', Thrift.Type.STRUCT, 2);
|
913
|
-
this.emailInfo.write(output);
|
914
|
-
output.writeFieldEnd();
|
915
|
-
}
|
916
|
-
if (this.nitfInfo !== null && this.nitfInfo !== undefined) {
|
917
|
-
output.writeFieldBegin('nitfInfo', Thrift.Type.STRUCT, 3);
|
918
|
-
this.nitfInfo.write(output);
|
919
|
-
output.writeFieldEnd();
|
920
|
-
}
|
921
|
-
output.writeFieldStop();
|
922
|
-
output.writeStructEnd();
|
923
|
-
return;
|
924
|
-
}
|
925
|
-
|
926
|
-
};
|
1
|
+
//
|
2
|
+
// Autogenerated by Thrift Compiler (0.15.0)
|
3
|
+
//
|
4
|
+
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
//
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
const thrift = require('thrift');
|
9
|
+
const Thrift = thrift.Thrift;
|
10
|
+
const Int64 = require('node-int64');
|
11
|
+
|
12
|
+
const uuid_ttypes = require('./uuid_types');
|
13
|
+
const twitter_ttypes = require('./twitter_types');
|
14
|
+
const email_ttypes = require('./email_types');
|
15
|
+
const nitf_ttypes = require('./nitf_types');
|
16
|
+
|
17
|
+
|
18
|
+
const ttypes = module.exports = {};
|
19
|
+
const TheoryDependencies = module.exports.TheoryDependencies = class {
|
20
|
+
constructor(args) {
|
21
|
+
this.sectionTheoryList = null;
|
22
|
+
this.sentenceTheoryList = null;
|
23
|
+
this.tokenizationTheoryList = null;
|
24
|
+
this.posTagTheoryList = null;
|
25
|
+
this.nerTagTheoryList = null;
|
26
|
+
this.lemmaTheoryList = null;
|
27
|
+
this.langIdTheoryList = null;
|
28
|
+
this.parseTheoryList = null;
|
29
|
+
this.dependencyParseTheoryList = null;
|
30
|
+
this.tokenAnnotationTheoryList = null;
|
31
|
+
this.entityMentionSetTheoryList = null;
|
32
|
+
this.entitySetTheoryList = null;
|
33
|
+
this.situationMentionSetTheoryList = null;
|
34
|
+
this.situationSetTheoryList = null;
|
35
|
+
this.communicationsList = null;
|
36
|
+
if (args) {
|
37
|
+
if (args.sectionTheoryList !== undefined && args.sectionTheoryList !== null) {
|
38
|
+
this.sectionTheoryList = Thrift.copyList(args.sectionTheoryList, [uuid_ttypes.UUID]);
|
39
|
+
}
|
40
|
+
if (args.sentenceTheoryList !== undefined && args.sentenceTheoryList !== null) {
|
41
|
+
this.sentenceTheoryList = Thrift.copyList(args.sentenceTheoryList, [uuid_ttypes.UUID]);
|
42
|
+
}
|
43
|
+
if (args.tokenizationTheoryList !== undefined && args.tokenizationTheoryList !== null) {
|
44
|
+
this.tokenizationTheoryList = Thrift.copyList(args.tokenizationTheoryList, [uuid_ttypes.UUID]);
|
45
|
+
}
|
46
|
+
if (args.posTagTheoryList !== undefined && args.posTagTheoryList !== null) {
|
47
|
+
this.posTagTheoryList = Thrift.copyList(args.posTagTheoryList, [uuid_ttypes.UUID]);
|
48
|
+
}
|
49
|
+
if (args.nerTagTheoryList !== undefined && args.nerTagTheoryList !== null) {
|
50
|
+
this.nerTagTheoryList = Thrift.copyList(args.nerTagTheoryList, [uuid_ttypes.UUID]);
|
51
|
+
}
|
52
|
+
if (args.lemmaTheoryList !== undefined && args.lemmaTheoryList !== null) {
|
53
|
+
this.lemmaTheoryList = Thrift.copyList(args.lemmaTheoryList, [uuid_ttypes.UUID]);
|
54
|
+
}
|
55
|
+
if (args.langIdTheoryList !== undefined && args.langIdTheoryList !== null) {
|
56
|
+
this.langIdTheoryList = Thrift.copyList(args.langIdTheoryList, [uuid_ttypes.UUID]);
|
57
|
+
}
|
58
|
+
if (args.parseTheoryList !== undefined && args.parseTheoryList !== null) {
|
59
|
+
this.parseTheoryList = Thrift.copyList(args.parseTheoryList, [uuid_ttypes.UUID]);
|
60
|
+
}
|
61
|
+
if (args.dependencyParseTheoryList !== undefined && args.dependencyParseTheoryList !== null) {
|
62
|
+
this.dependencyParseTheoryList = Thrift.copyList(args.dependencyParseTheoryList, [uuid_ttypes.UUID]);
|
63
|
+
}
|
64
|
+
if (args.tokenAnnotationTheoryList !== undefined && args.tokenAnnotationTheoryList !== null) {
|
65
|
+
this.tokenAnnotationTheoryList = Thrift.copyList(args.tokenAnnotationTheoryList, [uuid_ttypes.UUID]);
|
66
|
+
}
|
67
|
+
if (args.entityMentionSetTheoryList !== undefined && args.entityMentionSetTheoryList !== null) {
|
68
|
+
this.entityMentionSetTheoryList = Thrift.copyList(args.entityMentionSetTheoryList, [uuid_ttypes.UUID]);
|
69
|
+
}
|
70
|
+
if (args.entitySetTheoryList !== undefined && args.entitySetTheoryList !== null) {
|
71
|
+
this.entitySetTheoryList = Thrift.copyList(args.entitySetTheoryList, [uuid_ttypes.UUID]);
|
72
|
+
}
|
73
|
+
if (args.situationMentionSetTheoryList !== undefined && args.situationMentionSetTheoryList !== null) {
|
74
|
+
this.situationMentionSetTheoryList = Thrift.copyList(args.situationMentionSetTheoryList, [uuid_ttypes.UUID]);
|
75
|
+
}
|
76
|
+
if (args.situationSetTheoryList !== undefined && args.situationSetTheoryList !== null) {
|
77
|
+
this.situationSetTheoryList = Thrift.copyList(args.situationSetTheoryList, [uuid_ttypes.UUID]);
|
78
|
+
}
|
79
|
+
if (args.communicationsList !== undefined && args.communicationsList !== null) {
|
80
|
+
this.communicationsList = Thrift.copyList(args.communicationsList, [uuid_ttypes.UUID]);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
read (input) {
|
86
|
+
input.readStructBegin();
|
87
|
+
while (true) {
|
88
|
+
const ret = input.readFieldBegin();
|
89
|
+
const ftype = ret.ftype;
|
90
|
+
const fid = ret.fid;
|
91
|
+
if (ftype == Thrift.Type.STOP) {
|
92
|
+
break;
|
93
|
+
}
|
94
|
+
switch (fid) {
|
95
|
+
case 1:
|
96
|
+
if (ftype == Thrift.Type.LIST) {
|
97
|
+
this.sectionTheoryList = [];
|
98
|
+
const _rtmp31 = input.readListBegin();
|
99
|
+
const _size0 = _rtmp31.size || 0;
|
100
|
+
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
101
|
+
let elem3 = null;
|
102
|
+
elem3 = new uuid_ttypes.UUID();
|
103
|
+
elem3.read(input);
|
104
|
+
this.sectionTheoryList.push(elem3);
|
105
|
+
}
|
106
|
+
input.readListEnd();
|
107
|
+
} else {
|
108
|
+
input.skip(ftype);
|
109
|
+
}
|
110
|
+
break;
|
111
|
+
case 2:
|
112
|
+
if (ftype == Thrift.Type.LIST) {
|
113
|
+
this.sentenceTheoryList = [];
|
114
|
+
const _rtmp35 = input.readListBegin();
|
115
|
+
const _size4 = _rtmp35.size || 0;
|
116
|
+
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
117
|
+
let elem7 = null;
|
118
|
+
elem7 = new uuid_ttypes.UUID();
|
119
|
+
elem7.read(input);
|
120
|
+
this.sentenceTheoryList.push(elem7);
|
121
|
+
}
|
122
|
+
input.readListEnd();
|
123
|
+
} else {
|
124
|
+
input.skip(ftype);
|
125
|
+
}
|
126
|
+
break;
|
127
|
+
case 3:
|
128
|
+
if (ftype == Thrift.Type.LIST) {
|
129
|
+
this.tokenizationTheoryList = [];
|
130
|
+
const _rtmp39 = input.readListBegin();
|
131
|
+
const _size8 = _rtmp39.size || 0;
|
132
|
+
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
133
|
+
let elem11 = null;
|
134
|
+
elem11 = new uuid_ttypes.UUID();
|
135
|
+
elem11.read(input);
|
136
|
+
this.tokenizationTheoryList.push(elem11);
|
137
|
+
}
|
138
|
+
input.readListEnd();
|
139
|
+
} else {
|
140
|
+
input.skip(ftype);
|
141
|
+
}
|
142
|
+
break;
|
143
|
+
case 4:
|
144
|
+
if (ftype == Thrift.Type.LIST) {
|
145
|
+
this.posTagTheoryList = [];
|
146
|
+
const _rtmp313 = input.readListBegin();
|
147
|
+
const _size12 = _rtmp313.size || 0;
|
148
|
+
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
149
|
+
let elem15 = null;
|
150
|
+
elem15 = new uuid_ttypes.UUID();
|
151
|
+
elem15.read(input);
|
152
|
+
this.posTagTheoryList.push(elem15);
|
153
|
+
}
|
154
|
+
input.readListEnd();
|
155
|
+
} else {
|
156
|
+
input.skip(ftype);
|
157
|
+
}
|
158
|
+
break;
|
159
|
+
case 5:
|
160
|
+
if (ftype == Thrift.Type.LIST) {
|
161
|
+
this.nerTagTheoryList = [];
|
162
|
+
const _rtmp317 = input.readListBegin();
|
163
|
+
const _size16 = _rtmp317.size || 0;
|
164
|
+
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
165
|
+
let elem19 = null;
|
166
|
+
elem19 = new uuid_ttypes.UUID();
|
167
|
+
elem19.read(input);
|
168
|
+
this.nerTagTheoryList.push(elem19);
|
169
|
+
}
|
170
|
+
input.readListEnd();
|
171
|
+
} else {
|
172
|
+
input.skip(ftype);
|
173
|
+
}
|
174
|
+
break;
|
175
|
+
case 6:
|
176
|
+
if (ftype == Thrift.Type.LIST) {
|
177
|
+
this.lemmaTheoryList = [];
|
178
|
+
const _rtmp321 = input.readListBegin();
|
179
|
+
const _size20 = _rtmp321.size || 0;
|
180
|
+
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
181
|
+
let elem23 = null;
|
182
|
+
elem23 = new uuid_ttypes.UUID();
|
183
|
+
elem23.read(input);
|
184
|
+
this.lemmaTheoryList.push(elem23);
|
185
|
+
}
|
186
|
+
input.readListEnd();
|
187
|
+
} else {
|
188
|
+
input.skip(ftype);
|
189
|
+
}
|
190
|
+
break;
|
191
|
+
case 7:
|
192
|
+
if (ftype == Thrift.Type.LIST) {
|
193
|
+
this.langIdTheoryList = [];
|
194
|
+
const _rtmp325 = input.readListBegin();
|
195
|
+
const _size24 = _rtmp325.size || 0;
|
196
|
+
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
197
|
+
let elem27 = null;
|
198
|
+
elem27 = new uuid_ttypes.UUID();
|
199
|
+
elem27.read(input);
|
200
|
+
this.langIdTheoryList.push(elem27);
|
201
|
+
}
|
202
|
+
input.readListEnd();
|
203
|
+
} else {
|
204
|
+
input.skip(ftype);
|
205
|
+
}
|
206
|
+
break;
|
207
|
+
case 8:
|
208
|
+
if (ftype == Thrift.Type.LIST) {
|
209
|
+
this.parseTheoryList = [];
|
210
|
+
const _rtmp329 = input.readListBegin();
|
211
|
+
const _size28 = _rtmp329.size || 0;
|
212
|
+
for (let _i30 = 0; _i30 < _size28; ++_i30) {
|
213
|
+
let elem31 = null;
|
214
|
+
elem31 = new uuid_ttypes.UUID();
|
215
|
+
elem31.read(input);
|
216
|
+
this.parseTheoryList.push(elem31);
|
217
|
+
}
|
218
|
+
input.readListEnd();
|
219
|
+
} else {
|
220
|
+
input.skip(ftype);
|
221
|
+
}
|
222
|
+
break;
|
223
|
+
case 9:
|
224
|
+
if (ftype == Thrift.Type.LIST) {
|
225
|
+
this.dependencyParseTheoryList = [];
|
226
|
+
const _rtmp333 = input.readListBegin();
|
227
|
+
const _size32 = _rtmp333.size || 0;
|
228
|
+
for (let _i34 = 0; _i34 < _size32; ++_i34) {
|
229
|
+
let elem35 = null;
|
230
|
+
elem35 = new uuid_ttypes.UUID();
|
231
|
+
elem35.read(input);
|
232
|
+
this.dependencyParseTheoryList.push(elem35);
|
233
|
+
}
|
234
|
+
input.readListEnd();
|
235
|
+
} else {
|
236
|
+
input.skip(ftype);
|
237
|
+
}
|
238
|
+
break;
|
239
|
+
case 10:
|
240
|
+
if (ftype == Thrift.Type.LIST) {
|
241
|
+
this.tokenAnnotationTheoryList = [];
|
242
|
+
const _rtmp337 = input.readListBegin();
|
243
|
+
const _size36 = _rtmp337.size || 0;
|
244
|
+
for (let _i38 = 0; _i38 < _size36; ++_i38) {
|
245
|
+
let elem39 = null;
|
246
|
+
elem39 = new uuid_ttypes.UUID();
|
247
|
+
elem39.read(input);
|
248
|
+
this.tokenAnnotationTheoryList.push(elem39);
|
249
|
+
}
|
250
|
+
input.readListEnd();
|
251
|
+
} else {
|
252
|
+
input.skip(ftype);
|
253
|
+
}
|
254
|
+
break;
|
255
|
+
case 11:
|
256
|
+
if (ftype == Thrift.Type.LIST) {
|
257
|
+
this.entityMentionSetTheoryList = [];
|
258
|
+
const _rtmp341 = input.readListBegin();
|
259
|
+
const _size40 = _rtmp341.size || 0;
|
260
|
+
for (let _i42 = 0; _i42 < _size40; ++_i42) {
|
261
|
+
let elem43 = null;
|
262
|
+
elem43 = new uuid_ttypes.UUID();
|
263
|
+
elem43.read(input);
|
264
|
+
this.entityMentionSetTheoryList.push(elem43);
|
265
|
+
}
|
266
|
+
input.readListEnd();
|
267
|
+
} else {
|
268
|
+
input.skip(ftype);
|
269
|
+
}
|
270
|
+
break;
|
271
|
+
case 12:
|
272
|
+
if (ftype == Thrift.Type.LIST) {
|
273
|
+
this.entitySetTheoryList = [];
|
274
|
+
const _rtmp345 = input.readListBegin();
|
275
|
+
const _size44 = _rtmp345.size || 0;
|
276
|
+
for (let _i46 = 0; _i46 < _size44; ++_i46) {
|
277
|
+
let elem47 = null;
|
278
|
+
elem47 = new uuid_ttypes.UUID();
|
279
|
+
elem47.read(input);
|
280
|
+
this.entitySetTheoryList.push(elem47);
|
281
|
+
}
|
282
|
+
input.readListEnd();
|
283
|
+
} else {
|
284
|
+
input.skip(ftype);
|
285
|
+
}
|
286
|
+
break;
|
287
|
+
case 13:
|
288
|
+
if (ftype == Thrift.Type.LIST) {
|
289
|
+
this.situationMentionSetTheoryList = [];
|
290
|
+
const _rtmp349 = input.readListBegin();
|
291
|
+
const _size48 = _rtmp349.size || 0;
|
292
|
+
for (let _i50 = 0; _i50 < _size48; ++_i50) {
|
293
|
+
let elem51 = null;
|
294
|
+
elem51 = new uuid_ttypes.UUID();
|
295
|
+
elem51.read(input);
|
296
|
+
this.situationMentionSetTheoryList.push(elem51);
|
297
|
+
}
|
298
|
+
input.readListEnd();
|
299
|
+
} else {
|
300
|
+
input.skip(ftype);
|
301
|
+
}
|
302
|
+
break;
|
303
|
+
case 14:
|
304
|
+
if (ftype == Thrift.Type.LIST) {
|
305
|
+
this.situationSetTheoryList = [];
|
306
|
+
const _rtmp353 = input.readListBegin();
|
307
|
+
const _size52 = _rtmp353.size || 0;
|
308
|
+
for (let _i54 = 0; _i54 < _size52; ++_i54) {
|
309
|
+
let elem55 = null;
|
310
|
+
elem55 = new uuid_ttypes.UUID();
|
311
|
+
elem55.read(input);
|
312
|
+
this.situationSetTheoryList.push(elem55);
|
313
|
+
}
|
314
|
+
input.readListEnd();
|
315
|
+
} else {
|
316
|
+
input.skip(ftype);
|
317
|
+
}
|
318
|
+
break;
|
319
|
+
case 15:
|
320
|
+
if (ftype == Thrift.Type.LIST) {
|
321
|
+
this.communicationsList = [];
|
322
|
+
const _rtmp357 = input.readListBegin();
|
323
|
+
const _size56 = _rtmp357.size || 0;
|
324
|
+
for (let _i58 = 0; _i58 < _size56; ++_i58) {
|
325
|
+
let elem59 = null;
|
326
|
+
elem59 = new uuid_ttypes.UUID();
|
327
|
+
elem59.read(input);
|
328
|
+
this.communicationsList.push(elem59);
|
329
|
+
}
|
330
|
+
input.readListEnd();
|
331
|
+
} else {
|
332
|
+
input.skip(ftype);
|
333
|
+
}
|
334
|
+
break;
|
335
|
+
default:
|
336
|
+
input.skip(ftype);
|
337
|
+
}
|
338
|
+
input.readFieldEnd();
|
339
|
+
}
|
340
|
+
input.readStructEnd();
|
341
|
+
return;
|
342
|
+
}
|
343
|
+
|
344
|
+
write (output) {
|
345
|
+
output.writeStructBegin('TheoryDependencies');
|
346
|
+
if (this.sectionTheoryList !== null && this.sectionTheoryList !== undefined) {
|
347
|
+
output.writeFieldBegin('sectionTheoryList', Thrift.Type.LIST, 1);
|
348
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.sectionTheoryList.length);
|
349
|
+
for (let iter60 in this.sectionTheoryList) {
|
350
|
+
if (this.sectionTheoryList.hasOwnProperty(iter60)) {
|
351
|
+
iter60 = this.sectionTheoryList[iter60];
|
352
|
+
iter60.write(output);
|
353
|
+
}
|
354
|
+
}
|
355
|
+
output.writeListEnd();
|
356
|
+
output.writeFieldEnd();
|
357
|
+
}
|
358
|
+
if (this.sentenceTheoryList !== null && this.sentenceTheoryList !== undefined) {
|
359
|
+
output.writeFieldBegin('sentenceTheoryList', Thrift.Type.LIST, 2);
|
360
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.sentenceTheoryList.length);
|
361
|
+
for (let iter61 in this.sentenceTheoryList) {
|
362
|
+
if (this.sentenceTheoryList.hasOwnProperty(iter61)) {
|
363
|
+
iter61 = this.sentenceTheoryList[iter61];
|
364
|
+
iter61.write(output);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
output.writeListEnd();
|
368
|
+
output.writeFieldEnd();
|
369
|
+
}
|
370
|
+
if (this.tokenizationTheoryList !== null && this.tokenizationTheoryList !== undefined) {
|
371
|
+
output.writeFieldBegin('tokenizationTheoryList', Thrift.Type.LIST, 3);
|
372
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.tokenizationTheoryList.length);
|
373
|
+
for (let iter62 in this.tokenizationTheoryList) {
|
374
|
+
if (this.tokenizationTheoryList.hasOwnProperty(iter62)) {
|
375
|
+
iter62 = this.tokenizationTheoryList[iter62];
|
376
|
+
iter62.write(output);
|
377
|
+
}
|
378
|
+
}
|
379
|
+
output.writeListEnd();
|
380
|
+
output.writeFieldEnd();
|
381
|
+
}
|
382
|
+
if (this.posTagTheoryList !== null && this.posTagTheoryList !== undefined) {
|
383
|
+
output.writeFieldBegin('posTagTheoryList', Thrift.Type.LIST, 4);
|
384
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.posTagTheoryList.length);
|
385
|
+
for (let iter63 in this.posTagTheoryList) {
|
386
|
+
if (this.posTagTheoryList.hasOwnProperty(iter63)) {
|
387
|
+
iter63 = this.posTagTheoryList[iter63];
|
388
|
+
iter63.write(output);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
output.writeListEnd();
|
392
|
+
output.writeFieldEnd();
|
393
|
+
}
|
394
|
+
if (this.nerTagTheoryList !== null && this.nerTagTheoryList !== undefined) {
|
395
|
+
output.writeFieldBegin('nerTagTheoryList', Thrift.Type.LIST, 5);
|
396
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.nerTagTheoryList.length);
|
397
|
+
for (let iter64 in this.nerTagTheoryList) {
|
398
|
+
if (this.nerTagTheoryList.hasOwnProperty(iter64)) {
|
399
|
+
iter64 = this.nerTagTheoryList[iter64];
|
400
|
+
iter64.write(output);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
output.writeListEnd();
|
404
|
+
output.writeFieldEnd();
|
405
|
+
}
|
406
|
+
if (this.lemmaTheoryList !== null && this.lemmaTheoryList !== undefined) {
|
407
|
+
output.writeFieldBegin('lemmaTheoryList', Thrift.Type.LIST, 6);
|
408
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.lemmaTheoryList.length);
|
409
|
+
for (let iter65 in this.lemmaTheoryList) {
|
410
|
+
if (this.lemmaTheoryList.hasOwnProperty(iter65)) {
|
411
|
+
iter65 = this.lemmaTheoryList[iter65];
|
412
|
+
iter65.write(output);
|
413
|
+
}
|
414
|
+
}
|
415
|
+
output.writeListEnd();
|
416
|
+
output.writeFieldEnd();
|
417
|
+
}
|
418
|
+
if (this.langIdTheoryList !== null && this.langIdTheoryList !== undefined) {
|
419
|
+
output.writeFieldBegin('langIdTheoryList', Thrift.Type.LIST, 7);
|
420
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.langIdTheoryList.length);
|
421
|
+
for (let iter66 in this.langIdTheoryList) {
|
422
|
+
if (this.langIdTheoryList.hasOwnProperty(iter66)) {
|
423
|
+
iter66 = this.langIdTheoryList[iter66];
|
424
|
+
iter66.write(output);
|
425
|
+
}
|
426
|
+
}
|
427
|
+
output.writeListEnd();
|
428
|
+
output.writeFieldEnd();
|
429
|
+
}
|
430
|
+
if (this.parseTheoryList !== null && this.parseTheoryList !== undefined) {
|
431
|
+
output.writeFieldBegin('parseTheoryList', Thrift.Type.LIST, 8);
|
432
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.parseTheoryList.length);
|
433
|
+
for (let iter67 in this.parseTheoryList) {
|
434
|
+
if (this.parseTheoryList.hasOwnProperty(iter67)) {
|
435
|
+
iter67 = this.parseTheoryList[iter67];
|
436
|
+
iter67.write(output);
|
437
|
+
}
|
438
|
+
}
|
439
|
+
output.writeListEnd();
|
440
|
+
output.writeFieldEnd();
|
441
|
+
}
|
442
|
+
if (this.dependencyParseTheoryList !== null && this.dependencyParseTheoryList !== undefined) {
|
443
|
+
output.writeFieldBegin('dependencyParseTheoryList', Thrift.Type.LIST, 9);
|
444
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.dependencyParseTheoryList.length);
|
445
|
+
for (let iter68 in this.dependencyParseTheoryList) {
|
446
|
+
if (this.dependencyParseTheoryList.hasOwnProperty(iter68)) {
|
447
|
+
iter68 = this.dependencyParseTheoryList[iter68];
|
448
|
+
iter68.write(output);
|
449
|
+
}
|
450
|
+
}
|
451
|
+
output.writeListEnd();
|
452
|
+
output.writeFieldEnd();
|
453
|
+
}
|
454
|
+
if (this.tokenAnnotationTheoryList !== null && this.tokenAnnotationTheoryList !== undefined) {
|
455
|
+
output.writeFieldBegin('tokenAnnotationTheoryList', Thrift.Type.LIST, 10);
|
456
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.tokenAnnotationTheoryList.length);
|
457
|
+
for (let iter69 in this.tokenAnnotationTheoryList) {
|
458
|
+
if (this.tokenAnnotationTheoryList.hasOwnProperty(iter69)) {
|
459
|
+
iter69 = this.tokenAnnotationTheoryList[iter69];
|
460
|
+
iter69.write(output);
|
461
|
+
}
|
462
|
+
}
|
463
|
+
output.writeListEnd();
|
464
|
+
output.writeFieldEnd();
|
465
|
+
}
|
466
|
+
if (this.entityMentionSetTheoryList !== null && this.entityMentionSetTheoryList !== undefined) {
|
467
|
+
output.writeFieldBegin('entityMentionSetTheoryList', Thrift.Type.LIST, 11);
|
468
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.entityMentionSetTheoryList.length);
|
469
|
+
for (let iter70 in this.entityMentionSetTheoryList) {
|
470
|
+
if (this.entityMentionSetTheoryList.hasOwnProperty(iter70)) {
|
471
|
+
iter70 = this.entityMentionSetTheoryList[iter70];
|
472
|
+
iter70.write(output);
|
473
|
+
}
|
474
|
+
}
|
475
|
+
output.writeListEnd();
|
476
|
+
output.writeFieldEnd();
|
477
|
+
}
|
478
|
+
if (this.entitySetTheoryList !== null && this.entitySetTheoryList !== undefined) {
|
479
|
+
output.writeFieldBegin('entitySetTheoryList', Thrift.Type.LIST, 12);
|
480
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.entitySetTheoryList.length);
|
481
|
+
for (let iter71 in this.entitySetTheoryList) {
|
482
|
+
if (this.entitySetTheoryList.hasOwnProperty(iter71)) {
|
483
|
+
iter71 = this.entitySetTheoryList[iter71];
|
484
|
+
iter71.write(output);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
output.writeListEnd();
|
488
|
+
output.writeFieldEnd();
|
489
|
+
}
|
490
|
+
if (this.situationMentionSetTheoryList !== null && this.situationMentionSetTheoryList !== undefined) {
|
491
|
+
output.writeFieldBegin('situationMentionSetTheoryList', Thrift.Type.LIST, 13);
|
492
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.situationMentionSetTheoryList.length);
|
493
|
+
for (let iter72 in this.situationMentionSetTheoryList) {
|
494
|
+
if (this.situationMentionSetTheoryList.hasOwnProperty(iter72)) {
|
495
|
+
iter72 = this.situationMentionSetTheoryList[iter72];
|
496
|
+
iter72.write(output);
|
497
|
+
}
|
498
|
+
}
|
499
|
+
output.writeListEnd();
|
500
|
+
output.writeFieldEnd();
|
501
|
+
}
|
502
|
+
if (this.situationSetTheoryList !== null && this.situationSetTheoryList !== undefined) {
|
503
|
+
output.writeFieldBegin('situationSetTheoryList', Thrift.Type.LIST, 14);
|
504
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.situationSetTheoryList.length);
|
505
|
+
for (let iter73 in this.situationSetTheoryList) {
|
506
|
+
if (this.situationSetTheoryList.hasOwnProperty(iter73)) {
|
507
|
+
iter73 = this.situationSetTheoryList[iter73];
|
508
|
+
iter73.write(output);
|
509
|
+
}
|
510
|
+
}
|
511
|
+
output.writeListEnd();
|
512
|
+
output.writeFieldEnd();
|
513
|
+
}
|
514
|
+
if (this.communicationsList !== null && this.communicationsList !== undefined) {
|
515
|
+
output.writeFieldBegin('communicationsList', Thrift.Type.LIST, 15);
|
516
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.communicationsList.length);
|
517
|
+
for (let iter74 in this.communicationsList) {
|
518
|
+
if (this.communicationsList.hasOwnProperty(iter74)) {
|
519
|
+
iter74 = this.communicationsList[iter74];
|
520
|
+
iter74.write(output);
|
521
|
+
}
|
522
|
+
}
|
523
|
+
output.writeListEnd();
|
524
|
+
output.writeFieldEnd();
|
525
|
+
}
|
526
|
+
output.writeFieldStop();
|
527
|
+
output.writeStructEnd();
|
528
|
+
return;
|
529
|
+
}
|
530
|
+
|
531
|
+
};
|
532
|
+
const Digest = module.exports.Digest = class {
|
533
|
+
constructor(args) {
|
534
|
+
this.bytesValue = null;
|
535
|
+
this.int64Value = null;
|
536
|
+
this.doubleValue = null;
|
537
|
+
this.stringValue = null;
|
538
|
+
this.int64List = null;
|
539
|
+
this.doubleList = null;
|
540
|
+
this.stringList = null;
|
541
|
+
if (args) {
|
542
|
+
if (args.bytesValue !== undefined && args.bytesValue !== null) {
|
543
|
+
this.bytesValue = args.bytesValue;
|
544
|
+
}
|
545
|
+
if (args.int64Value !== undefined && args.int64Value !== null) {
|
546
|
+
this.int64Value = args.int64Value;
|
547
|
+
}
|
548
|
+
if (args.doubleValue !== undefined && args.doubleValue !== null) {
|
549
|
+
this.doubleValue = args.doubleValue;
|
550
|
+
}
|
551
|
+
if (args.stringValue !== undefined && args.stringValue !== null) {
|
552
|
+
this.stringValue = args.stringValue;
|
553
|
+
}
|
554
|
+
if (args.int64List !== undefined && args.int64List !== null) {
|
555
|
+
this.int64List = Thrift.copyList(args.int64List, [null]);
|
556
|
+
}
|
557
|
+
if (args.doubleList !== undefined && args.doubleList !== null) {
|
558
|
+
this.doubleList = Thrift.copyList(args.doubleList, [null]);
|
559
|
+
}
|
560
|
+
if (args.stringList !== undefined && args.stringList !== null) {
|
561
|
+
this.stringList = Thrift.copyList(args.stringList, [null]);
|
562
|
+
}
|
563
|
+
}
|
564
|
+
}
|
565
|
+
|
566
|
+
read (input) {
|
567
|
+
input.readStructBegin();
|
568
|
+
while (true) {
|
569
|
+
const ret = input.readFieldBegin();
|
570
|
+
const ftype = ret.ftype;
|
571
|
+
const fid = ret.fid;
|
572
|
+
if (ftype == Thrift.Type.STOP) {
|
573
|
+
break;
|
574
|
+
}
|
575
|
+
switch (fid) {
|
576
|
+
case 1:
|
577
|
+
if (ftype == Thrift.Type.STRING) {
|
578
|
+
this.bytesValue = input.readBinary();
|
579
|
+
} else {
|
580
|
+
input.skip(ftype);
|
581
|
+
}
|
582
|
+
break;
|
583
|
+
case 2:
|
584
|
+
if (ftype == Thrift.Type.I64) {
|
585
|
+
this.int64Value = input.readI64();
|
586
|
+
} else {
|
587
|
+
input.skip(ftype);
|
588
|
+
}
|
589
|
+
break;
|
590
|
+
case 3:
|
591
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
592
|
+
this.doubleValue = input.readDouble();
|
593
|
+
} else {
|
594
|
+
input.skip(ftype);
|
595
|
+
}
|
596
|
+
break;
|
597
|
+
case 4:
|
598
|
+
if (ftype == Thrift.Type.STRING) {
|
599
|
+
this.stringValue = input.readString();
|
600
|
+
} else {
|
601
|
+
input.skip(ftype);
|
602
|
+
}
|
603
|
+
break;
|
604
|
+
case 5:
|
605
|
+
if (ftype == Thrift.Type.LIST) {
|
606
|
+
this.int64List = [];
|
607
|
+
const _rtmp376 = input.readListBegin();
|
608
|
+
const _size75 = _rtmp376.size || 0;
|
609
|
+
for (let _i77 = 0; _i77 < _size75; ++_i77) {
|
610
|
+
let elem78 = null;
|
611
|
+
elem78 = input.readI64();
|
612
|
+
this.int64List.push(elem78);
|
613
|
+
}
|
614
|
+
input.readListEnd();
|
615
|
+
} else {
|
616
|
+
input.skip(ftype);
|
617
|
+
}
|
618
|
+
break;
|
619
|
+
case 6:
|
620
|
+
if (ftype == Thrift.Type.LIST) {
|
621
|
+
this.doubleList = [];
|
622
|
+
const _rtmp380 = input.readListBegin();
|
623
|
+
const _size79 = _rtmp380.size || 0;
|
624
|
+
for (let _i81 = 0; _i81 < _size79; ++_i81) {
|
625
|
+
let elem82 = null;
|
626
|
+
elem82 = input.readDouble();
|
627
|
+
this.doubleList.push(elem82);
|
628
|
+
}
|
629
|
+
input.readListEnd();
|
630
|
+
} else {
|
631
|
+
input.skip(ftype);
|
632
|
+
}
|
633
|
+
break;
|
634
|
+
case 7:
|
635
|
+
if (ftype == Thrift.Type.LIST) {
|
636
|
+
this.stringList = [];
|
637
|
+
const _rtmp384 = input.readListBegin();
|
638
|
+
const _size83 = _rtmp384.size || 0;
|
639
|
+
for (let _i85 = 0; _i85 < _size83; ++_i85) {
|
640
|
+
let elem86 = null;
|
641
|
+
elem86 = input.readString();
|
642
|
+
this.stringList.push(elem86);
|
643
|
+
}
|
644
|
+
input.readListEnd();
|
645
|
+
} else {
|
646
|
+
input.skip(ftype);
|
647
|
+
}
|
648
|
+
break;
|
649
|
+
default:
|
650
|
+
input.skip(ftype);
|
651
|
+
}
|
652
|
+
input.readFieldEnd();
|
653
|
+
}
|
654
|
+
input.readStructEnd();
|
655
|
+
return;
|
656
|
+
}
|
657
|
+
|
658
|
+
write (output) {
|
659
|
+
output.writeStructBegin('Digest');
|
660
|
+
if (this.bytesValue !== null && this.bytesValue !== undefined) {
|
661
|
+
output.writeFieldBegin('bytesValue', Thrift.Type.STRING, 1);
|
662
|
+
output.writeBinary(this.bytesValue);
|
663
|
+
output.writeFieldEnd();
|
664
|
+
}
|
665
|
+
if (this.int64Value !== null && this.int64Value !== undefined) {
|
666
|
+
output.writeFieldBegin('int64Value', Thrift.Type.I64, 2);
|
667
|
+
output.writeI64(this.int64Value);
|
668
|
+
output.writeFieldEnd();
|
669
|
+
}
|
670
|
+
if (this.doubleValue !== null && this.doubleValue !== undefined) {
|
671
|
+
output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 3);
|
672
|
+
output.writeDouble(this.doubleValue);
|
673
|
+
output.writeFieldEnd();
|
674
|
+
}
|
675
|
+
if (this.stringValue !== null && this.stringValue !== undefined) {
|
676
|
+
output.writeFieldBegin('stringValue', Thrift.Type.STRING, 4);
|
677
|
+
output.writeString(this.stringValue);
|
678
|
+
output.writeFieldEnd();
|
679
|
+
}
|
680
|
+
if (this.int64List !== null && this.int64List !== undefined) {
|
681
|
+
output.writeFieldBegin('int64List', Thrift.Type.LIST, 5);
|
682
|
+
output.writeListBegin(Thrift.Type.I64, this.int64List.length);
|
683
|
+
for (let iter87 in this.int64List) {
|
684
|
+
if (this.int64List.hasOwnProperty(iter87)) {
|
685
|
+
iter87 = this.int64List[iter87];
|
686
|
+
output.writeI64(iter87);
|
687
|
+
}
|
688
|
+
}
|
689
|
+
output.writeListEnd();
|
690
|
+
output.writeFieldEnd();
|
691
|
+
}
|
692
|
+
if (this.doubleList !== null && this.doubleList !== undefined) {
|
693
|
+
output.writeFieldBegin('doubleList', Thrift.Type.LIST, 6);
|
694
|
+
output.writeListBegin(Thrift.Type.DOUBLE, this.doubleList.length);
|
695
|
+
for (let iter88 in this.doubleList) {
|
696
|
+
if (this.doubleList.hasOwnProperty(iter88)) {
|
697
|
+
iter88 = this.doubleList[iter88];
|
698
|
+
output.writeDouble(iter88);
|
699
|
+
}
|
700
|
+
}
|
701
|
+
output.writeListEnd();
|
702
|
+
output.writeFieldEnd();
|
703
|
+
}
|
704
|
+
if (this.stringList !== null && this.stringList !== undefined) {
|
705
|
+
output.writeFieldBegin('stringList', Thrift.Type.LIST, 7);
|
706
|
+
output.writeListBegin(Thrift.Type.STRING, this.stringList.length);
|
707
|
+
for (let iter89 in this.stringList) {
|
708
|
+
if (this.stringList.hasOwnProperty(iter89)) {
|
709
|
+
iter89 = this.stringList[iter89];
|
710
|
+
output.writeString(iter89);
|
711
|
+
}
|
712
|
+
}
|
713
|
+
output.writeListEnd();
|
714
|
+
output.writeFieldEnd();
|
715
|
+
}
|
716
|
+
output.writeFieldStop();
|
717
|
+
output.writeStructEnd();
|
718
|
+
return;
|
719
|
+
}
|
720
|
+
|
721
|
+
};
|
722
|
+
const AnnotationMetadata = module.exports.AnnotationMetadata = class {
|
723
|
+
constructor(args) {
|
724
|
+
this.tool = null;
|
725
|
+
this.timestamp = null;
|
726
|
+
this.digest = null;
|
727
|
+
this.dependencies = null;
|
728
|
+
this.kBest = 1;
|
729
|
+
if (args) {
|
730
|
+
if (args.tool !== undefined && args.tool !== null) {
|
731
|
+
this.tool = args.tool;
|
732
|
+
} else {
|
733
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field tool is unset!');
|
734
|
+
}
|
735
|
+
if (args.timestamp !== undefined && args.timestamp !== null) {
|
736
|
+
this.timestamp = args.timestamp;
|
737
|
+
} else {
|
738
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field timestamp is unset!');
|
739
|
+
}
|
740
|
+
if (args.digest !== undefined && args.digest !== null) {
|
741
|
+
this.digest = new ttypes.Digest(args.digest);
|
742
|
+
}
|
743
|
+
if (args.dependencies !== undefined && args.dependencies !== null) {
|
744
|
+
this.dependencies = new ttypes.TheoryDependencies(args.dependencies);
|
745
|
+
}
|
746
|
+
if (args.kBest !== undefined && args.kBest !== null) {
|
747
|
+
this.kBest = args.kBest;
|
748
|
+
} else {
|
749
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field kBest is unset!');
|
750
|
+
}
|
751
|
+
}
|
752
|
+
}
|
753
|
+
|
754
|
+
read (input) {
|
755
|
+
input.readStructBegin();
|
756
|
+
while (true) {
|
757
|
+
const ret = input.readFieldBegin();
|
758
|
+
const ftype = ret.ftype;
|
759
|
+
const fid = ret.fid;
|
760
|
+
if (ftype == Thrift.Type.STOP) {
|
761
|
+
break;
|
762
|
+
}
|
763
|
+
switch (fid) {
|
764
|
+
case 1:
|
765
|
+
if (ftype == Thrift.Type.STRING) {
|
766
|
+
this.tool = input.readString();
|
767
|
+
} else {
|
768
|
+
input.skip(ftype);
|
769
|
+
}
|
770
|
+
break;
|
771
|
+
case 2:
|
772
|
+
if (ftype == Thrift.Type.I64) {
|
773
|
+
this.timestamp = input.readI64();
|
774
|
+
} else {
|
775
|
+
input.skip(ftype);
|
776
|
+
}
|
777
|
+
break;
|
778
|
+
case 4:
|
779
|
+
if (ftype == Thrift.Type.STRUCT) {
|
780
|
+
this.digest = new ttypes.Digest();
|
781
|
+
this.digest.read(input);
|
782
|
+
} else {
|
783
|
+
input.skip(ftype);
|
784
|
+
}
|
785
|
+
break;
|
786
|
+
case 5:
|
787
|
+
if (ftype == Thrift.Type.STRUCT) {
|
788
|
+
this.dependencies = new ttypes.TheoryDependencies();
|
789
|
+
this.dependencies.read(input);
|
790
|
+
} else {
|
791
|
+
input.skip(ftype);
|
792
|
+
}
|
793
|
+
break;
|
794
|
+
case 6:
|
795
|
+
if (ftype == Thrift.Type.I32) {
|
796
|
+
this.kBest = input.readI32();
|
797
|
+
} else {
|
798
|
+
input.skip(ftype);
|
799
|
+
}
|
800
|
+
break;
|
801
|
+
default:
|
802
|
+
input.skip(ftype);
|
803
|
+
}
|
804
|
+
input.readFieldEnd();
|
805
|
+
}
|
806
|
+
input.readStructEnd();
|
807
|
+
return;
|
808
|
+
}
|
809
|
+
|
810
|
+
write (output) {
|
811
|
+
output.writeStructBegin('AnnotationMetadata');
|
812
|
+
if (this.tool !== null && this.tool !== undefined) {
|
813
|
+
output.writeFieldBegin('tool', Thrift.Type.STRING, 1);
|
814
|
+
output.writeString(this.tool);
|
815
|
+
output.writeFieldEnd();
|
816
|
+
}
|
817
|
+
if (this.timestamp !== null && this.timestamp !== undefined) {
|
818
|
+
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
819
|
+
output.writeI64(this.timestamp);
|
820
|
+
output.writeFieldEnd();
|
821
|
+
}
|
822
|
+
if (this.digest !== null && this.digest !== undefined) {
|
823
|
+
output.writeFieldBegin('digest', Thrift.Type.STRUCT, 4);
|
824
|
+
this.digest.write(output);
|
825
|
+
output.writeFieldEnd();
|
826
|
+
}
|
827
|
+
if (this.dependencies !== null && this.dependencies !== undefined) {
|
828
|
+
output.writeFieldBegin('dependencies', Thrift.Type.STRUCT, 5);
|
829
|
+
this.dependencies.write(output);
|
830
|
+
output.writeFieldEnd();
|
831
|
+
}
|
832
|
+
if (this.kBest !== null && this.kBest !== undefined) {
|
833
|
+
output.writeFieldBegin('kBest', Thrift.Type.I32, 6);
|
834
|
+
output.writeI32(this.kBest);
|
835
|
+
output.writeFieldEnd();
|
836
|
+
}
|
837
|
+
output.writeFieldStop();
|
838
|
+
output.writeStructEnd();
|
839
|
+
return;
|
840
|
+
}
|
841
|
+
|
842
|
+
};
|
843
|
+
const CommunicationMetadata = module.exports.CommunicationMetadata = class {
|
844
|
+
constructor(args) {
|
845
|
+
this.tweetInfo = null;
|
846
|
+
this.emailInfo = null;
|
847
|
+
this.nitfInfo = null;
|
848
|
+
if (args) {
|
849
|
+
if (args.tweetInfo !== undefined && args.tweetInfo !== null) {
|
850
|
+
this.tweetInfo = new twitter_ttypes.TweetInfo(args.tweetInfo);
|
851
|
+
}
|
852
|
+
if (args.emailInfo !== undefined && args.emailInfo !== null) {
|
853
|
+
this.emailInfo = new email_ttypes.EmailCommunicationInfo(args.emailInfo);
|
854
|
+
}
|
855
|
+
if (args.nitfInfo !== undefined && args.nitfInfo !== null) {
|
856
|
+
this.nitfInfo = new nitf_ttypes.NITFInfo(args.nitfInfo);
|
857
|
+
}
|
858
|
+
}
|
859
|
+
}
|
860
|
+
|
861
|
+
read (input) {
|
862
|
+
input.readStructBegin();
|
863
|
+
while (true) {
|
864
|
+
const ret = input.readFieldBegin();
|
865
|
+
const ftype = ret.ftype;
|
866
|
+
const fid = ret.fid;
|
867
|
+
if (ftype == Thrift.Type.STOP) {
|
868
|
+
break;
|
869
|
+
}
|
870
|
+
switch (fid) {
|
871
|
+
case 1:
|
872
|
+
if (ftype == Thrift.Type.STRUCT) {
|
873
|
+
this.tweetInfo = new twitter_ttypes.TweetInfo();
|
874
|
+
this.tweetInfo.read(input);
|
875
|
+
} else {
|
876
|
+
input.skip(ftype);
|
877
|
+
}
|
878
|
+
break;
|
879
|
+
case 2:
|
880
|
+
if (ftype == Thrift.Type.STRUCT) {
|
881
|
+
this.emailInfo = new email_ttypes.EmailCommunicationInfo();
|
882
|
+
this.emailInfo.read(input);
|
883
|
+
} else {
|
884
|
+
input.skip(ftype);
|
885
|
+
}
|
886
|
+
break;
|
887
|
+
case 3:
|
888
|
+
if (ftype == Thrift.Type.STRUCT) {
|
889
|
+
this.nitfInfo = new nitf_ttypes.NITFInfo();
|
890
|
+
this.nitfInfo.read(input);
|
891
|
+
} else {
|
892
|
+
input.skip(ftype);
|
893
|
+
}
|
894
|
+
break;
|
895
|
+
default:
|
896
|
+
input.skip(ftype);
|
897
|
+
}
|
898
|
+
input.readFieldEnd();
|
899
|
+
}
|
900
|
+
input.readStructEnd();
|
901
|
+
return;
|
902
|
+
}
|
903
|
+
|
904
|
+
write (output) {
|
905
|
+
output.writeStructBegin('CommunicationMetadata');
|
906
|
+
if (this.tweetInfo !== null && this.tweetInfo !== undefined) {
|
907
|
+
output.writeFieldBegin('tweetInfo', Thrift.Type.STRUCT, 1);
|
908
|
+
this.tweetInfo.write(output);
|
909
|
+
output.writeFieldEnd();
|
910
|
+
}
|
911
|
+
if (this.emailInfo !== null && this.emailInfo !== undefined) {
|
912
|
+
output.writeFieldBegin('emailInfo', Thrift.Type.STRUCT, 2);
|
913
|
+
this.emailInfo.write(output);
|
914
|
+
output.writeFieldEnd();
|
915
|
+
}
|
916
|
+
if (this.nitfInfo !== null && this.nitfInfo !== undefined) {
|
917
|
+
output.writeFieldBegin('nitfInfo', Thrift.Type.STRUCT, 3);
|
918
|
+
this.nitfInfo.write(output);
|
919
|
+
output.writeFieldEnd();
|
920
|
+
}
|
921
|
+
output.writeFieldStop();
|
922
|
+
output.writeStructEnd();
|
923
|
+
return;
|
924
|
+
}
|
925
|
+
|
926
|
+
};
|