@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/nitf_types.js
CHANGED
@@ -1,1005 +1,1005 @@
|
|
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
|
-
|
13
|
-
const ttypes = module.exports = {};
|
14
|
-
const NITFInfo = module.exports.NITFInfo = class {
|
15
|
-
constructor(args) {
|
16
|
-
this.alternateURL = null;
|
17
|
-
this.articleAbstract = null;
|
18
|
-
this.authorBiography = null;
|
19
|
-
this.banner = null;
|
20
|
-
this.biographicalCategoryList = null;
|
21
|
-
this.columnName = null;
|
22
|
-
this.columnNumber = null;
|
23
|
-
this.correctionDate = null;
|
24
|
-
this.correctionText = null;
|
25
|
-
this.credit = null;
|
26
|
-
this.dayOfWeek = null;
|
27
|
-
this.descriptorList = null;
|
28
|
-
this.featurePage = null;
|
29
|
-
this.generalOnlineDescriptorList = null;
|
30
|
-
this.guid = null;
|
31
|
-
this.kicker = null;
|
32
|
-
this.leadParagraphList = null;
|
33
|
-
this.locationList = null;
|
34
|
-
this.nameList = null;
|
35
|
-
this.newsDesk = null;
|
36
|
-
this.normalizedByline = null;
|
37
|
-
this.onlineDescriptorList = null;
|
38
|
-
this.onlineHeadline = null;
|
39
|
-
this.onlineLeadParagraph = null;
|
40
|
-
this.onlineLocationList = null;
|
41
|
-
this.onlineOrganizationList = null;
|
42
|
-
this.onlinePeople = null;
|
43
|
-
this.onlineSectionList = null;
|
44
|
-
this.onlineTitleList = null;
|
45
|
-
this.organizationList = null;
|
46
|
-
this.page = null;
|
47
|
-
this.peopleList = null;
|
48
|
-
this.publicationDate = null;
|
49
|
-
this.publicationDayOfMonth = null;
|
50
|
-
this.publicationMonth = null;
|
51
|
-
this.publicationYear = null;
|
52
|
-
this.section = null;
|
53
|
-
this.seriesName = null;
|
54
|
-
this.slug = null;
|
55
|
-
this.taxonomicClassifierList = null;
|
56
|
-
this.titleList = null;
|
57
|
-
this.typesOfMaterialList = null;
|
58
|
-
this.url = null;
|
59
|
-
this.wordCount = null;
|
60
|
-
if (args) {
|
61
|
-
if (args.alternateURL !== undefined && args.alternateURL !== null) {
|
62
|
-
this.alternateURL = args.alternateURL;
|
63
|
-
}
|
64
|
-
if (args.articleAbstract !== undefined && args.articleAbstract !== null) {
|
65
|
-
this.articleAbstract = args.articleAbstract;
|
66
|
-
}
|
67
|
-
if (args.authorBiography !== undefined && args.authorBiography !== null) {
|
68
|
-
this.authorBiography = args.authorBiography;
|
69
|
-
}
|
70
|
-
if (args.banner !== undefined && args.banner !== null) {
|
71
|
-
this.banner = args.banner;
|
72
|
-
}
|
73
|
-
if (args.biographicalCategoryList !== undefined && args.biographicalCategoryList !== null) {
|
74
|
-
this.biographicalCategoryList = Thrift.copyList(args.biographicalCategoryList, [null]);
|
75
|
-
}
|
76
|
-
if (args.columnName !== undefined && args.columnName !== null) {
|
77
|
-
this.columnName = args.columnName;
|
78
|
-
}
|
79
|
-
if (args.columnNumber !== undefined && args.columnNumber !== null) {
|
80
|
-
this.columnNumber = args.columnNumber;
|
81
|
-
}
|
82
|
-
if (args.correctionDate !== undefined && args.correctionDate !== null) {
|
83
|
-
this.correctionDate = args.correctionDate;
|
84
|
-
}
|
85
|
-
if (args.correctionText !== undefined && args.correctionText !== null) {
|
86
|
-
this.correctionText = args.correctionText;
|
87
|
-
}
|
88
|
-
if (args.credit !== undefined && args.credit !== null) {
|
89
|
-
this.credit = args.credit;
|
90
|
-
}
|
91
|
-
if (args.dayOfWeek !== undefined && args.dayOfWeek !== null) {
|
92
|
-
this.dayOfWeek = args.dayOfWeek;
|
93
|
-
}
|
94
|
-
if (args.descriptorList !== undefined && args.descriptorList !== null) {
|
95
|
-
this.descriptorList = Thrift.copyList(args.descriptorList, [null]);
|
96
|
-
}
|
97
|
-
if (args.featurePage !== undefined && args.featurePage !== null) {
|
98
|
-
this.featurePage = args.featurePage;
|
99
|
-
}
|
100
|
-
if (args.generalOnlineDescriptorList !== undefined && args.generalOnlineDescriptorList !== null) {
|
101
|
-
this.generalOnlineDescriptorList = Thrift.copyList(args.generalOnlineDescriptorList, [null]);
|
102
|
-
}
|
103
|
-
if (args.guid !== undefined && args.guid !== null) {
|
104
|
-
this.guid = args.guid;
|
105
|
-
}
|
106
|
-
if (args.kicker !== undefined && args.kicker !== null) {
|
107
|
-
this.kicker = args.kicker;
|
108
|
-
}
|
109
|
-
if (args.leadParagraphList !== undefined && args.leadParagraphList !== null) {
|
110
|
-
this.leadParagraphList = Thrift.copyList(args.leadParagraphList, [null]);
|
111
|
-
}
|
112
|
-
if (args.locationList !== undefined && args.locationList !== null) {
|
113
|
-
this.locationList = Thrift.copyList(args.locationList, [null]);
|
114
|
-
}
|
115
|
-
if (args.nameList !== undefined && args.nameList !== null) {
|
116
|
-
this.nameList = Thrift.copyList(args.nameList, [null]);
|
117
|
-
}
|
118
|
-
if (args.newsDesk !== undefined && args.newsDesk !== null) {
|
119
|
-
this.newsDesk = args.newsDesk;
|
120
|
-
}
|
121
|
-
if (args.normalizedByline !== undefined && args.normalizedByline !== null) {
|
122
|
-
this.normalizedByline = args.normalizedByline;
|
123
|
-
}
|
124
|
-
if (args.onlineDescriptorList !== undefined && args.onlineDescriptorList !== null) {
|
125
|
-
this.onlineDescriptorList = Thrift.copyList(args.onlineDescriptorList, [null]);
|
126
|
-
}
|
127
|
-
if (args.onlineHeadline !== undefined && args.onlineHeadline !== null) {
|
128
|
-
this.onlineHeadline = args.onlineHeadline;
|
129
|
-
}
|
130
|
-
if (args.onlineLeadParagraph !== undefined && args.onlineLeadParagraph !== null) {
|
131
|
-
this.onlineLeadParagraph = args.onlineLeadParagraph;
|
132
|
-
}
|
133
|
-
if (args.onlineLocationList !== undefined && args.onlineLocationList !== null) {
|
134
|
-
this.onlineLocationList = Thrift.copyList(args.onlineLocationList, [null]);
|
135
|
-
}
|
136
|
-
if (args.onlineOrganizationList !== undefined && args.onlineOrganizationList !== null) {
|
137
|
-
this.onlineOrganizationList = Thrift.copyList(args.onlineOrganizationList, [null]);
|
138
|
-
}
|
139
|
-
if (args.onlinePeople !== undefined && args.onlinePeople !== null) {
|
140
|
-
this.onlinePeople = Thrift.copyList(args.onlinePeople, [null]);
|
141
|
-
}
|
142
|
-
if (args.onlineSectionList !== undefined && args.onlineSectionList !== null) {
|
143
|
-
this.onlineSectionList = Thrift.copyList(args.onlineSectionList, [null]);
|
144
|
-
}
|
145
|
-
if (args.onlineTitleList !== undefined && args.onlineTitleList !== null) {
|
146
|
-
this.onlineTitleList = Thrift.copyList(args.onlineTitleList, [null]);
|
147
|
-
}
|
148
|
-
if (args.organizationList !== undefined && args.organizationList !== null) {
|
149
|
-
this.organizationList = Thrift.copyList(args.organizationList, [null]);
|
150
|
-
}
|
151
|
-
if (args.page !== undefined && args.page !== null) {
|
152
|
-
this.page = args.page;
|
153
|
-
}
|
154
|
-
if (args.peopleList !== undefined && args.peopleList !== null) {
|
155
|
-
this.peopleList = Thrift.copyList(args.peopleList, [null]);
|
156
|
-
}
|
157
|
-
if (args.publicationDate !== undefined && args.publicationDate !== null) {
|
158
|
-
this.publicationDate = args.publicationDate;
|
159
|
-
}
|
160
|
-
if (args.publicationDayOfMonth !== undefined && args.publicationDayOfMonth !== null) {
|
161
|
-
this.publicationDayOfMonth = args.publicationDayOfMonth;
|
162
|
-
}
|
163
|
-
if (args.publicationMonth !== undefined && args.publicationMonth !== null) {
|
164
|
-
this.publicationMonth = args.publicationMonth;
|
165
|
-
}
|
166
|
-
if (args.publicationYear !== undefined && args.publicationYear !== null) {
|
167
|
-
this.publicationYear = args.publicationYear;
|
168
|
-
}
|
169
|
-
if (args.section !== undefined && args.section !== null) {
|
170
|
-
this.section = args.section;
|
171
|
-
}
|
172
|
-
if (args.seriesName !== undefined && args.seriesName !== null) {
|
173
|
-
this.seriesName = args.seriesName;
|
174
|
-
}
|
175
|
-
if (args.slug !== undefined && args.slug !== null) {
|
176
|
-
this.slug = args.slug;
|
177
|
-
}
|
178
|
-
if (args.taxonomicClassifierList !== undefined && args.taxonomicClassifierList !== null) {
|
179
|
-
this.taxonomicClassifierList = Thrift.copyList(args.taxonomicClassifierList, [null]);
|
180
|
-
}
|
181
|
-
if (args.titleList !== undefined && args.titleList !== null) {
|
182
|
-
this.titleList = Thrift.copyList(args.titleList, [null]);
|
183
|
-
}
|
184
|
-
if (args.typesOfMaterialList !== undefined && args.typesOfMaterialList !== null) {
|
185
|
-
this.typesOfMaterialList = Thrift.copyList(args.typesOfMaterialList, [null]);
|
186
|
-
}
|
187
|
-
if (args.url !== undefined && args.url !== null) {
|
188
|
-
this.url = args.url;
|
189
|
-
}
|
190
|
-
if (args.wordCount !== undefined && args.wordCount !== null) {
|
191
|
-
this.wordCount = args.wordCount;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
}
|
195
|
-
|
196
|
-
read (input) {
|
197
|
-
input.readStructBegin();
|
198
|
-
while (true) {
|
199
|
-
const ret = input.readFieldBegin();
|
200
|
-
const ftype = ret.ftype;
|
201
|
-
const fid = ret.fid;
|
202
|
-
if (ftype == Thrift.Type.STOP) {
|
203
|
-
break;
|
204
|
-
}
|
205
|
-
switch (fid) {
|
206
|
-
case 1:
|
207
|
-
if (ftype == Thrift.Type.STRING) {
|
208
|
-
this.alternateURL = input.readString();
|
209
|
-
} else {
|
210
|
-
input.skip(ftype);
|
211
|
-
}
|
212
|
-
break;
|
213
|
-
case 2:
|
214
|
-
if (ftype == Thrift.Type.STRING) {
|
215
|
-
this.articleAbstract = input.readString();
|
216
|
-
} else {
|
217
|
-
input.skip(ftype);
|
218
|
-
}
|
219
|
-
break;
|
220
|
-
case 3:
|
221
|
-
if (ftype == Thrift.Type.STRING) {
|
222
|
-
this.authorBiography = input.readString();
|
223
|
-
} else {
|
224
|
-
input.skip(ftype);
|
225
|
-
}
|
226
|
-
break;
|
227
|
-
case 4:
|
228
|
-
if (ftype == Thrift.Type.STRING) {
|
229
|
-
this.banner = input.readString();
|
230
|
-
} else {
|
231
|
-
input.skip(ftype);
|
232
|
-
}
|
233
|
-
break;
|
234
|
-
case 5:
|
235
|
-
if (ftype == Thrift.Type.LIST) {
|
236
|
-
this.biographicalCategoryList = [];
|
237
|
-
const _rtmp31 = input.readListBegin();
|
238
|
-
const _size0 = _rtmp31.size || 0;
|
239
|
-
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
240
|
-
let elem3 = null;
|
241
|
-
elem3 = input.readString();
|
242
|
-
this.biographicalCategoryList.push(elem3);
|
243
|
-
}
|
244
|
-
input.readListEnd();
|
245
|
-
} else {
|
246
|
-
input.skip(ftype);
|
247
|
-
}
|
248
|
-
break;
|
249
|
-
case 6:
|
250
|
-
if (ftype == Thrift.Type.STRING) {
|
251
|
-
this.columnName = input.readString();
|
252
|
-
} else {
|
253
|
-
input.skip(ftype);
|
254
|
-
}
|
255
|
-
break;
|
256
|
-
case 7:
|
257
|
-
if (ftype == Thrift.Type.I32) {
|
258
|
-
this.columnNumber = input.readI32();
|
259
|
-
} else {
|
260
|
-
input.skip(ftype);
|
261
|
-
}
|
262
|
-
break;
|
263
|
-
case 8:
|
264
|
-
if (ftype == Thrift.Type.I64) {
|
265
|
-
this.correctionDate = input.readI64();
|
266
|
-
} else {
|
267
|
-
input.skip(ftype);
|
268
|
-
}
|
269
|
-
break;
|
270
|
-
case 9:
|
271
|
-
if (ftype == Thrift.Type.STRING) {
|
272
|
-
this.correctionText = input.readString();
|
273
|
-
} else {
|
274
|
-
input.skip(ftype);
|
275
|
-
}
|
276
|
-
break;
|
277
|
-
case 10:
|
278
|
-
if (ftype == Thrift.Type.STRING) {
|
279
|
-
this.credit = input.readString();
|
280
|
-
} else {
|
281
|
-
input.skip(ftype);
|
282
|
-
}
|
283
|
-
break;
|
284
|
-
case 11:
|
285
|
-
if (ftype == Thrift.Type.STRING) {
|
286
|
-
this.dayOfWeek = input.readString();
|
287
|
-
} else {
|
288
|
-
input.skip(ftype);
|
289
|
-
}
|
290
|
-
break;
|
291
|
-
case 12:
|
292
|
-
if (ftype == Thrift.Type.LIST) {
|
293
|
-
this.descriptorList = [];
|
294
|
-
const _rtmp35 = input.readListBegin();
|
295
|
-
const _size4 = _rtmp35.size || 0;
|
296
|
-
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
297
|
-
let elem7 = null;
|
298
|
-
elem7 = input.readString();
|
299
|
-
this.descriptorList.push(elem7);
|
300
|
-
}
|
301
|
-
input.readListEnd();
|
302
|
-
} else {
|
303
|
-
input.skip(ftype);
|
304
|
-
}
|
305
|
-
break;
|
306
|
-
case 13:
|
307
|
-
if (ftype == Thrift.Type.STRING) {
|
308
|
-
this.featurePage = input.readString();
|
309
|
-
} else {
|
310
|
-
input.skip(ftype);
|
311
|
-
}
|
312
|
-
break;
|
313
|
-
case 14:
|
314
|
-
if (ftype == Thrift.Type.LIST) {
|
315
|
-
this.generalOnlineDescriptorList = [];
|
316
|
-
const _rtmp39 = input.readListBegin();
|
317
|
-
const _size8 = _rtmp39.size || 0;
|
318
|
-
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
319
|
-
let elem11 = null;
|
320
|
-
elem11 = input.readString();
|
321
|
-
this.generalOnlineDescriptorList.push(elem11);
|
322
|
-
}
|
323
|
-
input.readListEnd();
|
324
|
-
} else {
|
325
|
-
input.skip(ftype);
|
326
|
-
}
|
327
|
-
break;
|
328
|
-
case 15:
|
329
|
-
if (ftype == Thrift.Type.I32) {
|
330
|
-
this.guid = input.readI32();
|
331
|
-
} else {
|
332
|
-
input.skip(ftype);
|
333
|
-
}
|
334
|
-
break;
|
335
|
-
case 16:
|
336
|
-
if (ftype == Thrift.Type.STRING) {
|
337
|
-
this.kicker = input.readString();
|
338
|
-
} else {
|
339
|
-
input.skip(ftype);
|
340
|
-
}
|
341
|
-
break;
|
342
|
-
case 17:
|
343
|
-
if (ftype == Thrift.Type.LIST) {
|
344
|
-
this.leadParagraphList = [];
|
345
|
-
const _rtmp313 = input.readListBegin();
|
346
|
-
const _size12 = _rtmp313.size || 0;
|
347
|
-
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
348
|
-
let elem15 = null;
|
349
|
-
elem15 = input.readString();
|
350
|
-
this.leadParagraphList.push(elem15);
|
351
|
-
}
|
352
|
-
input.readListEnd();
|
353
|
-
} else {
|
354
|
-
input.skip(ftype);
|
355
|
-
}
|
356
|
-
break;
|
357
|
-
case 18:
|
358
|
-
if (ftype == Thrift.Type.LIST) {
|
359
|
-
this.locationList = [];
|
360
|
-
const _rtmp317 = input.readListBegin();
|
361
|
-
const _size16 = _rtmp317.size || 0;
|
362
|
-
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
363
|
-
let elem19 = null;
|
364
|
-
elem19 = input.readString();
|
365
|
-
this.locationList.push(elem19);
|
366
|
-
}
|
367
|
-
input.readListEnd();
|
368
|
-
} else {
|
369
|
-
input.skip(ftype);
|
370
|
-
}
|
371
|
-
break;
|
372
|
-
case 19:
|
373
|
-
if (ftype == Thrift.Type.LIST) {
|
374
|
-
this.nameList = [];
|
375
|
-
const _rtmp321 = input.readListBegin();
|
376
|
-
const _size20 = _rtmp321.size || 0;
|
377
|
-
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
378
|
-
let elem23 = null;
|
379
|
-
elem23 = input.readString();
|
380
|
-
this.nameList.push(elem23);
|
381
|
-
}
|
382
|
-
input.readListEnd();
|
383
|
-
} else {
|
384
|
-
input.skip(ftype);
|
385
|
-
}
|
386
|
-
break;
|
387
|
-
case 20:
|
388
|
-
if (ftype == Thrift.Type.STRING) {
|
389
|
-
this.newsDesk = input.readString();
|
390
|
-
} else {
|
391
|
-
input.skip(ftype);
|
392
|
-
}
|
393
|
-
break;
|
394
|
-
case 21:
|
395
|
-
if (ftype == Thrift.Type.STRING) {
|
396
|
-
this.normalizedByline = input.readString();
|
397
|
-
} else {
|
398
|
-
input.skip(ftype);
|
399
|
-
}
|
400
|
-
break;
|
401
|
-
case 22:
|
402
|
-
if (ftype == Thrift.Type.LIST) {
|
403
|
-
this.onlineDescriptorList = [];
|
404
|
-
const _rtmp325 = input.readListBegin();
|
405
|
-
const _size24 = _rtmp325.size || 0;
|
406
|
-
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
407
|
-
let elem27 = null;
|
408
|
-
elem27 = input.readString();
|
409
|
-
this.onlineDescriptorList.push(elem27);
|
410
|
-
}
|
411
|
-
input.readListEnd();
|
412
|
-
} else {
|
413
|
-
input.skip(ftype);
|
414
|
-
}
|
415
|
-
break;
|
416
|
-
case 23:
|
417
|
-
if (ftype == Thrift.Type.STRING) {
|
418
|
-
this.onlineHeadline = input.readString();
|
419
|
-
} else {
|
420
|
-
input.skip(ftype);
|
421
|
-
}
|
422
|
-
break;
|
423
|
-
case 24:
|
424
|
-
if (ftype == Thrift.Type.STRING) {
|
425
|
-
this.onlineLeadParagraph = input.readString();
|
426
|
-
} else {
|
427
|
-
input.skip(ftype);
|
428
|
-
}
|
429
|
-
break;
|
430
|
-
case 25:
|
431
|
-
if (ftype == Thrift.Type.LIST) {
|
432
|
-
this.onlineLocationList = [];
|
433
|
-
const _rtmp329 = input.readListBegin();
|
434
|
-
const _size28 = _rtmp329.size || 0;
|
435
|
-
for (let _i30 = 0; _i30 < _size28; ++_i30) {
|
436
|
-
let elem31 = null;
|
437
|
-
elem31 = input.readString();
|
438
|
-
this.onlineLocationList.push(elem31);
|
439
|
-
}
|
440
|
-
input.readListEnd();
|
441
|
-
} else {
|
442
|
-
input.skip(ftype);
|
443
|
-
}
|
444
|
-
break;
|
445
|
-
case 26:
|
446
|
-
if (ftype == Thrift.Type.LIST) {
|
447
|
-
this.onlineOrganizationList = [];
|
448
|
-
const _rtmp333 = input.readListBegin();
|
449
|
-
const _size32 = _rtmp333.size || 0;
|
450
|
-
for (let _i34 = 0; _i34 < _size32; ++_i34) {
|
451
|
-
let elem35 = null;
|
452
|
-
elem35 = input.readString();
|
453
|
-
this.onlineOrganizationList.push(elem35);
|
454
|
-
}
|
455
|
-
input.readListEnd();
|
456
|
-
} else {
|
457
|
-
input.skip(ftype);
|
458
|
-
}
|
459
|
-
break;
|
460
|
-
case 27:
|
461
|
-
if (ftype == Thrift.Type.LIST) {
|
462
|
-
this.onlinePeople = [];
|
463
|
-
const _rtmp337 = input.readListBegin();
|
464
|
-
const _size36 = _rtmp337.size || 0;
|
465
|
-
for (let _i38 = 0; _i38 < _size36; ++_i38) {
|
466
|
-
let elem39 = null;
|
467
|
-
elem39 = input.readString();
|
468
|
-
this.onlinePeople.push(elem39);
|
469
|
-
}
|
470
|
-
input.readListEnd();
|
471
|
-
} else {
|
472
|
-
input.skip(ftype);
|
473
|
-
}
|
474
|
-
break;
|
475
|
-
case 28:
|
476
|
-
if (ftype == Thrift.Type.LIST) {
|
477
|
-
this.onlineSectionList = [];
|
478
|
-
const _rtmp341 = input.readListBegin();
|
479
|
-
const _size40 = _rtmp341.size || 0;
|
480
|
-
for (let _i42 = 0; _i42 < _size40; ++_i42) {
|
481
|
-
let elem43 = null;
|
482
|
-
elem43 = input.readString();
|
483
|
-
this.onlineSectionList.push(elem43);
|
484
|
-
}
|
485
|
-
input.readListEnd();
|
486
|
-
} else {
|
487
|
-
input.skip(ftype);
|
488
|
-
}
|
489
|
-
break;
|
490
|
-
case 29:
|
491
|
-
if (ftype == Thrift.Type.LIST) {
|
492
|
-
this.onlineTitleList = [];
|
493
|
-
const _rtmp345 = input.readListBegin();
|
494
|
-
const _size44 = _rtmp345.size || 0;
|
495
|
-
for (let _i46 = 0; _i46 < _size44; ++_i46) {
|
496
|
-
let elem47 = null;
|
497
|
-
elem47 = input.readString();
|
498
|
-
this.onlineTitleList.push(elem47);
|
499
|
-
}
|
500
|
-
input.readListEnd();
|
501
|
-
} else {
|
502
|
-
input.skip(ftype);
|
503
|
-
}
|
504
|
-
break;
|
505
|
-
case 30:
|
506
|
-
if (ftype == Thrift.Type.LIST) {
|
507
|
-
this.organizationList = [];
|
508
|
-
const _rtmp349 = input.readListBegin();
|
509
|
-
const _size48 = _rtmp349.size || 0;
|
510
|
-
for (let _i50 = 0; _i50 < _size48; ++_i50) {
|
511
|
-
let elem51 = null;
|
512
|
-
elem51 = input.readString();
|
513
|
-
this.organizationList.push(elem51);
|
514
|
-
}
|
515
|
-
input.readListEnd();
|
516
|
-
} else {
|
517
|
-
input.skip(ftype);
|
518
|
-
}
|
519
|
-
break;
|
520
|
-
case 31:
|
521
|
-
if (ftype == Thrift.Type.I32) {
|
522
|
-
this.page = input.readI32();
|
523
|
-
} else {
|
524
|
-
input.skip(ftype);
|
525
|
-
}
|
526
|
-
break;
|
527
|
-
case 32:
|
528
|
-
if (ftype == Thrift.Type.LIST) {
|
529
|
-
this.peopleList = [];
|
530
|
-
const _rtmp353 = input.readListBegin();
|
531
|
-
const _size52 = _rtmp353.size || 0;
|
532
|
-
for (let _i54 = 0; _i54 < _size52; ++_i54) {
|
533
|
-
let elem55 = null;
|
534
|
-
elem55 = input.readString();
|
535
|
-
this.peopleList.push(elem55);
|
536
|
-
}
|
537
|
-
input.readListEnd();
|
538
|
-
} else {
|
539
|
-
input.skip(ftype);
|
540
|
-
}
|
541
|
-
break;
|
542
|
-
case 33:
|
543
|
-
if (ftype == Thrift.Type.I64) {
|
544
|
-
this.publicationDate = input.readI64();
|
545
|
-
} else {
|
546
|
-
input.skip(ftype);
|
547
|
-
}
|
548
|
-
break;
|
549
|
-
case 34:
|
550
|
-
if (ftype == Thrift.Type.I32) {
|
551
|
-
this.publicationDayOfMonth = input.readI32();
|
552
|
-
} else {
|
553
|
-
input.skip(ftype);
|
554
|
-
}
|
555
|
-
break;
|
556
|
-
case 35:
|
557
|
-
if (ftype == Thrift.Type.I32) {
|
558
|
-
this.publicationMonth = input.readI32();
|
559
|
-
} else {
|
560
|
-
input.skip(ftype);
|
561
|
-
}
|
562
|
-
break;
|
563
|
-
case 36:
|
564
|
-
if (ftype == Thrift.Type.I32) {
|
565
|
-
this.publicationYear = input.readI32();
|
566
|
-
} else {
|
567
|
-
input.skip(ftype);
|
568
|
-
}
|
569
|
-
break;
|
570
|
-
case 37:
|
571
|
-
if (ftype == Thrift.Type.STRING) {
|
572
|
-
this.section = input.readString();
|
573
|
-
} else {
|
574
|
-
input.skip(ftype);
|
575
|
-
}
|
576
|
-
break;
|
577
|
-
case 38:
|
578
|
-
if (ftype == Thrift.Type.STRING) {
|
579
|
-
this.seriesName = input.readString();
|
580
|
-
} else {
|
581
|
-
input.skip(ftype);
|
582
|
-
}
|
583
|
-
break;
|
584
|
-
case 39:
|
585
|
-
if (ftype == Thrift.Type.STRING) {
|
586
|
-
this.slug = input.readString();
|
587
|
-
} else {
|
588
|
-
input.skip(ftype);
|
589
|
-
}
|
590
|
-
break;
|
591
|
-
case 40:
|
592
|
-
if (ftype == Thrift.Type.LIST) {
|
593
|
-
this.taxonomicClassifierList = [];
|
594
|
-
const _rtmp357 = input.readListBegin();
|
595
|
-
const _size56 = _rtmp357.size || 0;
|
596
|
-
for (let _i58 = 0; _i58 < _size56; ++_i58) {
|
597
|
-
let elem59 = null;
|
598
|
-
elem59 = input.readString();
|
599
|
-
this.taxonomicClassifierList.push(elem59);
|
600
|
-
}
|
601
|
-
input.readListEnd();
|
602
|
-
} else {
|
603
|
-
input.skip(ftype);
|
604
|
-
}
|
605
|
-
break;
|
606
|
-
case 41:
|
607
|
-
if (ftype == Thrift.Type.LIST) {
|
608
|
-
this.titleList = [];
|
609
|
-
const _rtmp361 = input.readListBegin();
|
610
|
-
const _size60 = _rtmp361.size || 0;
|
611
|
-
for (let _i62 = 0; _i62 < _size60; ++_i62) {
|
612
|
-
let elem63 = null;
|
613
|
-
elem63 = input.readString();
|
614
|
-
this.titleList.push(elem63);
|
615
|
-
}
|
616
|
-
input.readListEnd();
|
617
|
-
} else {
|
618
|
-
input.skip(ftype);
|
619
|
-
}
|
620
|
-
break;
|
621
|
-
case 42:
|
622
|
-
if (ftype == Thrift.Type.LIST) {
|
623
|
-
this.typesOfMaterialList = [];
|
624
|
-
const _rtmp365 = input.readListBegin();
|
625
|
-
const _size64 = _rtmp365.size || 0;
|
626
|
-
for (let _i66 = 0; _i66 < _size64; ++_i66) {
|
627
|
-
let elem67 = null;
|
628
|
-
elem67 = input.readString();
|
629
|
-
this.typesOfMaterialList.push(elem67);
|
630
|
-
}
|
631
|
-
input.readListEnd();
|
632
|
-
} else {
|
633
|
-
input.skip(ftype);
|
634
|
-
}
|
635
|
-
break;
|
636
|
-
case 43:
|
637
|
-
if (ftype == Thrift.Type.STRING) {
|
638
|
-
this.url = input.readString();
|
639
|
-
} else {
|
640
|
-
input.skip(ftype);
|
641
|
-
}
|
642
|
-
break;
|
643
|
-
case 44:
|
644
|
-
if (ftype == Thrift.Type.I32) {
|
645
|
-
this.wordCount = input.readI32();
|
646
|
-
} else {
|
647
|
-
input.skip(ftype);
|
648
|
-
}
|
649
|
-
break;
|
650
|
-
default:
|
651
|
-
input.skip(ftype);
|
652
|
-
}
|
653
|
-
input.readFieldEnd();
|
654
|
-
}
|
655
|
-
input.readStructEnd();
|
656
|
-
return;
|
657
|
-
}
|
658
|
-
|
659
|
-
write (output) {
|
660
|
-
output.writeStructBegin('NITFInfo');
|
661
|
-
if (this.alternateURL !== null && this.alternateURL !== undefined) {
|
662
|
-
output.writeFieldBegin('alternateURL', Thrift.Type.STRING, 1);
|
663
|
-
output.writeString(this.alternateURL);
|
664
|
-
output.writeFieldEnd();
|
665
|
-
}
|
666
|
-
if (this.articleAbstract !== null && this.articleAbstract !== undefined) {
|
667
|
-
output.writeFieldBegin('articleAbstract', Thrift.Type.STRING, 2);
|
668
|
-
output.writeString(this.articleAbstract);
|
669
|
-
output.writeFieldEnd();
|
670
|
-
}
|
671
|
-
if (this.authorBiography !== null && this.authorBiography !== undefined) {
|
672
|
-
output.writeFieldBegin('authorBiography', Thrift.Type.STRING, 3);
|
673
|
-
output.writeString(this.authorBiography);
|
674
|
-
output.writeFieldEnd();
|
675
|
-
}
|
676
|
-
if (this.banner !== null && this.banner !== undefined) {
|
677
|
-
output.writeFieldBegin('banner', Thrift.Type.STRING, 4);
|
678
|
-
output.writeString(this.banner);
|
679
|
-
output.writeFieldEnd();
|
680
|
-
}
|
681
|
-
if (this.biographicalCategoryList !== null && this.biographicalCategoryList !== undefined) {
|
682
|
-
output.writeFieldBegin('biographicalCategoryList', Thrift.Type.LIST, 5);
|
683
|
-
output.writeListBegin(Thrift.Type.STRING, this.biographicalCategoryList.length);
|
684
|
-
for (let iter68 in this.biographicalCategoryList) {
|
685
|
-
if (this.biographicalCategoryList.hasOwnProperty(iter68)) {
|
686
|
-
iter68 = this.biographicalCategoryList[iter68];
|
687
|
-
output.writeString(iter68);
|
688
|
-
}
|
689
|
-
}
|
690
|
-
output.writeListEnd();
|
691
|
-
output.writeFieldEnd();
|
692
|
-
}
|
693
|
-
if (this.columnName !== null && this.columnName !== undefined) {
|
694
|
-
output.writeFieldBegin('columnName', Thrift.Type.STRING, 6);
|
695
|
-
output.writeString(this.columnName);
|
696
|
-
output.writeFieldEnd();
|
697
|
-
}
|
698
|
-
if (this.columnNumber !== null && this.columnNumber !== undefined) {
|
699
|
-
output.writeFieldBegin('columnNumber', Thrift.Type.I32, 7);
|
700
|
-
output.writeI32(this.columnNumber);
|
701
|
-
output.writeFieldEnd();
|
702
|
-
}
|
703
|
-
if (this.correctionDate !== null && this.correctionDate !== undefined) {
|
704
|
-
output.writeFieldBegin('correctionDate', Thrift.Type.I64, 8);
|
705
|
-
output.writeI64(this.correctionDate);
|
706
|
-
output.writeFieldEnd();
|
707
|
-
}
|
708
|
-
if (this.correctionText !== null && this.correctionText !== undefined) {
|
709
|
-
output.writeFieldBegin('correctionText', Thrift.Type.STRING, 9);
|
710
|
-
output.writeString(this.correctionText);
|
711
|
-
output.writeFieldEnd();
|
712
|
-
}
|
713
|
-
if (this.credit !== null && this.credit !== undefined) {
|
714
|
-
output.writeFieldBegin('credit', Thrift.Type.STRING, 10);
|
715
|
-
output.writeString(this.credit);
|
716
|
-
output.writeFieldEnd();
|
717
|
-
}
|
718
|
-
if (this.dayOfWeek !== null && this.dayOfWeek !== undefined) {
|
719
|
-
output.writeFieldBegin('dayOfWeek', Thrift.Type.STRING, 11);
|
720
|
-
output.writeString(this.dayOfWeek);
|
721
|
-
output.writeFieldEnd();
|
722
|
-
}
|
723
|
-
if (this.descriptorList !== null && this.descriptorList !== undefined) {
|
724
|
-
output.writeFieldBegin('descriptorList', Thrift.Type.LIST, 12);
|
725
|
-
output.writeListBegin(Thrift.Type.STRING, this.descriptorList.length);
|
726
|
-
for (let iter69 in this.descriptorList) {
|
727
|
-
if (this.descriptorList.hasOwnProperty(iter69)) {
|
728
|
-
iter69 = this.descriptorList[iter69];
|
729
|
-
output.writeString(iter69);
|
730
|
-
}
|
731
|
-
}
|
732
|
-
output.writeListEnd();
|
733
|
-
output.writeFieldEnd();
|
734
|
-
}
|
735
|
-
if (this.featurePage !== null && this.featurePage !== undefined) {
|
736
|
-
output.writeFieldBegin('featurePage', Thrift.Type.STRING, 13);
|
737
|
-
output.writeString(this.featurePage);
|
738
|
-
output.writeFieldEnd();
|
739
|
-
}
|
740
|
-
if (this.generalOnlineDescriptorList !== null && this.generalOnlineDescriptorList !== undefined) {
|
741
|
-
output.writeFieldBegin('generalOnlineDescriptorList', Thrift.Type.LIST, 14);
|
742
|
-
output.writeListBegin(Thrift.Type.STRING, this.generalOnlineDescriptorList.length);
|
743
|
-
for (let iter70 in this.generalOnlineDescriptorList) {
|
744
|
-
if (this.generalOnlineDescriptorList.hasOwnProperty(iter70)) {
|
745
|
-
iter70 = this.generalOnlineDescriptorList[iter70];
|
746
|
-
output.writeString(iter70);
|
747
|
-
}
|
748
|
-
}
|
749
|
-
output.writeListEnd();
|
750
|
-
output.writeFieldEnd();
|
751
|
-
}
|
752
|
-
if (this.guid !== null && this.guid !== undefined) {
|
753
|
-
output.writeFieldBegin('guid', Thrift.Type.I32, 15);
|
754
|
-
output.writeI32(this.guid);
|
755
|
-
output.writeFieldEnd();
|
756
|
-
}
|
757
|
-
if (this.kicker !== null && this.kicker !== undefined) {
|
758
|
-
output.writeFieldBegin('kicker', Thrift.Type.STRING, 16);
|
759
|
-
output.writeString(this.kicker);
|
760
|
-
output.writeFieldEnd();
|
761
|
-
}
|
762
|
-
if (this.leadParagraphList !== null && this.leadParagraphList !== undefined) {
|
763
|
-
output.writeFieldBegin('leadParagraphList', Thrift.Type.LIST, 17);
|
764
|
-
output.writeListBegin(Thrift.Type.STRING, this.leadParagraphList.length);
|
765
|
-
for (let iter71 in this.leadParagraphList) {
|
766
|
-
if (this.leadParagraphList.hasOwnProperty(iter71)) {
|
767
|
-
iter71 = this.leadParagraphList[iter71];
|
768
|
-
output.writeString(iter71);
|
769
|
-
}
|
770
|
-
}
|
771
|
-
output.writeListEnd();
|
772
|
-
output.writeFieldEnd();
|
773
|
-
}
|
774
|
-
if (this.locationList !== null && this.locationList !== undefined) {
|
775
|
-
output.writeFieldBegin('locationList', Thrift.Type.LIST, 18);
|
776
|
-
output.writeListBegin(Thrift.Type.STRING, this.locationList.length);
|
777
|
-
for (let iter72 in this.locationList) {
|
778
|
-
if (this.locationList.hasOwnProperty(iter72)) {
|
779
|
-
iter72 = this.locationList[iter72];
|
780
|
-
output.writeString(iter72);
|
781
|
-
}
|
782
|
-
}
|
783
|
-
output.writeListEnd();
|
784
|
-
output.writeFieldEnd();
|
785
|
-
}
|
786
|
-
if (this.nameList !== null && this.nameList !== undefined) {
|
787
|
-
output.writeFieldBegin('nameList', Thrift.Type.LIST, 19);
|
788
|
-
output.writeListBegin(Thrift.Type.STRING, this.nameList.length);
|
789
|
-
for (let iter73 in this.nameList) {
|
790
|
-
if (this.nameList.hasOwnProperty(iter73)) {
|
791
|
-
iter73 = this.nameList[iter73];
|
792
|
-
output.writeString(iter73);
|
793
|
-
}
|
794
|
-
}
|
795
|
-
output.writeListEnd();
|
796
|
-
output.writeFieldEnd();
|
797
|
-
}
|
798
|
-
if (this.newsDesk !== null && this.newsDesk !== undefined) {
|
799
|
-
output.writeFieldBegin('newsDesk', Thrift.Type.STRING, 20);
|
800
|
-
output.writeString(this.newsDesk);
|
801
|
-
output.writeFieldEnd();
|
802
|
-
}
|
803
|
-
if (this.normalizedByline !== null && this.normalizedByline !== undefined) {
|
804
|
-
output.writeFieldBegin('normalizedByline', Thrift.Type.STRING, 21);
|
805
|
-
output.writeString(this.normalizedByline);
|
806
|
-
output.writeFieldEnd();
|
807
|
-
}
|
808
|
-
if (this.onlineDescriptorList !== null && this.onlineDescriptorList !== undefined) {
|
809
|
-
output.writeFieldBegin('onlineDescriptorList', Thrift.Type.LIST, 22);
|
810
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlineDescriptorList.length);
|
811
|
-
for (let iter74 in this.onlineDescriptorList) {
|
812
|
-
if (this.onlineDescriptorList.hasOwnProperty(iter74)) {
|
813
|
-
iter74 = this.onlineDescriptorList[iter74];
|
814
|
-
output.writeString(iter74);
|
815
|
-
}
|
816
|
-
}
|
817
|
-
output.writeListEnd();
|
818
|
-
output.writeFieldEnd();
|
819
|
-
}
|
820
|
-
if (this.onlineHeadline !== null && this.onlineHeadline !== undefined) {
|
821
|
-
output.writeFieldBegin('onlineHeadline', Thrift.Type.STRING, 23);
|
822
|
-
output.writeString(this.onlineHeadline);
|
823
|
-
output.writeFieldEnd();
|
824
|
-
}
|
825
|
-
if (this.onlineLeadParagraph !== null && this.onlineLeadParagraph !== undefined) {
|
826
|
-
output.writeFieldBegin('onlineLeadParagraph', Thrift.Type.STRING, 24);
|
827
|
-
output.writeString(this.onlineLeadParagraph);
|
828
|
-
output.writeFieldEnd();
|
829
|
-
}
|
830
|
-
if (this.onlineLocationList !== null && this.onlineLocationList !== undefined) {
|
831
|
-
output.writeFieldBegin('onlineLocationList', Thrift.Type.LIST, 25);
|
832
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlineLocationList.length);
|
833
|
-
for (let iter75 in this.onlineLocationList) {
|
834
|
-
if (this.onlineLocationList.hasOwnProperty(iter75)) {
|
835
|
-
iter75 = this.onlineLocationList[iter75];
|
836
|
-
output.writeString(iter75);
|
837
|
-
}
|
838
|
-
}
|
839
|
-
output.writeListEnd();
|
840
|
-
output.writeFieldEnd();
|
841
|
-
}
|
842
|
-
if (this.onlineOrganizationList !== null && this.onlineOrganizationList !== undefined) {
|
843
|
-
output.writeFieldBegin('onlineOrganizationList', Thrift.Type.LIST, 26);
|
844
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlineOrganizationList.length);
|
845
|
-
for (let iter76 in this.onlineOrganizationList) {
|
846
|
-
if (this.onlineOrganizationList.hasOwnProperty(iter76)) {
|
847
|
-
iter76 = this.onlineOrganizationList[iter76];
|
848
|
-
output.writeString(iter76);
|
849
|
-
}
|
850
|
-
}
|
851
|
-
output.writeListEnd();
|
852
|
-
output.writeFieldEnd();
|
853
|
-
}
|
854
|
-
if (this.onlinePeople !== null && this.onlinePeople !== undefined) {
|
855
|
-
output.writeFieldBegin('onlinePeople', Thrift.Type.LIST, 27);
|
856
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlinePeople.length);
|
857
|
-
for (let iter77 in this.onlinePeople) {
|
858
|
-
if (this.onlinePeople.hasOwnProperty(iter77)) {
|
859
|
-
iter77 = this.onlinePeople[iter77];
|
860
|
-
output.writeString(iter77);
|
861
|
-
}
|
862
|
-
}
|
863
|
-
output.writeListEnd();
|
864
|
-
output.writeFieldEnd();
|
865
|
-
}
|
866
|
-
if (this.onlineSectionList !== null && this.onlineSectionList !== undefined) {
|
867
|
-
output.writeFieldBegin('onlineSectionList', Thrift.Type.LIST, 28);
|
868
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlineSectionList.length);
|
869
|
-
for (let iter78 in this.onlineSectionList) {
|
870
|
-
if (this.onlineSectionList.hasOwnProperty(iter78)) {
|
871
|
-
iter78 = this.onlineSectionList[iter78];
|
872
|
-
output.writeString(iter78);
|
873
|
-
}
|
874
|
-
}
|
875
|
-
output.writeListEnd();
|
876
|
-
output.writeFieldEnd();
|
877
|
-
}
|
878
|
-
if (this.onlineTitleList !== null && this.onlineTitleList !== undefined) {
|
879
|
-
output.writeFieldBegin('onlineTitleList', Thrift.Type.LIST, 29);
|
880
|
-
output.writeListBegin(Thrift.Type.STRING, this.onlineTitleList.length);
|
881
|
-
for (let iter79 in this.onlineTitleList) {
|
882
|
-
if (this.onlineTitleList.hasOwnProperty(iter79)) {
|
883
|
-
iter79 = this.onlineTitleList[iter79];
|
884
|
-
output.writeString(iter79);
|
885
|
-
}
|
886
|
-
}
|
887
|
-
output.writeListEnd();
|
888
|
-
output.writeFieldEnd();
|
889
|
-
}
|
890
|
-
if (this.organizationList !== null && this.organizationList !== undefined) {
|
891
|
-
output.writeFieldBegin('organizationList', Thrift.Type.LIST, 30);
|
892
|
-
output.writeListBegin(Thrift.Type.STRING, this.organizationList.length);
|
893
|
-
for (let iter80 in this.organizationList) {
|
894
|
-
if (this.organizationList.hasOwnProperty(iter80)) {
|
895
|
-
iter80 = this.organizationList[iter80];
|
896
|
-
output.writeString(iter80);
|
897
|
-
}
|
898
|
-
}
|
899
|
-
output.writeListEnd();
|
900
|
-
output.writeFieldEnd();
|
901
|
-
}
|
902
|
-
if (this.page !== null && this.page !== undefined) {
|
903
|
-
output.writeFieldBegin('page', Thrift.Type.I32, 31);
|
904
|
-
output.writeI32(this.page);
|
905
|
-
output.writeFieldEnd();
|
906
|
-
}
|
907
|
-
if (this.peopleList !== null && this.peopleList !== undefined) {
|
908
|
-
output.writeFieldBegin('peopleList', Thrift.Type.LIST, 32);
|
909
|
-
output.writeListBegin(Thrift.Type.STRING, this.peopleList.length);
|
910
|
-
for (let iter81 in this.peopleList) {
|
911
|
-
if (this.peopleList.hasOwnProperty(iter81)) {
|
912
|
-
iter81 = this.peopleList[iter81];
|
913
|
-
output.writeString(iter81);
|
914
|
-
}
|
915
|
-
}
|
916
|
-
output.writeListEnd();
|
917
|
-
output.writeFieldEnd();
|
918
|
-
}
|
919
|
-
if (this.publicationDate !== null && this.publicationDate !== undefined) {
|
920
|
-
output.writeFieldBegin('publicationDate', Thrift.Type.I64, 33);
|
921
|
-
output.writeI64(this.publicationDate);
|
922
|
-
output.writeFieldEnd();
|
923
|
-
}
|
924
|
-
if (this.publicationDayOfMonth !== null && this.publicationDayOfMonth !== undefined) {
|
925
|
-
output.writeFieldBegin('publicationDayOfMonth', Thrift.Type.I32, 34);
|
926
|
-
output.writeI32(this.publicationDayOfMonth);
|
927
|
-
output.writeFieldEnd();
|
928
|
-
}
|
929
|
-
if (this.publicationMonth !== null && this.publicationMonth !== undefined) {
|
930
|
-
output.writeFieldBegin('publicationMonth', Thrift.Type.I32, 35);
|
931
|
-
output.writeI32(this.publicationMonth);
|
932
|
-
output.writeFieldEnd();
|
933
|
-
}
|
934
|
-
if (this.publicationYear !== null && this.publicationYear !== undefined) {
|
935
|
-
output.writeFieldBegin('publicationYear', Thrift.Type.I32, 36);
|
936
|
-
output.writeI32(this.publicationYear);
|
937
|
-
output.writeFieldEnd();
|
938
|
-
}
|
939
|
-
if (this.section !== null && this.section !== undefined) {
|
940
|
-
output.writeFieldBegin('section', Thrift.Type.STRING, 37);
|
941
|
-
output.writeString(this.section);
|
942
|
-
output.writeFieldEnd();
|
943
|
-
}
|
944
|
-
if (this.seriesName !== null && this.seriesName !== undefined) {
|
945
|
-
output.writeFieldBegin('seriesName', Thrift.Type.STRING, 38);
|
946
|
-
output.writeString(this.seriesName);
|
947
|
-
output.writeFieldEnd();
|
948
|
-
}
|
949
|
-
if (this.slug !== null && this.slug !== undefined) {
|
950
|
-
output.writeFieldBegin('slug', Thrift.Type.STRING, 39);
|
951
|
-
output.writeString(this.slug);
|
952
|
-
output.writeFieldEnd();
|
953
|
-
}
|
954
|
-
if (this.taxonomicClassifierList !== null && this.taxonomicClassifierList !== undefined) {
|
955
|
-
output.writeFieldBegin('taxonomicClassifierList', Thrift.Type.LIST, 40);
|
956
|
-
output.writeListBegin(Thrift.Type.STRING, this.taxonomicClassifierList.length);
|
957
|
-
for (let iter82 in this.taxonomicClassifierList) {
|
958
|
-
if (this.taxonomicClassifierList.hasOwnProperty(iter82)) {
|
959
|
-
iter82 = this.taxonomicClassifierList[iter82];
|
960
|
-
output.writeString(iter82);
|
961
|
-
}
|
962
|
-
}
|
963
|
-
output.writeListEnd();
|
964
|
-
output.writeFieldEnd();
|
965
|
-
}
|
966
|
-
if (this.titleList !== null && this.titleList !== undefined) {
|
967
|
-
output.writeFieldBegin('titleList', Thrift.Type.LIST, 41);
|
968
|
-
output.writeListBegin(Thrift.Type.STRING, this.titleList.length);
|
969
|
-
for (let iter83 in this.titleList) {
|
970
|
-
if (this.titleList.hasOwnProperty(iter83)) {
|
971
|
-
iter83 = this.titleList[iter83];
|
972
|
-
output.writeString(iter83);
|
973
|
-
}
|
974
|
-
}
|
975
|
-
output.writeListEnd();
|
976
|
-
output.writeFieldEnd();
|
977
|
-
}
|
978
|
-
if (this.typesOfMaterialList !== null && this.typesOfMaterialList !== undefined) {
|
979
|
-
output.writeFieldBegin('typesOfMaterialList', Thrift.Type.LIST, 42);
|
980
|
-
output.writeListBegin(Thrift.Type.STRING, this.typesOfMaterialList.length);
|
981
|
-
for (let iter84 in this.typesOfMaterialList) {
|
982
|
-
if (this.typesOfMaterialList.hasOwnProperty(iter84)) {
|
983
|
-
iter84 = this.typesOfMaterialList[iter84];
|
984
|
-
output.writeString(iter84);
|
985
|
-
}
|
986
|
-
}
|
987
|
-
output.writeListEnd();
|
988
|
-
output.writeFieldEnd();
|
989
|
-
}
|
990
|
-
if (this.url !== null && this.url !== undefined) {
|
991
|
-
output.writeFieldBegin('url', Thrift.Type.STRING, 43);
|
992
|
-
output.writeString(this.url);
|
993
|
-
output.writeFieldEnd();
|
994
|
-
}
|
995
|
-
if (this.wordCount !== null && this.wordCount !== undefined) {
|
996
|
-
output.writeFieldBegin('wordCount', Thrift.Type.I32, 44);
|
997
|
-
output.writeI32(this.wordCount);
|
998
|
-
output.writeFieldEnd();
|
999
|
-
}
|
1000
|
-
output.writeFieldStop();
|
1001
|
-
output.writeStructEnd();
|
1002
|
-
return;
|
1003
|
-
}
|
1004
|
-
|
1005
|
-
};
|
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
|
+
|
13
|
+
const ttypes = module.exports = {};
|
14
|
+
const NITFInfo = module.exports.NITFInfo = class {
|
15
|
+
constructor(args) {
|
16
|
+
this.alternateURL = null;
|
17
|
+
this.articleAbstract = null;
|
18
|
+
this.authorBiography = null;
|
19
|
+
this.banner = null;
|
20
|
+
this.biographicalCategoryList = null;
|
21
|
+
this.columnName = null;
|
22
|
+
this.columnNumber = null;
|
23
|
+
this.correctionDate = null;
|
24
|
+
this.correctionText = null;
|
25
|
+
this.credit = null;
|
26
|
+
this.dayOfWeek = null;
|
27
|
+
this.descriptorList = null;
|
28
|
+
this.featurePage = null;
|
29
|
+
this.generalOnlineDescriptorList = null;
|
30
|
+
this.guid = null;
|
31
|
+
this.kicker = null;
|
32
|
+
this.leadParagraphList = null;
|
33
|
+
this.locationList = null;
|
34
|
+
this.nameList = null;
|
35
|
+
this.newsDesk = null;
|
36
|
+
this.normalizedByline = null;
|
37
|
+
this.onlineDescriptorList = null;
|
38
|
+
this.onlineHeadline = null;
|
39
|
+
this.onlineLeadParagraph = null;
|
40
|
+
this.onlineLocationList = null;
|
41
|
+
this.onlineOrganizationList = null;
|
42
|
+
this.onlinePeople = null;
|
43
|
+
this.onlineSectionList = null;
|
44
|
+
this.onlineTitleList = null;
|
45
|
+
this.organizationList = null;
|
46
|
+
this.page = null;
|
47
|
+
this.peopleList = null;
|
48
|
+
this.publicationDate = null;
|
49
|
+
this.publicationDayOfMonth = null;
|
50
|
+
this.publicationMonth = null;
|
51
|
+
this.publicationYear = null;
|
52
|
+
this.section = null;
|
53
|
+
this.seriesName = null;
|
54
|
+
this.slug = null;
|
55
|
+
this.taxonomicClassifierList = null;
|
56
|
+
this.titleList = null;
|
57
|
+
this.typesOfMaterialList = null;
|
58
|
+
this.url = null;
|
59
|
+
this.wordCount = null;
|
60
|
+
if (args) {
|
61
|
+
if (args.alternateURL !== undefined && args.alternateURL !== null) {
|
62
|
+
this.alternateURL = args.alternateURL;
|
63
|
+
}
|
64
|
+
if (args.articleAbstract !== undefined && args.articleAbstract !== null) {
|
65
|
+
this.articleAbstract = args.articleAbstract;
|
66
|
+
}
|
67
|
+
if (args.authorBiography !== undefined && args.authorBiography !== null) {
|
68
|
+
this.authorBiography = args.authorBiography;
|
69
|
+
}
|
70
|
+
if (args.banner !== undefined && args.banner !== null) {
|
71
|
+
this.banner = args.banner;
|
72
|
+
}
|
73
|
+
if (args.biographicalCategoryList !== undefined && args.biographicalCategoryList !== null) {
|
74
|
+
this.biographicalCategoryList = Thrift.copyList(args.biographicalCategoryList, [null]);
|
75
|
+
}
|
76
|
+
if (args.columnName !== undefined && args.columnName !== null) {
|
77
|
+
this.columnName = args.columnName;
|
78
|
+
}
|
79
|
+
if (args.columnNumber !== undefined && args.columnNumber !== null) {
|
80
|
+
this.columnNumber = args.columnNumber;
|
81
|
+
}
|
82
|
+
if (args.correctionDate !== undefined && args.correctionDate !== null) {
|
83
|
+
this.correctionDate = args.correctionDate;
|
84
|
+
}
|
85
|
+
if (args.correctionText !== undefined && args.correctionText !== null) {
|
86
|
+
this.correctionText = args.correctionText;
|
87
|
+
}
|
88
|
+
if (args.credit !== undefined && args.credit !== null) {
|
89
|
+
this.credit = args.credit;
|
90
|
+
}
|
91
|
+
if (args.dayOfWeek !== undefined && args.dayOfWeek !== null) {
|
92
|
+
this.dayOfWeek = args.dayOfWeek;
|
93
|
+
}
|
94
|
+
if (args.descriptorList !== undefined && args.descriptorList !== null) {
|
95
|
+
this.descriptorList = Thrift.copyList(args.descriptorList, [null]);
|
96
|
+
}
|
97
|
+
if (args.featurePage !== undefined && args.featurePage !== null) {
|
98
|
+
this.featurePage = args.featurePage;
|
99
|
+
}
|
100
|
+
if (args.generalOnlineDescriptorList !== undefined && args.generalOnlineDescriptorList !== null) {
|
101
|
+
this.generalOnlineDescriptorList = Thrift.copyList(args.generalOnlineDescriptorList, [null]);
|
102
|
+
}
|
103
|
+
if (args.guid !== undefined && args.guid !== null) {
|
104
|
+
this.guid = args.guid;
|
105
|
+
}
|
106
|
+
if (args.kicker !== undefined && args.kicker !== null) {
|
107
|
+
this.kicker = args.kicker;
|
108
|
+
}
|
109
|
+
if (args.leadParagraphList !== undefined && args.leadParagraphList !== null) {
|
110
|
+
this.leadParagraphList = Thrift.copyList(args.leadParagraphList, [null]);
|
111
|
+
}
|
112
|
+
if (args.locationList !== undefined && args.locationList !== null) {
|
113
|
+
this.locationList = Thrift.copyList(args.locationList, [null]);
|
114
|
+
}
|
115
|
+
if (args.nameList !== undefined && args.nameList !== null) {
|
116
|
+
this.nameList = Thrift.copyList(args.nameList, [null]);
|
117
|
+
}
|
118
|
+
if (args.newsDesk !== undefined && args.newsDesk !== null) {
|
119
|
+
this.newsDesk = args.newsDesk;
|
120
|
+
}
|
121
|
+
if (args.normalizedByline !== undefined && args.normalizedByline !== null) {
|
122
|
+
this.normalizedByline = args.normalizedByline;
|
123
|
+
}
|
124
|
+
if (args.onlineDescriptorList !== undefined && args.onlineDescriptorList !== null) {
|
125
|
+
this.onlineDescriptorList = Thrift.copyList(args.onlineDescriptorList, [null]);
|
126
|
+
}
|
127
|
+
if (args.onlineHeadline !== undefined && args.onlineHeadline !== null) {
|
128
|
+
this.onlineHeadline = args.onlineHeadline;
|
129
|
+
}
|
130
|
+
if (args.onlineLeadParagraph !== undefined && args.onlineLeadParagraph !== null) {
|
131
|
+
this.onlineLeadParagraph = args.onlineLeadParagraph;
|
132
|
+
}
|
133
|
+
if (args.onlineLocationList !== undefined && args.onlineLocationList !== null) {
|
134
|
+
this.onlineLocationList = Thrift.copyList(args.onlineLocationList, [null]);
|
135
|
+
}
|
136
|
+
if (args.onlineOrganizationList !== undefined && args.onlineOrganizationList !== null) {
|
137
|
+
this.onlineOrganizationList = Thrift.copyList(args.onlineOrganizationList, [null]);
|
138
|
+
}
|
139
|
+
if (args.onlinePeople !== undefined && args.onlinePeople !== null) {
|
140
|
+
this.onlinePeople = Thrift.copyList(args.onlinePeople, [null]);
|
141
|
+
}
|
142
|
+
if (args.onlineSectionList !== undefined && args.onlineSectionList !== null) {
|
143
|
+
this.onlineSectionList = Thrift.copyList(args.onlineSectionList, [null]);
|
144
|
+
}
|
145
|
+
if (args.onlineTitleList !== undefined && args.onlineTitleList !== null) {
|
146
|
+
this.onlineTitleList = Thrift.copyList(args.onlineTitleList, [null]);
|
147
|
+
}
|
148
|
+
if (args.organizationList !== undefined && args.organizationList !== null) {
|
149
|
+
this.organizationList = Thrift.copyList(args.organizationList, [null]);
|
150
|
+
}
|
151
|
+
if (args.page !== undefined && args.page !== null) {
|
152
|
+
this.page = args.page;
|
153
|
+
}
|
154
|
+
if (args.peopleList !== undefined && args.peopleList !== null) {
|
155
|
+
this.peopleList = Thrift.copyList(args.peopleList, [null]);
|
156
|
+
}
|
157
|
+
if (args.publicationDate !== undefined && args.publicationDate !== null) {
|
158
|
+
this.publicationDate = args.publicationDate;
|
159
|
+
}
|
160
|
+
if (args.publicationDayOfMonth !== undefined && args.publicationDayOfMonth !== null) {
|
161
|
+
this.publicationDayOfMonth = args.publicationDayOfMonth;
|
162
|
+
}
|
163
|
+
if (args.publicationMonth !== undefined && args.publicationMonth !== null) {
|
164
|
+
this.publicationMonth = args.publicationMonth;
|
165
|
+
}
|
166
|
+
if (args.publicationYear !== undefined && args.publicationYear !== null) {
|
167
|
+
this.publicationYear = args.publicationYear;
|
168
|
+
}
|
169
|
+
if (args.section !== undefined && args.section !== null) {
|
170
|
+
this.section = args.section;
|
171
|
+
}
|
172
|
+
if (args.seriesName !== undefined && args.seriesName !== null) {
|
173
|
+
this.seriesName = args.seriesName;
|
174
|
+
}
|
175
|
+
if (args.slug !== undefined && args.slug !== null) {
|
176
|
+
this.slug = args.slug;
|
177
|
+
}
|
178
|
+
if (args.taxonomicClassifierList !== undefined && args.taxonomicClassifierList !== null) {
|
179
|
+
this.taxonomicClassifierList = Thrift.copyList(args.taxonomicClassifierList, [null]);
|
180
|
+
}
|
181
|
+
if (args.titleList !== undefined && args.titleList !== null) {
|
182
|
+
this.titleList = Thrift.copyList(args.titleList, [null]);
|
183
|
+
}
|
184
|
+
if (args.typesOfMaterialList !== undefined && args.typesOfMaterialList !== null) {
|
185
|
+
this.typesOfMaterialList = Thrift.copyList(args.typesOfMaterialList, [null]);
|
186
|
+
}
|
187
|
+
if (args.url !== undefined && args.url !== null) {
|
188
|
+
this.url = args.url;
|
189
|
+
}
|
190
|
+
if (args.wordCount !== undefined && args.wordCount !== null) {
|
191
|
+
this.wordCount = args.wordCount;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
read (input) {
|
197
|
+
input.readStructBegin();
|
198
|
+
while (true) {
|
199
|
+
const ret = input.readFieldBegin();
|
200
|
+
const ftype = ret.ftype;
|
201
|
+
const fid = ret.fid;
|
202
|
+
if (ftype == Thrift.Type.STOP) {
|
203
|
+
break;
|
204
|
+
}
|
205
|
+
switch (fid) {
|
206
|
+
case 1:
|
207
|
+
if (ftype == Thrift.Type.STRING) {
|
208
|
+
this.alternateURL = input.readString();
|
209
|
+
} else {
|
210
|
+
input.skip(ftype);
|
211
|
+
}
|
212
|
+
break;
|
213
|
+
case 2:
|
214
|
+
if (ftype == Thrift.Type.STRING) {
|
215
|
+
this.articleAbstract = input.readString();
|
216
|
+
} else {
|
217
|
+
input.skip(ftype);
|
218
|
+
}
|
219
|
+
break;
|
220
|
+
case 3:
|
221
|
+
if (ftype == Thrift.Type.STRING) {
|
222
|
+
this.authorBiography = input.readString();
|
223
|
+
} else {
|
224
|
+
input.skip(ftype);
|
225
|
+
}
|
226
|
+
break;
|
227
|
+
case 4:
|
228
|
+
if (ftype == Thrift.Type.STRING) {
|
229
|
+
this.banner = input.readString();
|
230
|
+
} else {
|
231
|
+
input.skip(ftype);
|
232
|
+
}
|
233
|
+
break;
|
234
|
+
case 5:
|
235
|
+
if (ftype == Thrift.Type.LIST) {
|
236
|
+
this.biographicalCategoryList = [];
|
237
|
+
const _rtmp31 = input.readListBegin();
|
238
|
+
const _size0 = _rtmp31.size || 0;
|
239
|
+
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
240
|
+
let elem3 = null;
|
241
|
+
elem3 = input.readString();
|
242
|
+
this.biographicalCategoryList.push(elem3);
|
243
|
+
}
|
244
|
+
input.readListEnd();
|
245
|
+
} else {
|
246
|
+
input.skip(ftype);
|
247
|
+
}
|
248
|
+
break;
|
249
|
+
case 6:
|
250
|
+
if (ftype == Thrift.Type.STRING) {
|
251
|
+
this.columnName = input.readString();
|
252
|
+
} else {
|
253
|
+
input.skip(ftype);
|
254
|
+
}
|
255
|
+
break;
|
256
|
+
case 7:
|
257
|
+
if (ftype == Thrift.Type.I32) {
|
258
|
+
this.columnNumber = input.readI32();
|
259
|
+
} else {
|
260
|
+
input.skip(ftype);
|
261
|
+
}
|
262
|
+
break;
|
263
|
+
case 8:
|
264
|
+
if (ftype == Thrift.Type.I64) {
|
265
|
+
this.correctionDate = input.readI64();
|
266
|
+
} else {
|
267
|
+
input.skip(ftype);
|
268
|
+
}
|
269
|
+
break;
|
270
|
+
case 9:
|
271
|
+
if (ftype == Thrift.Type.STRING) {
|
272
|
+
this.correctionText = input.readString();
|
273
|
+
} else {
|
274
|
+
input.skip(ftype);
|
275
|
+
}
|
276
|
+
break;
|
277
|
+
case 10:
|
278
|
+
if (ftype == Thrift.Type.STRING) {
|
279
|
+
this.credit = input.readString();
|
280
|
+
} else {
|
281
|
+
input.skip(ftype);
|
282
|
+
}
|
283
|
+
break;
|
284
|
+
case 11:
|
285
|
+
if (ftype == Thrift.Type.STRING) {
|
286
|
+
this.dayOfWeek = input.readString();
|
287
|
+
} else {
|
288
|
+
input.skip(ftype);
|
289
|
+
}
|
290
|
+
break;
|
291
|
+
case 12:
|
292
|
+
if (ftype == Thrift.Type.LIST) {
|
293
|
+
this.descriptorList = [];
|
294
|
+
const _rtmp35 = input.readListBegin();
|
295
|
+
const _size4 = _rtmp35.size || 0;
|
296
|
+
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
297
|
+
let elem7 = null;
|
298
|
+
elem7 = input.readString();
|
299
|
+
this.descriptorList.push(elem7);
|
300
|
+
}
|
301
|
+
input.readListEnd();
|
302
|
+
} else {
|
303
|
+
input.skip(ftype);
|
304
|
+
}
|
305
|
+
break;
|
306
|
+
case 13:
|
307
|
+
if (ftype == Thrift.Type.STRING) {
|
308
|
+
this.featurePage = input.readString();
|
309
|
+
} else {
|
310
|
+
input.skip(ftype);
|
311
|
+
}
|
312
|
+
break;
|
313
|
+
case 14:
|
314
|
+
if (ftype == Thrift.Type.LIST) {
|
315
|
+
this.generalOnlineDescriptorList = [];
|
316
|
+
const _rtmp39 = input.readListBegin();
|
317
|
+
const _size8 = _rtmp39.size || 0;
|
318
|
+
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
319
|
+
let elem11 = null;
|
320
|
+
elem11 = input.readString();
|
321
|
+
this.generalOnlineDescriptorList.push(elem11);
|
322
|
+
}
|
323
|
+
input.readListEnd();
|
324
|
+
} else {
|
325
|
+
input.skip(ftype);
|
326
|
+
}
|
327
|
+
break;
|
328
|
+
case 15:
|
329
|
+
if (ftype == Thrift.Type.I32) {
|
330
|
+
this.guid = input.readI32();
|
331
|
+
} else {
|
332
|
+
input.skip(ftype);
|
333
|
+
}
|
334
|
+
break;
|
335
|
+
case 16:
|
336
|
+
if (ftype == Thrift.Type.STRING) {
|
337
|
+
this.kicker = input.readString();
|
338
|
+
} else {
|
339
|
+
input.skip(ftype);
|
340
|
+
}
|
341
|
+
break;
|
342
|
+
case 17:
|
343
|
+
if (ftype == Thrift.Type.LIST) {
|
344
|
+
this.leadParagraphList = [];
|
345
|
+
const _rtmp313 = input.readListBegin();
|
346
|
+
const _size12 = _rtmp313.size || 0;
|
347
|
+
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
348
|
+
let elem15 = null;
|
349
|
+
elem15 = input.readString();
|
350
|
+
this.leadParagraphList.push(elem15);
|
351
|
+
}
|
352
|
+
input.readListEnd();
|
353
|
+
} else {
|
354
|
+
input.skip(ftype);
|
355
|
+
}
|
356
|
+
break;
|
357
|
+
case 18:
|
358
|
+
if (ftype == Thrift.Type.LIST) {
|
359
|
+
this.locationList = [];
|
360
|
+
const _rtmp317 = input.readListBegin();
|
361
|
+
const _size16 = _rtmp317.size || 0;
|
362
|
+
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
363
|
+
let elem19 = null;
|
364
|
+
elem19 = input.readString();
|
365
|
+
this.locationList.push(elem19);
|
366
|
+
}
|
367
|
+
input.readListEnd();
|
368
|
+
} else {
|
369
|
+
input.skip(ftype);
|
370
|
+
}
|
371
|
+
break;
|
372
|
+
case 19:
|
373
|
+
if (ftype == Thrift.Type.LIST) {
|
374
|
+
this.nameList = [];
|
375
|
+
const _rtmp321 = input.readListBegin();
|
376
|
+
const _size20 = _rtmp321.size || 0;
|
377
|
+
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
378
|
+
let elem23 = null;
|
379
|
+
elem23 = input.readString();
|
380
|
+
this.nameList.push(elem23);
|
381
|
+
}
|
382
|
+
input.readListEnd();
|
383
|
+
} else {
|
384
|
+
input.skip(ftype);
|
385
|
+
}
|
386
|
+
break;
|
387
|
+
case 20:
|
388
|
+
if (ftype == Thrift.Type.STRING) {
|
389
|
+
this.newsDesk = input.readString();
|
390
|
+
} else {
|
391
|
+
input.skip(ftype);
|
392
|
+
}
|
393
|
+
break;
|
394
|
+
case 21:
|
395
|
+
if (ftype == Thrift.Type.STRING) {
|
396
|
+
this.normalizedByline = input.readString();
|
397
|
+
} else {
|
398
|
+
input.skip(ftype);
|
399
|
+
}
|
400
|
+
break;
|
401
|
+
case 22:
|
402
|
+
if (ftype == Thrift.Type.LIST) {
|
403
|
+
this.onlineDescriptorList = [];
|
404
|
+
const _rtmp325 = input.readListBegin();
|
405
|
+
const _size24 = _rtmp325.size || 0;
|
406
|
+
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
407
|
+
let elem27 = null;
|
408
|
+
elem27 = input.readString();
|
409
|
+
this.onlineDescriptorList.push(elem27);
|
410
|
+
}
|
411
|
+
input.readListEnd();
|
412
|
+
} else {
|
413
|
+
input.skip(ftype);
|
414
|
+
}
|
415
|
+
break;
|
416
|
+
case 23:
|
417
|
+
if (ftype == Thrift.Type.STRING) {
|
418
|
+
this.onlineHeadline = input.readString();
|
419
|
+
} else {
|
420
|
+
input.skip(ftype);
|
421
|
+
}
|
422
|
+
break;
|
423
|
+
case 24:
|
424
|
+
if (ftype == Thrift.Type.STRING) {
|
425
|
+
this.onlineLeadParagraph = input.readString();
|
426
|
+
} else {
|
427
|
+
input.skip(ftype);
|
428
|
+
}
|
429
|
+
break;
|
430
|
+
case 25:
|
431
|
+
if (ftype == Thrift.Type.LIST) {
|
432
|
+
this.onlineLocationList = [];
|
433
|
+
const _rtmp329 = input.readListBegin();
|
434
|
+
const _size28 = _rtmp329.size || 0;
|
435
|
+
for (let _i30 = 0; _i30 < _size28; ++_i30) {
|
436
|
+
let elem31 = null;
|
437
|
+
elem31 = input.readString();
|
438
|
+
this.onlineLocationList.push(elem31);
|
439
|
+
}
|
440
|
+
input.readListEnd();
|
441
|
+
} else {
|
442
|
+
input.skip(ftype);
|
443
|
+
}
|
444
|
+
break;
|
445
|
+
case 26:
|
446
|
+
if (ftype == Thrift.Type.LIST) {
|
447
|
+
this.onlineOrganizationList = [];
|
448
|
+
const _rtmp333 = input.readListBegin();
|
449
|
+
const _size32 = _rtmp333.size || 0;
|
450
|
+
for (let _i34 = 0; _i34 < _size32; ++_i34) {
|
451
|
+
let elem35 = null;
|
452
|
+
elem35 = input.readString();
|
453
|
+
this.onlineOrganizationList.push(elem35);
|
454
|
+
}
|
455
|
+
input.readListEnd();
|
456
|
+
} else {
|
457
|
+
input.skip(ftype);
|
458
|
+
}
|
459
|
+
break;
|
460
|
+
case 27:
|
461
|
+
if (ftype == Thrift.Type.LIST) {
|
462
|
+
this.onlinePeople = [];
|
463
|
+
const _rtmp337 = input.readListBegin();
|
464
|
+
const _size36 = _rtmp337.size || 0;
|
465
|
+
for (let _i38 = 0; _i38 < _size36; ++_i38) {
|
466
|
+
let elem39 = null;
|
467
|
+
elem39 = input.readString();
|
468
|
+
this.onlinePeople.push(elem39);
|
469
|
+
}
|
470
|
+
input.readListEnd();
|
471
|
+
} else {
|
472
|
+
input.skip(ftype);
|
473
|
+
}
|
474
|
+
break;
|
475
|
+
case 28:
|
476
|
+
if (ftype == Thrift.Type.LIST) {
|
477
|
+
this.onlineSectionList = [];
|
478
|
+
const _rtmp341 = input.readListBegin();
|
479
|
+
const _size40 = _rtmp341.size || 0;
|
480
|
+
for (let _i42 = 0; _i42 < _size40; ++_i42) {
|
481
|
+
let elem43 = null;
|
482
|
+
elem43 = input.readString();
|
483
|
+
this.onlineSectionList.push(elem43);
|
484
|
+
}
|
485
|
+
input.readListEnd();
|
486
|
+
} else {
|
487
|
+
input.skip(ftype);
|
488
|
+
}
|
489
|
+
break;
|
490
|
+
case 29:
|
491
|
+
if (ftype == Thrift.Type.LIST) {
|
492
|
+
this.onlineTitleList = [];
|
493
|
+
const _rtmp345 = input.readListBegin();
|
494
|
+
const _size44 = _rtmp345.size || 0;
|
495
|
+
for (let _i46 = 0; _i46 < _size44; ++_i46) {
|
496
|
+
let elem47 = null;
|
497
|
+
elem47 = input.readString();
|
498
|
+
this.onlineTitleList.push(elem47);
|
499
|
+
}
|
500
|
+
input.readListEnd();
|
501
|
+
} else {
|
502
|
+
input.skip(ftype);
|
503
|
+
}
|
504
|
+
break;
|
505
|
+
case 30:
|
506
|
+
if (ftype == Thrift.Type.LIST) {
|
507
|
+
this.organizationList = [];
|
508
|
+
const _rtmp349 = input.readListBegin();
|
509
|
+
const _size48 = _rtmp349.size || 0;
|
510
|
+
for (let _i50 = 0; _i50 < _size48; ++_i50) {
|
511
|
+
let elem51 = null;
|
512
|
+
elem51 = input.readString();
|
513
|
+
this.organizationList.push(elem51);
|
514
|
+
}
|
515
|
+
input.readListEnd();
|
516
|
+
} else {
|
517
|
+
input.skip(ftype);
|
518
|
+
}
|
519
|
+
break;
|
520
|
+
case 31:
|
521
|
+
if (ftype == Thrift.Type.I32) {
|
522
|
+
this.page = input.readI32();
|
523
|
+
} else {
|
524
|
+
input.skip(ftype);
|
525
|
+
}
|
526
|
+
break;
|
527
|
+
case 32:
|
528
|
+
if (ftype == Thrift.Type.LIST) {
|
529
|
+
this.peopleList = [];
|
530
|
+
const _rtmp353 = input.readListBegin();
|
531
|
+
const _size52 = _rtmp353.size || 0;
|
532
|
+
for (let _i54 = 0; _i54 < _size52; ++_i54) {
|
533
|
+
let elem55 = null;
|
534
|
+
elem55 = input.readString();
|
535
|
+
this.peopleList.push(elem55);
|
536
|
+
}
|
537
|
+
input.readListEnd();
|
538
|
+
} else {
|
539
|
+
input.skip(ftype);
|
540
|
+
}
|
541
|
+
break;
|
542
|
+
case 33:
|
543
|
+
if (ftype == Thrift.Type.I64) {
|
544
|
+
this.publicationDate = input.readI64();
|
545
|
+
} else {
|
546
|
+
input.skip(ftype);
|
547
|
+
}
|
548
|
+
break;
|
549
|
+
case 34:
|
550
|
+
if (ftype == Thrift.Type.I32) {
|
551
|
+
this.publicationDayOfMonth = input.readI32();
|
552
|
+
} else {
|
553
|
+
input.skip(ftype);
|
554
|
+
}
|
555
|
+
break;
|
556
|
+
case 35:
|
557
|
+
if (ftype == Thrift.Type.I32) {
|
558
|
+
this.publicationMonth = input.readI32();
|
559
|
+
} else {
|
560
|
+
input.skip(ftype);
|
561
|
+
}
|
562
|
+
break;
|
563
|
+
case 36:
|
564
|
+
if (ftype == Thrift.Type.I32) {
|
565
|
+
this.publicationYear = input.readI32();
|
566
|
+
} else {
|
567
|
+
input.skip(ftype);
|
568
|
+
}
|
569
|
+
break;
|
570
|
+
case 37:
|
571
|
+
if (ftype == Thrift.Type.STRING) {
|
572
|
+
this.section = input.readString();
|
573
|
+
} else {
|
574
|
+
input.skip(ftype);
|
575
|
+
}
|
576
|
+
break;
|
577
|
+
case 38:
|
578
|
+
if (ftype == Thrift.Type.STRING) {
|
579
|
+
this.seriesName = input.readString();
|
580
|
+
} else {
|
581
|
+
input.skip(ftype);
|
582
|
+
}
|
583
|
+
break;
|
584
|
+
case 39:
|
585
|
+
if (ftype == Thrift.Type.STRING) {
|
586
|
+
this.slug = input.readString();
|
587
|
+
} else {
|
588
|
+
input.skip(ftype);
|
589
|
+
}
|
590
|
+
break;
|
591
|
+
case 40:
|
592
|
+
if (ftype == Thrift.Type.LIST) {
|
593
|
+
this.taxonomicClassifierList = [];
|
594
|
+
const _rtmp357 = input.readListBegin();
|
595
|
+
const _size56 = _rtmp357.size || 0;
|
596
|
+
for (let _i58 = 0; _i58 < _size56; ++_i58) {
|
597
|
+
let elem59 = null;
|
598
|
+
elem59 = input.readString();
|
599
|
+
this.taxonomicClassifierList.push(elem59);
|
600
|
+
}
|
601
|
+
input.readListEnd();
|
602
|
+
} else {
|
603
|
+
input.skip(ftype);
|
604
|
+
}
|
605
|
+
break;
|
606
|
+
case 41:
|
607
|
+
if (ftype == Thrift.Type.LIST) {
|
608
|
+
this.titleList = [];
|
609
|
+
const _rtmp361 = input.readListBegin();
|
610
|
+
const _size60 = _rtmp361.size || 0;
|
611
|
+
for (let _i62 = 0; _i62 < _size60; ++_i62) {
|
612
|
+
let elem63 = null;
|
613
|
+
elem63 = input.readString();
|
614
|
+
this.titleList.push(elem63);
|
615
|
+
}
|
616
|
+
input.readListEnd();
|
617
|
+
} else {
|
618
|
+
input.skip(ftype);
|
619
|
+
}
|
620
|
+
break;
|
621
|
+
case 42:
|
622
|
+
if (ftype == Thrift.Type.LIST) {
|
623
|
+
this.typesOfMaterialList = [];
|
624
|
+
const _rtmp365 = input.readListBegin();
|
625
|
+
const _size64 = _rtmp365.size || 0;
|
626
|
+
for (let _i66 = 0; _i66 < _size64; ++_i66) {
|
627
|
+
let elem67 = null;
|
628
|
+
elem67 = input.readString();
|
629
|
+
this.typesOfMaterialList.push(elem67);
|
630
|
+
}
|
631
|
+
input.readListEnd();
|
632
|
+
} else {
|
633
|
+
input.skip(ftype);
|
634
|
+
}
|
635
|
+
break;
|
636
|
+
case 43:
|
637
|
+
if (ftype == Thrift.Type.STRING) {
|
638
|
+
this.url = input.readString();
|
639
|
+
} else {
|
640
|
+
input.skip(ftype);
|
641
|
+
}
|
642
|
+
break;
|
643
|
+
case 44:
|
644
|
+
if (ftype == Thrift.Type.I32) {
|
645
|
+
this.wordCount = input.readI32();
|
646
|
+
} else {
|
647
|
+
input.skip(ftype);
|
648
|
+
}
|
649
|
+
break;
|
650
|
+
default:
|
651
|
+
input.skip(ftype);
|
652
|
+
}
|
653
|
+
input.readFieldEnd();
|
654
|
+
}
|
655
|
+
input.readStructEnd();
|
656
|
+
return;
|
657
|
+
}
|
658
|
+
|
659
|
+
write (output) {
|
660
|
+
output.writeStructBegin('NITFInfo');
|
661
|
+
if (this.alternateURL !== null && this.alternateURL !== undefined) {
|
662
|
+
output.writeFieldBegin('alternateURL', Thrift.Type.STRING, 1);
|
663
|
+
output.writeString(this.alternateURL);
|
664
|
+
output.writeFieldEnd();
|
665
|
+
}
|
666
|
+
if (this.articleAbstract !== null && this.articleAbstract !== undefined) {
|
667
|
+
output.writeFieldBegin('articleAbstract', Thrift.Type.STRING, 2);
|
668
|
+
output.writeString(this.articleAbstract);
|
669
|
+
output.writeFieldEnd();
|
670
|
+
}
|
671
|
+
if (this.authorBiography !== null && this.authorBiography !== undefined) {
|
672
|
+
output.writeFieldBegin('authorBiography', Thrift.Type.STRING, 3);
|
673
|
+
output.writeString(this.authorBiography);
|
674
|
+
output.writeFieldEnd();
|
675
|
+
}
|
676
|
+
if (this.banner !== null && this.banner !== undefined) {
|
677
|
+
output.writeFieldBegin('banner', Thrift.Type.STRING, 4);
|
678
|
+
output.writeString(this.banner);
|
679
|
+
output.writeFieldEnd();
|
680
|
+
}
|
681
|
+
if (this.biographicalCategoryList !== null && this.biographicalCategoryList !== undefined) {
|
682
|
+
output.writeFieldBegin('biographicalCategoryList', Thrift.Type.LIST, 5);
|
683
|
+
output.writeListBegin(Thrift.Type.STRING, this.biographicalCategoryList.length);
|
684
|
+
for (let iter68 in this.biographicalCategoryList) {
|
685
|
+
if (this.biographicalCategoryList.hasOwnProperty(iter68)) {
|
686
|
+
iter68 = this.biographicalCategoryList[iter68];
|
687
|
+
output.writeString(iter68);
|
688
|
+
}
|
689
|
+
}
|
690
|
+
output.writeListEnd();
|
691
|
+
output.writeFieldEnd();
|
692
|
+
}
|
693
|
+
if (this.columnName !== null && this.columnName !== undefined) {
|
694
|
+
output.writeFieldBegin('columnName', Thrift.Type.STRING, 6);
|
695
|
+
output.writeString(this.columnName);
|
696
|
+
output.writeFieldEnd();
|
697
|
+
}
|
698
|
+
if (this.columnNumber !== null && this.columnNumber !== undefined) {
|
699
|
+
output.writeFieldBegin('columnNumber', Thrift.Type.I32, 7);
|
700
|
+
output.writeI32(this.columnNumber);
|
701
|
+
output.writeFieldEnd();
|
702
|
+
}
|
703
|
+
if (this.correctionDate !== null && this.correctionDate !== undefined) {
|
704
|
+
output.writeFieldBegin('correctionDate', Thrift.Type.I64, 8);
|
705
|
+
output.writeI64(this.correctionDate);
|
706
|
+
output.writeFieldEnd();
|
707
|
+
}
|
708
|
+
if (this.correctionText !== null && this.correctionText !== undefined) {
|
709
|
+
output.writeFieldBegin('correctionText', Thrift.Type.STRING, 9);
|
710
|
+
output.writeString(this.correctionText);
|
711
|
+
output.writeFieldEnd();
|
712
|
+
}
|
713
|
+
if (this.credit !== null && this.credit !== undefined) {
|
714
|
+
output.writeFieldBegin('credit', Thrift.Type.STRING, 10);
|
715
|
+
output.writeString(this.credit);
|
716
|
+
output.writeFieldEnd();
|
717
|
+
}
|
718
|
+
if (this.dayOfWeek !== null && this.dayOfWeek !== undefined) {
|
719
|
+
output.writeFieldBegin('dayOfWeek', Thrift.Type.STRING, 11);
|
720
|
+
output.writeString(this.dayOfWeek);
|
721
|
+
output.writeFieldEnd();
|
722
|
+
}
|
723
|
+
if (this.descriptorList !== null && this.descriptorList !== undefined) {
|
724
|
+
output.writeFieldBegin('descriptorList', Thrift.Type.LIST, 12);
|
725
|
+
output.writeListBegin(Thrift.Type.STRING, this.descriptorList.length);
|
726
|
+
for (let iter69 in this.descriptorList) {
|
727
|
+
if (this.descriptorList.hasOwnProperty(iter69)) {
|
728
|
+
iter69 = this.descriptorList[iter69];
|
729
|
+
output.writeString(iter69);
|
730
|
+
}
|
731
|
+
}
|
732
|
+
output.writeListEnd();
|
733
|
+
output.writeFieldEnd();
|
734
|
+
}
|
735
|
+
if (this.featurePage !== null && this.featurePage !== undefined) {
|
736
|
+
output.writeFieldBegin('featurePage', Thrift.Type.STRING, 13);
|
737
|
+
output.writeString(this.featurePage);
|
738
|
+
output.writeFieldEnd();
|
739
|
+
}
|
740
|
+
if (this.generalOnlineDescriptorList !== null && this.generalOnlineDescriptorList !== undefined) {
|
741
|
+
output.writeFieldBegin('generalOnlineDescriptorList', Thrift.Type.LIST, 14);
|
742
|
+
output.writeListBegin(Thrift.Type.STRING, this.generalOnlineDescriptorList.length);
|
743
|
+
for (let iter70 in this.generalOnlineDescriptorList) {
|
744
|
+
if (this.generalOnlineDescriptorList.hasOwnProperty(iter70)) {
|
745
|
+
iter70 = this.generalOnlineDescriptorList[iter70];
|
746
|
+
output.writeString(iter70);
|
747
|
+
}
|
748
|
+
}
|
749
|
+
output.writeListEnd();
|
750
|
+
output.writeFieldEnd();
|
751
|
+
}
|
752
|
+
if (this.guid !== null && this.guid !== undefined) {
|
753
|
+
output.writeFieldBegin('guid', Thrift.Type.I32, 15);
|
754
|
+
output.writeI32(this.guid);
|
755
|
+
output.writeFieldEnd();
|
756
|
+
}
|
757
|
+
if (this.kicker !== null && this.kicker !== undefined) {
|
758
|
+
output.writeFieldBegin('kicker', Thrift.Type.STRING, 16);
|
759
|
+
output.writeString(this.kicker);
|
760
|
+
output.writeFieldEnd();
|
761
|
+
}
|
762
|
+
if (this.leadParagraphList !== null && this.leadParagraphList !== undefined) {
|
763
|
+
output.writeFieldBegin('leadParagraphList', Thrift.Type.LIST, 17);
|
764
|
+
output.writeListBegin(Thrift.Type.STRING, this.leadParagraphList.length);
|
765
|
+
for (let iter71 in this.leadParagraphList) {
|
766
|
+
if (this.leadParagraphList.hasOwnProperty(iter71)) {
|
767
|
+
iter71 = this.leadParagraphList[iter71];
|
768
|
+
output.writeString(iter71);
|
769
|
+
}
|
770
|
+
}
|
771
|
+
output.writeListEnd();
|
772
|
+
output.writeFieldEnd();
|
773
|
+
}
|
774
|
+
if (this.locationList !== null && this.locationList !== undefined) {
|
775
|
+
output.writeFieldBegin('locationList', Thrift.Type.LIST, 18);
|
776
|
+
output.writeListBegin(Thrift.Type.STRING, this.locationList.length);
|
777
|
+
for (let iter72 in this.locationList) {
|
778
|
+
if (this.locationList.hasOwnProperty(iter72)) {
|
779
|
+
iter72 = this.locationList[iter72];
|
780
|
+
output.writeString(iter72);
|
781
|
+
}
|
782
|
+
}
|
783
|
+
output.writeListEnd();
|
784
|
+
output.writeFieldEnd();
|
785
|
+
}
|
786
|
+
if (this.nameList !== null && this.nameList !== undefined) {
|
787
|
+
output.writeFieldBegin('nameList', Thrift.Type.LIST, 19);
|
788
|
+
output.writeListBegin(Thrift.Type.STRING, this.nameList.length);
|
789
|
+
for (let iter73 in this.nameList) {
|
790
|
+
if (this.nameList.hasOwnProperty(iter73)) {
|
791
|
+
iter73 = this.nameList[iter73];
|
792
|
+
output.writeString(iter73);
|
793
|
+
}
|
794
|
+
}
|
795
|
+
output.writeListEnd();
|
796
|
+
output.writeFieldEnd();
|
797
|
+
}
|
798
|
+
if (this.newsDesk !== null && this.newsDesk !== undefined) {
|
799
|
+
output.writeFieldBegin('newsDesk', Thrift.Type.STRING, 20);
|
800
|
+
output.writeString(this.newsDesk);
|
801
|
+
output.writeFieldEnd();
|
802
|
+
}
|
803
|
+
if (this.normalizedByline !== null && this.normalizedByline !== undefined) {
|
804
|
+
output.writeFieldBegin('normalizedByline', Thrift.Type.STRING, 21);
|
805
|
+
output.writeString(this.normalizedByline);
|
806
|
+
output.writeFieldEnd();
|
807
|
+
}
|
808
|
+
if (this.onlineDescriptorList !== null && this.onlineDescriptorList !== undefined) {
|
809
|
+
output.writeFieldBegin('onlineDescriptorList', Thrift.Type.LIST, 22);
|
810
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlineDescriptorList.length);
|
811
|
+
for (let iter74 in this.onlineDescriptorList) {
|
812
|
+
if (this.onlineDescriptorList.hasOwnProperty(iter74)) {
|
813
|
+
iter74 = this.onlineDescriptorList[iter74];
|
814
|
+
output.writeString(iter74);
|
815
|
+
}
|
816
|
+
}
|
817
|
+
output.writeListEnd();
|
818
|
+
output.writeFieldEnd();
|
819
|
+
}
|
820
|
+
if (this.onlineHeadline !== null && this.onlineHeadline !== undefined) {
|
821
|
+
output.writeFieldBegin('onlineHeadline', Thrift.Type.STRING, 23);
|
822
|
+
output.writeString(this.onlineHeadline);
|
823
|
+
output.writeFieldEnd();
|
824
|
+
}
|
825
|
+
if (this.onlineLeadParagraph !== null && this.onlineLeadParagraph !== undefined) {
|
826
|
+
output.writeFieldBegin('onlineLeadParagraph', Thrift.Type.STRING, 24);
|
827
|
+
output.writeString(this.onlineLeadParagraph);
|
828
|
+
output.writeFieldEnd();
|
829
|
+
}
|
830
|
+
if (this.onlineLocationList !== null && this.onlineLocationList !== undefined) {
|
831
|
+
output.writeFieldBegin('onlineLocationList', Thrift.Type.LIST, 25);
|
832
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlineLocationList.length);
|
833
|
+
for (let iter75 in this.onlineLocationList) {
|
834
|
+
if (this.onlineLocationList.hasOwnProperty(iter75)) {
|
835
|
+
iter75 = this.onlineLocationList[iter75];
|
836
|
+
output.writeString(iter75);
|
837
|
+
}
|
838
|
+
}
|
839
|
+
output.writeListEnd();
|
840
|
+
output.writeFieldEnd();
|
841
|
+
}
|
842
|
+
if (this.onlineOrganizationList !== null && this.onlineOrganizationList !== undefined) {
|
843
|
+
output.writeFieldBegin('onlineOrganizationList', Thrift.Type.LIST, 26);
|
844
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlineOrganizationList.length);
|
845
|
+
for (let iter76 in this.onlineOrganizationList) {
|
846
|
+
if (this.onlineOrganizationList.hasOwnProperty(iter76)) {
|
847
|
+
iter76 = this.onlineOrganizationList[iter76];
|
848
|
+
output.writeString(iter76);
|
849
|
+
}
|
850
|
+
}
|
851
|
+
output.writeListEnd();
|
852
|
+
output.writeFieldEnd();
|
853
|
+
}
|
854
|
+
if (this.onlinePeople !== null && this.onlinePeople !== undefined) {
|
855
|
+
output.writeFieldBegin('onlinePeople', Thrift.Type.LIST, 27);
|
856
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlinePeople.length);
|
857
|
+
for (let iter77 in this.onlinePeople) {
|
858
|
+
if (this.onlinePeople.hasOwnProperty(iter77)) {
|
859
|
+
iter77 = this.onlinePeople[iter77];
|
860
|
+
output.writeString(iter77);
|
861
|
+
}
|
862
|
+
}
|
863
|
+
output.writeListEnd();
|
864
|
+
output.writeFieldEnd();
|
865
|
+
}
|
866
|
+
if (this.onlineSectionList !== null && this.onlineSectionList !== undefined) {
|
867
|
+
output.writeFieldBegin('onlineSectionList', Thrift.Type.LIST, 28);
|
868
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlineSectionList.length);
|
869
|
+
for (let iter78 in this.onlineSectionList) {
|
870
|
+
if (this.onlineSectionList.hasOwnProperty(iter78)) {
|
871
|
+
iter78 = this.onlineSectionList[iter78];
|
872
|
+
output.writeString(iter78);
|
873
|
+
}
|
874
|
+
}
|
875
|
+
output.writeListEnd();
|
876
|
+
output.writeFieldEnd();
|
877
|
+
}
|
878
|
+
if (this.onlineTitleList !== null && this.onlineTitleList !== undefined) {
|
879
|
+
output.writeFieldBegin('onlineTitleList', Thrift.Type.LIST, 29);
|
880
|
+
output.writeListBegin(Thrift.Type.STRING, this.onlineTitleList.length);
|
881
|
+
for (let iter79 in this.onlineTitleList) {
|
882
|
+
if (this.onlineTitleList.hasOwnProperty(iter79)) {
|
883
|
+
iter79 = this.onlineTitleList[iter79];
|
884
|
+
output.writeString(iter79);
|
885
|
+
}
|
886
|
+
}
|
887
|
+
output.writeListEnd();
|
888
|
+
output.writeFieldEnd();
|
889
|
+
}
|
890
|
+
if (this.organizationList !== null && this.organizationList !== undefined) {
|
891
|
+
output.writeFieldBegin('organizationList', Thrift.Type.LIST, 30);
|
892
|
+
output.writeListBegin(Thrift.Type.STRING, this.organizationList.length);
|
893
|
+
for (let iter80 in this.organizationList) {
|
894
|
+
if (this.organizationList.hasOwnProperty(iter80)) {
|
895
|
+
iter80 = this.organizationList[iter80];
|
896
|
+
output.writeString(iter80);
|
897
|
+
}
|
898
|
+
}
|
899
|
+
output.writeListEnd();
|
900
|
+
output.writeFieldEnd();
|
901
|
+
}
|
902
|
+
if (this.page !== null && this.page !== undefined) {
|
903
|
+
output.writeFieldBegin('page', Thrift.Type.I32, 31);
|
904
|
+
output.writeI32(this.page);
|
905
|
+
output.writeFieldEnd();
|
906
|
+
}
|
907
|
+
if (this.peopleList !== null && this.peopleList !== undefined) {
|
908
|
+
output.writeFieldBegin('peopleList', Thrift.Type.LIST, 32);
|
909
|
+
output.writeListBegin(Thrift.Type.STRING, this.peopleList.length);
|
910
|
+
for (let iter81 in this.peopleList) {
|
911
|
+
if (this.peopleList.hasOwnProperty(iter81)) {
|
912
|
+
iter81 = this.peopleList[iter81];
|
913
|
+
output.writeString(iter81);
|
914
|
+
}
|
915
|
+
}
|
916
|
+
output.writeListEnd();
|
917
|
+
output.writeFieldEnd();
|
918
|
+
}
|
919
|
+
if (this.publicationDate !== null && this.publicationDate !== undefined) {
|
920
|
+
output.writeFieldBegin('publicationDate', Thrift.Type.I64, 33);
|
921
|
+
output.writeI64(this.publicationDate);
|
922
|
+
output.writeFieldEnd();
|
923
|
+
}
|
924
|
+
if (this.publicationDayOfMonth !== null && this.publicationDayOfMonth !== undefined) {
|
925
|
+
output.writeFieldBegin('publicationDayOfMonth', Thrift.Type.I32, 34);
|
926
|
+
output.writeI32(this.publicationDayOfMonth);
|
927
|
+
output.writeFieldEnd();
|
928
|
+
}
|
929
|
+
if (this.publicationMonth !== null && this.publicationMonth !== undefined) {
|
930
|
+
output.writeFieldBegin('publicationMonth', Thrift.Type.I32, 35);
|
931
|
+
output.writeI32(this.publicationMonth);
|
932
|
+
output.writeFieldEnd();
|
933
|
+
}
|
934
|
+
if (this.publicationYear !== null && this.publicationYear !== undefined) {
|
935
|
+
output.writeFieldBegin('publicationYear', Thrift.Type.I32, 36);
|
936
|
+
output.writeI32(this.publicationYear);
|
937
|
+
output.writeFieldEnd();
|
938
|
+
}
|
939
|
+
if (this.section !== null && this.section !== undefined) {
|
940
|
+
output.writeFieldBegin('section', Thrift.Type.STRING, 37);
|
941
|
+
output.writeString(this.section);
|
942
|
+
output.writeFieldEnd();
|
943
|
+
}
|
944
|
+
if (this.seriesName !== null && this.seriesName !== undefined) {
|
945
|
+
output.writeFieldBegin('seriesName', Thrift.Type.STRING, 38);
|
946
|
+
output.writeString(this.seriesName);
|
947
|
+
output.writeFieldEnd();
|
948
|
+
}
|
949
|
+
if (this.slug !== null && this.slug !== undefined) {
|
950
|
+
output.writeFieldBegin('slug', Thrift.Type.STRING, 39);
|
951
|
+
output.writeString(this.slug);
|
952
|
+
output.writeFieldEnd();
|
953
|
+
}
|
954
|
+
if (this.taxonomicClassifierList !== null && this.taxonomicClassifierList !== undefined) {
|
955
|
+
output.writeFieldBegin('taxonomicClassifierList', Thrift.Type.LIST, 40);
|
956
|
+
output.writeListBegin(Thrift.Type.STRING, this.taxonomicClassifierList.length);
|
957
|
+
for (let iter82 in this.taxonomicClassifierList) {
|
958
|
+
if (this.taxonomicClassifierList.hasOwnProperty(iter82)) {
|
959
|
+
iter82 = this.taxonomicClassifierList[iter82];
|
960
|
+
output.writeString(iter82);
|
961
|
+
}
|
962
|
+
}
|
963
|
+
output.writeListEnd();
|
964
|
+
output.writeFieldEnd();
|
965
|
+
}
|
966
|
+
if (this.titleList !== null && this.titleList !== undefined) {
|
967
|
+
output.writeFieldBegin('titleList', Thrift.Type.LIST, 41);
|
968
|
+
output.writeListBegin(Thrift.Type.STRING, this.titleList.length);
|
969
|
+
for (let iter83 in this.titleList) {
|
970
|
+
if (this.titleList.hasOwnProperty(iter83)) {
|
971
|
+
iter83 = this.titleList[iter83];
|
972
|
+
output.writeString(iter83);
|
973
|
+
}
|
974
|
+
}
|
975
|
+
output.writeListEnd();
|
976
|
+
output.writeFieldEnd();
|
977
|
+
}
|
978
|
+
if (this.typesOfMaterialList !== null && this.typesOfMaterialList !== undefined) {
|
979
|
+
output.writeFieldBegin('typesOfMaterialList', Thrift.Type.LIST, 42);
|
980
|
+
output.writeListBegin(Thrift.Type.STRING, this.typesOfMaterialList.length);
|
981
|
+
for (let iter84 in this.typesOfMaterialList) {
|
982
|
+
if (this.typesOfMaterialList.hasOwnProperty(iter84)) {
|
983
|
+
iter84 = this.typesOfMaterialList[iter84];
|
984
|
+
output.writeString(iter84);
|
985
|
+
}
|
986
|
+
}
|
987
|
+
output.writeListEnd();
|
988
|
+
output.writeFieldEnd();
|
989
|
+
}
|
990
|
+
if (this.url !== null && this.url !== undefined) {
|
991
|
+
output.writeFieldBegin('url', Thrift.Type.STRING, 43);
|
992
|
+
output.writeString(this.url);
|
993
|
+
output.writeFieldEnd();
|
994
|
+
}
|
995
|
+
if (this.wordCount !== null && this.wordCount !== undefined) {
|
996
|
+
output.writeFieldBegin('wordCount', Thrift.Type.I32, 44);
|
997
|
+
output.writeI32(this.wordCount);
|
998
|
+
output.writeFieldEnd();
|
999
|
+
}
|
1000
|
+
output.writeFieldStop();
|
1001
|
+
output.writeStructEnd();
|
1002
|
+
return;
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
};
|