@aiot-toolkit/shared-utils 1.0.20 → 1.0.21-beta.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.
@@ -1,2765 +1,2 @@
1
- "use strict";
2
-
3
- /**
4
- * @fileoverview
5
- * @enhanceable
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
-
12
- /* eslint-disable */
13
- var jspb = require('google-protobuf');
14
-
15
- var goog = jspb;
16
- var global = Function('return this')();
17
- goog.exportSymbol('proto.CssCell', null, global);
18
- goog.exportSymbol('proto.ExportArr', null, global);
19
- goog.exportSymbol('proto.ExportCell', null, global);
20
- goog.exportSymbol('proto.OneStyleValue', null, global);
21
- goog.exportSymbol('proto.SelectorKey', null, global);
22
- goog.exportSymbol('proto.StringArr', null, global);
23
- goog.exportSymbol('proto.StyleKey', null, global);
24
- goog.exportSymbol('proto.StyleValueArr', null, global);
25
- goog.exportSymbol('proto.TemplateOne', null, global);
26
- goog.exportSymbol('proto.TemplateUnit', null, global);
27
- goog.exportSymbol('proto.Version', null, global);
28
- /**
29
- * Generated by JsPbCodeGenerator.
30
- * @param {Array=} opt_data Optional initial data array, typically from a
31
- * server response, or constructed directly in Javascript. The array is used
32
- * in place and becomes part of the constructed object. It is not cloned.
33
- * If no data is provided, the constructed object will be empty, but still
34
- * valid.
35
- * @extends {jspb.Message}
36
- * @constructor
37
- */
38
-
39
- proto.StringArr = function (opt_data) {
40
- jspb.Message.initialize(this, opt_data, 0, -1, proto.StringArr.repeatedFields_, null);
41
- };
42
-
43
- goog.inherits(proto.StringArr, jspb.Message);
44
-
45
- if (goog.DEBUG && !COMPILED) {
46
- proto.StringArr.displayName = 'proto.StringArr';
47
- }
48
- /**
49
- * List of repeated fields within this message type.
50
- * @private {!Array<number>}
51
- * @const
52
- */
53
-
54
-
55
- proto.StringArr.repeatedFields_ = [1];
56
-
57
- if (jspb.Message.GENERATE_TO_OBJECT) {
58
- /**
59
- * Creates an object representation of this proto suitable for use in Soy templates.
60
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
61
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62
- * For the list of reserved names please see:
63
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
64
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
65
- * for transitional soy proto support: http://goto/soy-param-migration
66
- * @return {!Object}
67
- */
68
- proto.StringArr.prototype.toObject = function (opt_includeInstance) {
69
- return proto.StringArr.toObject(opt_includeInstance, this);
70
- };
71
- /**
72
- * Static version of the {@see toObject} method.
73
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
74
- * instance for transitional soy proto support:
75
- * http://goto/soy-param-migration
76
- * @param {!proto.StringArr} msg The msg instance to transform.
77
- * @return {!Object}
78
- * @suppress {unusedLocalVariables} f is only used for nested messages
79
- */
80
-
81
-
82
- proto.StringArr.toObject = function (includeInstance, msg) {
83
- var f,
84
- obj = {
85
- stringvlarrList: jspb.Message.getRepeatedField(msg, 1)
86
- };
87
-
88
- if (includeInstance) {
89
- obj.$jspbMessageInstance = msg;
90
- }
91
-
92
- return obj;
93
- };
94
- }
95
- /**
96
- * Deserializes binary data (in protobuf wire format).
97
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
98
- * @return {!proto.StringArr}
99
- */
100
-
101
-
102
- proto.StringArr.deserializeBinary = function (bytes) {
103
- var reader = new jspb.BinaryReader(bytes);
104
- var msg = new proto.StringArr();
105
- return proto.StringArr.deserializeBinaryFromReader(msg, reader);
106
- };
107
- /**
108
- * Deserializes binary data (in protobuf wire format) from the
109
- * given reader into the given message object.
110
- * @param {!proto.StringArr} msg The message object to deserialize into.
111
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
112
- * @return {!proto.StringArr}
113
- */
114
-
115
-
116
- proto.StringArr.deserializeBinaryFromReader = function (msg, reader) {
117
- while (reader.nextField()) {
118
- if (reader.isEndGroup()) {
119
- break;
120
- }
121
-
122
- var field = reader.getFieldNumber();
123
-
124
- switch (field) {
125
- case 1:
126
- var value =
127
- /** @type {string} */
128
- reader.readString();
129
- msg.addStringvlarr(value);
130
- break;
131
-
132
- default:
133
- reader.skipField();
134
- break;
135
- }
136
- }
137
-
138
- return msg;
139
- };
140
- /**
141
- * Serializes the message to binary data (in protobuf wire format).
142
- * @return {!Uint8Array}
143
- */
144
-
145
-
146
- proto.StringArr.prototype.serializeBinary = function () {
147
- var writer = new jspb.BinaryWriter();
148
- proto.StringArr.serializeBinaryToWriter(this, writer);
149
- return writer.getResultBuffer();
150
- };
151
- /**
152
- * Serializes the given message to binary data (in protobuf wire
153
- * format), writing to the given BinaryWriter.
154
- * @param {!proto.StringArr} message
155
- * @param {!jspb.BinaryWriter} writer
156
- * @suppress {unusedLocalVariables} f is only used for nested messages
157
- */
158
-
159
-
160
- proto.StringArr.serializeBinaryToWriter = function (message, writer) {
161
- var f = undefined;
162
- f = message.getStringvlarrList();
163
-
164
- if (f.length > 0) {
165
- writer.writeRepeatedString(1, f);
166
- }
167
- };
168
- /**
169
- * repeated string stringVlArr = 1;
170
- * @return {!Array<string>}
171
- */
172
-
173
-
174
- proto.StringArr.prototype.getStringvlarrList = function () {
175
- return (
176
- /** @type {!Array<string>} */
177
- jspb.Message.getRepeatedField(this, 1)
178
- );
179
- };
180
- /** @param {!Array<string>} value */
181
-
182
-
183
- proto.StringArr.prototype.setStringvlarrList = function (value) {
184
- jspb.Message.setField(this, 1, value || []);
185
- };
186
- /**
187
- * @param {!string} value
188
- * @param {number=} opt_index
189
- */
190
-
191
-
192
- proto.StringArr.prototype.addStringvlarr = function (value, opt_index) {
193
- jspb.Message.addToRepeatedField(this, 1, value, opt_index);
194
- };
195
-
196
- proto.StringArr.prototype.clearStringvlarrList = function () {
197
- this.setStringvlarrList([]);
198
- };
199
- /**
200
- * Generated by JsPbCodeGenerator.
201
- * @param {Array=} opt_data Optional initial data array, typically from a
202
- * server response, or constructed directly in Javascript. The array is used
203
- * in place and becomes part of the constructed object. It is not cloned.
204
- * If no data is provided, the constructed object will be empty, but still
205
- * valid.
206
- * @extends {jspb.Message}
207
- * @constructor
208
- */
209
-
210
-
211
- proto.StyleKey = function (opt_data) {
212
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
213
- };
214
-
215
- goog.inherits(proto.StyleKey, jspb.Message);
216
-
217
- if (goog.DEBUG && !COMPILED) {
218
- proto.StyleKey.displayName = 'proto.StyleKey';
219
- }
220
-
221
- if (jspb.Message.GENERATE_TO_OBJECT) {
222
- /**
223
- * Creates an object representation of this proto suitable for use in Soy templates.
224
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
225
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
226
- * For the list of reserved names please see:
227
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
228
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
229
- * for transitional soy proto support: http://goto/soy-param-migration
230
- * @return {!Object}
231
- */
232
- proto.StyleKey.prototype.toObject = function (opt_includeInstance) {
233
- return proto.StyleKey.toObject(opt_includeInstance, this);
234
- };
235
- /**
236
- * Static version of the {@see toObject} method.
237
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
238
- * instance for transitional soy proto support:
239
- * http://goto/soy-param-migration
240
- * @param {!proto.StyleKey} msg The msg instance to transform.
241
- * @return {!Object}
242
- * @suppress {unusedLocalVariables} f is only used for nested messages
243
- */
244
-
245
-
246
- proto.StyleKey.toObject = function (includeInstance, msg) {
247
- var f,
248
- obj = {
249
- index: jspb.Message.getFieldWithDefault(msg, 1, 0),
250
- value: jspb.Message.getFieldWithDefault(msg, 2, '')
251
- };
252
-
253
- if (includeInstance) {
254
- obj.$jspbMessageInstance = msg;
255
- }
256
-
257
- return obj;
258
- };
259
- }
260
- /**
261
- * Deserializes binary data (in protobuf wire format).
262
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
263
- * @return {!proto.StyleKey}
264
- */
265
-
266
-
267
- proto.StyleKey.deserializeBinary = function (bytes) {
268
- var reader = new jspb.BinaryReader(bytes);
269
- var msg = new proto.StyleKey();
270
- return proto.StyleKey.deserializeBinaryFromReader(msg, reader);
271
- };
272
- /**
273
- * Deserializes binary data (in protobuf wire format) from the
274
- * given reader into the given message object.
275
- * @param {!proto.StyleKey} msg The message object to deserialize into.
276
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
277
- * @return {!proto.StyleKey}
278
- */
279
-
280
-
281
- proto.StyleKey.deserializeBinaryFromReader = function (msg, reader) {
282
- while (reader.nextField()) {
283
- if (reader.isEndGroup()) {
284
- break;
285
- }
286
-
287
- var field = reader.getFieldNumber();
288
-
289
- switch (field) {
290
- case 1:
291
- var value =
292
- /** @type {number} */
293
- reader.readInt32();
294
- msg.setIndex(value);
295
- break;
296
-
297
- case 2:
298
- var value =
299
- /** @type {string} */
300
- reader.readString();
301
- msg.setValue(value);
302
- break;
303
-
304
- default:
305
- reader.skipField();
306
- break;
307
- }
308
- }
309
-
310
- return msg;
311
- };
312
- /**
313
- * Serializes the message to binary data (in protobuf wire format).
314
- * @return {!Uint8Array}
315
- */
316
-
317
-
318
- proto.StyleKey.prototype.serializeBinary = function () {
319
- var writer = new jspb.BinaryWriter();
320
- proto.StyleKey.serializeBinaryToWriter(this, writer);
321
- return writer.getResultBuffer();
322
- };
323
- /**
324
- * Serializes the given message to binary data (in protobuf wire
325
- * format), writing to the given BinaryWriter.
326
- * @param {!proto.StyleKey} message
327
- * @param {!jspb.BinaryWriter} writer
328
- * @suppress {unusedLocalVariables} f is only used for nested messages
329
- */
330
-
331
-
332
- proto.StyleKey.serializeBinaryToWriter = function (message, writer) {
333
- var f = undefined;
334
- f = message.getIndex();
335
-
336
- if (f !== 0) {
337
- writer.writeInt32(1, f);
338
- }
339
-
340
- f = message.getValue();
341
-
342
- if (f.length > 0) {
343
- writer.writeString(2, f);
344
- }
345
- };
346
- /**
347
- * optional int32 index = 1;
348
- * @return {number}
349
- */
350
-
351
-
352
- proto.StyleKey.prototype.getIndex = function () {
353
- return (
354
- /** @type {number} */
355
- jspb.Message.getFieldWithDefault(this, 1, 0)
356
- );
357
- };
358
- /** @param {number} value */
359
-
360
-
361
- proto.StyleKey.prototype.setIndex = function (value) {
362
- jspb.Message.setProto3IntField(this, 1, value);
363
- };
364
- /**
365
- * optional string value = 2;
366
- * @return {string}
367
- */
368
-
369
-
370
- proto.StyleKey.prototype.getValue = function () {
371
- return (
372
- /** @type {string} */
373
- jspb.Message.getFieldWithDefault(this, 2, '')
374
- );
375
- };
376
- /** @param {string} value */
377
-
378
-
379
- proto.StyleKey.prototype.setValue = function (value) {
380
- jspb.Message.setProto3StringField(this, 2, value);
381
- };
382
- /**
383
- * Generated by JsPbCodeGenerator.
384
- * @param {Array=} opt_data Optional initial data array, typically from a
385
- * server response, or constructed directly in Javascript. The array is used
386
- * in place and becomes part of the constructed object. It is not cloned.
387
- * If no data is provided, the constructed object will be empty, but still
388
- * valid.
389
- * @extends {jspb.Message}
390
- * @constructor
391
- */
392
-
393
-
394
- proto.OneStyleValue = function (opt_data) {
395
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.OneStyleValue.oneofGroups_);
396
- };
397
-
398
- goog.inherits(proto.OneStyleValue, jspb.Message);
399
-
400
- if (goog.DEBUG && !COMPILED) {
401
- proto.OneStyleValue.displayName = 'proto.OneStyleValue';
402
- }
403
- /**
404
- * Oneof group definitions for this message. Each group defines the field
405
- * numbers belonging to that group. When of these fields' value is set, all
406
- * other fields in the group are cleared. During deserialization, if multiple
407
- * fields are encountered for a group, only the last value seen will be kept.
408
- * @private {!Array<!Array<number>>}
409
- * @const
410
- */
411
-
412
-
413
- proto.OneStyleValue.oneofGroups_ = [[2, 3, 4, 5, 6, 7, 8]];
414
- /**
415
- * @enum {number}
416
- */
417
-
418
- proto.OneStyleValue.ValueCase = {
419
- VALUE_NOT_SET: 0,
420
- INT32VL: 2,
421
- BOOLVL: 3,
422
- FUNCID: 4,
423
- DOUBLEVL: 5,
424
- STRINGVL: 6,
425
- STRINGARR: 7,
426
- STYLEVLARR: 8
427
- };
428
- /**
429
- * @return {proto.OneStyleValue.ValueCase}
430
- */
431
-
432
- proto.OneStyleValue.prototype.getValueCase = function () {
433
- return (
434
- /** @type {proto.OneStyleValue.ValueCase} */
435
- jspb.Message.computeOneofCase(this, proto.OneStyleValue.oneofGroups_[0])
436
- );
437
- };
438
-
439
- if (jspb.Message.GENERATE_TO_OBJECT) {
440
- /**
441
- * Creates an object representation of this proto suitable for use in Soy templates.
442
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
443
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
444
- * For the list of reserved names please see:
445
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
446
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
447
- * for transitional soy proto support: http://goto/soy-param-migration
448
- * @return {!Object}
449
- */
450
- proto.OneStyleValue.prototype.toObject = function (opt_includeInstance) {
451
- return proto.OneStyleValue.toObject(opt_includeInstance, this);
452
- };
453
- /**
454
- * Static version of the {@see toObject} method.
455
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
456
- * instance for transitional soy proto support:
457
- * http://goto/soy-param-migration
458
- * @param {!proto.OneStyleValue} msg The msg instance to transform.
459
- * @return {!Object}
460
- * @suppress {unusedLocalVariables} f is only used for nested messages
461
- */
462
-
463
-
464
- proto.OneStyleValue.toObject = function (includeInstance, msg) {
465
- var f,
466
- obj = {
467
- key: (f = msg.getKey()) && proto.StyleKey.toObject(includeInstance, f),
468
- int32vl: jspb.Message.getFieldWithDefault(msg, 2, 0),
469
- boolvl: jspb.Message.getFieldWithDefault(msg, 3, false),
470
- funcid: jspb.Message.getFieldWithDefault(msg, 4, 0),
471
- doublevl: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
472
- stringvl: jspb.Message.getFieldWithDefault(msg, 6, ''),
473
- stringarr: (f = msg.getStringarr()) && proto.StringArr.toObject(includeInstance, f),
474
- stylevlarr: (f = msg.getStylevlarr()) && proto.StyleValueArr.toObject(includeInstance, f)
475
- };
476
-
477
- if (includeInstance) {
478
- obj.$jspbMessageInstance = msg;
479
- }
480
-
481
- return obj;
482
- };
483
- }
484
- /**
485
- * Deserializes binary data (in protobuf wire format).
486
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
487
- * @return {!proto.OneStyleValue}
488
- */
489
-
490
-
491
- proto.OneStyleValue.deserializeBinary = function (bytes) {
492
- var reader = new jspb.BinaryReader(bytes);
493
- var msg = new proto.OneStyleValue();
494
- return proto.OneStyleValue.deserializeBinaryFromReader(msg, reader);
495
- };
496
- /**
497
- * Deserializes binary data (in protobuf wire format) from the
498
- * given reader into the given message object.
499
- * @param {!proto.OneStyleValue} msg The message object to deserialize into.
500
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
501
- * @return {!proto.OneStyleValue}
502
- */
503
-
504
-
505
- proto.OneStyleValue.deserializeBinaryFromReader = function (msg, reader) {
506
- while (reader.nextField()) {
507
- if (reader.isEndGroup()) {
508
- break;
509
- }
510
-
511
- var field = reader.getFieldNumber();
512
-
513
- switch (field) {
514
- case 1:
515
- var value = new proto.StyleKey();
516
- reader.readMessage(value, proto.StyleKey.deserializeBinaryFromReader);
517
- msg.setKey(value);
518
- break;
519
-
520
- case 2:
521
- var value =
522
- /** @type {number} */
523
- reader.readInt32();
524
- msg.setInt32vl(value);
525
- break;
526
-
527
- case 3:
528
- var value =
529
- /** @type {boolean} */
530
- reader.readBool();
531
- msg.setBoolvl(value);
532
- break;
533
-
534
- case 4:
535
- var value =
536
- /** @type {number} */
537
- reader.readInt32();
538
- msg.setFuncid(value);
539
- break;
540
-
541
- case 5:
542
- var value =
543
- /** @type {number} */
544
- reader.readDouble();
545
- msg.setDoublevl(value);
546
- break;
547
-
548
- case 6:
549
- var value =
550
- /** @type {string} */
551
- reader.readString();
552
- msg.setStringvl(value);
553
- break;
554
-
555
- case 7:
556
- var value = new proto.StringArr();
557
- reader.readMessage(value, proto.StringArr.deserializeBinaryFromReader);
558
- msg.setStringarr(value);
559
- break;
560
-
561
- case 8:
562
- var value = new proto.StyleValueArr();
563
- reader.readMessage(value, proto.StyleValueArr.deserializeBinaryFromReader);
564
- msg.setStylevlarr(value);
565
- break;
566
-
567
- default:
568
- reader.skipField();
569
- break;
570
- }
571
- }
572
-
573
- return msg;
574
- };
575
- /**
576
- * Serializes the message to binary data (in protobuf wire format).
577
- * @return {!Uint8Array}
578
- */
579
-
580
-
581
- proto.OneStyleValue.prototype.serializeBinary = function () {
582
- var writer = new jspb.BinaryWriter();
583
- proto.OneStyleValue.serializeBinaryToWriter(this, writer);
584
- return writer.getResultBuffer();
585
- };
586
- /**
587
- * Serializes the given message to binary data (in protobuf wire
588
- * format), writing to the given BinaryWriter.
589
- * @param {!proto.OneStyleValue} message
590
- * @param {!jspb.BinaryWriter} writer
591
- * @suppress {unusedLocalVariables} f is only used for nested messages
592
- */
593
-
594
-
595
- proto.OneStyleValue.serializeBinaryToWriter = function (message, writer) {
596
- var f = undefined;
597
- f = message.getKey();
598
-
599
- if (f != null) {
600
- writer.writeMessage(1, f, proto.StyleKey.serializeBinaryToWriter);
601
- }
602
-
603
- f =
604
- /** @type {number} */
605
- jspb.Message.getField(message, 2);
606
-
607
- if (f != null) {
608
- writer.writeInt32(2, f);
609
- }
610
-
611
- f =
612
- /** @type {boolean} */
613
- jspb.Message.getField(message, 3);
614
-
615
- if (f != null) {
616
- writer.writeBool(3, f);
617
- }
618
-
619
- f =
620
- /** @type {number} */
621
- jspb.Message.getField(message, 4);
622
-
623
- if (f != null) {
624
- writer.writeInt32(4, f);
625
- }
626
-
627
- f =
628
- /** @type {number} */
629
- jspb.Message.getField(message, 5);
630
-
631
- if (f != null) {
632
- writer.writeDouble(5, f);
633
- }
634
-
635
- f =
636
- /** @type {string} */
637
- jspb.Message.getField(message, 6);
638
-
639
- if (f != null) {
640
- writer.writeString(6, f);
641
- }
642
-
643
- f = message.getStringarr();
644
-
645
- if (f != null) {
646
- writer.writeMessage(7, f, proto.StringArr.serializeBinaryToWriter);
647
- }
648
-
649
- f = message.getStylevlarr();
650
-
651
- if (f != null) {
652
- writer.writeMessage(8, f, proto.StyleValueArr.serializeBinaryToWriter);
653
- }
654
- };
655
- /**
656
- * optional StyleKey key = 1;
657
- * @return {?proto.StyleKey}
658
- */
659
-
660
-
661
- proto.OneStyleValue.prototype.getKey = function () {
662
- return (
663
- /** @type{?proto.StyleKey} */
664
- jspb.Message.getWrapperField(this, proto.StyleKey, 1)
665
- );
666
- };
667
- /** @param {?proto.StyleKey|undefined} value */
668
-
669
-
670
- proto.OneStyleValue.prototype.setKey = function (value) {
671
- jspb.Message.setWrapperField(this, 1, value);
672
- };
673
-
674
- proto.OneStyleValue.prototype.clearKey = function () {
675
- this.setKey(undefined);
676
- };
677
- /**
678
- * Returns whether this field is set.
679
- * @return {!boolean}
680
- */
681
-
682
-
683
- proto.OneStyleValue.prototype.hasKey = function () {
684
- return jspb.Message.getField(this, 1) != null;
685
- };
686
- /**
687
- * optional int32 int32Vl = 2;
688
- * @return {number}
689
- */
690
-
691
-
692
- proto.OneStyleValue.prototype.getInt32vl = function () {
693
- return (
694
- /** @type {number} */
695
- jspb.Message.getFieldWithDefault(this, 2, 0)
696
- );
697
- };
698
- /** @param {number} value */
699
-
700
-
701
- proto.OneStyleValue.prototype.setInt32vl = function (value) {
702
- jspb.Message.setOneofField(this, 2, proto.OneStyleValue.oneofGroups_[0], value);
703
- };
704
-
705
- proto.OneStyleValue.prototype.clearInt32vl = function () {
706
- jspb.Message.setOneofField(this, 2, proto.OneStyleValue.oneofGroups_[0], undefined);
707
- };
708
- /**
709
- * Returns whether this field is set.
710
- * @return {!boolean}
711
- */
712
-
713
-
714
- proto.OneStyleValue.prototype.hasInt32vl = function () {
715
- return jspb.Message.getField(this, 2) != null;
716
- };
717
- /**
718
- * optional bool boolVl = 3;
719
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
720
- * You should avoid comparisons like {@code val === true/false} in those cases.
721
- * @return {boolean}
722
- */
723
-
724
-
725
- proto.OneStyleValue.prototype.getBoolvl = function () {
726
- return (
727
- /** @type {boolean} */
728
- jspb.Message.getFieldWithDefault(this, 3, false)
729
- );
730
- };
731
- /** @param {boolean} value */
732
-
733
-
734
- proto.OneStyleValue.prototype.setBoolvl = function (value) {
735
- jspb.Message.setOneofField(this, 3, proto.OneStyleValue.oneofGroups_[0], value);
736
- };
737
-
738
- proto.OneStyleValue.prototype.clearBoolvl = function () {
739
- jspb.Message.setOneofField(this, 3, proto.OneStyleValue.oneofGroups_[0], undefined);
740
- };
741
- /**
742
- * Returns whether this field is set.
743
- * @return {!boolean}
744
- */
745
-
746
-
747
- proto.OneStyleValue.prototype.hasBoolvl = function () {
748
- return jspb.Message.getField(this, 3) != null;
749
- };
750
- /**
751
- * optional int32 funcId = 4;
752
- * @return {number}
753
- */
754
-
755
-
756
- proto.OneStyleValue.prototype.getFuncid = function () {
757
- return (
758
- /** @type {number} */
759
- jspb.Message.getFieldWithDefault(this, 4, 0)
760
- );
761
- };
762
- /** @param {number} value */
763
-
764
-
765
- proto.OneStyleValue.prototype.setFuncid = function (value) {
766
- jspb.Message.setOneofField(this, 4, proto.OneStyleValue.oneofGroups_[0], value);
767
- };
768
-
769
- proto.OneStyleValue.prototype.clearFuncid = function () {
770
- jspb.Message.setOneofField(this, 4, proto.OneStyleValue.oneofGroups_[0], undefined);
771
- };
772
- /**
773
- * Returns whether this field is set.
774
- * @return {!boolean}
775
- */
776
-
777
-
778
- proto.OneStyleValue.prototype.hasFuncid = function () {
779
- return jspb.Message.getField(this, 4) != null;
780
- };
781
- /**
782
- * optional double doubleVl = 5;
783
- * @return {number}
784
- */
785
-
786
-
787
- proto.OneStyleValue.prototype.getDoublevl = function () {
788
- return (
789
- /** @type {number} */
790
- +jspb.Message.getFieldWithDefault(this, 5, 0.0)
791
- );
792
- };
793
- /** @param {number} value */
794
-
795
-
796
- proto.OneStyleValue.prototype.setDoublevl = function (value) {
797
- jspb.Message.setOneofField(this, 5, proto.OneStyleValue.oneofGroups_[0], value);
798
- };
799
-
800
- proto.OneStyleValue.prototype.clearDoublevl = function () {
801
- jspb.Message.setOneofField(this, 5, proto.OneStyleValue.oneofGroups_[0], undefined);
802
- };
803
- /**
804
- * Returns whether this field is set.
805
- * @return {!boolean}
806
- */
807
-
808
-
809
- proto.OneStyleValue.prototype.hasDoublevl = function () {
810
- return jspb.Message.getField(this, 5) != null;
811
- };
812
- /**
813
- * optional string stringVl = 6;
814
- * @return {string}
815
- */
816
-
817
-
818
- proto.OneStyleValue.prototype.getStringvl = function () {
819
- return (
820
- /** @type {string} */
821
- jspb.Message.getFieldWithDefault(this, 6, '')
822
- );
823
- };
824
- /** @param {string} value */
825
-
826
-
827
- proto.OneStyleValue.prototype.setStringvl = function (value) {
828
- jspb.Message.setOneofField(this, 6, proto.OneStyleValue.oneofGroups_[0], value);
829
- };
830
-
831
- proto.OneStyleValue.prototype.clearStringvl = function () {
832
- jspb.Message.setOneofField(this, 6, proto.OneStyleValue.oneofGroups_[0], undefined);
833
- };
834
- /**
835
- * Returns whether this field is set.
836
- * @return {!boolean}
837
- */
838
-
839
-
840
- proto.OneStyleValue.prototype.hasStringvl = function () {
841
- return jspb.Message.getField(this, 6) != null;
842
- };
843
- /**
844
- * optional StringArr stringArr = 7;
845
- * @return {?proto.StringArr}
846
- */
847
-
848
-
849
- proto.OneStyleValue.prototype.getStringarr = function () {
850
- return (
851
- /** @type{?proto.StringArr} */
852
- jspb.Message.getWrapperField(this, proto.StringArr, 7)
853
- );
854
- };
855
- /** @param {?proto.StringArr|undefined} value */
856
-
857
-
858
- proto.OneStyleValue.prototype.setStringarr = function (value) {
859
- jspb.Message.setOneofWrapperField(this, 7, proto.OneStyleValue.oneofGroups_[0], value);
860
- };
861
-
862
- proto.OneStyleValue.prototype.clearStringarr = function () {
863
- this.setStringarr(undefined);
864
- };
865
- /**
866
- * Returns whether this field is set.
867
- * @return {!boolean}
868
- */
869
-
870
-
871
- proto.OneStyleValue.prototype.hasStringarr = function () {
872
- return jspb.Message.getField(this, 7) != null;
873
- };
874
- /**
875
- * optional StyleValueArr styleVlArr = 8;
876
- * @return {?proto.StyleValueArr}
877
- */
878
-
879
-
880
- proto.OneStyleValue.prototype.getStylevlarr = function () {
881
- return (
882
- /** @type{?proto.StyleValueArr} */
883
- jspb.Message.getWrapperField(this, proto.StyleValueArr, 8)
884
- );
885
- };
886
- /** @param {?proto.StyleValueArr|undefined} value */
887
-
888
-
889
- proto.OneStyleValue.prototype.setStylevlarr = function (value) {
890
- jspb.Message.setOneofWrapperField(this, 8, proto.OneStyleValue.oneofGroups_[0], value);
891
- };
892
-
893
- proto.OneStyleValue.prototype.clearStylevlarr = function () {
894
- this.setStylevlarr(undefined);
895
- };
896
- /**
897
- * Returns whether this field is set.
898
- * @return {!boolean}
899
- */
900
-
901
-
902
- proto.OneStyleValue.prototype.hasStylevlarr = function () {
903
- return jspb.Message.getField(this, 8) != null;
904
- };
905
- /**
906
- * Generated by JsPbCodeGenerator.
907
- * @param {Array=} opt_data Optional initial data array, typically from a
908
- * server response, or constructed directly in Javascript. The array is used
909
- * in place and becomes part of the constructed object. It is not cloned.
910
- * If no data is provided, the constructed object will be empty, but still
911
- * valid.
912
- * @extends {jspb.Message}
913
- * @constructor
914
- */
915
-
916
-
917
- proto.StyleValueArr = function (opt_data) {
918
- jspb.Message.initialize(this, opt_data, 0, -1, proto.StyleValueArr.repeatedFields_, null);
919
- };
920
-
921
- goog.inherits(proto.StyleValueArr, jspb.Message);
922
-
923
- if (goog.DEBUG && !COMPILED) {
924
- proto.StyleValueArr.displayName = 'proto.StyleValueArr';
925
- }
926
- /**
927
- * List of repeated fields within this message type.
928
- * @private {!Array<number>}
929
- * @const
930
- */
931
-
932
-
933
- proto.StyleValueArr.repeatedFields_ = [1];
934
-
935
- if (jspb.Message.GENERATE_TO_OBJECT) {
936
- /**
937
- * Creates an object representation of this proto suitable for use in Soy templates.
938
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
939
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
940
- * For the list of reserved names please see:
941
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
942
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
943
- * for transitional soy proto support: http://goto/soy-param-migration
944
- * @return {!Object}
945
- */
946
- proto.StyleValueArr.prototype.toObject = function (opt_includeInstance) {
947
- return proto.StyleValueArr.toObject(opt_includeInstance, this);
948
- };
949
- /**
950
- * Static version of the {@see toObject} method.
951
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
952
- * instance for transitional soy proto support:
953
- * http://goto/soy-param-migration
954
- * @param {!proto.StyleValueArr} msg The msg instance to transform.
955
- * @return {!Object}
956
- * @suppress {unusedLocalVariables} f is only used for nested messages
957
- */
958
-
959
-
960
- proto.StyleValueArr.toObject = function (includeInstance, msg) {
961
- var f,
962
- obj = {
963
- vlarrList: jspb.Message.toObjectList(msg.getVlarrList(), proto.OneStyleValue.toObject, includeInstance)
964
- };
965
-
966
- if (includeInstance) {
967
- obj.$jspbMessageInstance = msg;
968
- }
969
-
970
- return obj;
971
- };
972
- }
973
- /**
974
- * Deserializes binary data (in protobuf wire format).
975
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
976
- * @return {!proto.StyleValueArr}
977
- */
978
-
979
-
980
- proto.StyleValueArr.deserializeBinary = function (bytes) {
981
- var reader = new jspb.BinaryReader(bytes);
982
- var msg = new proto.StyleValueArr();
983
- return proto.StyleValueArr.deserializeBinaryFromReader(msg, reader);
984
- };
985
- /**
986
- * Deserializes binary data (in protobuf wire format) from the
987
- * given reader into the given message object.
988
- * @param {!proto.StyleValueArr} msg The message object to deserialize into.
989
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
990
- * @return {!proto.StyleValueArr}
991
- */
992
-
993
-
994
- proto.StyleValueArr.deserializeBinaryFromReader = function (msg, reader) {
995
- while (reader.nextField()) {
996
- if (reader.isEndGroup()) {
997
- break;
998
- }
999
-
1000
- var field = reader.getFieldNumber();
1001
-
1002
- switch (field) {
1003
- case 1:
1004
- var value = new proto.OneStyleValue();
1005
- reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1006
- msg.addVlarr(value);
1007
- break;
1008
-
1009
- default:
1010
- reader.skipField();
1011
- break;
1012
- }
1013
- }
1014
-
1015
- return msg;
1016
- };
1017
- /**
1018
- * Serializes the message to binary data (in protobuf wire format).
1019
- * @return {!Uint8Array}
1020
- */
1021
-
1022
-
1023
- proto.StyleValueArr.prototype.serializeBinary = function () {
1024
- var writer = new jspb.BinaryWriter();
1025
- proto.StyleValueArr.serializeBinaryToWriter(this, writer);
1026
- return writer.getResultBuffer();
1027
- };
1028
- /**
1029
- * Serializes the given message to binary data (in protobuf wire
1030
- * format), writing to the given BinaryWriter.
1031
- * @param {!proto.StyleValueArr} message
1032
- * @param {!jspb.BinaryWriter} writer
1033
- * @suppress {unusedLocalVariables} f is only used for nested messages
1034
- */
1035
-
1036
-
1037
- proto.StyleValueArr.serializeBinaryToWriter = function (message, writer) {
1038
- var f = undefined;
1039
- f = message.getVlarrList();
1040
-
1041
- if (f.length > 0) {
1042
- writer.writeRepeatedMessage(1, f, proto.OneStyleValue.serializeBinaryToWriter);
1043
- }
1044
- };
1045
- /**
1046
- * repeated OneStyleValue vlArr = 1;
1047
- * @return {!Array<!proto.OneStyleValue>}
1048
- */
1049
-
1050
-
1051
- proto.StyleValueArr.prototype.getVlarrList = function () {
1052
- return (
1053
- /** @type{!Array<!proto.OneStyleValue>} */
1054
- jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 1)
1055
- );
1056
- };
1057
- /** @param {!Array<!proto.OneStyleValue>} value */
1058
-
1059
-
1060
- proto.StyleValueArr.prototype.setVlarrList = function (value) {
1061
- jspb.Message.setRepeatedWrapperField(this, 1, value);
1062
- };
1063
- /**
1064
- * @param {!proto.OneStyleValue=} opt_value
1065
- * @param {number=} opt_index
1066
- * @return {!proto.OneStyleValue}
1067
- */
1068
-
1069
-
1070
- proto.StyleValueArr.prototype.addVlarr = function (opt_value, opt_index) {
1071
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.OneStyleValue, opt_index);
1072
- };
1073
-
1074
- proto.StyleValueArr.prototype.clearVlarrList = function () {
1075
- this.setVlarrList([]);
1076
- };
1077
- /**
1078
- * Generated by JsPbCodeGenerator.
1079
- * @param {Array=} opt_data Optional initial data array, typically from a
1080
- * server response, or constructed directly in Javascript. The array is used
1081
- * in place and becomes part of the constructed object. It is not cloned.
1082
- * If no data is provided, the constructed object will be empty, but still
1083
- * valid.
1084
- * @extends {jspb.Message}
1085
- * @constructor
1086
- */
1087
-
1088
-
1089
- proto.SelectorKey = function (opt_data) {
1090
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1091
- };
1092
-
1093
- goog.inherits(proto.SelectorKey, jspb.Message);
1094
-
1095
- if (goog.DEBUG && !COMPILED) {
1096
- proto.SelectorKey.displayName = 'proto.SelectorKey';
1097
- }
1098
-
1099
- if (jspb.Message.GENERATE_TO_OBJECT) {
1100
- /**
1101
- * Creates an object representation of this proto suitable for use in Soy templates.
1102
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1103
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1104
- * For the list of reserved names please see:
1105
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1106
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1107
- * for transitional soy proto support: http://goto/soy-param-migration
1108
- * @return {!Object}
1109
- */
1110
- proto.SelectorKey.prototype.toObject = function (opt_includeInstance) {
1111
- return proto.SelectorKey.toObject(opt_includeInstance, this);
1112
- };
1113
- /**
1114
- * Static version of the {@see toObject} method.
1115
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1116
- * instance for transitional soy proto support:
1117
- * http://goto/soy-param-migration
1118
- * @param {!proto.SelectorKey} msg The msg instance to transform.
1119
- * @return {!Object}
1120
- * @suppress {unusedLocalVariables} f is only used for nested messages
1121
- */
1122
-
1123
-
1124
- proto.SelectorKey.toObject = function (includeInstance, msg) {
1125
- var f,
1126
- obj = {
1127
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1128
- name: jspb.Message.getFieldWithDefault(msg, 2, '')
1129
- };
1130
-
1131
- if (includeInstance) {
1132
- obj.$jspbMessageInstance = msg;
1133
- }
1134
-
1135
- return obj;
1136
- };
1137
- }
1138
- /**
1139
- * Deserializes binary data (in protobuf wire format).
1140
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1141
- * @return {!proto.SelectorKey}
1142
- */
1143
-
1144
-
1145
- proto.SelectorKey.deserializeBinary = function (bytes) {
1146
- var reader = new jspb.BinaryReader(bytes);
1147
- var msg = new proto.SelectorKey();
1148
- return proto.SelectorKey.deserializeBinaryFromReader(msg, reader);
1149
- };
1150
- /**
1151
- * Deserializes binary data (in protobuf wire format) from the
1152
- * given reader into the given message object.
1153
- * @param {!proto.SelectorKey} msg The message object to deserialize into.
1154
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1155
- * @return {!proto.SelectorKey}
1156
- */
1157
-
1158
-
1159
- proto.SelectorKey.deserializeBinaryFromReader = function (msg, reader) {
1160
- while (reader.nextField()) {
1161
- if (reader.isEndGroup()) {
1162
- break;
1163
- }
1164
-
1165
- var field = reader.getFieldNumber();
1166
-
1167
- switch (field) {
1168
- case 1:
1169
- var value =
1170
- /** @type {number} */
1171
- reader.readInt32();
1172
- msg.setId(value);
1173
- break;
1174
-
1175
- case 2:
1176
- var value =
1177
- /** @type {string} */
1178
- reader.readString();
1179
- msg.setName(value);
1180
- break;
1181
-
1182
- default:
1183
- reader.skipField();
1184
- break;
1185
- }
1186
- }
1187
-
1188
- return msg;
1189
- };
1190
- /**
1191
- * Serializes the message to binary data (in protobuf wire format).
1192
- * @return {!Uint8Array}
1193
- */
1194
-
1195
-
1196
- proto.SelectorKey.prototype.serializeBinary = function () {
1197
- var writer = new jspb.BinaryWriter();
1198
- proto.SelectorKey.serializeBinaryToWriter(this, writer);
1199
- return writer.getResultBuffer();
1200
- };
1201
- /**
1202
- * Serializes the given message to binary data (in protobuf wire
1203
- * format), writing to the given BinaryWriter.
1204
- * @param {!proto.SelectorKey} message
1205
- * @param {!jspb.BinaryWriter} writer
1206
- * @suppress {unusedLocalVariables} f is only used for nested messages
1207
- */
1208
-
1209
-
1210
- proto.SelectorKey.serializeBinaryToWriter = function (message, writer) {
1211
- var f = undefined;
1212
- f = message.getId();
1213
-
1214
- if (f !== 0) {
1215
- writer.writeInt32(1, f);
1216
- }
1217
-
1218
- f = message.getName();
1219
-
1220
- if (f.length > 0) {
1221
- writer.writeString(2, f);
1222
- }
1223
- };
1224
- /**
1225
- * optional int32 id = 1;
1226
- * @return {number}
1227
- */
1228
-
1229
-
1230
- proto.SelectorKey.prototype.getId = function () {
1231
- return (
1232
- /** @type {number} */
1233
- jspb.Message.getFieldWithDefault(this, 1, 0)
1234
- );
1235
- };
1236
- /** @param {number} value */
1237
-
1238
-
1239
- proto.SelectorKey.prototype.setId = function (value) {
1240
- jspb.Message.setProto3IntField(this, 1, value);
1241
- };
1242
- /**
1243
- * optional string name = 2;
1244
- * @return {string}
1245
- */
1246
-
1247
-
1248
- proto.SelectorKey.prototype.getName = function () {
1249
- return (
1250
- /** @type {string} */
1251
- jspb.Message.getFieldWithDefault(this, 2, '')
1252
- );
1253
- };
1254
- /** @param {string} value */
1255
-
1256
-
1257
- proto.SelectorKey.prototype.setName = function (value) {
1258
- jspb.Message.setProto3StringField(this, 2, value);
1259
- };
1260
- /**
1261
- * Generated by JsPbCodeGenerator.
1262
- * @param {Array=} opt_data Optional initial data array, typically from a
1263
- * server response, or constructed directly in Javascript. The array is used
1264
- * in place and becomes part of the constructed object. It is not cloned.
1265
- * If no data is provided, the constructed object will be empty, but still
1266
- * valid.
1267
- * @extends {jspb.Message}
1268
- * @constructor
1269
- */
1270
-
1271
-
1272
- proto.CssCell = function (opt_data) {
1273
- jspb.Message.initialize(this, opt_data, 0, -1, proto.CssCell.repeatedFields_, null);
1274
- };
1275
-
1276
- goog.inherits(proto.CssCell, jspb.Message);
1277
-
1278
- if (goog.DEBUG && !COMPILED) {
1279
- proto.CssCell.displayName = 'proto.CssCell';
1280
- }
1281
- /**
1282
- * List of repeated fields within this message type.
1283
- * @private {!Array<number>}
1284
- * @const
1285
- */
1286
-
1287
-
1288
- proto.CssCell.repeatedFields_ = [1, 2, 3];
1289
-
1290
- if (jspb.Message.GENERATE_TO_OBJECT) {
1291
- /**
1292
- * Creates an object representation of this proto suitable for use in Soy templates.
1293
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1294
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1295
- * For the list of reserved names please see:
1296
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1297
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1298
- * for transitional soy proto support: http://goto/soy-param-migration
1299
- * @return {!Object}
1300
- */
1301
- proto.CssCell.prototype.toObject = function (opt_includeInstance) {
1302
- return proto.CssCell.toObject(opt_includeInstance, this);
1303
- };
1304
- /**
1305
- * Static version of the {@see toObject} method.
1306
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1307
- * instance for transitional soy proto support:
1308
- * http://goto/soy-param-migration
1309
- * @param {!proto.CssCell} msg The msg instance to transform.
1310
- * @return {!Object}
1311
- * @suppress {unusedLocalVariables} f is only used for nested messages
1312
- */
1313
-
1314
-
1315
- proto.CssCell.toObject = function (includeInstance, msg) {
1316
- var f,
1317
- obj = {
1318
- selectorarrList: jspb.Message.toObjectList(msg.getSelectorarrList(), proto.SelectorKey.toObject, includeInstance),
1319
- stylearrList: jspb.Message.toObjectList(msg.getStylearrList(), proto.OneStyleValue.toObject, includeInstance),
1320
- propertyarrList: jspb.Message.toObjectList(msg.getPropertyarrList(), proto.OneStyleValue.toObject, includeInstance)
1321
- };
1322
-
1323
- if (includeInstance) {
1324
- obj.$jspbMessageInstance = msg;
1325
- }
1326
-
1327
- return obj;
1328
- };
1329
- }
1330
- /**
1331
- * Deserializes binary data (in protobuf wire format).
1332
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1333
- * @return {!proto.CssCell}
1334
- */
1335
-
1336
-
1337
- proto.CssCell.deserializeBinary = function (bytes) {
1338
- var reader = new jspb.BinaryReader(bytes);
1339
- var msg = new proto.CssCell();
1340
- return proto.CssCell.deserializeBinaryFromReader(msg, reader);
1341
- };
1342
- /**
1343
- * Deserializes binary data (in protobuf wire format) from the
1344
- * given reader into the given message object.
1345
- * @param {!proto.CssCell} msg The message object to deserialize into.
1346
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1347
- * @return {!proto.CssCell}
1348
- */
1349
-
1350
-
1351
- proto.CssCell.deserializeBinaryFromReader = function (msg, reader) {
1352
- while (reader.nextField()) {
1353
- if (reader.isEndGroup()) {
1354
- break;
1355
- }
1356
-
1357
- var field = reader.getFieldNumber();
1358
-
1359
- switch (field) {
1360
- case 1:
1361
- var value = new proto.SelectorKey();
1362
- reader.readMessage(value, proto.SelectorKey.deserializeBinaryFromReader);
1363
- msg.addSelectorarr(value);
1364
- break;
1365
-
1366
- case 2:
1367
- var value = new proto.OneStyleValue();
1368
- reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1369
- msg.addStylearr(value);
1370
- break;
1371
-
1372
- case 3:
1373
- var value = new proto.OneStyleValue();
1374
- reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1375
- msg.addPropertyarr(value);
1376
- break;
1377
-
1378
- default:
1379
- reader.skipField();
1380
- break;
1381
- }
1382
- }
1383
-
1384
- return msg;
1385
- };
1386
- /**
1387
- * Serializes the message to binary data (in protobuf wire format).
1388
- * @return {!Uint8Array}
1389
- */
1390
-
1391
-
1392
- proto.CssCell.prototype.serializeBinary = function () {
1393
- var writer = new jspb.BinaryWriter();
1394
- proto.CssCell.serializeBinaryToWriter(this, writer);
1395
- return writer.getResultBuffer();
1396
- };
1397
- /**
1398
- * Serializes the given message to binary data (in protobuf wire
1399
- * format), writing to the given BinaryWriter.
1400
- * @param {!proto.CssCell} message
1401
- * @param {!jspb.BinaryWriter} writer
1402
- * @suppress {unusedLocalVariables} f is only used for nested messages
1403
- */
1404
-
1405
-
1406
- proto.CssCell.serializeBinaryToWriter = function (message, writer) {
1407
- var f = undefined;
1408
- f = message.getSelectorarrList();
1409
-
1410
- if (f.length > 0) {
1411
- writer.writeRepeatedMessage(1, f, proto.SelectorKey.serializeBinaryToWriter);
1412
- }
1413
-
1414
- f = message.getStylearrList();
1415
-
1416
- if (f.length > 0) {
1417
- writer.writeRepeatedMessage(2, f, proto.OneStyleValue.serializeBinaryToWriter);
1418
- }
1419
-
1420
- f = message.getPropertyarrList();
1421
-
1422
- if (f.length > 0) {
1423
- writer.writeRepeatedMessage(3, f, proto.OneStyleValue.serializeBinaryToWriter);
1424
- }
1425
- };
1426
- /**
1427
- * repeated SelectorKey selectorArr = 1;
1428
- * @return {!Array<!proto.SelectorKey>}
1429
- */
1430
-
1431
-
1432
- proto.CssCell.prototype.getSelectorarrList = function () {
1433
- return (
1434
- /** @type{!Array<!proto.SelectorKey>} */
1435
- jspb.Message.getRepeatedWrapperField(this, proto.SelectorKey, 1)
1436
- );
1437
- };
1438
- /** @param {!Array<!proto.SelectorKey>} value */
1439
-
1440
-
1441
- proto.CssCell.prototype.setSelectorarrList = function (value) {
1442
- jspb.Message.setRepeatedWrapperField(this, 1, value);
1443
- };
1444
- /**
1445
- * @param {!proto.SelectorKey=} opt_value
1446
- * @param {number=} opt_index
1447
- * @return {!proto.SelectorKey}
1448
- */
1449
-
1450
-
1451
- proto.CssCell.prototype.addSelectorarr = function (opt_value, opt_index) {
1452
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.SelectorKey, opt_index);
1453
- };
1454
-
1455
- proto.CssCell.prototype.clearSelectorarrList = function () {
1456
- this.setSelectorarrList([]);
1457
- };
1458
- /**
1459
- * repeated OneStyleValue styleArr = 2;
1460
- * @return {!Array<!proto.OneStyleValue>}
1461
- */
1462
-
1463
-
1464
- proto.CssCell.prototype.getStylearrList = function () {
1465
- return (
1466
- /** @type{!Array<!proto.OneStyleValue>} */
1467
- jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 2)
1468
- );
1469
- };
1470
- /** @param {!Array<!proto.OneStyleValue>} value */
1471
-
1472
-
1473
- proto.CssCell.prototype.setStylearrList = function (value) {
1474
- jspb.Message.setRepeatedWrapperField(this, 2, value);
1475
- };
1476
- /**
1477
- * @param {!proto.OneStyleValue=} opt_value
1478
- * @param {number=} opt_index
1479
- * @return {!proto.OneStyleValue}
1480
- */
1481
-
1482
-
1483
- proto.CssCell.prototype.addStylearr = function (opt_value, opt_index) {
1484
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.OneStyleValue, opt_index);
1485
- };
1486
-
1487
- proto.CssCell.prototype.clearStylearrList = function () {
1488
- this.setStylearrList([]);
1489
- };
1490
- /**
1491
- * repeated OneStyleValue propertyArr = 3;
1492
- * @return {!Array<!proto.OneStyleValue>}
1493
- */
1494
-
1495
-
1496
- proto.CssCell.prototype.getPropertyarrList = function () {
1497
- return (
1498
- /** @type{!Array<!proto.OneStyleValue>} */
1499
- jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 3)
1500
- );
1501
- };
1502
- /** @param {!Array<!proto.OneStyleValue>} value */
1503
-
1504
-
1505
- proto.CssCell.prototype.setPropertyarrList = function (value) {
1506
- jspb.Message.setRepeatedWrapperField(this, 3, value);
1507
- };
1508
- /**
1509
- * @param {!proto.OneStyleValue=} opt_value
1510
- * @param {number=} opt_index
1511
- * @return {!proto.OneStyleValue}
1512
- */
1513
-
1514
-
1515
- proto.CssCell.prototype.addPropertyarr = function (opt_value, opt_index) {
1516
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.OneStyleValue, opt_index);
1517
- };
1518
-
1519
- proto.CssCell.prototype.clearPropertyarrList = function () {
1520
- this.setPropertyarrList([]);
1521
- };
1522
- /**
1523
- * Generated by JsPbCodeGenerator.
1524
- * @param {Array=} opt_data Optional initial data array, typically from a
1525
- * server response, or constructed directly in Javascript. The array is used
1526
- * in place and becomes part of the constructed object. It is not cloned.
1527
- * If no data is provided, the constructed object will be empty, but still
1528
- * valid.
1529
- * @extends {jspb.Message}
1530
- * @constructor
1531
- */
1532
-
1533
-
1534
- proto.TemplateUnit = function (opt_data) {
1535
- jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateUnit.repeatedFields_, null);
1536
- };
1537
-
1538
- goog.inherits(proto.TemplateUnit, jspb.Message);
1539
-
1540
- if (goog.DEBUG && !COMPILED) {
1541
- proto.TemplateUnit.displayName = 'proto.TemplateUnit';
1542
- }
1543
- /**
1544
- * List of repeated fields within this message type.
1545
- * @private {!Array<number>}
1546
- * @const
1547
- */
1548
-
1549
-
1550
- proto.TemplateUnit.repeatedFields_ = [5, 6];
1551
-
1552
- if (jspb.Message.GENERATE_TO_OBJECT) {
1553
- /**
1554
- * Creates an object representation of this proto suitable for use in Soy templates.
1555
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1556
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1557
- * For the list of reserved names please see:
1558
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1559
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1560
- * for transitional soy proto support: http://goto/soy-param-migration
1561
- * @return {!Object}
1562
- */
1563
- proto.TemplateUnit.prototype.toObject = function (opt_includeInstance) {
1564
- return proto.TemplateUnit.toObject(opt_includeInstance, this);
1565
- };
1566
- /**
1567
- * Static version of the {@see toObject} method.
1568
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1569
- * instance for transitional soy proto support:
1570
- * http://goto/soy-param-migration
1571
- * @param {!proto.TemplateUnit} msg The msg instance to transform.
1572
- * @return {!Object}
1573
- * @suppress {unusedLocalVariables} f is only used for nested messages
1574
- */
1575
-
1576
-
1577
- proto.TemplateUnit.toObject = function (includeInstance, msg) {
1578
- var f,
1579
- obj = {
1580
- type: jspb.Message.getFieldWithDefault(msg, 1, ''),
1581
- tag: jspb.Message.getFieldWithDefault(msg, 2, ''),
1582
- optsid: jspb.Message.getFieldWithDefault(msg, 3, 0),
1583
- funcrender: jspb.Message.getFieldWithDefault(msg, 4, 0),
1584
- optsarrList: jspb.Message.toObjectList(msg.getOptsarrList(), proto.OneStyleValue.toObject, includeInstance),
1585
- templaterenderList: jspb.Message.toObjectList(msg.getTemplaterenderList(), proto.TemplateOne.toObject, includeInstance)
1586
- };
1587
-
1588
- if (includeInstance) {
1589
- obj.$jspbMessageInstance = msg;
1590
- }
1591
-
1592
- return obj;
1593
- };
1594
- }
1595
- /**
1596
- * Deserializes binary data (in protobuf wire format).
1597
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1598
- * @return {!proto.TemplateUnit}
1599
- */
1600
-
1601
-
1602
- proto.TemplateUnit.deserializeBinary = function (bytes) {
1603
- var reader = new jspb.BinaryReader(bytes);
1604
- var msg = new proto.TemplateUnit();
1605
- return proto.TemplateUnit.deserializeBinaryFromReader(msg, reader);
1606
- };
1607
- /**
1608
- * Deserializes binary data (in protobuf wire format) from the
1609
- * given reader into the given message object.
1610
- * @param {!proto.TemplateUnit} msg The message object to deserialize into.
1611
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1612
- * @return {!proto.TemplateUnit}
1613
- */
1614
-
1615
-
1616
- proto.TemplateUnit.deserializeBinaryFromReader = function (msg, reader) {
1617
- while (reader.nextField()) {
1618
- if (reader.isEndGroup()) {
1619
- break;
1620
- }
1621
-
1622
- var field = reader.getFieldNumber();
1623
-
1624
- switch (field) {
1625
- case 1:
1626
- var value =
1627
- /** @type {string} */
1628
- reader.readString();
1629
- msg.setType(value);
1630
- break;
1631
-
1632
- case 2:
1633
- var value =
1634
- /** @type {string} */
1635
- reader.readString();
1636
- msg.setTag(value);
1637
- break;
1638
-
1639
- case 3:
1640
- var value =
1641
- /** @type {number} */
1642
- reader.readInt32();
1643
- msg.setOptsid(value);
1644
- break;
1645
-
1646
- case 4:
1647
- var value =
1648
- /** @type {number} */
1649
- reader.readInt32();
1650
- msg.setFuncrender(value);
1651
- break;
1652
-
1653
- case 5:
1654
- var value = new proto.OneStyleValue();
1655
- reader.readMessage(value, proto.OneStyleValue.deserializeBinaryFromReader);
1656
- msg.addOptsarr(value);
1657
- break;
1658
-
1659
- case 6:
1660
- var value = new proto.TemplateOne();
1661
- reader.readMessage(value, proto.TemplateOne.deserializeBinaryFromReader);
1662
- msg.addTemplaterender(value);
1663
- break;
1664
-
1665
- default:
1666
- reader.skipField();
1667
- break;
1668
- }
1669
- }
1670
-
1671
- return msg;
1672
- };
1673
- /**
1674
- * Serializes the message to binary data (in protobuf wire format).
1675
- * @return {!Uint8Array}
1676
- */
1677
-
1678
-
1679
- proto.TemplateUnit.prototype.serializeBinary = function () {
1680
- var writer = new jspb.BinaryWriter();
1681
- proto.TemplateUnit.serializeBinaryToWriter(this, writer);
1682
- return writer.getResultBuffer();
1683
- };
1684
- /**
1685
- * Serializes the given message to binary data (in protobuf wire
1686
- * format), writing to the given BinaryWriter.
1687
- * @param {!proto.TemplateUnit} message
1688
- * @param {!jspb.BinaryWriter} writer
1689
- * @suppress {unusedLocalVariables} f is only used for nested messages
1690
- */
1691
-
1692
-
1693
- proto.TemplateUnit.serializeBinaryToWriter = function (message, writer) {
1694
- var f = undefined;
1695
- f = message.getType();
1696
-
1697
- if (f.length > 0) {
1698
- writer.writeString(1, f);
1699
- }
1700
-
1701
- f = message.getTag();
1702
-
1703
- if (f.length > 0) {
1704
- writer.writeString(2, f);
1705
- }
1706
-
1707
- f = message.getOptsid();
1708
-
1709
- if (f !== 0) {
1710
- writer.writeInt32(3, f);
1711
- }
1712
-
1713
- f = message.getFuncrender();
1714
-
1715
- if (f !== 0) {
1716
- writer.writeInt32(4, f);
1717
- }
1718
-
1719
- f = message.getOptsarrList();
1720
-
1721
- if (f.length > 0) {
1722
- writer.writeRepeatedMessage(5, f, proto.OneStyleValue.serializeBinaryToWriter);
1723
- }
1724
-
1725
- f = message.getTemplaterenderList();
1726
-
1727
- if (f.length > 0) {
1728
- writer.writeRepeatedMessage(6, f, proto.TemplateOne.serializeBinaryToWriter);
1729
- }
1730
- };
1731
- /**
1732
- * optional string type = 1;
1733
- * @return {string}
1734
- */
1735
-
1736
-
1737
- proto.TemplateUnit.prototype.getType = function () {
1738
- return (
1739
- /** @type {string} */
1740
- jspb.Message.getFieldWithDefault(this, 1, '')
1741
- );
1742
- };
1743
- /** @param {string} value */
1744
-
1745
-
1746
- proto.TemplateUnit.prototype.setType = function (value) {
1747
- jspb.Message.setProto3StringField(this, 1, value);
1748
- };
1749
- /**
1750
- * optional string tag = 2;
1751
- * @return {string}
1752
- */
1753
-
1754
-
1755
- proto.TemplateUnit.prototype.getTag = function () {
1756
- return (
1757
- /** @type {string} */
1758
- jspb.Message.getFieldWithDefault(this, 2, '')
1759
- );
1760
- };
1761
- /** @param {string} value */
1762
-
1763
-
1764
- proto.TemplateUnit.prototype.setTag = function (value) {
1765
- jspb.Message.setProto3StringField(this, 2, value);
1766
- };
1767
- /**
1768
- * optional int32 optsId = 3;
1769
- * @return {number}
1770
- */
1771
-
1772
-
1773
- proto.TemplateUnit.prototype.getOptsid = function () {
1774
- return (
1775
- /** @type {number} */
1776
- jspb.Message.getFieldWithDefault(this, 3, 0)
1777
- );
1778
- };
1779
- /** @param {number} value */
1780
-
1781
-
1782
- proto.TemplateUnit.prototype.setOptsid = function (value) {
1783
- jspb.Message.setProto3IntField(this, 3, value);
1784
- };
1785
- /**
1786
- * optional int32 funcRender = 4;
1787
- * @return {number}
1788
- */
1789
-
1790
-
1791
- proto.TemplateUnit.prototype.getFuncrender = function () {
1792
- return (
1793
- /** @type {number} */
1794
- jspb.Message.getFieldWithDefault(this, 4, 0)
1795
- );
1796
- };
1797
- /** @param {number} value */
1798
-
1799
-
1800
- proto.TemplateUnit.prototype.setFuncrender = function (value) {
1801
- jspb.Message.setProto3IntField(this, 4, value);
1802
- };
1803
- /**
1804
- * repeated OneStyleValue optsArr = 5;
1805
- * @return {!Array<!proto.OneStyleValue>}
1806
- */
1807
-
1808
-
1809
- proto.TemplateUnit.prototype.getOptsarrList = function () {
1810
- return (
1811
- /** @type{!Array<!proto.OneStyleValue>} */
1812
- jspb.Message.getRepeatedWrapperField(this, proto.OneStyleValue, 5)
1813
- );
1814
- };
1815
- /** @param {!Array<!proto.OneStyleValue>} value */
1816
-
1817
-
1818
- proto.TemplateUnit.prototype.setOptsarrList = function (value) {
1819
- jspb.Message.setRepeatedWrapperField(this, 5, value);
1820
- };
1821
- /**
1822
- * @param {!proto.OneStyleValue=} opt_value
1823
- * @param {number=} opt_index
1824
- * @return {!proto.OneStyleValue}
1825
- */
1826
-
1827
-
1828
- proto.TemplateUnit.prototype.addOptsarr = function (opt_value, opt_index) {
1829
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.OneStyleValue, opt_index);
1830
- };
1831
-
1832
- proto.TemplateUnit.prototype.clearOptsarrList = function () {
1833
- this.setOptsarrList([]);
1834
- };
1835
- /**
1836
- * repeated TemplateOne templateRender = 6;
1837
- * @return {!Array<!proto.TemplateOne>}
1838
- */
1839
-
1840
-
1841
- proto.TemplateUnit.prototype.getTemplaterenderList = function () {
1842
- return (
1843
- /** @type{!Array<!proto.TemplateOne>} */
1844
- jspb.Message.getRepeatedWrapperField(this, proto.TemplateOne, 6)
1845
- );
1846
- };
1847
- /** @param {!Array<!proto.TemplateOne>} value */
1848
-
1849
-
1850
- proto.TemplateUnit.prototype.setTemplaterenderList = function (value) {
1851
- jspb.Message.setRepeatedWrapperField(this, 6, value);
1852
- };
1853
- /**
1854
- * @param {!proto.TemplateOne=} opt_value
1855
- * @param {number=} opt_index
1856
- * @return {!proto.TemplateOne}
1857
- */
1858
-
1859
-
1860
- proto.TemplateUnit.prototype.addTemplaterender = function (opt_value, opt_index) {
1861
- return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.TemplateOne, opt_index);
1862
- };
1863
-
1864
- proto.TemplateUnit.prototype.clearTemplaterenderList = function () {
1865
- this.setTemplaterenderList([]);
1866
- };
1867
- /**
1868
- * Generated by JsPbCodeGenerator.
1869
- * @param {Array=} opt_data Optional initial data array, typically from a
1870
- * server response, or constructed directly in Javascript. The array is used
1871
- * in place and becomes part of the constructed object. It is not cloned.
1872
- * If no data is provided, the constructed object will be empty, but still
1873
- * valid.
1874
- * @extends {jspb.Message}
1875
- * @constructor
1876
- */
1877
-
1878
-
1879
- proto.TemplateOne = function (opt_data) {
1880
- jspb.Message.initialize(this, opt_data, 0, -1, proto.TemplateOne.repeatedFields_, null);
1881
- };
1882
-
1883
- goog.inherits(proto.TemplateOne, jspb.Message);
1884
-
1885
- if (goog.DEBUG && !COMPILED) {
1886
- proto.TemplateOne.displayName = 'proto.TemplateOne';
1887
- }
1888
- /**
1889
- * List of repeated fields within this message type.
1890
- * @private {!Array<number>}
1891
- * @const
1892
- */
1893
-
1894
-
1895
- proto.TemplateOne.repeatedFields_ = [2];
1896
-
1897
- if (jspb.Message.GENERATE_TO_OBJECT) {
1898
- /**
1899
- * Creates an object representation of this proto suitable for use in Soy templates.
1900
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1901
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1902
- * For the list of reserved names please see:
1903
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1904
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1905
- * for transitional soy proto support: http://goto/soy-param-migration
1906
- * @return {!Object}
1907
- */
1908
- proto.TemplateOne.prototype.toObject = function (opt_includeInstance) {
1909
- return proto.TemplateOne.toObject(opt_includeInstance, this);
1910
- };
1911
- /**
1912
- * Static version of the {@see toObject} method.
1913
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1914
- * instance for transitional soy proto support:
1915
- * http://goto/soy-param-migration
1916
- * @param {!proto.TemplateOne} msg The msg instance to transform.
1917
- * @return {!Object}
1918
- * @suppress {unusedLocalVariables} f is only used for nested messages
1919
- */
1920
-
1921
-
1922
- proto.TemplateOne.toObject = function (includeInstance, msg) {
1923
- var f,
1924
- obj = {
1925
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1926
- chldsidList: jspb.Message.getRepeatedField(msg, 2),
1927
- cv: (f = msg.getCv()) && proto.TemplateUnit.toObject(includeInstance, f)
1928
- };
1929
-
1930
- if (includeInstance) {
1931
- obj.$jspbMessageInstance = msg;
1932
- }
1933
-
1934
- return obj;
1935
- };
1936
- }
1937
- /**
1938
- * Deserializes binary data (in protobuf wire format).
1939
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1940
- * @return {!proto.TemplateOne}
1941
- */
1942
-
1943
-
1944
- proto.TemplateOne.deserializeBinary = function (bytes) {
1945
- var reader = new jspb.BinaryReader(bytes);
1946
- var msg = new proto.TemplateOne();
1947
- return proto.TemplateOne.deserializeBinaryFromReader(msg, reader);
1948
- };
1949
- /**
1950
- * Deserializes binary data (in protobuf wire format) from the
1951
- * given reader into the given message object.
1952
- * @param {!proto.TemplateOne} msg The message object to deserialize into.
1953
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1954
- * @return {!proto.TemplateOne}
1955
- */
1956
-
1957
-
1958
- proto.TemplateOne.deserializeBinaryFromReader = function (msg, reader) {
1959
- while (reader.nextField()) {
1960
- if (reader.isEndGroup()) {
1961
- break;
1962
- }
1963
-
1964
- var field = reader.getFieldNumber();
1965
-
1966
- switch (field) {
1967
- case 1:
1968
- var value =
1969
- /** @type {number} */
1970
- reader.readInt32();
1971
- msg.setId(value);
1972
- break;
1973
-
1974
- case 2:
1975
- var value =
1976
- /** @type {!Array<number>} */
1977
- reader.readPackedInt32();
1978
- msg.setChldsidList(value);
1979
- break;
1980
-
1981
- case 3:
1982
- var value = new proto.TemplateUnit();
1983
- reader.readMessage(value, proto.TemplateUnit.deserializeBinaryFromReader);
1984
- msg.setCv(value);
1985
- break;
1986
-
1987
- default:
1988
- reader.skipField();
1989
- break;
1990
- }
1991
- }
1992
-
1993
- return msg;
1994
- };
1995
- /**
1996
- * Serializes the message to binary data (in protobuf wire format).
1997
- * @return {!Uint8Array}
1998
- */
1999
-
2000
-
2001
- proto.TemplateOne.prototype.serializeBinary = function () {
2002
- var writer = new jspb.BinaryWriter();
2003
- proto.TemplateOne.serializeBinaryToWriter(this, writer);
2004
- return writer.getResultBuffer();
2005
- };
2006
- /**
2007
- * Serializes the given message to binary data (in protobuf wire
2008
- * format), writing to the given BinaryWriter.
2009
- * @param {!proto.TemplateOne} message
2010
- * @param {!jspb.BinaryWriter} writer
2011
- * @suppress {unusedLocalVariables} f is only used for nested messages
2012
- */
2013
-
2014
-
2015
- proto.TemplateOne.serializeBinaryToWriter = function (message, writer) {
2016
- var f = undefined;
2017
- f = message.getId();
2018
-
2019
- if (f !== 0) {
2020
- writer.writeInt32(1, f);
2021
- }
2022
-
2023
- f = message.getChldsidList();
2024
-
2025
- if (f.length > 0) {
2026
- writer.writePackedInt32(2, f);
2027
- }
2028
-
2029
- f = message.getCv();
2030
-
2031
- if (f != null) {
2032
- writer.writeMessage(3, f, proto.TemplateUnit.serializeBinaryToWriter);
2033
- }
2034
- };
2035
- /**
2036
- * optional int32 id = 1;
2037
- * @return {number}
2038
- */
2039
-
2040
-
2041
- proto.TemplateOne.prototype.getId = function () {
2042
- return (
2043
- /** @type {number} */
2044
- jspb.Message.getFieldWithDefault(this, 1, 0)
2045
- );
2046
- };
2047
- /** @param {number} value */
2048
-
2049
-
2050
- proto.TemplateOne.prototype.setId = function (value) {
2051
- jspb.Message.setProto3IntField(this, 1, value);
2052
- };
2053
- /**
2054
- * repeated int32 chldsId = 2;
2055
- * @return {!Array<number>}
2056
- */
2057
-
2058
-
2059
- proto.TemplateOne.prototype.getChldsidList = function () {
2060
- return (
2061
- /** @type {!Array<number>} */
2062
- jspb.Message.getRepeatedField(this, 2)
2063
- );
2064
- };
2065
- /** @param {!Array<number>} value */
2066
-
2067
-
2068
- proto.TemplateOne.prototype.setChldsidList = function (value) {
2069
- jspb.Message.setField(this, 2, value || []);
2070
- };
2071
- /**
2072
- * @param {!number} value
2073
- * @param {number=} opt_index
2074
- */
2075
-
2076
-
2077
- proto.TemplateOne.prototype.addChldsid = function (value, opt_index) {
2078
- jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2079
- };
2080
-
2081
- proto.TemplateOne.prototype.clearChldsidList = function () {
2082
- this.setChldsidList([]);
2083
- };
2084
- /**
2085
- * optional TemplateUnit __cv__ = 3;
2086
- * @return {?proto.TemplateUnit}
2087
- */
2088
-
2089
-
2090
- proto.TemplateOne.prototype.getCv = function () {
2091
- return (
2092
- /** @type{?proto.TemplateUnit} */
2093
- jspb.Message.getWrapperField(this, proto.TemplateUnit, 3)
2094
- );
2095
- };
2096
- /** @param {?proto.TemplateUnit|undefined} value */
2097
-
2098
-
2099
- proto.TemplateOne.prototype.setCv = function (value) {
2100
- jspb.Message.setWrapperField(this, 3, value);
2101
- };
2102
-
2103
- proto.TemplateOne.prototype.clearCv = function () {
2104
- this.setCv(undefined);
2105
- };
2106
- /**
2107
- * Returns whether this field is set.
2108
- * @return {!boolean}
2109
- */
2110
-
2111
-
2112
- proto.TemplateOne.prototype.hasCv = function () {
2113
- return jspb.Message.getField(this, 3) != null;
2114
- };
2115
- /**
2116
- * Generated by JsPbCodeGenerator.
2117
- * @param {Array=} opt_data Optional initial data array, typically from a
2118
- * server response, or constructed directly in Javascript. The array is used
2119
- * in place and becomes part of the constructed object. It is not cloned.
2120
- * If no data is provided, the constructed object will be empty, but still
2121
- * valid.
2122
- * @extends {jspb.Message}
2123
- * @constructor
2124
- */
2125
-
2126
-
2127
- proto.ExportCell = function (opt_data) {
2128
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ExportCell.repeatedFields_, null);
2129
- };
2130
-
2131
- goog.inherits(proto.ExportCell, jspb.Message);
2132
-
2133
- if (goog.DEBUG && !COMPILED) {
2134
- proto.ExportCell.displayName = 'proto.ExportCell';
2135
- }
2136
- /**
2137
- * List of repeated fields within this message type.
2138
- * @private {!Array<number>}
2139
- * @const
2140
- */
2141
-
2142
-
2143
- proto.ExportCell.repeatedFields_ = [2, 3];
2144
-
2145
- if (jspb.Message.GENERATE_TO_OBJECT) {
2146
- /**
2147
- * Creates an object representation of this proto suitable for use in Soy templates.
2148
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2149
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2150
- * For the list of reserved names please see:
2151
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2152
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2153
- * for transitional soy proto support: http://goto/soy-param-migration
2154
- * @return {!Object}
2155
- */
2156
- proto.ExportCell.prototype.toObject = function (opt_includeInstance) {
2157
- return proto.ExportCell.toObject(opt_includeInstance, this);
2158
- };
2159
- /**
2160
- * Static version of the {@see toObject} method.
2161
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2162
- * instance for transitional soy proto support:
2163
- * http://goto/soy-param-migration
2164
- * @param {!proto.ExportCell} msg The msg instance to transform.
2165
- * @return {!Object}
2166
- * @suppress {unusedLocalVariables} f is only used for nested messages
2167
- */
2168
-
2169
-
2170
- proto.ExportCell.toObject = function (includeInstance, msg) {
2171
- var f,
2172
- obj = {
2173
- tagname: jspb.Message.getFieldWithDefault(msg, 1, ''),
2174
- cssarrList: jspb.Message.toObjectList(msg.getCssarrList(), proto.CssCell.toObject, includeInstance),
2175
- templatearrList: jspb.Message.toObjectList(msg.getTemplatearrList(), proto.TemplateOne.toObject, includeInstance)
2176
- };
2177
-
2178
- if (includeInstance) {
2179
- obj.$jspbMessageInstance = msg;
2180
- }
2181
-
2182
- return obj;
2183
- };
2184
- }
2185
- /**
2186
- * Deserializes binary data (in protobuf wire format).
2187
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2188
- * @return {!proto.ExportCell}
2189
- */
2190
-
2191
-
2192
- proto.ExportCell.deserializeBinary = function (bytes) {
2193
- var reader = new jspb.BinaryReader(bytes);
2194
- var msg = new proto.ExportCell();
2195
- return proto.ExportCell.deserializeBinaryFromReader(msg, reader);
2196
- };
2197
- /**
2198
- * Deserializes binary data (in protobuf wire format) from the
2199
- * given reader into the given message object.
2200
- * @param {!proto.ExportCell} msg The message object to deserialize into.
2201
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2202
- * @return {!proto.ExportCell}
2203
- */
2204
-
2205
-
2206
- proto.ExportCell.deserializeBinaryFromReader = function (msg, reader) {
2207
- while (reader.nextField()) {
2208
- if (reader.isEndGroup()) {
2209
- break;
2210
- }
2211
-
2212
- var field = reader.getFieldNumber();
2213
-
2214
- switch (field) {
2215
- case 1:
2216
- var value =
2217
- /** @type {string} */
2218
- reader.readString();
2219
- msg.setTagname(value);
2220
- break;
2221
-
2222
- case 2:
2223
- var value = new proto.CssCell();
2224
- reader.readMessage(value, proto.CssCell.deserializeBinaryFromReader);
2225
- msg.addCssarr(value);
2226
- break;
2227
-
2228
- case 3:
2229
- var value = new proto.TemplateOne();
2230
- reader.readMessage(value, proto.TemplateOne.deserializeBinaryFromReader);
2231
- msg.addTemplatearr(value);
2232
- break;
2233
-
2234
- default:
2235
- reader.skipField();
2236
- break;
2237
- }
2238
- }
2239
-
2240
- return msg;
2241
- };
2242
- /**
2243
- * Serializes the message to binary data (in protobuf wire format).
2244
- * @return {!Uint8Array}
2245
- */
2246
-
2247
-
2248
- proto.ExportCell.prototype.serializeBinary = function () {
2249
- var writer = new jspb.BinaryWriter();
2250
- proto.ExportCell.serializeBinaryToWriter(this, writer);
2251
- return writer.getResultBuffer();
2252
- };
2253
- /**
2254
- * Serializes the given message to binary data (in protobuf wire
2255
- * format), writing to the given BinaryWriter.
2256
- * @param {!proto.ExportCell} message
2257
- * @param {!jspb.BinaryWriter} writer
2258
- * @suppress {unusedLocalVariables} f is only used for nested messages
2259
- */
2260
-
2261
-
2262
- proto.ExportCell.serializeBinaryToWriter = function (message, writer) {
2263
- var f = undefined;
2264
- f = message.getTagname();
2265
-
2266
- if (f.length > 0) {
2267
- writer.writeString(1, f);
2268
- }
2269
-
2270
- f = message.getCssarrList();
2271
-
2272
- if (f.length > 0) {
2273
- writer.writeRepeatedMessage(2, f, proto.CssCell.serializeBinaryToWriter);
2274
- }
2275
-
2276
- f = message.getTemplatearrList();
2277
-
2278
- if (f.length > 0) {
2279
- writer.writeRepeatedMessage(3, f, proto.TemplateOne.serializeBinaryToWriter);
2280
- }
2281
- };
2282
- /**
2283
- * optional string tagName = 1;
2284
- * @return {string}
2285
- */
2286
-
2287
-
2288
- proto.ExportCell.prototype.getTagname = function () {
2289
- return (
2290
- /** @type {string} */
2291
- jspb.Message.getFieldWithDefault(this, 1, '')
2292
- );
2293
- };
2294
- /** @param {string} value */
2295
-
2296
-
2297
- proto.ExportCell.prototype.setTagname = function (value) {
2298
- jspb.Message.setProto3StringField(this, 1, value);
2299
- };
2300
- /**
2301
- * repeated CssCell cssArr = 2;
2302
- * @return {!Array<!proto.CssCell>}
2303
- */
2304
-
2305
-
2306
- proto.ExportCell.prototype.getCssarrList = function () {
2307
- return (
2308
- /** @type{!Array<!proto.CssCell>} */
2309
- jspb.Message.getRepeatedWrapperField(this, proto.CssCell, 2)
2310
- );
2311
- };
2312
- /** @param {!Array<!proto.CssCell>} value */
2313
-
2314
-
2315
- proto.ExportCell.prototype.setCssarrList = function (value) {
2316
- jspb.Message.setRepeatedWrapperField(this, 2, value);
2317
- };
2318
- /**
2319
- * @param {!proto.CssCell=} opt_value
2320
- * @param {number=} opt_index
2321
- * @return {!proto.CssCell}
2322
- */
2323
-
2324
-
2325
- proto.ExportCell.prototype.addCssarr = function (opt_value, opt_index) {
2326
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.CssCell, opt_index);
2327
- };
2328
-
2329
- proto.ExportCell.prototype.clearCssarrList = function () {
2330
- this.setCssarrList([]);
2331
- };
2332
- /**
2333
- * repeated TemplateOne templateArr = 3;
2334
- * @return {!Array<!proto.TemplateOne>}
2335
- */
2336
-
2337
-
2338
- proto.ExportCell.prototype.getTemplatearrList = function () {
2339
- return (
2340
- /** @type{!Array<!proto.TemplateOne>} */
2341
- jspb.Message.getRepeatedWrapperField(this, proto.TemplateOne, 3)
2342
- );
2343
- };
2344
- /** @param {!Array<!proto.TemplateOne>} value */
2345
-
2346
-
2347
- proto.ExportCell.prototype.setTemplatearrList = function (value) {
2348
- jspb.Message.setRepeatedWrapperField(this, 3, value);
2349
- };
2350
- /**
2351
- * @param {!proto.TemplateOne=} opt_value
2352
- * @param {number=} opt_index
2353
- * @return {!proto.TemplateOne}
2354
- */
2355
-
2356
-
2357
- proto.ExportCell.prototype.addTemplatearr = function (opt_value, opt_index) {
2358
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.TemplateOne, opt_index);
2359
- };
2360
-
2361
- proto.ExportCell.prototype.clearTemplatearrList = function () {
2362
- this.setTemplatearrList([]);
2363
- };
2364
- /**
2365
- * Generated by JsPbCodeGenerator.
2366
- * @param {Array=} opt_data Optional initial data array, typically from a
2367
- * server response, or constructed directly in Javascript. The array is used
2368
- * in place and becomes part of the constructed object. It is not cloned.
2369
- * If no data is provided, the constructed object will be empty, but still
2370
- * valid.
2371
- * @extends {jspb.Message}
2372
- * @constructor
2373
- */
2374
-
2375
-
2376
- proto.Version = function (opt_data) {
2377
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2378
- };
2379
-
2380
- goog.inherits(proto.Version, jspb.Message);
2381
-
2382
- if (goog.DEBUG && !COMPILED) {
2383
- proto.Version.displayName = 'proto.Version';
2384
- }
2385
-
2386
- if (jspb.Message.GENERATE_TO_OBJECT) {
2387
- /**
2388
- * Creates an object representation of this proto suitable for use in Soy templates.
2389
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2390
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2391
- * For the list of reserved names please see:
2392
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2393
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2394
- * for transitional soy proto support: http://goto/soy-param-migration
2395
- * @return {!Object}
2396
- */
2397
- proto.Version.prototype.toObject = function (opt_includeInstance) {
2398
- return proto.Version.toObject(opt_includeInstance, this);
2399
- };
2400
- /**
2401
- * Static version of the {@see toObject} method.
2402
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2403
- * instance for transitional soy proto support:
2404
- * http://goto/soy-param-migration
2405
- * @param {!proto.Version} msg The msg instance to transform.
2406
- * @return {!Object}
2407
- * @suppress {unusedLocalVariables} f is only used for nested messages
2408
- */
2409
-
2410
-
2411
- proto.Version.toObject = function (includeInstance, msg) {
2412
- var f,
2413
- obj = {
2414
- versionname: jspb.Message.getFieldWithDefault(msg, 1, ''),
2415
- versioncode: jspb.Message.getFieldWithDefault(msg, 2, 0)
2416
- };
2417
-
2418
- if (includeInstance) {
2419
- obj.$jspbMessageInstance = msg;
2420
- }
2421
-
2422
- return obj;
2423
- };
2424
- }
2425
- /**
2426
- * Deserializes binary data (in protobuf wire format).
2427
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2428
- * @return {!proto.Version}
2429
- */
2430
-
2431
-
2432
- proto.Version.deserializeBinary = function (bytes) {
2433
- var reader = new jspb.BinaryReader(bytes);
2434
- var msg = new proto.Version();
2435
- return proto.Version.deserializeBinaryFromReader(msg, reader);
2436
- };
2437
- /**
2438
- * Deserializes binary data (in protobuf wire format) from the
2439
- * given reader into the given message object.
2440
- * @param {!proto.Version} msg The message object to deserialize into.
2441
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2442
- * @return {!proto.Version}
2443
- */
2444
-
2445
-
2446
- proto.Version.deserializeBinaryFromReader = function (msg, reader) {
2447
- while (reader.nextField()) {
2448
- if (reader.isEndGroup()) {
2449
- break;
2450
- }
2451
-
2452
- var field = reader.getFieldNumber();
2453
-
2454
- switch (field) {
2455
- case 1:
2456
- var value =
2457
- /** @type {string} */
2458
- reader.readString();
2459
- msg.setVersionname(value);
2460
- break;
2461
-
2462
- case 2:
2463
- var value =
2464
- /** @type {number} */
2465
- reader.readInt32();
2466
- msg.setVersioncode(value);
2467
- break;
2468
-
2469
- default:
2470
- reader.skipField();
2471
- break;
2472
- }
2473
- }
2474
-
2475
- return msg;
2476
- };
2477
- /**
2478
- * Serializes the message to binary data (in protobuf wire format).
2479
- * @return {!Uint8Array}
2480
- */
2481
-
2482
-
2483
- proto.Version.prototype.serializeBinary = function () {
2484
- var writer = new jspb.BinaryWriter();
2485
- proto.Version.serializeBinaryToWriter(this, writer);
2486
- return writer.getResultBuffer();
2487
- };
2488
- /**
2489
- * Serializes the given message to binary data (in protobuf wire
2490
- * format), writing to the given BinaryWriter.
2491
- * @param {!proto.Version} message
2492
- * @param {!jspb.BinaryWriter} writer
2493
- * @suppress {unusedLocalVariables} f is only used for nested messages
2494
- */
2495
-
2496
-
2497
- proto.Version.serializeBinaryToWriter = function (message, writer) {
2498
- var f = undefined;
2499
- f = message.getVersionname();
2500
-
2501
- if (f.length > 0) {
2502
- writer.writeString(1, f);
2503
- }
2504
-
2505
- f = message.getVersioncode();
2506
-
2507
- if (f !== 0) {
2508
- writer.writeInt32(2, f);
2509
- }
2510
- };
2511
- /**
2512
- * optional string versionName = 1;
2513
- * @return {string}
2514
- */
2515
-
2516
-
2517
- proto.Version.prototype.getVersionname = function () {
2518
- return (
2519
- /** @type {string} */
2520
- jspb.Message.getFieldWithDefault(this, 1, '')
2521
- );
2522
- };
2523
- /** @param {string} value */
2524
-
2525
-
2526
- proto.Version.prototype.setVersionname = function (value) {
2527
- jspb.Message.setProto3StringField(this, 1, value);
2528
- };
2529
- /**
2530
- * optional int32 versionCode = 2;
2531
- * @return {number}
2532
- */
2533
-
2534
-
2535
- proto.Version.prototype.getVersioncode = function () {
2536
- return (
2537
- /** @type {number} */
2538
- jspb.Message.getFieldWithDefault(this, 2, 0)
2539
- );
2540
- };
2541
- /** @param {number} value */
2542
-
2543
-
2544
- proto.Version.prototype.setVersioncode = function (value) {
2545
- jspb.Message.setProto3IntField(this, 2, value);
2546
- };
2547
- /**
2548
- * Generated by JsPbCodeGenerator.
2549
- * @param {Array=} opt_data Optional initial data array, typically from a
2550
- * server response, or constructed directly in Javascript. The array is used
2551
- * in place and becomes part of the constructed object. It is not cloned.
2552
- * If no data is provided, the constructed object will be empty, but still
2553
- * valid.
2554
- * @extends {jspb.Message}
2555
- * @constructor
2556
- */
2557
-
2558
-
2559
- proto.ExportArr = function (opt_data) {
2560
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ExportArr.repeatedFields_, null);
2561
- };
2562
-
2563
- goog.inherits(proto.ExportArr, jspb.Message);
2564
-
2565
- if (goog.DEBUG && !COMPILED) {
2566
- proto.ExportArr.displayName = 'proto.ExportArr';
2567
- }
2568
- /**
2569
- * List of repeated fields within this message type.
2570
- * @private {!Array<number>}
2571
- * @const
2572
- */
2573
-
2574
-
2575
- proto.ExportArr.repeatedFields_ = [2];
2576
-
2577
- if (jspb.Message.GENERATE_TO_OBJECT) {
2578
- /**
2579
- * Creates an object representation of this proto suitable for use in Soy templates.
2580
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2581
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2582
- * For the list of reserved names please see:
2583
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2584
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2585
- * for transitional soy proto support: http://goto/soy-param-migration
2586
- * @return {!Object}
2587
- */
2588
- proto.ExportArr.prototype.toObject = function (opt_includeInstance) {
2589
- return proto.ExportArr.toObject(opt_includeInstance, this);
2590
- };
2591
- /**
2592
- * Static version of the {@see toObject} method.
2593
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2594
- * instance for transitional soy proto support:
2595
- * http://goto/soy-param-migration
2596
- * @param {!proto.ExportArr} msg The msg instance to transform.
2597
- * @return {!Object}
2598
- * @suppress {unusedLocalVariables} f is only used for nested messages
2599
- */
2600
-
2601
-
2602
- proto.ExportArr.toObject = function (includeInstance, msg) {
2603
- var f,
2604
- obj = {
2605
- ver: (f = msg.getVer()) && proto.Version.toObject(includeInstance, f),
2606
- valuearrList: jspb.Message.toObjectList(msg.getValuearrList(), proto.ExportCell.toObject, includeInstance)
2607
- };
2608
-
2609
- if (includeInstance) {
2610
- obj.$jspbMessageInstance = msg;
2611
- }
2612
-
2613
- return obj;
2614
- };
2615
- }
2616
- /**
2617
- * Deserializes binary data (in protobuf wire format).
2618
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2619
- * @return {!proto.ExportArr}
2620
- */
2621
-
2622
-
2623
- proto.ExportArr.deserializeBinary = function (bytes) {
2624
- var reader = new jspb.BinaryReader(bytes);
2625
- var msg = new proto.ExportArr();
2626
- return proto.ExportArr.deserializeBinaryFromReader(msg, reader);
2627
- };
2628
- /**
2629
- * Deserializes binary data (in protobuf wire format) from the
2630
- * given reader into the given message object.
2631
- * @param {!proto.ExportArr} msg The message object to deserialize into.
2632
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2633
- * @return {!proto.ExportArr}
2634
- */
2635
-
2636
-
2637
- proto.ExportArr.deserializeBinaryFromReader = function (msg, reader) {
2638
- while (reader.nextField()) {
2639
- if (reader.isEndGroup()) {
2640
- break;
2641
- }
2642
-
2643
- var field = reader.getFieldNumber();
2644
-
2645
- switch (field) {
2646
- case 1:
2647
- var value = new proto.Version();
2648
- reader.readMessage(value, proto.Version.deserializeBinaryFromReader);
2649
- msg.setVer(value);
2650
- break;
2651
-
2652
- case 2:
2653
- var value = new proto.ExportCell();
2654
- reader.readMessage(value, proto.ExportCell.deserializeBinaryFromReader);
2655
- msg.addValuearr(value);
2656
- break;
2657
-
2658
- default:
2659
- reader.skipField();
2660
- break;
2661
- }
2662
- }
2663
-
2664
- return msg;
2665
- };
2666
- /**
2667
- * Serializes the message to binary data (in protobuf wire format).
2668
- * @return {!Uint8Array}
2669
- */
2670
-
2671
-
2672
- proto.ExportArr.prototype.serializeBinary = function () {
2673
- var writer = new jspb.BinaryWriter();
2674
- proto.ExportArr.serializeBinaryToWriter(this, writer);
2675
- return writer.getResultBuffer();
2676
- };
2677
- /**
2678
- * Serializes the given message to binary data (in protobuf wire
2679
- * format), writing to the given BinaryWriter.
2680
- * @param {!proto.ExportArr} message
2681
- * @param {!jspb.BinaryWriter} writer
2682
- * @suppress {unusedLocalVariables} f is only used for nested messages
2683
- */
2684
-
2685
-
2686
- proto.ExportArr.serializeBinaryToWriter = function (message, writer) {
2687
- var f = undefined;
2688
- f = message.getVer();
2689
-
2690
- if (f != null) {
2691
- writer.writeMessage(1, f, proto.Version.serializeBinaryToWriter);
2692
- }
2693
-
2694
- f = message.getValuearrList();
2695
-
2696
- if (f.length > 0) {
2697
- writer.writeRepeatedMessage(2, f, proto.ExportCell.serializeBinaryToWriter);
2698
- }
2699
- };
2700
- /**
2701
- * optional Version ver = 1;
2702
- * @return {?proto.Version}
2703
- */
2704
-
2705
-
2706
- proto.ExportArr.prototype.getVer = function () {
2707
- return (
2708
- /** @type{?proto.Version} */
2709
- jspb.Message.getWrapperField(this, proto.Version, 1)
2710
- );
2711
- };
2712
- /** @param {?proto.Version|undefined} value */
2713
-
2714
-
2715
- proto.ExportArr.prototype.setVer = function (value) {
2716
- jspb.Message.setWrapperField(this, 1, value);
2717
- };
2718
-
2719
- proto.ExportArr.prototype.clearVer = function () {
2720
- this.setVer(undefined);
2721
- };
2722
- /**
2723
- * Returns whether this field is set.
2724
- * @return {!boolean}
2725
- */
2726
-
2727
-
2728
- proto.ExportArr.prototype.hasVer = function () {
2729
- return jspb.Message.getField(this, 1) != null;
2730
- };
2731
- /**
2732
- * repeated ExportCell valueArr = 2;
2733
- * @return {!Array<!proto.ExportCell>}
2734
- */
2735
-
2736
-
2737
- proto.ExportArr.prototype.getValuearrList = function () {
2738
- return (
2739
- /** @type{!Array<!proto.ExportCell>} */
2740
- jspb.Message.getRepeatedWrapperField(this, proto.ExportCell, 2)
2741
- );
2742
- };
2743
- /** @param {!Array<!proto.ExportCell>} value */
2744
-
2745
-
2746
- proto.ExportArr.prototype.setValuearrList = function (value) {
2747
- jspb.Message.setRepeatedWrapperField(this, 2, value);
2748
- };
2749
- /**
2750
- * @param {!proto.ExportCell=} opt_value
2751
- * @param {number=} opt_index
2752
- * @return {!proto.ExportCell}
2753
- */
2754
-
2755
-
2756
- proto.ExportArr.prototype.addValuearr = function (opt_value, opt_index) {
2757
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ExportCell, opt_index);
2758
- };
2759
-
2760
- proto.ExportArr.prototype.clearValuearrList = function () {
2761
- this.setValuearrList([]);
2762
- };
2763
-
2764
- goog.object.extend(exports, proto);
1
+ "use strict";var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")();goog.exportSymbol("proto.CssCell",null,global),goog.exportSymbol("proto.ExportArr",null,global),goog.exportSymbol("proto.ExportCell",null,global),goog.exportSymbol("proto.OneStyleValue",null,global),goog.exportSymbol("proto.SelectorKey",null,global),goog.exportSymbol("proto.StringArr",null,global),goog.exportSymbol("proto.StyleKey",null,global),goog.exportSymbol("proto.StyleValueArr",null,global),goog.exportSymbol("proto.TemplateOne",null,global),goog.exportSymbol("proto.TemplateUnit",null,global),goog.exportSymbol("proto.Version",null,global),proto.StringArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.StringArr.repeatedFields_,null)},goog.inherits(proto.StringArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StringArr.displayName="proto.StringArr"),proto.StringArr.repeatedFields_=[1],jspb.Message.GENERATE_TO_OBJECT&&(proto.StringArr.prototype.toObject=function(e){return proto.StringArr.toObject(e,this)},proto.StringArr.toObject=function(e,t){var r={stringvlarrList:jspb.Message.getRepeatedField(t,1)};return e&&(r.$jspbMessageInstance=t),r}),proto.StringArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StringArr;return proto.StringArr.deserializeBinaryFromReader(r,t)},proto.StringArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.addStringvlarr(r);break;default:t.skipField()}}return e},proto.StringArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StringArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StringArr.serializeBinaryToWriter=function(e,t){var r;(r=e.getStringvlarrList()).length>0&&t.writeRepeatedString(1,r)},proto.StringArr.prototype.getStringvlarrList=function(){return jspb.Message.getRepeatedField(this,1)},proto.StringArr.prototype.setStringvlarrList=function(e){jspb.Message.setField(this,1,e||[])},proto.StringArr.prototype.addStringvlarr=function(e,t){jspb.Message.addToRepeatedField(this,1,e,t)},proto.StringArr.prototype.clearStringvlarrList=function(){this.setStringvlarrList([])},proto.StyleKey=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.StyleKey,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StyleKey.displayName="proto.StyleKey"),jspb.Message.GENERATE_TO_OBJECT&&(proto.StyleKey.prototype.toObject=function(e){return proto.StyleKey.toObject(e,this)},proto.StyleKey.toObject=function(e,t){var r={index:jspb.Message.getFieldWithDefault(t,1,0),value:jspb.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.StyleKey.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StyleKey;return proto.StyleKey.deserializeBinaryFromReader(r,t)},proto.StyleKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setIndex(r);break;case 2:r=t.readString();e.setValue(r);break;default:t.skipField()}}return e},proto.StyleKey.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StyleKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StyleKey.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getIndex())&&t.writeInt32(1,r),(r=e.getValue()).length>0&&t.writeString(2,r)},proto.StyleKey.prototype.getIndex=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.StyleKey.prototype.setIndex=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.StyleKey.prototype.getValue=function(){return jspb.Message.getFieldWithDefault(this,2,"")},proto.StyleKey.prototype.setValue=function(e){jspb.Message.setProto3StringField(this,2,e)},proto.OneStyleValue=function(e){jspb.Message.initialize(this,e,0,-1,null,proto.OneStyleValue.oneofGroups_)},goog.inherits(proto.OneStyleValue,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.OneStyleValue.displayName="proto.OneStyleValue"),proto.OneStyleValue.oneofGroups_=[[2,3,4,5,6,7,8]],proto.OneStyleValue.ValueCase={VALUE_NOT_SET:0,INT32VL:2,BOOLVL:3,FUNCID:4,DOUBLEVL:5,STRINGVL:6,STRINGARR:7,STYLEVLARR:8},proto.OneStyleValue.prototype.getValueCase=function(){return jspb.Message.computeOneofCase(this,proto.OneStyleValue.oneofGroups_[0])},jspb.Message.GENERATE_TO_OBJECT&&(proto.OneStyleValue.prototype.toObject=function(e){return proto.OneStyleValue.toObject(e,this)},proto.OneStyleValue.toObject=function(e,t){var r,o={key:(r=t.getKey())&&proto.StyleKey.toObject(e,r),int32vl:jspb.Message.getFieldWithDefault(t,2,0),boolvl:jspb.Message.getFieldWithDefault(t,3,!1),funcid:jspb.Message.getFieldWithDefault(t,4,0),doublevl:+jspb.Message.getFieldWithDefault(t,5,0),stringvl:jspb.Message.getFieldWithDefault(t,6,""),stringarr:(r=t.getStringarr())&&proto.StringArr.toObject(e,r),stylevlarr:(r=t.getStylevlarr())&&proto.StyleValueArr.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.OneStyleValue.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.OneStyleValue;return proto.OneStyleValue.deserializeBinaryFromReader(r,t)},proto.OneStyleValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.StyleKey;t.readMessage(r,proto.StyleKey.deserializeBinaryFromReader),e.setKey(r);break;case 2:r=t.readInt32();e.setInt32vl(r);break;case 3:r=t.readBool();e.setBoolvl(r);break;case 4:r=t.readInt32();e.setFuncid(r);break;case 5:r=t.readDouble();e.setDoublevl(r);break;case 6:r=t.readString();e.setStringvl(r);break;case 7:r=new proto.StringArr;t.readMessage(r,proto.StringArr.deserializeBinaryFromReader),e.setStringarr(r);break;case 8:r=new proto.StyleValueArr;t.readMessage(r,proto.StyleValueArr.deserializeBinaryFromReader),e.setStylevlarr(r);break;default:t.skipField()}}return e},proto.OneStyleValue.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.OneStyleValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.OneStyleValue.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getKey())&&t.writeMessage(1,r,proto.StyleKey.serializeBinaryToWriter),null!=(r=jspb.Message.getField(e,2))&&t.writeInt32(2,r),null!=(r=jspb.Message.getField(e,3))&&t.writeBool(3,r),null!=(r=jspb.Message.getField(e,4))&&t.writeInt32(4,r),null!=(r=jspb.Message.getField(e,5))&&t.writeDouble(5,r),null!=(r=jspb.Message.getField(e,6))&&t.writeString(6,r),null!=(r=e.getStringarr())&&t.writeMessage(7,r,proto.StringArr.serializeBinaryToWriter),null!=(r=e.getStylevlarr())&&t.writeMessage(8,r,proto.StyleValueArr.serializeBinaryToWriter)},proto.OneStyleValue.prototype.getKey=function(){return jspb.Message.getWrapperField(this,proto.StyleKey,1)},proto.OneStyleValue.prototype.setKey=function(e){jspb.Message.setWrapperField(this,1,e)},proto.OneStyleValue.prototype.clearKey=function(){this.setKey(void 0)},proto.OneStyleValue.prototype.hasKey=function(){return null!=jspb.Message.getField(this,1)},proto.OneStyleValue.prototype.getInt32vl=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.OneStyleValue.prototype.setInt32vl=function(e){jspb.Message.setOneofField(this,2,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearInt32vl=function(){jspb.Message.setOneofField(this,2,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasInt32vl=function(){return null!=jspb.Message.getField(this,2)},proto.OneStyleValue.prototype.getBoolvl=function(){return jspb.Message.getFieldWithDefault(this,3,!1)},proto.OneStyleValue.prototype.setBoolvl=function(e){jspb.Message.setOneofField(this,3,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearBoolvl=function(){jspb.Message.setOneofField(this,3,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasBoolvl=function(){return null!=jspb.Message.getField(this,3)},proto.OneStyleValue.prototype.getFuncid=function(){return jspb.Message.getFieldWithDefault(this,4,0)},proto.OneStyleValue.prototype.setFuncid=function(e){jspb.Message.setOneofField(this,4,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearFuncid=function(){jspb.Message.setOneofField(this,4,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasFuncid=function(){return null!=jspb.Message.getField(this,4)},proto.OneStyleValue.prototype.getDoublevl=function(){return+jspb.Message.getFieldWithDefault(this,5,0)},proto.OneStyleValue.prototype.setDoublevl=function(e){jspb.Message.setOneofField(this,5,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearDoublevl=function(){jspb.Message.setOneofField(this,5,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasDoublevl=function(){return null!=jspb.Message.getField(this,5)},proto.OneStyleValue.prototype.getStringvl=function(){return jspb.Message.getFieldWithDefault(this,6,"")},proto.OneStyleValue.prototype.setStringvl=function(e){jspb.Message.setOneofField(this,6,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStringvl=function(){jspb.Message.setOneofField(this,6,proto.OneStyleValue.oneofGroups_[0],void 0)},proto.OneStyleValue.prototype.hasStringvl=function(){return null!=jspb.Message.getField(this,6)},proto.OneStyleValue.prototype.getStringarr=function(){return jspb.Message.getWrapperField(this,proto.StringArr,7)},proto.OneStyleValue.prototype.setStringarr=function(e){jspb.Message.setOneofWrapperField(this,7,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStringarr=function(){this.setStringarr(void 0)},proto.OneStyleValue.prototype.hasStringarr=function(){return null!=jspb.Message.getField(this,7)},proto.OneStyleValue.prototype.getStylevlarr=function(){return jspb.Message.getWrapperField(this,proto.StyleValueArr,8)},proto.OneStyleValue.prototype.setStylevlarr=function(e){jspb.Message.setOneofWrapperField(this,8,proto.OneStyleValue.oneofGroups_[0],e)},proto.OneStyleValue.prototype.clearStylevlarr=function(){this.setStylevlarr(void 0)},proto.OneStyleValue.prototype.hasStylevlarr=function(){return null!=jspb.Message.getField(this,8)},proto.StyleValueArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.StyleValueArr.repeatedFields_,null)},goog.inherits(proto.StyleValueArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.StyleValueArr.displayName="proto.StyleValueArr"),proto.StyleValueArr.repeatedFields_=[1],jspb.Message.GENERATE_TO_OBJECT&&(proto.StyleValueArr.prototype.toObject=function(e){return proto.StyleValueArr.toObject(e,this)},proto.StyleValueArr.toObject=function(e,t){var r={vlarrList:jspb.Message.toObjectList(t.getVlarrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.StyleValueArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.StyleValueArr;return proto.StyleValueArr.deserializeBinaryFromReader(r,t)},proto.StyleValueArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addVlarr(r);break;default:t.skipField()}}return e},proto.StyleValueArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.StyleValueArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.StyleValueArr.serializeBinaryToWriter=function(e,t){var r;(r=e.getVlarrList()).length>0&&t.writeRepeatedMessage(1,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.StyleValueArr.prototype.getVlarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,1)},proto.StyleValueArr.prototype.setVlarrList=function(e){jspb.Message.setRepeatedWrapperField(this,1,e)},proto.StyleValueArr.prototype.addVlarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,1,e,proto.OneStyleValue,t)},proto.StyleValueArr.prototype.clearVlarrList=function(){this.setVlarrList([])},proto.SelectorKey=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.SelectorKey,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.SelectorKey.displayName="proto.SelectorKey"),jspb.Message.GENERATE_TO_OBJECT&&(proto.SelectorKey.prototype.toObject=function(e){return proto.SelectorKey.toObject(e,this)},proto.SelectorKey.toObject=function(e,t){var r={id:jspb.Message.getFieldWithDefault(t,1,0),name:jspb.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.SelectorKey.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.SelectorKey;return proto.SelectorKey.deserializeBinaryFromReader(r,t)},proto.SelectorKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setId(r);break;case 2:r=t.readString();e.setName(r);break;default:t.skipField()}}return e},proto.SelectorKey.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.SelectorKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.SelectorKey.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeInt32(1,r),(r=e.getName()).length>0&&t.writeString(2,r)},proto.SelectorKey.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.SelectorKey.prototype.setId=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.SelectorKey.prototype.getName=function(){return jspb.Message.getFieldWithDefault(this,2,"")},proto.SelectorKey.prototype.setName=function(e){jspb.Message.setProto3StringField(this,2,e)},proto.CssCell=function(e){jspb.Message.initialize(this,e,0,-1,proto.CssCell.repeatedFields_,null)},goog.inherits(proto.CssCell,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.CssCell.displayName="proto.CssCell"),proto.CssCell.repeatedFields_=[1,2,3],jspb.Message.GENERATE_TO_OBJECT&&(proto.CssCell.prototype.toObject=function(e){return proto.CssCell.toObject(e,this)},proto.CssCell.toObject=function(e,t){var r={selectorarrList:jspb.Message.toObjectList(t.getSelectorarrList(),proto.SelectorKey.toObject,e),stylearrList:jspb.Message.toObjectList(t.getStylearrList(),proto.OneStyleValue.toObject,e),propertyarrList:jspb.Message.toObjectList(t.getPropertyarrList(),proto.OneStyleValue.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.CssCell.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.CssCell;return proto.CssCell.deserializeBinaryFromReader(r,t)},proto.CssCell.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.SelectorKey;t.readMessage(r,proto.SelectorKey.deserializeBinaryFromReader),e.addSelectorarr(r);break;case 2:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addStylearr(r);break;case 3:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addPropertyarr(r);break;default:t.skipField()}}return e},proto.CssCell.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.CssCell.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.CssCell.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSelectorarrList()).length>0&&t.writeRepeatedMessage(1,r,proto.SelectorKey.serializeBinaryToWriter),(r=e.getStylearrList()).length>0&&t.writeRepeatedMessage(2,r,proto.OneStyleValue.serializeBinaryToWriter),(r=e.getPropertyarrList()).length>0&&t.writeRepeatedMessage(3,r,proto.OneStyleValue.serializeBinaryToWriter)},proto.CssCell.prototype.getSelectorarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.SelectorKey,1)},proto.CssCell.prototype.setSelectorarrList=function(e){jspb.Message.setRepeatedWrapperField(this,1,e)},proto.CssCell.prototype.addSelectorarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,1,e,proto.SelectorKey,t)},proto.CssCell.prototype.clearSelectorarrList=function(){this.setSelectorarrList([])},proto.CssCell.prototype.getStylearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,2)},proto.CssCell.prototype.setStylearrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.CssCell.prototype.addStylearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.OneStyleValue,t)},proto.CssCell.prototype.clearStylearrList=function(){this.setStylearrList([])},proto.CssCell.prototype.getPropertyarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,3)},proto.CssCell.prototype.setPropertyarrList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.CssCell.prototype.addPropertyarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.OneStyleValue,t)},proto.CssCell.prototype.clearPropertyarrList=function(){this.setPropertyarrList([])},proto.TemplateUnit=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateUnit.repeatedFields_,null)},goog.inherits(proto.TemplateUnit,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateUnit.displayName="proto.TemplateUnit"),proto.TemplateUnit.repeatedFields_=[5,6],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateUnit.prototype.toObject=function(e){return proto.TemplateUnit.toObject(e,this)},proto.TemplateUnit.toObject=function(e,t){var r={type:jspb.Message.getFieldWithDefault(t,1,""),tag:jspb.Message.getFieldWithDefault(t,2,""),optsid:jspb.Message.getFieldWithDefault(t,3,0),funcrender:jspb.Message.getFieldWithDefault(t,4,0),optsarrList:jspb.Message.toObjectList(t.getOptsarrList(),proto.OneStyleValue.toObject,e),templaterenderList:jspb.Message.toObjectList(t.getTemplaterenderList(),proto.TemplateOne.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.TemplateUnit.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateUnit;return proto.TemplateUnit.deserializeBinaryFromReader(r,t)},proto.TemplateUnit.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setType(r);break;case 2:r=t.readString();e.setTag(r);break;case 3:r=t.readInt32();e.setOptsid(r);break;case 4:r=t.readInt32();e.setFuncrender(r);break;case 5:r=new proto.OneStyleValue;t.readMessage(r,proto.OneStyleValue.deserializeBinaryFromReader),e.addOptsarr(r);break;case 6:r=new proto.TemplateOne;t.readMessage(r,proto.TemplateOne.deserializeBinaryFromReader),e.addTemplaterender(r);break;default:t.skipField()}}return e},proto.TemplateUnit.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateUnit.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateUnit.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getType()).length>0&&t.writeString(1,r),(r=e.getTag()).length>0&&t.writeString(2,r),0!==(r=e.getOptsid())&&t.writeInt32(3,r),0!==(r=e.getFuncrender())&&t.writeInt32(4,r),(r=e.getOptsarrList()).length>0&&t.writeRepeatedMessage(5,r,proto.OneStyleValue.serializeBinaryToWriter),(r=e.getTemplaterenderList()).length>0&&t.writeRepeatedMessage(6,r,proto.TemplateOne.serializeBinaryToWriter)},proto.TemplateUnit.prototype.getType=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.TemplateUnit.prototype.setType=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.TemplateUnit.prototype.getTag=function(){return jspb.Message.getFieldWithDefault(this,2,"")},proto.TemplateUnit.prototype.setTag=function(e){jspb.Message.setProto3StringField(this,2,e)},proto.TemplateUnit.prototype.getOptsid=function(){return jspb.Message.getFieldWithDefault(this,3,0)},proto.TemplateUnit.prototype.setOptsid=function(e){jspb.Message.setProto3IntField(this,3,e)},proto.TemplateUnit.prototype.getFuncrender=function(){return jspb.Message.getFieldWithDefault(this,4,0)},proto.TemplateUnit.prototype.setFuncrender=function(e){jspb.Message.setProto3IntField(this,4,e)},proto.TemplateUnit.prototype.getOptsarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.OneStyleValue,5)},proto.TemplateUnit.prototype.setOptsarrList=function(e){jspb.Message.setRepeatedWrapperField(this,5,e)},proto.TemplateUnit.prototype.addOptsarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,5,e,proto.OneStyleValue,t)},proto.TemplateUnit.prototype.clearOptsarrList=function(){this.setOptsarrList([])},proto.TemplateUnit.prototype.getTemplaterenderList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.TemplateOne,6)},proto.TemplateUnit.prototype.setTemplaterenderList=function(e){jspb.Message.setRepeatedWrapperField(this,6,e)},proto.TemplateUnit.prototype.addTemplaterender=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,6,e,proto.TemplateOne,t)},proto.TemplateUnit.prototype.clearTemplaterenderList=function(){this.setTemplaterenderList([])},proto.TemplateOne=function(e){jspb.Message.initialize(this,e,0,-1,proto.TemplateOne.repeatedFields_,null)},goog.inherits(proto.TemplateOne,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.TemplateOne.displayName="proto.TemplateOne"),proto.TemplateOne.repeatedFields_=[2],jspb.Message.GENERATE_TO_OBJECT&&(proto.TemplateOne.prototype.toObject=function(e){return proto.TemplateOne.toObject(e,this)},proto.TemplateOne.toObject=function(e,t){var r,o={id:jspb.Message.getFieldWithDefault(t,1,0),chldsidList:jspb.Message.getRepeatedField(t,2),cv:(r=t.getCv())&&proto.TemplateUnit.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.TemplateOne.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.TemplateOne;return proto.TemplateOne.deserializeBinaryFromReader(r,t)},proto.TemplateOne.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readInt32();e.setId(r);break;case 2:r=t.readPackedInt32();e.setChldsidList(r);break;case 3:r=new proto.TemplateUnit;t.readMessage(r,proto.TemplateUnit.deserializeBinaryFromReader),e.setCv(r);break;default:t.skipField()}}return e},proto.TemplateOne.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.TemplateOne.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.TemplateOne.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeInt32(1,r),(r=e.getChldsidList()).length>0&&t.writePackedInt32(2,r),null!=(r=e.getCv())&&t.writeMessage(3,r,proto.TemplateUnit.serializeBinaryToWriter)},proto.TemplateOne.prototype.getId=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.TemplateOne.prototype.setId=function(e){jspb.Message.setProto3IntField(this,1,e)},proto.TemplateOne.prototype.getChldsidList=function(){return jspb.Message.getRepeatedField(this,2)},proto.TemplateOne.prototype.setChldsidList=function(e){jspb.Message.setField(this,2,e||[])},proto.TemplateOne.prototype.addChldsid=function(e,t){jspb.Message.addToRepeatedField(this,2,e,t)},proto.TemplateOne.prototype.clearChldsidList=function(){this.setChldsidList([])},proto.TemplateOne.prototype.getCv=function(){return jspb.Message.getWrapperField(this,proto.TemplateUnit,3)},proto.TemplateOne.prototype.setCv=function(e){jspb.Message.setWrapperField(this,3,e)},proto.TemplateOne.prototype.clearCv=function(){this.setCv(void 0)},proto.TemplateOne.prototype.hasCv=function(){return null!=jspb.Message.getField(this,3)},proto.ExportCell=function(e){jspb.Message.initialize(this,e,0,-1,proto.ExportCell.repeatedFields_,null)},goog.inherits(proto.ExportCell,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.ExportCell.displayName="proto.ExportCell"),proto.ExportCell.repeatedFields_=[2,3],jspb.Message.GENERATE_TO_OBJECT&&(proto.ExportCell.prototype.toObject=function(e){return proto.ExportCell.toObject(e,this)},proto.ExportCell.toObject=function(e,t){var r={tagname:jspb.Message.getFieldWithDefault(t,1,""),cssarrList:jspb.Message.toObjectList(t.getCssarrList(),proto.CssCell.toObject,e),templatearrList:jspb.Message.toObjectList(t.getTemplatearrList(),proto.TemplateOne.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.ExportCell.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.ExportCell;return proto.ExportCell.deserializeBinaryFromReader(r,t)},proto.ExportCell.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTagname(r);break;case 2:r=new proto.CssCell;t.readMessage(r,proto.CssCell.deserializeBinaryFromReader),e.addCssarr(r);break;case 3:r=new proto.TemplateOne;t.readMessage(r,proto.TemplateOne.deserializeBinaryFromReader),e.addTemplatearr(r);break;default:t.skipField()}}return e},proto.ExportCell.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.ExportCell.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.ExportCell.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getTagname()).length>0&&t.writeString(1,r),(r=e.getCssarrList()).length>0&&t.writeRepeatedMessage(2,r,proto.CssCell.serializeBinaryToWriter),(r=e.getTemplatearrList()).length>0&&t.writeRepeatedMessage(3,r,proto.TemplateOne.serializeBinaryToWriter)},proto.ExportCell.prototype.getTagname=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.ExportCell.prototype.setTagname=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.ExportCell.prototype.getCssarrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.CssCell,2)},proto.ExportCell.prototype.setCssarrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.ExportCell.prototype.addCssarr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.CssCell,t)},proto.ExportCell.prototype.clearCssarrList=function(){this.setCssarrList([])},proto.ExportCell.prototype.getTemplatearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.TemplateOne,3)},proto.ExportCell.prototype.setTemplatearrList=function(e){jspb.Message.setRepeatedWrapperField(this,3,e)},proto.ExportCell.prototype.addTemplatearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,3,e,proto.TemplateOne,t)},proto.ExportCell.prototype.clearTemplatearrList=function(){this.setTemplatearrList([])},proto.Version=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.Version,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.Version.displayName="proto.Version"),jspb.Message.GENERATE_TO_OBJECT&&(proto.Version.prototype.toObject=function(e){return proto.Version.toObject(e,this)},proto.Version.toObject=function(e,t){var r={versionname:jspb.Message.getFieldWithDefault(t,1,""),versioncode:jspb.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.Version.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.Version;return proto.Version.deserializeBinaryFromReader(r,t)},proto.Version.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setVersionname(r);break;case 2:r=t.readInt32();e.setVersioncode(r);break;default:t.skipField()}}return e},proto.Version.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.Version.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.Version.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getVersionname()).length>0&&t.writeString(1,r),0!==(r=e.getVersioncode())&&t.writeInt32(2,r)},proto.Version.prototype.getVersionname=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.Version.prototype.setVersionname=function(e){jspb.Message.setProto3StringField(this,1,e)},proto.Version.prototype.getVersioncode=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.Version.prototype.setVersioncode=function(e){jspb.Message.setProto3IntField(this,2,e)},proto.ExportArr=function(e){jspb.Message.initialize(this,e,0,-1,proto.ExportArr.repeatedFields_,null)},goog.inherits(proto.ExportArr,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.ExportArr.displayName="proto.ExportArr"),proto.ExportArr.repeatedFields_=[2],jspb.Message.GENERATE_TO_OBJECT&&(proto.ExportArr.prototype.toObject=function(e){return proto.ExportArr.toObject(e,this)},proto.ExportArr.toObject=function(e,t){var r,o={ver:(r=t.getVer())&&proto.Version.toObject(e,r),valuearrList:jspb.Message.toObjectList(t.getValuearrList(),proto.ExportCell.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.ExportArr.deserializeBinary=function(e){var t=new jspb.BinaryReader(e),r=new proto.ExportArr;return proto.ExportArr.deserializeBinaryFromReader(r,t)},proto.ExportArr.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.Version;t.readMessage(r,proto.Version.deserializeBinaryFromReader),e.setVer(r);break;case 2:r=new proto.ExportCell;t.readMessage(r,proto.ExportCell.deserializeBinaryFromReader),e.addValuearr(r);break;default:t.skipField()}}return e},proto.ExportArr.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.ExportArr.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.ExportArr.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getVer())&&t.writeMessage(1,r,proto.Version.serializeBinaryToWriter),(r=e.getValuearrList()).length>0&&t.writeRepeatedMessage(2,r,proto.ExportCell.serializeBinaryToWriter)},proto.ExportArr.prototype.getVer=function(){return jspb.Message.getWrapperField(this,proto.Version,1)},proto.ExportArr.prototype.setVer=function(e){jspb.Message.setWrapperField(this,1,e)},proto.ExportArr.prototype.clearVer=function(){this.setVer(void 0)},proto.ExportArr.prototype.hasVer=function(){return null!=jspb.Message.getField(this,1)},proto.ExportArr.prototype.getValuearrList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.ExportCell,2)},proto.ExportArr.prototype.setValuearrList=function(e){jspb.Message.setRepeatedWrapperField(this,2,e)},proto.ExportArr.prototype.addValuearr=function(e,t){return jspb.Message.addToRepeatedWrapperField(this,2,e,proto.ExportCell,t)},proto.ExportArr.prototype.clearValuearrList=function(){this.setValuearrList([])},goog.object.extend(exports,proto);
2765
2
  //# sourceMappingURL=vdom_pb.js.map