skyeye-sdk-js 1.4.16 → 1.4.18

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.
@@ -0,0 +1,1018 @@
1
+ // source: line_chart.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
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
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.Series', null, global);
25
+ goog.exportSymbol('proto.SeriesData', null, global);
26
+ goog.exportSymbol('proto.TimeData', null, global);
27
+ goog.exportSymbol('proto.Value', 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
+ proto.Value = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
+ };
41
+ goog.inherits(proto.Value, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.Value.displayName = 'proto.Value';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.TimeData = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
+ };
62
+ goog.inherits(proto.TimeData, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.TimeData.displayName = 'proto.TimeData';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.SeriesData = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SeriesData.repeatedFields_, null);
82
+ };
83
+ goog.inherits(proto.SeriesData, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.SeriesData.displayName = 'proto.SeriesData';
90
+ }
91
+ /**
92
+ * Generated by JsPbCodeGenerator.
93
+ * @param {Array=} opt_data Optional initial data array, typically from a
94
+ * server response, or constructed directly in Javascript. The array is used
95
+ * in place and becomes part of the constructed object. It is not cloned.
96
+ * If no data is provided, the constructed object will be empty, but still
97
+ * valid.
98
+ * @extends {jspb.Message}
99
+ * @constructor
100
+ */
101
+ proto.Series = function(opt_data) {
102
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Series.repeatedFields_, null);
103
+ };
104
+ goog.inherits(proto.Series, jspb.Message);
105
+ if (goog.DEBUG && !COMPILED) {
106
+ /**
107
+ * @public
108
+ * @override
109
+ */
110
+ proto.Series.displayName = 'proto.Series';
111
+ }
112
+
113
+
114
+
115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
116
+ /**
117
+ * Creates an object representation of this proto.
118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
119
+ * Optional fields that are not set will be set to undefined.
120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
121
+ * For the list of reserved names please see:
122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
124
+ * JSPB instance for transitional soy proto support:
125
+ * http://goto/soy-param-migration
126
+ * @return {!Object}
127
+ */
128
+ proto.Value.prototype.toObject = function(opt_includeInstance) {
129
+ return proto.Value.toObject(opt_includeInstance, this);
130
+ };
131
+
132
+
133
+ /**
134
+ * Static version of the {@see toObject} method.
135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
136
+ * the JSPB instance for transitional soy proto support:
137
+ * http://goto/soy-param-migration
138
+ * @param {!proto.Value} msg The msg instance to transform.
139
+ * @return {!Object}
140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
141
+ */
142
+ proto.Value.toObject = function(includeInstance, msg) {
143
+ var f, obj = {
144
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
145
+ doublevalue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
146
+ intvalue: jspb.Message.getFieldWithDefault(msg, 3, 0),
147
+ stringvalue: jspb.Message.getFieldWithDefault(msg, 4, "")
148
+ };
149
+
150
+ if (includeInstance) {
151
+ obj.$jspbMessageInstance = msg;
152
+ }
153
+ return obj;
154
+ };
155
+ }
156
+
157
+
158
+ /**
159
+ * Deserializes binary data (in protobuf wire format).
160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
161
+ * @return {!proto.Value}
162
+ */
163
+ proto.Value.deserializeBinary = function(bytes) {
164
+ var reader = new jspb.BinaryReader(bytes);
165
+ var msg = new proto.Value;
166
+ return proto.Value.deserializeBinaryFromReader(msg, reader);
167
+ };
168
+
169
+
170
+ /**
171
+ * Deserializes binary data (in protobuf wire format) from the
172
+ * given reader into the given message object.
173
+ * @param {!proto.Value} msg The message object to deserialize into.
174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
175
+ * @return {!proto.Value}
176
+ */
177
+ proto.Value.deserializeBinaryFromReader = function(msg, reader) {
178
+ while (reader.nextField()) {
179
+ if (reader.isEndGroup()) {
180
+ break;
181
+ }
182
+ var field = reader.getFieldNumber();
183
+ switch (field) {
184
+ case 1:
185
+ var value = /** @type {string} */ (reader.readString());
186
+ msg.setType(value);
187
+ break;
188
+ case 2:
189
+ var value = /** @type {number} */ (reader.readDouble());
190
+ msg.setDoublevalue(value);
191
+ break;
192
+ case 3:
193
+ var value = /** @type {number} */ (reader.readInt64());
194
+ msg.setIntvalue(value);
195
+ break;
196
+ case 4:
197
+ var value = /** @type {string} */ (reader.readString());
198
+ msg.setStringvalue(value);
199
+ break;
200
+ default:
201
+ reader.skipField();
202
+ break;
203
+ }
204
+ }
205
+ return msg;
206
+ };
207
+
208
+
209
+ /**
210
+ * Serializes the message to binary data (in protobuf wire format).
211
+ * @return {!Uint8Array}
212
+ */
213
+ proto.Value.prototype.serializeBinary = function() {
214
+ var writer = new jspb.BinaryWriter();
215
+ proto.Value.serializeBinaryToWriter(this, writer);
216
+ return writer.getResultBuffer();
217
+ };
218
+
219
+
220
+ /**
221
+ * Serializes the given message to binary data (in protobuf wire
222
+ * format), writing to the given BinaryWriter.
223
+ * @param {!proto.Value} message
224
+ * @param {!jspb.BinaryWriter} writer
225
+ * @suppress {unusedLocalVariables} f is only used for nested messages
226
+ */
227
+ proto.Value.serializeBinaryToWriter = function(message, writer) {
228
+ var f = undefined;
229
+ f = message.getType();
230
+ if (f.length > 0) {
231
+ writer.writeString(
232
+ 1,
233
+ f
234
+ );
235
+ }
236
+ f = message.getDoublevalue();
237
+ if (f !== 0.0) {
238
+ writer.writeDouble(
239
+ 2,
240
+ f
241
+ );
242
+ }
243
+ f = message.getIntvalue();
244
+ if (f !== 0) {
245
+ writer.writeInt64(
246
+ 3,
247
+ f
248
+ );
249
+ }
250
+ f = message.getStringvalue();
251
+ if (f.length > 0) {
252
+ writer.writeString(
253
+ 4,
254
+ f
255
+ );
256
+ }
257
+ };
258
+
259
+
260
+ /**
261
+ * optional string type = 1;
262
+ * @return {string}
263
+ */
264
+ proto.Value.prototype.getType = function() {
265
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
266
+ };
267
+
268
+
269
+ /**
270
+ * @param {string} value
271
+ * @return {!proto.Value} returns this
272
+ */
273
+ proto.Value.prototype.setType = function(value) {
274
+ return jspb.Message.setProto3StringField(this, 1, value);
275
+ };
276
+
277
+
278
+ /**
279
+ * optional double doubleValue = 2;
280
+ * @return {number}
281
+ */
282
+ proto.Value.prototype.getDoublevalue = function() {
283
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
284
+ };
285
+
286
+
287
+ /**
288
+ * @param {number} value
289
+ * @return {!proto.Value} returns this
290
+ */
291
+ proto.Value.prototype.setDoublevalue = function(value) {
292
+ return jspb.Message.setProto3FloatField(this, 2, value);
293
+ };
294
+
295
+
296
+ /**
297
+ * optional int64 intValue = 3;
298
+ * @return {number}
299
+ */
300
+ proto.Value.prototype.getIntvalue = function() {
301
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
302
+ };
303
+
304
+
305
+ /**
306
+ * @param {number} value
307
+ * @return {!proto.Value} returns this
308
+ */
309
+ proto.Value.prototype.setIntvalue = function(value) {
310
+ return jspb.Message.setProto3IntField(this, 3, value);
311
+ };
312
+
313
+
314
+ /**
315
+ * optional string stringValue = 4;
316
+ * @return {string}
317
+ */
318
+ proto.Value.prototype.getStringvalue = function() {
319
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
320
+ };
321
+
322
+
323
+ /**
324
+ * @param {string} value
325
+ * @return {!proto.Value} returns this
326
+ */
327
+ proto.Value.prototype.setStringvalue = function(value) {
328
+ return jspb.Message.setProto3StringField(this, 4, value);
329
+ };
330
+
331
+
332
+
333
+
334
+
335
+ if (jspb.Message.GENERATE_TO_OBJECT) {
336
+ /**
337
+ * Creates an object representation of this proto.
338
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
339
+ * Optional fields that are not set will be set to undefined.
340
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
341
+ * For the list of reserved names please see:
342
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
343
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
344
+ * JSPB instance for transitional soy proto support:
345
+ * http://goto/soy-param-migration
346
+ * @return {!Object}
347
+ */
348
+ proto.TimeData.prototype.toObject = function(opt_includeInstance) {
349
+ return proto.TimeData.toObject(opt_includeInstance, this);
350
+ };
351
+
352
+
353
+ /**
354
+ * Static version of the {@see toObject} method.
355
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
356
+ * the JSPB instance for transitional soy proto support:
357
+ * http://goto/soy-param-migration
358
+ * @param {!proto.TimeData} msg The msg instance to transform.
359
+ * @return {!Object}
360
+ * @suppress {unusedLocalVariables} f is only used for nested messages
361
+ */
362
+ proto.TimeData.toObject = function(includeInstance, msg) {
363
+ var f, obj = {
364
+ realtime: (f = msg.getRealtime()) && proto.Value.toObject(includeInstance, f),
365
+ simulationtime: (f = msg.getSimulationtime()) && proto.Value.toObject(includeInstance, f),
366
+ customtime: (f = msg.getCustomtime()) && proto.Value.toObject(includeInstance, f)
367
+ };
368
+
369
+ if (includeInstance) {
370
+ obj.$jspbMessageInstance = msg;
371
+ }
372
+ return obj;
373
+ };
374
+ }
375
+
376
+
377
+ /**
378
+ * Deserializes binary data (in protobuf wire format).
379
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
380
+ * @return {!proto.TimeData}
381
+ */
382
+ proto.TimeData.deserializeBinary = function(bytes) {
383
+ var reader = new jspb.BinaryReader(bytes);
384
+ var msg = new proto.TimeData;
385
+ return proto.TimeData.deserializeBinaryFromReader(msg, reader);
386
+ };
387
+
388
+
389
+ /**
390
+ * Deserializes binary data (in protobuf wire format) from the
391
+ * given reader into the given message object.
392
+ * @param {!proto.TimeData} msg The message object to deserialize into.
393
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
394
+ * @return {!proto.TimeData}
395
+ */
396
+ proto.TimeData.deserializeBinaryFromReader = function(msg, reader) {
397
+ while (reader.nextField()) {
398
+ if (reader.isEndGroup()) {
399
+ break;
400
+ }
401
+ var field = reader.getFieldNumber();
402
+ switch (field) {
403
+ case 1:
404
+ var value = new proto.Value;
405
+ reader.readMessage(value,proto.Value.deserializeBinaryFromReader);
406
+ msg.setRealtime(value);
407
+ break;
408
+ case 2:
409
+ var value = new proto.Value;
410
+ reader.readMessage(value,proto.Value.deserializeBinaryFromReader);
411
+ msg.setSimulationtime(value);
412
+ break;
413
+ case 3:
414
+ var value = new proto.Value;
415
+ reader.readMessage(value,proto.Value.deserializeBinaryFromReader);
416
+ msg.setCustomtime(value);
417
+ break;
418
+ default:
419
+ reader.skipField();
420
+ break;
421
+ }
422
+ }
423
+ return msg;
424
+ };
425
+
426
+
427
+ /**
428
+ * Serializes the message to binary data (in protobuf wire format).
429
+ * @return {!Uint8Array}
430
+ */
431
+ proto.TimeData.prototype.serializeBinary = function() {
432
+ var writer = new jspb.BinaryWriter();
433
+ proto.TimeData.serializeBinaryToWriter(this, writer);
434
+ return writer.getResultBuffer();
435
+ };
436
+
437
+
438
+ /**
439
+ * Serializes the given message to binary data (in protobuf wire
440
+ * format), writing to the given BinaryWriter.
441
+ * @param {!proto.TimeData} message
442
+ * @param {!jspb.BinaryWriter} writer
443
+ * @suppress {unusedLocalVariables} f is only used for nested messages
444
+ */
445
+ proto.TimeData.serializeBinaryToWriter = function(message, writer) {
446
+ var f = undefined;
447
+ f = message.getRealtime();
448
+ if (f != null) {
449
+ writer.writeMessage(
450
+ 1,
451
+ f,
452
+ proto.Value.serializeBinaryToWriter
453
+ );
454
+ }
455
+ f = message.getSimulationtime();
456
+ if (f != null) {
457
+ writer.writeMessage(
458
+ 2,
459
+ f,
460
+ proto.Value.serializeBinaryToWriter
461
+ );
462
+ }
463
+ f = message.getCustomtime();
464
+ if (f != null) {
465
+ writer.writeMessage(
466
+ 3,
467
+ f,
468
+ proto.Value.serializeBinaryToWriter
469
+ );
470
+ }
471
+ };
472
+
473
+
474
+ /**
475
+ * optional Value realTime = 1;
476
+ * @return {?proto.Value}
477
+ */
478
+ proto.TimeData.prototype.getRealtime = function() {
479
+ return /** @type{?proto.Value} */ (
480
+ jspb.Message.getWrapperField(this, proto.Value, 1));
481
+ };
482
+
483
+
484
+ /**
485
+ * @param {?proto.Value|undefined} value
486
+ * @return {!proto.TimeData} returns this
487
+ */
488
+ proto.TimeData.prototype.setRealtime = function(value) {
489
+ return jspb.Message.setWrapperField(this, 1, value);
490
+ };
491
+
492
+
493
+ /**
494
+ * Clears the message field making it undefined.
495
+ * @return {!proto.TimeData} returns this
496
+ */
497
+ proto.TimeData.prototype.clearRealtime = function() {
498
+ return this.setRealtime(undefined);
499
+ };
500
+
501
+
502
+ /**
503
+ * Returns whether this field is set.
504
+ * @return {boolean}
505
+ */
506
+ proto.TimeData.prototype.hasRealtime = function() {
507
+ return jspb.Message.getField(this, 1) != null;
508
+ };
509
+
510
+
511
+ /**
512
+ * optional Value simulationTime = 2;
513
+ * @return {?proto.Value}
514
+ */
515
+ proto.TimeData.prototype.getSimulationtime = function() {
516
+ return /** @type{?proto.Value} */ (
517
+ jspb.Message.getWrapperField(this, proto.Value, 2));
518
+ };
519
+
520
+
521
+ /**
522
+ * @param {?proto.Value|undefined} value
523
+ * @return {!proto.TimeData} returns this
524
+ */
525
+ proto.TimeData.prototype.setSimulationtime = function(value) {
526
+ return jspb.Message.setWrapperField(this, 2, value);
527
+ };
528
+
529
+
530
+ /**
531
+ * Clears the message field making it undefined.
532
+ * @return {!proto.TimeData} returns this
533
+ */
534
+ proto.TimeData.prototype.clearSimulationtime = function() {
535
+ return this.setSimulationtime(undefined);
536
+ };
537
+
538
+
539
+ /**
540
+ * Returns whether this field is set.
541
+ * @return {boolean}
542
+ */
543
+ proto.TimeData.prototype.hasSimulationtime = function() {
544
+ return jspb.Message.getField(this, 2) != null;
545
+ };
546
+
547
+
548
+ /**
549
+ * optional Value customTime = 3;
550
+ * @return {?proto.Value}
551
+ */
552
+ proto.TimeData.prototype.getCustomtime = function() {
553
+ return /** @type{?proto.Value} */ (
554
+ jspb.Message.getWrapperField(this, proto.Value, 3));
555
+ };
556
+
557
+
558
+ /**
559
+ * @param {?proto.Value|undefined} value
560
+ * @return {!proto.TimeData} returns this
561
+ */
562
+ proto.TimeData.prototype.setCustomtime = function(value) {
563
+ return jspb.Message.setWrapperField(this, 3, value);
564
+ };
565
+
566
+
567
+ /**
568
+ * Clears the message field making it undefined.
569
+ * @return {!proto.TimeData} returns this
570
+ */
571
+ proto.TimeData.prototype.clearCustomtime = function() {
572
+ return this.setCustomtime(undefined);
573
+ };
574
+
575
+
576
+ /**
577
+ * Returns whether this field is set.
578
+ * @return {boolean}
579
+ */
580
+ proto.TimeData.prototype.hasCustomtime = function() {
581
+ return jspb.Message.getField(this, 3) != null;
582
+ };
583
+
584
+
585
+
586
+ /**
587
+ * List of repeated fields within this message type.
588
+ * @private {!Array<number>}
589
+ * @const
590
+ */
591
+ proto.SeriesData.repeatedFields_ = [3];
592
+
593
+
594
+
595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
596
+ /**
597
+ * Creates an object representation of this proto.
598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
599
+ * Optional fields that are not set will be set to undefined.
600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
601
+ * For the list of reserved names please see:
602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
604
+ * JSPB instance for transitional soy proto support:
605
+ * http://goto/soy-param-migration
606
+ * @return {!Object}
607
+ */
608
+ proto.SeriesData.prototype.toObject = function(opt_includeInstance) {
609
+ return proto.SeriesData.toObject(opt_includeInstance, this);
610
+ };
611
+
612
+
613
+ /**
614
+ * Static version of the {@see toObject} method.
615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
616
+ * the JSPB instance for transitional soy proto support:
617
+ * http://goto/soy-param-migration
618
+ * @param {!proto.SeriesData} msg The msg instance to transform.
619
+ * @return {!Object}
620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
621
+ */
622
+ proto.SeriesData.toObject = function(includeInstance, msg) {
623
+ var f, obj = {
624
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
625
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
626
+ valueList: jspb.Message.toObjectList(msg.getValueList(),
627
+ proto.Value.toObject, includeInstance)
628
+ };
629
+
630
+ if (includeInstance) {
631
+ obj.$jspbMessageInstance = msg;
632
+ }
633
+ return obj;
634
+ };
635
+ }
636
+
637
+
638
+ /**
639
+ * Deserializes binary data (in protobuf wire format).
640
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
641
+ * @return {!proto.SeriesData}
642
+ */
643
+ proto.SeriesData.deserializeBinary = function(bytes) {
644
+ var reader = new jspb.BinaryReader(bytes);
645
+ var msg = new proto.SeriesData;
646
+ return proto.SeriesData.deserializeBinaryFromReader(msg, reader);
647
+ };
648
+
649
+
650
+ /**
651
+ * Deserializes binary data (in protobuf wire format) from the
652
+ * given reader into the given message object.
653
+ * @param {!proto.SeriesData} msg The message object to deserialize into.
654
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
655
+ * @return {!proto.SeriesData}
656
+ */
657
+ proto.SeriesData.deserializeBinaryFromReader = function(msg, reader) {
658
+ while (reader.nextField()) {
659
+ if (reader.isEndGroup()) {
660
+ break;
661
+ }
662
+ var field = reader.getFieldNumber();
663
+ switch (field) {
664
+ case 1:
665
+ var value = /** @type {string} */ (reader.readString());
666
+ msg.setId(value);
667
+ break;
668
+ case 2:
669
+ var value = /** @type {string} */ (reader.readString());
670
+ msg.setName(value);
671
+ break;
672
+ case 3:
673
+ var value = new proto.Value;
674
+ reader.readMessage(value,proto.Value.deserializeBinaryFromReader);
675
+ msg.addValue(value);
676
+ break;
677
+ default:
678
+ reader.skipField();
679
+ break;
680
+ }
681
+ }
682
+ return msg;
683
+ };
684
+
685
+
686
+ /**
687
+ * Serializes the message to binary data (in protobuf wire format).
688
+ * @return {!Uint8Array}
689
+ */
690
+ proto.SeriesData.prototype.serializeBinary = function() {
691
+ var writer = new jspb.BinaryWriter();
692
+ proto.SeriesData.serializeBinaryToWriter(this, writer);
693
+ return writer.getResultBuffer();
694
+ };
695
+
696
+
697
+ /**
698
+ * Serializes the given message to binary data (in protobuf wire
699
+ * format), writing to the given BinaryWriter.
700
+ * @param {!proto.SeriesData} message
701
+ * @param {!jspb.BinaryWriter} writer
702
+ * @suppress {unusedLocalVariables} f is only used for nested messages
703
+ */
704
+ proto.SeriesData.serializeBinaryToWriter = function(message, writer) {
705
+ var f = undefined;
706
+ f = message.getId();
707
+ if (f.length > 0) {
708
+ writer.writeString(
709
+ 1,
710
+ f
711
+ );
712
+ }
713
+ f = message.getName();
714
+ if (f.length > 0) {
715
+ writer.writeString(
716
+ 2,
717
+ f
718
+ );
719
+ }
720
+ f = message.getValueList();
721
+ if (f.length > 0) {
722
+ writer.writeRepeatedMessage(
723
+ 3,
724
+ f,
725
+ proto.Value.serializeBinaryToWriter
726
+ );
727
+ }
728
+ };
729
+
730
+
731
+ /**
732
+ * optional string id = 1;
733
+ * @return {string}
734
+ */
735
+ proto.SeriesData.prototype.getId = function() {
736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
737
+ };
738
+
739
+
740
+ /**
741
+ * @param {string} value
742
+ * @return {!proto.SeriesData} returns this
743
+ */
744
+ proto.SeriesData.prototype.setId = function(value) {
745
+ return jspb.Message.setProto3StringField(this, 1, value);
746
+ };
747
+
748
+
749
+ /**
750
+ * optional string name = 2;
751
+ * @return {string}
752
+ */
753
+ proto.SeriesData.prototype.getName = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.SeriesData} returns this
761
+ */
762
+ proto.SeriesData.prototype.setName = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 2, value);
764
+ };
765
+
766
+
767
+ /**
768
+ * repeated Value value = 3;
769
+ * @return {!Array<!proto.Value>}
770
+ */
771
+ proto.SeriesData.prototype.getValueList = function() {
772
+ return /** @type{!Array<!proto.Value>} */ (
773
+ jspb.Message.getRepeatedWrapperField(this, proto.Value, 3));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {!Array<!proto.Value>} value
779
+ * @return {!proto.SeriesData} returns this
780
+ */
781
+ proto.SeriesData.prototype.setValueList = function(value) {
782
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * @param {!proto.Value=} opt_value
788
+ * @param {number=} opt_index
789
+ * @return {!proto.Value}
790
+ */
791
+ proto.SeriesData.prototype.addValue = function(opt_value, opt_index) {
792
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Value, opt_index);
793
+ };
794
+
795
+
796
+ /**
797
+ * Clears the list making it empty but non-null.
798
+ * @return {!proto.SeriesData} returns this
799
+ */
800
+ proto.SeriesData.prototype.clearValueList = function() {
801
+ return this.setValueList([]);
802
+ };
803
+
804
+
805
+
806
+ /**
807
+ * List of repeated fields within this message type.
808
+ * @private {!Array<number>}
809
+ * @const
810
+ */
811
+ proto.Series.repeatedFields_ = [1,2];
812
+
813
+
814
+
815
+ if (jspb.Message.GENERATE_TO_OBJECT) {
816
+ /**
817
+ * Creates an object representation of this proto.
818
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
819
+ * Optional fields that are not set will be set to undefined.
820
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
821
+ * For the list of reserved names please see:
822
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
823
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
824
+ * JSPB instance for transitional soy proto support:
825
+ * http://goto/soy-param-migration
826
+ * @return {!Object}
827
+ */
828
+ proto.Series.prototype.toObject = function(opt_includeInstance) {
829
+ return proto.Series.toObject(opt_includeInstance, this);
830
+ };
831
+
832
+
833
+ /**
834
+ * Static version of the {@see toObject} method.
835
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
836
+ * the JSPB instance for transitional soy proto support:
837
+ * http://goto/soy-param-migration
838
+ * @param {!proto.Series} msg The msg instance to transform.
839
+ * @return {!Object}
840
+ * @suppress {unusedLocalVariables} f is only used for nested messages
841
+ */
842
+ proto.Series.toObject = function(includeInstance, msg) {
843
+ var f, obj = {
844
+ seriesList: jspb.Message.toObjectList(msg.getSeriesList(),
845
+ proto.SeriesData.toObject, includeInstance),
846
+ timeList: jspb.Message.toObjectList(msg.getTimeList(),
847
+ proto.TimeData.toObject, includeInstance)
848
+ };
849
+
850
+ if (includeInstance) {
851
+ obj.$jspbMessageInstance = msg;
852
+ }
853
+ return obj;
854
+ };
855
+ }
856
+
857
+
858
+ /**
859
+ * Deserializes binary data (in protobuf wire format).
860
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
861
+ * @return {!proto.Series}
862
+ */
863
+ proto.Series.deserializeBinary = function(bytes) {
864
+ var reader = new jspb.BinaryReader(bytes);
865
+ var msg = new proto.Series;
866
+ return proto.Series.deserializeBinaryFromReader(msg, reader);
867
+ };
868
+
869
+
870
+ /**
871
+ * Deserializes binary data (in protobuf wire format) from the
872
+ * given reader into the given message object.
873
+ * @param {!proto.Series} msg The message object to deserialize into.
874
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
875
+ * @return {!proto.Series}
876
+ */
877
+ proto.Series.deserializeBinaryFromReader = function(msg, reader) {
878
+ while (reader.nextField()) {
879
+ if (reader.isEndGroup()) {
880
+ break;
881
+ }
882
+ var field = reader.getFieldNumber();
883
+ switch (field) {
884
+ case 1:
885
+ var value = new proto.SeriesData;
886
+ reader.readMessage(value,proto.SeriesData.deserializeBinaryFromReader);
887
+ msg.addSeries(value);
888
+ break;
889
+ case 2:
890
+ var value = new proto.TimeData;
891
+ reader.readMessage(value,proto.TimeData.deserializeBinaryFromReader);
892
+ msg.addTime(value);
893
+ break;
894
+ default:
895
+ reader.skipField();
896
+ break;
897
+ }
898
+ }
899
+ return msg;
900
+ };
901
+
902
+
903
+ /**
904
+ * Serializes the message to binary data (in protobuf wire format).
905
+ * @return {!Uint8Array}
906
+ */
907
+ proto.Series.prototype.serializeBinary = function() {
908
+ var writer = new jspb.BinaryWriter();
909
+ proto.Series.serializeBinaryToWriter(this, writer);
910
+ return writer.getResultBuffer();
911
+ };
912
+
913
+
914
+ /**
915
+ * Serializes the given message to binary data (in protobuf wire
916
+ * format), writing to the given BinaryWriter.
917
+ * @param {!proto.Series} message
918
+ * @param {!jspb.BinaryWriter} writer
919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
920
+ */
921
+ proto.Series.serializeBinaryToWriter = function(message, writer) {
922
+ var f = undefined;
923
+ f = message.getSeriesList();
924
+ if (f.length > 0) {
925
+ writer.writeRepeatedMessage(
926
+ 1,
927
+ f,
928
+ proto.SeriesData.serializeBinaryToWriter
929
+ );
930
+ }
931
+ f = message.getTimeList();
932
+ if (f.length > 0) {
933
+ writer.writeRepeatedMessage(
934
+ 2,
935
+ f,
936
+ proto.TimeData.serializeBinaryToWriter
937
+ );
938
+ }
939
+ };
940
+
941
+
942
+ /**
943
+ * repeated SeriesData series = 1;
944
+ * @return {!Array<!proto.SeriesData>}
945
+ */
946
+ proto.Series.prototype.getSeriesList = function() {
947
+ return /** @type{!Array<!proto.SeriesData>} */ (
948
+ jspb.Message.getRepeatedWrapperField(this, proto.SeriesData, 1));
949
+ };
950
+
951
+
952
+ /**
953
+ * @param {!Array<!proto.SeriesData>} value
954
+ * @return {!proto.Series} returns this
955
+ */
956
+ proto.Series.prototype.setSeriesList = function(value) {
957
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
958
+ };
959
+
960
+
961
+ /**
962
+ * @param {!proto.SeriesData=} opt_value
963
+ * @param {number=} opt_index
964
+ * @return {!proto.SeriesData}
965
+ */
966
+ proto.Series.prototype.addSeries = function(opt_value, opt_index) {
967
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.SeriesData, opt_index);
968
+ };
969
+
970
+
971
+ /**
972
+ * Clears the list making it empty but non-null.
973
+ * @return {!proto.Series} returns this
974
+ */
975
+ proto.Series.prototype.clearSeriesList = function() {
976
+ return this.setSeriesList([]);
977
+ };
978
+
979
+
980
+ /**
981
+ * repeated TimeData time = 2;
982
+ * @return {!Array<!proto.TimeData>}
983
+ */
984
+ proto.Series.prototype.getTimeList = function() {
985
+ return /** @type{!Array<!proto.TimeData>} */ (
986
+ jspb.Message.getRepeatedWrapperField(this, proto.TimeData, 2));
987
+ };
988
+
989
+
990
+ /**
991
+ * @param {!Array<!proto.TimeData>} value
992
+ * @return {!proto.Series} returns this
993
+ */
994
+ proto.Series.prototype.setTimeList = function(value) {
995
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
996
+ };
997
+
998
+
999
+ /**
1000
+ * @param {!proto.TimeData=} opt_value
1001
+ * @param {number=} opt_index
1002
+ * @return {!proto.TimeData}
1003
+ */
1004
+ proto.Series.prototype.addTime = function(opt_value, opt_index) {
1005
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.TimeData, opt_index);
1006
+ };
1007
+
1008
+
1009
+ /**
1010
+ * Clears the list making it empty but non-null.
1011
+ * @return {!proto.Series} returns this
1012
+ */
1013
+ proto.Series.prototype.clearTimeList = function() {
1014
+ return this.setTimeList([]);
1015
+ };
1016
+
1017
+
1018
+ goog.object.extend(exports, proto);