-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfk-data.d.ts
More file actions
3698 lines (2989 loc) · 136 KB
/
fk-data.d.ts
File metadata and controls
3698 lines (2989 loc) · 136 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import * as $protobuf from "protobufjs";
/** Namespace fk_data. */
export namespace fk_data {
/** Properties of a DeviceLocation. */
interface IDeviceLocation {
/** DeviceLocation enabled */
enabled?: (number|null);
/** DeviceLocation fix */
fix?: (number|null);
/** DeviceLocation time */
time?: (number|Long|null);
/** DeviceLocation longitude */
longitude?: (number|null);
/** DeviceLocation latitude */
latitude?: (number|null);
/** DeviceLocation altitude */
altitude?: (number|null);
/** DeviceLocation coordinates */
coordinates?: (number[]|null);
/** DeviceLocation satellites */
satellites?: (number|null);
/** DeviceLocation hdop */
hdop?: (number|null);
}
/** Represents a DeviceLocation. */
class DeviceLocation implements IDeviceLocation {
/**
* Constructs a new DeviceLocation.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.IDeviceLocation);
/** DeviceLocation enabled. */
public enabled: number;
/** DeviceLocation fix. */
public fix: number;
/** DeviceLocation time. */
public time: (number|Long);
/** DeviceLocation longitude. */
public longitude: number;
/** DeviceLocation latitude. */
public latitude: number;
/** DeviceLocation altitude. */
public altitude: number;
/** DeviceLocation coordinates. */
public coordinates: number[];
/** DeviceLocation satellites. */
public satellites: number;
/** DeviceLocation hdop. */
public hdop: number;
/**
* Creates a new DeviceLocation instance using the specified properties.
* @param [properties] Properties to set
* @returns DeviceLocation instance
*/
public static create(properties?: fk_data.IDeviceLocation): fk_data.DeviceLocation;
/**
* Encodes the specified DeviceLocation message. Does not implicitly {@link fk_data.DeviceLocation.verify|verify} messages.
* @param message DeviceLocation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.IDeviceLocation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DeviceLocation message, length delimited. Does not implicitly {@link fk_data.DeviceLocation.verify|verify} messages.
* @param message DeviceLocation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.IDeviceLocation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DeviceLocation message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DeviceLocation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.DeviceLocation;
/**
* Decodes a DeviceLocation message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DeviceLocation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.DeviceLocation;
/**
* Verifies a DeviceLocation message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DeviceLocation message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DeviceLocation
*/
public static fromObject(object: { [k: string]: any }): fk_data.DeviceLocation;
/**
* Creates a plain object from a DeviceLocation message. Also converts values to other types if specified.
* @param message DeviceLocation
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.DeviceLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DeviceLocation to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a SensorReading. */
interface ISensorReading {
/** SensorReading reading */
reading?: (number|Long|null);
/** SensorReading time */
time?: (number|Long|null);
/** SensorReading sensor */
sensor?: (number|null);
/** SensorReading value */
value?: (number|null);
}
/** Represents a SensorReading. */
class SensorReading implements ISensorReading {
/**
* Constructs a new SensorReading.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.ISensorReading);
/** SensorReading reading. */
public reading: (number|Long);
/** SensorReading time. */
public time: (number|Long);
/** SensorReading sensor. */
public sensor: number;
/** SensorReading value. */
public value: number;
/**
* Creates a new SensorReading instance using the specified properties.
* @param [properties] Properties to set
* @returns SensorReading instance
*/
public static create(properties?: fk_data.ISensorReading): fk_data.SensorReading;
/**
* Encodes the specified SensorReading message. Does not implicitly {@link fk_data.SensorReading.verify|verify} messages.
* @param message SensorReading message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.ISensorReading, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SensorReading message, length delimited. Does not implicitly {@link fk_data.SensorReading.verify|verify} messages.
* @param message SensorReading message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.ISensorReading, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SensorReading message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SensorReading
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.SensorReading;
/**
* Decodes a SensorReading message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SensorReading
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.SensorReading;
/**
* Verifies a SensorReading message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SensorReading message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SensorReading
*/
public static fromObject(object: { [k: string]: any }): fk_data.SensorReading;
/**
* Creates a plain object from a SensorReading message. Also converts values to other types if specified.
* @param message SensorReading
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.SensorReading, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SensorReading to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a LoggedReading. */
interface ILoggedReading {
/** LoggedReading version */
version?: (number|null);
/** LoggedReading location */
location?: (fk_data.IDeviceLocation|null);
/** LoggedReading reading */
reading?: (fk_data.ISensorReading|null);
}
/** Represents a LoggedReading. */
class LoggedReading implements ILoggedReading {
/**
* Constructs a new LoggedReading.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.ILoggedReading);
/** LoggedReading version. */
public version: number;
/** LoggedReading location. */
public location?: (fk_data.IDeviceLocation|null);
/** LoggedReading reading. */
public reading?: (fk_data.ISensorReading|null);
/**
* Creates a new LoggedReading instance using the specified properties.
* @param [properties] Properties to set
* @returns LoggedReading instance
*/
public static create(properties?: fk_data.ILoggedReading): fk_data.LoggedReading;
/**
* Encodes the specified LoggedReading message. Does not implicitly {@link fk_data.LoggedReading.verify|verify} messages.
* @param message LoggedReading message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.ILoggedReading, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LoggedReading message, length delimited. Does not implicitly {@link fk_data.LoggedReading.verify|verify} messages.
* @param message LoggedReading message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.ILoggedReading, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LoggedReading message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LoggedReading
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.LoggedReading;
/**
* Decodes a LoggedReading message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LoggedReading
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.LoggedReading;
/**
* Verifies a LoggedReading message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a LoggedReading message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LoggedReading
*/
public static fromObject(object: { [k: string]: any }): fk_data.LoggedReading;
/**
* Creates a plain object from a LoggedReading message. Also converts values to other types if specified.
* @param message LoggedReading
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.LoggedReading, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LoggedReading to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a SensorAndValue. */
interface ISensorAndValue {
/** SensorAndValue sensor */
sensor?: (number|null);
/** SensorAndValue calibratedNull */
calibratedNull?: (boolean|null);
/** SensorAndValue calibratedValue */
calibratedValue?: (number|null);
/** SensorAndValue uncalibratedNull */
uncalibratedNull?: (boolean|null);
/** SensorAndValue uncalibratedValue */
uncalibratedValue?: (number|null);
}
/** Represents a SensorAndValue. */
class SensorAndValue implements ISensorAndValue {
/**
* Constructs a new SensorAndValue.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.ISensorAndValue);
/** SensorAndValue sensor. */
public sensor: number;
/** SensorAndValue calibratedNull. */
public calibratedNull: boolean;
/** SensorAndValue calibratedValue. */
public calibratedValue: number;
/** SensorAndValue uncalibratedNull. */
public uncalibratedNull: boolean;
/** SensorAndValue uncalibratedValue. */
public uncalibratedValue: number;
/** SensorAndValue calibrated. */
public calibrated?: ("calibratedNull"|"calibratedValue");
/** SensorAndValue uncalibrated. */
public uncalibrated?: ("uncalibratedNull"|"uncalibratedValue");
/**
* Creates a new SensorAndValue instance using the specified properties.
* @param [properties] Properties to set
* @returns SensorAndValue instance
*/
public static create(properties?: fk_data.ISensorAndValue): fk_data.SensorAndValue;
/**
* Encodes the specified SensorAndValue message. Does not implicitly {@link fk_data.SensorAndValue.verify|verify} messages.
* @param message SensorAndValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.ISensorAndValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SensorAndValue message, length delimited. Does not implicitly {@link fk_data.SensorAndValue.verify|verify} messages.
* @param message SensorAndValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.ISensorAndValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SensorAndValue message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SensorAndValue
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.SensorAndValue;
/**
* Decodes a SensorAndValue message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SensorAndValue
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.SensorAndValue;
/**
* Verifies a SensorAndValue message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SensorAndValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SensorAndValue
*/
public static fromObject(object: { [k: string]: any }): fk_data.SensorAndValue;
/**
* Creates a plain object from a SensorAndValue message. Also converts values to other types if specified.
* @param message SensorAndValue
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.SensorAndValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SensorAndValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ModuleHeader. */
interface IModuleHeader {
/** ModuleHeader manufacturer */
manufacturer?: (number|null);
/** ModuleHeader kind */
kind?: (number|null);
/** ModuleHeader version */
version?: (number|null);
}
/** Represents a ModuleHeader. */
class ModuleHeader implements IModuleHeader {
/**
* Constructs a new ModuleHeader.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.IModuleHeader);
/** ModuleHeader manufacturer. */
public manufacturer: number;
/** ModuleHeader kind. */
public kind: number;
/** ModuleHeader version. */
public version: number;
/**
* Creates a new ModuleHeader instance using the specified properties.
* @param [properties] Properties to set
* @returns ModuleHeader instance
*/
public static create(properties?: fk_data.IModuleHeader): fk_data.ModuleHeader;
/**
* Encodes the specified ModuleHeader message. Does not implicitly {@link fk_data.ModuleHeader.verify|verify} messages.
* @param message ModuleHeader message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.IModuleHeader, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ModuleHeader message, length delimited. Does not implicitly {@link fk_data.ModuleHeader.verify|verify} messages.
* @param message ModuleHeader message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.IModuleHeader, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ModuleHeader message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ModuleHeader
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.ModuleHeader;
/**
* Decodes a ModuleHeader message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ModuleHeader
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.ModuleHeader;
/**
* Verifies a ModuleHeader message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ModuleHeader message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ModuleHeader
*/
public static fromObject(object: { [k: string]: any }): fk_data.ModuleHeader;
/**
* Creates a plain object from a ModuleHeader message. Also converts values to other types if specified.
* @param message ModuleHeader
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.ModuleHeader, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ModuleHeader to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ModuleInfo. */
interface IModuleInfo {
/** ModuleInfo position */
position?: (number|null);
/** ModuleInfo address */
address?: (number|null);
/** ModuleInfo name */
name?: (string|null);
/** ModuleInfo header */
header?: (fk_data.IModuleHeader|null);
/** ModuleInfo firmware */
firmware?: (fk_data.IFirmware|null);
/** ModuleInfo sensors */
sensors?: (fk_data.ISensorInfo[]|null);
/** ModuleInfo id */
id?: (Uint8Array|null);
/** ModuleInfo flags */
flags?: (number|null);
/** ModuleInfo configuration */
configuration?: (Uint8Array|null);
}
/** Represents a ModuleInfo. */
class ModuleInfo implements IModuleInfo {
/**
* Constructs a new ModuleInfo.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.IModuleInfo);
/** ModuleInfo position. */
public position: number;
/** ModuleInfo address. */
public address: number;
/** ModuleInfo name. */
public name: string;
/** ModuleInfo header. */
public header?: (fk_data.IModuleHeader|null);
/** ModuleInfo firmware. */
public firmware?: (fk_data.IFirmware|null);
/** ModuleInfo sensors. */
public sensors: fk_data.ISensorInfo[];
/** ModuleInfo id. */
public id: Uint8Array;
/** ModuleInfo flags. */
public flags: number;
/** ModuleInfo configuration. */
public configuration: Uint8Array;
/**
* Creates a new ModuleInfo instance using the specified properties.
* @param [properties] Properties to set
* @returns ModuleInfo instance
*/
public static create(properties?: fk_data.IModuleInfo): fk_data.ModuleInfo;
/**
* Encodes the specified ModuleInfo message. Does not implicitly {@link fk_data.ModuleInfo.verify|verify} messages.
* @param message ModuleInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.IModuleInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ModuleInfo message, length delimited. Does not implicitly {@link fk_data.ModuleInfo.verify|verify} messages.
* @param message ModuleInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.IModuleInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ModuleInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ModuleInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.ModuleInfo;
/**
* Decodes a ModuleInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ModuleInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.ModuleInfo;
/**
* Verifies a ModuleInfo message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ModuleInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ModuleInfo
*/
public static fromObject(object: { [k: string]: any }): fk_data.ModuleInfo;
/**
* Creates a plain object from a ModuleInfo message. Also converts values to other types if specified.
* @param message ModuleInfo
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.ModuleInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ModuleInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a SensorInfo. */
interface ISensorInfo {
/** SensorInfo number */
number?: (number|null);
/** SensorInfo name */
name?: (string|null);
/** SensorInfo unitOfMeasure */
unitOfMeasure?: (string|null);
/** SensorInfo uncalibratedUnitOfMeasure */
uncalibratedUnitOfMeasure?: (string|null);
/** SensorInfo flags */
flags?: (number|null);
}
/** Represents a SensorInfo. */
class SensorInfo implements ISensorInfo {
/**
* Constructs a new SensorInfo.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.ISensorInfo);
/** SensorInfo number. */
public number: number;
/** SensorInfo name. */
public name: string;
/** SensorInfo unitOfMeasure. */
public unitOfMeasure: string;
/** SensorInfo uncalibratedUnitOfMeasure. */
public uncalibratedUnitOfMeasure: string;
/** SensorInfo flags. */
public flags: number;
/**
* Creates a new SensorInfo instance using the specified properties.
* @param [properties] Properties to set
* @returns SensorInfo instance
*/
public static create(properties?: fk_data.ISensorInfo): fk_data.SensorInfo;
/**
* Encodes the specified SensorInfo message. Does not implicitly {@link fk_data.SensorInfo.verify|verify} messages.
* @param message SensorInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.ISensorInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SensorInfo message, length delimited. Does not implicitly {@link fk_data.SensorInfo.verify|verify} messages.
* @param message SensorInfo message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.ISensorInfo, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SensorInfo message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SensorInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.SensorInfo;
/**
* Decodes a SensorInfo message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SensorInfo
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.SensorInfo;
/**
* Verifies a SensorInfo message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SensorInfo message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SensorInfo
*/
public static fromObject(object: { [k: string]: any }): fk_data.SensorInfo;
/**
* Creates a plain object from a SensorInfo message. Also converts values to other types if specified.
* @param message SensorInfo
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.SensorInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SensorInfo to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Firmware. */
interface IFirmware {
/** Firmware version */
version?: (string|null);
/** Firmware build */
build?: (string|null);
/** Firmware number */
number?: (string|null);
/** Firmware timestamp */
timestamp?: (number|Long|null);
/** Firmware hash */
hash?: (string|null);
}
/** Represents a Firmware. */
class Firmware implements IFirmware {
/**
* Constructs a new Firmware.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.IFirmware);
/** Firmware version. */
public version: string;
/** Firmware build. */
public build: string;
/** Firmware number. */
public number: string;
/** Firmware timestamp. */
public timestamp: (number|Long);
/** Firmware hash. */
public hash: string;
/**
* Creates a new Firmware instance using the specified properties.
* @param [properties] Properties to set
* @returns Firmware instance
*/
public static create(properties?: fk_data.IFirmware): fk_data.Firmware;
/**
* Encodes the specified Firmware message. Does not implicitly {@link fk_data.Firmware.verify|verify} messages.
* @param message Firmware message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: fk_data.IFirmware, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Firmware message, length delimited. Does not implicitly {@link fk_data.Firmware.verify|verify} messages.
* @param message Firmware message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: fk_data.IFirmware, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Firmware message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Firmware
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): fk_data.Firmware;
/**
* Decodes a Firmware message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Firmware
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): fk_data.Firmware;
/**
* Verifies a Firmware message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Firmware message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Firmware
*/
public static fromObject(object: { [k: string]: any }): fk_data.Firmware;
/**
* Creates a plain object from a Firmware message. Also converts values to other types if specified.
* @param message Firmware
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: fk_data.Firmware, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Firmware to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Metadata. */
interface IMetadata {
/** Metadata deviceId */
deviceId?: (Uint8Array|null);
/** Metadata time */
time?: (number|Long|null);
/** Metadata git */
git?: (string|null);
/** Metadata build */
build?: (string|null);
/** Metadata resetCause */
resetCause?: (number|null);
/** Metadata sensors */
sensors?: (fk_data.ISensorInfo[]|null);
/** Metadata modules */
modules?: (fk_data.IModuleInfo[]|null);
/** Metadata firmware */
firmware?: (fk_data.IFirmware|null);
/** Metadata generation */
generation?: (Uint8Array|null);
/** Metadata record */
record?: (number|Long|null);
}
/** Represents a Metadata. */
class Metadata implements IMetadata {
/**
* Constructs a new Metadata.
* @param [properties] Properties to set
*/
constructor(properties?: fk_data.IMetadata);
/** Metadata deviceId. */
public deviceId: Uint8Array;
/** Metadata time. */
public time: (number|Long);
/** Metadata git. */
public git: string;
/** Metadata build. */
public build: string;
/** Metadata resetCause. */
public resetCause: number;
/** Metadata sensors. */