This repository was archived by the owner on Aug 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathgw.pb.go
More file actions
2054 lines (1801 loc) · 72.2 KB
/
Copy pathgw.pb.go
File metadata and controls
2054 lines (1801 loc) · 72.2 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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: gw/gw.proto
package gw
import (
fmt "fmt"
common "github.com/brocaar/chirpstack-api/go/v3/common"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type DownlinkTiming int32
const (
// Send the downlink immediately.
DownlinkTiming_IMMEDIATELY DownlinkTiming = 0
// Send downlink at the given delay (based on provided context).
DownlinkTiming_DELAY DownlinkTiming = 1
// Send at given GPS epoch value.
DownlinkTiming_GPS_EPOCH DownlinkTiming = 2
)
var DownlinkTiming_name = map[int32]string{
0: "IMMEDIATELY",
1: "DELAY",
2: "GPS_EPOCH",
}
var DownlinkTiming_value = map[string]int32{
"IMMEDIATELY": 0,
"DELAY": 1,
"GPS_EPOCH": 2,
}
func (x DownlinkTiming) String() string {
return proto.EnumName(DownlinkTiming_name, int32(x))
}
func (DownlinkTiming) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{0}
}
type FineTimestampType int32
const (
// No fine-timestamp available.
FineTimestampType_NONE FineTimestampType = 0
// Encrypted fine-timestamp.
FineTimestampType_ENCRYPTED FineTimestampType = 1
// Plain fine-timestamp.
FineTimestampType_PLAIN FineTimestampType = 2
)
var FineTimestampType_name = map[int32]string{
0: "NONE",
1: "ENCRYPTED",
2: "PLAIN",
}
var FineTimestampType_value = map[string]int32{
"NONE": 0,
"ENCRYPTED": 1,
"PLAIN": 2,
}
func (x FineTimestampType) String() string {
return proto.EnumName(FineTimestampType_name, int32(x))
}
func (FineTimestampType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{1}
}
type CRCStatus int32
const (
// No CRC.
CRCStatus_NO_CRC CRCStatus = 0
// Bad CRC.
CRCStatus_BAD_CRC CRCStatus = 1
// CRC OK.
CRCStatus_CRC_OK CRCStatus = 2
)
var CRCStatus_name = map[int32]string{
0: "NO_CRC",
1: "BAD_CRC",
2: "CRC_OK",
}
var CRCStatus_value = map[string]int32{
"NO_CRC": 0,
"BAD_CRC": 1,
"CRC_OK": 2,
}
func (x CRCStatus) String() string {
return proto.EnumName(CRCStatus_name, int32(x))
}
func (CRCStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{2}
}
type UplinkTXInfo struct {
// Frequency (Hz).
Frequency uint32 `protobuf:"varint,1,opt,name=frequency,proto3" json:"frequency,omitempty"`
// Modulation.
Modulation common.Modulation `protobuf:"varint,2,opt,name=modulation,proto3,enum=common.Modulation" json:"modulation,omitempty"`
// Types that are valid to be assigned to ModulationInfo:
// *UplinkTXInfo_LoraModulationInfo
// *UplinkTXInfo_FskModulationInfo
ModulationInfo isUplinkTXInfo_ModulationInfo `protobuf_oneof:"modulation_info"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UplinkTXInfo) Reset() { *m = UplinkTXInfo{} }
func (m *UplinkTXInfo) String() string { return proto.CompactTextString(m) }
func (*UplinkTXInfo) ProtoMessage() {}
func (*UplinkTXInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{0}
}
func (m *UplinkTXInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UplinkTXInfo.Unmarshal(m, b)
}
func (m *UplinkTXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UplinkTXInfo.Marshal(b, m, deterministic)
}
func (m *UplinkTXInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_UplinkTXInfo.Merge(m, src)
}
func (m *UplinkTXInfo) XXX_Size() int {
return xxx_messageInfo_UplinkTXInfo.Size(m)
}
func (m *UplinkTXInfo) XXX_DiscardUnknown() {
xxx_messageInfo_UplinkTXInfo.DiscardUnknown(m)
}
var xxx_messageInfo_UplinkTXInfo proto.InternalMessageInfo
func (m *UplinkTXInfo) GetFrequency() uint32 {
if m != nil {
return m.Frequency
}
return 0
}
func (m *UplinkTXInfo) GetModulation() common.Modulation {
if m != nil {
return m.Modulation
}
return common.Modulation_LORA
}
type isUplinkTXInfo_ModulationInfo interface {
isUplinkTXInfo_ModulationInfo()
}
type UplinkTXInfo_LoraModulationInfo struct {
LoraModulationInfo *LoRaModulationInfo `protobuf:"bytes,3,opt,name=lora_modulation_info,json=loRaModulationInfo,proto3,oneof"`
}
type UplinkTXInfo_FskModulationInfo struct {
FskModulationInfo *FSKModulationInfo `protobuf:"bytes,4,opt,name=fsk_modulation_info,json=fskModulationInfo,proto3,oneof"`
}
func (*UplinkTXInfo_LoraModulationInfo) isUplinkTXInfo_ModulationInfo() {}
func (*UplinkTXInfo_FskModulationInfo) isUplinkTXInfo_ModulationInfo() {}
func (m *UplinkTXInfo) GetModulationInfo() isUplinkTXInfo_ModulationInfo {
if m != nil {
return m.ModulationInfo
}
return nil
}
func (m *UplinkTXInfo) GetLoraModulationInfo() *LoRaModulationInfo {
if x, ok := m.GetModulationInfo().(*UplinkTXInfo_LoraModulationInfo); ok {
return x.LoraModulationInfo
}
return nil
}
func (m *UplinkTXInfo) GetFskModulationInfo() *FSKModulationInfo {
if x, ok := m.GetModulationInfo().(*UplinkTXInfo_FskModulationInfo); ok {
return x.FskModulationInfo
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*UplinkTXInfo) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*UplinkTXInfo_LoraModulationInfo)(nil),
(*UplinkTXInfo_FskModulationInfo)(nil),
}
}
type LoRaModulationInfo struct {
// Bandwidth.
Bandwidth uint32 `protobuf:"varint,1,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`
// Speading-factor.
SpreadingFactor uint32 `protobuf:"varint,2,opt,name=spreading_factor,json=spreadingFactor,proto3" json:"spreading_factor,omitempty"`
// Code-rate.
CodeRate string `protobuf:"bytes,3,opt,name=code_rate,json=codeRate,proto3" json:"code_rate,omitempty"`
// Polarization inversion.
PolarizationInversion bool `protobuf:"varint,4,opt,name=polarization_inversion,json=polarizationInversion,proto3" json:"polarization_inversion,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoRaModulationInfo) Reset() { *m = LoRaModulationInfo{} }
func (m *LoRaModulationInfo) String() string { return proto.CompactTextString(m) }
func (*LoRaModulationInfo) ProtoMessage() {}
func (*LoRaModulationInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{1}
}
func (m *LoRaModulationInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoRaModulationInfo.Unmarshal(m, b)
}
func (m *LoRaModulationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoRaModulationInfo.Marshal(b, m, deterministic)
}
func (m *LoRaModulationInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoRaModulationInfo.Merge(m, src)
}
func (m *LoRaModulationInfo) XXX_Size() int {
return xxx_messageInfo_LoRaModulationInfo.Size(m)
}
func (m *LoRaModulationInfo) XXX_DiscardUnknown() {
xxx_messageInfo_LoRaModulationInfo.DiscardUnknown(m)
}
var xxx_messageInfo_LoRaModulationInfo proto.InternalMessageInfo
func (m *LoRaModulationInfo) GetBandwidth() uint32 {
if m != nil {
return m.Bandwidth
}
return 0
}
func (m *LoRaModulationInfo) GetSpreadingFactor() uint32 {
if m != nil {
return m.SpreadingFactor
}
return 0
}
func (m *LoRaModulationInfo) GetCodeRate() string {
if m != nil {
return m.CodeRate
}
return ""
}
func (m *LoRaModulationInfo) GetPolarizationInversion() bool {
if m != nil {
return m.PolarizationInversion
}
return false
}
type FSKModulationInfo struct {
// Frequency deviation.
FrequencyDeviation uint32 `protobuf:"varint,1,opt,name=frequency_deviation,json=frequencyDeviation,proto3" json:"frequency_deviation,omitempty"`
// FSK datarate (bits / sec).
Datarate uint32 `protobuf:"varint,2,opt,name=datarate,proto3" json:"datarate,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FSKModulationInfo) Reset() { *m = FSKModulationInfo{} }
func (m *FSKModulationInfo) String() string { return proto.CompactTextString(m) }
func (*FSKModulationInfo) ProtoMessage() {}
func (*FSKModulationInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{2}
}
func (m *FSKModulationInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FSKModulationInfo.Unmarshal(m, b)
}
func (m *FSKModulationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FSKModulationInfo.Marshal(b, m, deterministic)
}
func (m *FSKModulationInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_FSKModulationInfo.Merge(m, src)
}
func (m *FSKModulationInfo) XXX_Size() int {
return xxx_messageInfo_FSKModulationInfo.Size(m)
}
func (m *FSKModulationInfo) XXX_DiscardUnknown() {
xxx_messageInfo_FSKModulationInfo.DiscardUnknown(m)
}
var xxx_messageInfo_FSKModulationInfo proto.InternalMessageInfo
func (m *FSKModulationInfo) GetFrequencyDeviation() uint32 {
if m != nil {
return m.FrequencyDeviation
}
return 0
}
func (m *FSKModulationInfo) GetDatarate() uint32 {
if m != nil {
return m.Datarate
}
return 0
}
type EncryptedFineTimestamp struct {
// AES key index used for encrypting the fine timestamp.
AesKeyIndex uint32 `protobuf:"varint,1,opt,name=aes_key_index,json=aesKeyIndex,proto3" json:"aes_key_index,omitempty"`
// Encrypted 'main' fine-timestamp (ns precision part of the timestamp).
EncryptedNs []byte `protobuf:"bytes,2,opt,name=encrypted_ns,json=encryptedNS,proto3" json:"encrypted_ns,omitempty"`
// FPGA ID.
FpgaId []byte `protobuf:"bytes,3,opt,name=fpga_id,json=fpgaID,proto3" json:"fpga_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EncryptedFineTimestamp) Reset() { *m = EncryptedFineTimestamp{} }
func (m *EncryptedFineTimestamp) String() string { return proto.CompactTextString(m) }
func (*EncryptedFineTimestamp) ProtoMessage() {}
func (*EncryptedFineTimestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{3}
}
func (m *EncryptedFineTimestamp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptedFineTimestamp.Unmarshal(m, b)
}
func (m *EncryptedFineTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptedFineTimestamp.Marshal(b, m, deterministic)
}
func (m *EncryptedFineTimestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptedFineTimestamp.Merge(m, src)
}
func (m *EncryptedFineTimestamp) XXX_Size() int {
return xxx_messageInfo_EncryptedFineTimestamp.Size(m)
}
func (m *EncryptedFineTimestamp) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptedFineTimestamp.DiscardUnknown(m)
}
var xxx_messageInfo_EncryptedFineTimestamp proto.InternalMessageInfo
func (m *EncryptedFineTimestamp) GetAesKeyIndex() uint32 {
if m != nil {
return m.AesKeyIndex
}
return 0
}
func (m *EncryptedFineTimestamp) GetEncryptedNs() []byte {
if m != nil {
return m.EncryptedNs
}
return nil
}
func (m *EncryptedFineTimestamp) GetFpgaId() []byte {
if m != nil {
return m.FpgaId
}
return nil
}
type PlainFineTimestamp struct {
// Full timestamp.
Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PlainFineTimestamp) Reset() { *m = PlainFineTimestamp{} }
func (m *PlainFineTimestamp) String() string { return proto.CompactTextString(m) }
func (*PlainFineTimestamp) ProtoMessage() {}
func (*PlainFineTimestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{4}
}
func (m *PlainFineTimestamp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PlainFineTimestamp.Unmarshal(m, b)
}
func (m *PlainFineTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PlainFineTimestamp.Marshal(b, m, deterministic)
}
func (m *PlainFineTimestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_PlainFineTimestamp.Merge(m, src)
}
func (m *PlainFineTimestamp) XXX_Size() int {
return xxx_messageInfo_PlainFineTimestamp.Size(m)
}
func (m *PlainFineTimestamp) XXX_DiscardUnknown() {
xxx_messageInfo_PlainFineTimestamp.DiscardUnknown(m)
}
var xxx_messageInfo_PlainFineTimestamp proto.InternalMessageInfo
func (m *PlainFineTimestamp) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
return nil
}
type GatewayStats struct {
// Gateway ID.
GatewayId []byte `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayID,proto3" json:"gateway_id,omitempty"`
// Gateway IP.
Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"`
// Gateway time.
Time *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
// Gateway location.
Location *common.Location `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
// Gateway configuration version (this maps to the config_version sent
// by LoRa Server to the gateway).
ConfigVersion string `protobuf:"bytes,4,opt,name=config_version,json=configVersion,proto3" json:"config_version,omitempty"`
// Number of radio packets received.
RxPacketsReceived uint32 `protobuf:"varint,5,opt,name=rx_packets_received,json=rxPacketsReceived,proto3" json:"rx_packets_received,omitempty"`
// Number of radio packets received with valid PHY CRC.
RxPacketsReceivedOk uint32 `protobuf:"varint,6,opt,name=rx_packets_received_ok,json=rxPacketsReceivedOK,proto3" json:"rx_packets_received_ok,omitempty"`
// Number of downlink packets received for transmission.
TxPacketsReceived uint32 `protobuf:"varint,7,opt,name=tx_packets_received,json=txPacketsReceived,proto3" json:"tx_packets_received,omitempty"`
// Number of downlink packets emitted.
TxPacketsEmitted uint32 `protobuf:"varint,8,opt,name=tx_packets_emitted,json=txPacketsEmitted,proto3" json:"tx_packets_emitted,omitempty"`
// Additional gateway meta-data.
MetaData map[string]string `protobuf:"bytes,10,rep,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Stats ID (UUID).
// Unique identifier for the gateway stats.
StatsId []byte `protobuf:"bytes,11,opt,name=stats_id,json=statsID,proto3" json:"stats_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayStats) Reset() { *m = GatewayStats{} }
func (m *GatewayStats) String() string { return proto.CompactTextString(m) }
func (*GatewayStats) ProtoMessage() {}
func (*GatewayStats) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{5}
}
func (m *GatewayStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayStats.Unmarshal(m, b)
}
func (m *GatewayStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayStats.Marshal(b, m, deterministic)
}
func (m *GatewayStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayStats.Merge(m, src)
}
func (m *GatewayStats) XXX_Size() int {
return xxx_messageInfo_GatewayStats.Size(m)
}
func (m *GatewayStats) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayStats.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayStats proto.InternalMessageInfo
func (m *GatewayStats) GetGatewayId() []byte {
if m != nil {
return m.GatewayId
}
return nil
}
func (m *GatewayStats) GetIp() string {
if m != nil {
return m.Ip
}
return ""
}
func (m *GatewayStats) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
return nil
}
func (m *GatewayStats) GetLocation() *common.Location {
if m != nil {
return m.Location
}
return nil
}
func (m *GatewayStats) GetConfigVersion() string {
if m != nil {
return m.ConfigVersion
}
return ""
}
func (m *GatewayStats) GetRxPacketsReceived() uint32 {
if m != nil {
return m.RxPacketsReceived
}
return 0
}
func (m *GatewayStats) GetRxPacketsReceivedOk() uint32 {
if m != nil {
return m.RxPacketsReceivedOk
}
return 0
}
func (m *GatewayStats) GetTxPacketsReceived() uint32 {
if m != nil {
return m.TxPacketsReceived
}
return 0
}
func (m *GatewayStats) GetTxPacketsEmitted() uint32 {
if m != nil {
return m.TxPacketsEmitted
}
return 0
}
func (m *GatewayStats) GetMetaData() map[string]string {
if m != nil {
return m.MetaData
}
return nil
}
func (m *GatewayStats) GetStatsId() []byte {
if m != nil {
return m.StatsId
}
return nil
}
type UplinkRXInfo struct {
// Gateway ID.
GatewayId []byte `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayID,proto3" json:"gateway_id,omitempty"`
// RX time (only set when the gateway has a GPS module).
Time *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
// RX time since GPS epoch (only set when the gateway has a GPS module).
TimeSinceGpsEpoch *duration.Duration `protobuf:"bytes,3,opt,name=time_since_gps_epoch,json=timeSinceGPSEpoch,proto3" json:"time_since_gps_epoch,omitempty"`
// RSSI.
Rssi int32 `protobuf:"varint,5,opt,name=rssi,proto3" json:"rssi,omitempty"`
// LoRa SNR.
LoraSnr float64 `protobuf:"fixed64,6,opt,name=lora_snr,json=loRaSNR,proto3" json:"lora_snr,omitempty"`
// Channel.
Channel uint32 `protobuf:"varint,7,opt,name=channel,proto3" json:"channel,omitempty"`
// RF Chain.
RfChain uint32 `protobuf:"varint,8,opt,name=rf_chain,json=rfChain,proto3" json:"rf_chain,omitempty"`
// Board.
Board uint32 `protobuf:"varint,9,opt,name=board,proto3" json:"board,omitempty"`
// Antenna.
Antenna uint32 `protobuf:"varint,10,opt,name=antenna,proto3" json:"antenna,omitempty"`
// Location.
Location *common.Location `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"`
// Fine-timestamp type.
FineTimestampType FineTimestampType `protobuf:"varint,12,opt,name=fine_timestamp_type,json=fineTimestampType,proto3,enum=gw.FineTimestampType" json:"fine_timestamp_type,omitempty"`
// Fine-timestamp data.
//
// Types that are valid to be assigned to FineTimestamp:
// *UplinkRXInfo_EncryptedFineTimestamp
// *UplinkRXInfo_PlainFineTimestamp
FineTimestamp isUplinkRXInfo_FineTimestamp `protobuf_oneof:"fine_timestamp"`
// Gateway specific context.
Context []byte `protobuf:"bytes,15,opt,name=context,proto3" json:"context,omitempty"`
// Uplink ID (UUID bytes).
// Unique and random ID which can be used to correlate the uplink across multiple logs.
UplinkId []byte `protobuf:"bytes,16,opt,name=uplink_id,json=uplinkID,proto3" json:"uplink_id,omitempty"`
// CRC status.
CrcStatus CRCStatus `protobuf:"varint,17,opt,name=crc_status,json=crcStatus,proto3,enum=gw.CRCStatus" json:"crc_status,omitempty"`
// Frequency offset from the centre frequency
FrequencyOffset int32 `protobuf:"varint,18,opt,name=frequency_offset,json=foff,proto3" json:"frequency_offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UplinkRXInfo) Reset() { *m = UplinkRXInfo{} }
func (m *UplinkRXInfo) String() string { return proto.CompactTextString(m) }
func (*UplinkRXInfo) ProtoMessage() {}
func (*UplinkRXInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{6}
}
func (m *UplinkRXInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UplinkRXInfo.Unmarshal(m, b)
}
func (m *UplinkRXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UplinkRXInfo.Marshal(b, m, deterministic)
}
func (m *UplinkRXInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_UplinkRXInfo.Merge(m, src)
}
func (m *UplinkRXInfo) XXX_Size() int {
return xxx_messageInfo_UplinkRXInfo.Size(m)
}
func (m *UplinkRXInfo) XXX_DiscardUnknown() {
xxx_messageInfo_UplinkRXInfo.DiscardUnknown(m)
}
var xxx_messageInfo_UplinkRXInfo proto.InternalMessageInfo
func (m *UplinkRXInfo) GetGatewayId() []byte {
if m != nil {
return m.GatewayId
}
return nil
}
func (m *UplinkRXInfo) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
return nil
}
func (m *UplinkRXInfo) GetTimeSinceGpsEpoch() *duration.Duration {
if m != nil {
return m.TimeSinceGpsEpoch
}
return nil
}
func (m *UplinkRXInfo) GetRssi() int32 {
if m != nil {
return m.Rssi
}
return 0
}
func (m *UplinkRXInfo) GetLoraSnr() float64 {
if m != nil {
return m.LoraSnr
}
return 0
}
func (m *UplinkRXInfo) GetChannel() uint32 {
if m != nil {
return m.Channel
}
return 0
}
func (m *UplinkRXInfo) GetRfChain() uint32 {
if m != nil {
return m.RfChain
}
return 0
}
func (m *UplinkRXInfo) GetBoard() uint32 {
if m != nil {
return m.Board
}
return 0
}
func (m *UplinkRXInfo) GetAntenna() uint32 {
if m != nil {
return m.Antenna
}
return 0
}
func (m *UplinkRXInfo) GetLocation() *common.Location {
if m != nil {
return m.Location
}
return nil
}
func (m *UplinkRXInfo) GetFineTimestampType() FineTimestampType {
if m != nil {
return m.FineTimestampType
}
return FineTimestampType_NONE
}
type isUplinkRXInfo_FineTimestamp interface {
isUplinkRXInfo_FineTimestamp()
}
type UplinkRXInfo_EncryptedFineTimestamp struct {
EncryptedFineTimestamp *EncryptedFineTimestamp `protobuf:"bytes,13,opt,name=encrypted_fine_timestamp,json=encryptedFineTimestamp,proto3,oneof"`
}
type UplinkRXInfo_PlainFineTimestamp struct {
PlainFineTimestamp *PlainFineTimestamp `protobuf:"bytes,14,opt,name=plain_fine_timestamp,json=plainFineTimestamp,proto3,oneof"`
}
func (*UplinkRXInfo_EncryptedFineTimestamp) isUplinkRXInfo_FineTimestamp() {}
func (*UplinkRXInfo_PlainFineTimestamp) isUplinkRXInfo_FineTimestamp() {}
func (m *UplinkRXInfo) GetFineTimestamp() isUplinkRXInfo_FineTimestamp {
if m != nil {
return m.FineTimestamp
}
return nil
}
func (m *UplinkRXInfo) GetEncryptedFineTimestamp() *EncryptedFineTimestamp {
if x, ok := m.GetFineTimestamp().(*UplinkRXInfo_EncryptedFineTimestamp); ok {
return x.EncryptedFineTimestamp
}
return nil
}
func (m *UplinkRXInfo) GetPlainFineTimestamp() *PlainFineTimestamp {
if x, ok := m.GetFineTimestamp().(*UplinkRXInfo_PlainFineTimestamp); ok {
return x.PlainFineTimestamp
}
return nil
}
func (m *UplinkRXInfo) GetContext() []byte {
if m != nil {
return m.Context
}
return nil
}
func (m *UplinkRXInfo) GetUplinkId() []byte {
if m != nil {
return m.UplinkId
}
return nil
}
func (m *UplinkRXInfo) GetCrcStatus() CRCStatus {
if m != nil {
return m.CrcStatus
}
return CRCStatus_NO_CRC
}
func (m *UplinkRXInfo) GetFrequencyOffset() int32 {
if m != nil {
return m.FrequencyOffset
}
return 0
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*UplinkRXInfo) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*UplinkRXInfo_EncryptedFineTimestamp)(nil),
(*UplinkRXInfo_PlainFineTimestamp)(nil),
}
}
type DownlinkTXInfo struct {
// Gateway ID.
GatewayId []byte `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayID,proto3" json:"gateway_id,omitempty"`
// TX frequency (in Hz).
Frequency uint32 `protobuf:"varint,5,opt,name=frequency,proto3" json:"frequency,omitempty"`
// TX power (in dBm).
Power int32 `protobuf:"varint,6,opt,name=power,proto3" json:"power,omitempty"`
// Modulation.
Modulation common.Modulation `protobuf:"varint,7,opt,name=modulation,proto3,enum=common.Modulation" json:"modulation,omitempty"`
// Types that are valid to be assigned to ModulationInfo:
// *DownlinkTXInfo_LoraModulationInfo
// *DownlinkTXInfo_FskModulationInfo
ModulationInfo isDownlinkTXInfo_ModulationInfo `protobuf_oneof:"modulation_info"`
// The board identifier for emitting the frame.
Board uint32 `protobuf:"varint,10,opt,name=board,proto3" json:"board,omitempty"`
// The antenna identifier for emitting the frame.
Antenna uint32 `protobuf:"varint,11,opt,name=antenna,proto3" json:"antenna,omitempty"`
// Timing defines the downlink timing to use.
Timing DownlinkTiming `protobuf:"varint,12,opt,name=timing,proto3,enum=gw.DownlinkTiming" json:"timing,omitempty"`
// Types that are valid to be assigned to TimingInfo:
// *DownlinkTXInfo_ImmediatelyTimingInfo
// *DownlinkTXInfo_DelayTimingInfo
// *DownlinkTXInfo_GpsEpochTimingInfo
TimingInfo isDownlinkTXInfo_TimingInfo `protobuf_oneof:"timing_info"`
// Gateway specific context.
// In case of a Class-A downlink, this contains a copy of the uplink context.
Context []byte `protobuf:"bytes,16,opt,name=context,proto3" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DownlinkTXInfo) Reset() { *m = DownlinkTXInfo{} }
func (m *DownlinkTXInfo) String() string { return proto.CompactTextString(m) }
func (*DownlinkTXInfo) ProtoMessage() {}
func (*DownlinkTXInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_b93a753e2b32e8e7, []int{7}
}
func (m *DownlinkTXInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DownlinkTXInfo.Unmarshal(m, b)
}
func (m *DownlinkTXInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DownlinkTXInfo.Marshal(b, m, deterministic)
}
func (m *DownlinkTXInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_DownlinkTXInfo.Merge(m, src)
}
func (m *DownlinkTXInfo) XXX_Size() int {
return xxx_messageInfo_DownlinkTXInfo.Size(m)
}
func (m *DownlinkTXInfo) XXX_DiscardUnknown() {
xxx_messageInfo_DownlinkTXInfo.DiscardUnknown(m)
}
var xxx_messageInfo_DownlinkTXInfo proto.InternalMessageInfo
func (m *DownlinkTXInfo) GetGatewayId() []byte {
if m != nil {
return m.GatewayId
}
return nil
}
func (m *DownlinkTXInfo) GetFrequency() uint32 {
if m != nil {
return m.Frequency
}
return 0
}
func (m *DownlinkTXInfo) GetPower() int32 {
if m != nil {
return m.Power
}
return 0
}
func (m *DownlinkTXInfo) GetModulation() common.Modulation {
if m != nil {
return m.Modulation
}
return common.Modulation_LORA
}
type isDownlinkTXInfo_ModulationInfo interface {
isDownlinkTXInfo_ModulationInfo()
}
type DownlinkTXInfo_LoraModulationInfo struct {
LoraModulationInfo *LoRaModulationInfo `protobuf:"bytes,8,opt,name=lora_modulation_info,json=loRaModulationInfo,proto3,oneof"`
}
type DownlinkTXInfo_FskModulationInfo struct {
FskModulationInfo *FSKModulationInfo `protobuf:"bytes,9,opt,name=fsk_modulation_info,json=fskModulationInfo,proto3,oneof"`
}
func (*DownlinkTXInfo_LoraModulationInfo) isDownlinkTXInfo_ModulationInfo() {}
func (*DownlinkTXInfo_FskModulationInfo) isDownlinkTXInfo_ModulationInfo() {}
func (m *DownlinkTXInfo) GetModulationInfo() isDownlinkTXInfo_ModulationInfo {
if m != nil {
return m.ModulationInfo
}
return nil
}
func (m *DownlinkTXInfo) GetLoraModulationInfo() *LoRaModulationInfo {
if x, ok := m.GetModulationInfo().(*DownlinkTXInfo_LoraModulationInfo); ok {
return x.LoraModulationInfo
}
return nil
}
func (m *DownlinkTXInfo) GetFskModulationInfo() *FSKModulationInfo {
if x, ok := m.GetModulationInfo().(*DownlinkTXInfo_FskModulationInfo); ok {
return x.FskModulationInfo
}
return nil
}
func (m *DownlinkTXInfo) GetBoard() uint32 {
if m != nil {
return m.Board
}
return 0
}
func (m *DownlinkTXInfo) GetAntenna() uint32 {
if m != nil {
return m.Antenna
}
return 0
}
func (m *DownlinkTXInfo) GetTiming() DownlinkTiming {
if m != nil {
return m.Timing
}
return DownlinkTiming_IMMEDIATELY
}
type isDownlinkTXInfo_TimingInfo interface {
isDownlinkTXInfo_TimingInfo()
}
type DownlinkTXInfo_ImmediatelyTimingInfo struct {
ImmediatelyTimingInfo *ImmediatelyTimingInfo `protobuf:"bytes,13,opt,name=immediately_timing_info,json=immediatelyTimingInfo,proto3,oneof"`
}
type DownlinkTXInfo_DelayTimingInfo struct {
DelayTimingInfo *DelayTimingInfo `protobuf:"bytes,14,opt,name=delay_timing_info,json=delayTimingInfo,proto3,oneof"`
}
type DownlinkTXInfo_GpsEpochTimingInfo struct {
GpsEpochTimingInfo *GPSEpochTimingInfo `protobuf:"bytes,15,opt,name=gps_epoch_timing_info,json=gpsEpochTimingInfo,proto3,oneof"`
}
func (*DownlinkTXInfo_ImmediatelyTimingInfo) isDownlinkTXInfo_TimingInfo() {}
func (*DownlinkTXInfo_DelayTimingInfo) isDownlinkTXInfo_TimingInfo() {}
func (*DownlinkTXInfo_GpsEpochTimingInfo) isDownlinkTXInfo_TimingInfo() {}
func (m *DownlinkTXInfo) GetTimingInfo() isDownlinkTXInfo_TimingInfo {
if m != nil {
return m.TimingInfo
}
return nil
}
func (m *DownlinkTXInfo) GetImmediatelyTimingInfo() *ImmediatelyTimingInfo {
if x, ok := m.GetTimingInfo().(*DownlinkTXInfo_ImmediatelyTimingInfo); ok {
return x.ImmediatelyTimingInfo
}
return nil
}
func (m *DownlinkTXInfo) GetDelayTimingInfo() *DelayTimingInfo {
if x, ok := m.GetTimingInfo().(*DownlinkTXInfo_DelayTimingInfo); ok {
return x.DelayTimingInfo
}
return nil
}
func (m *DownlinkTXInfo) GetGpsEpochTimingInfo() *GPSEpochTimingInfo {
if x, ok := m.GetTimingInfo().(*DownlinkTXInfo_GpsEpochTimingInfo); ok {
return x.GpsEpochTimingInfo
}
return nil
}
func (m *DownlinkTXInfo) GetContext() []byte {
if m != nil {
return m.Context
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*DownlinkTXInfo) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*DownlinkTXInfo_LoraModulationInfo)(nil),
(*DownlinkTXInfo_FskModulationInfo)(nil),
(*DownlinkTXInfo_ImmediatelyTimingInfo)(nil),
(*DownlinkTXInfo_DelayTimingInfo)(nil),
(*DownlinkTXInfo_GpsEpochTimingInfo)(nil),
}
}
type ImmediatelyTimingInfo struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImmediatelyTimingInfo) Reset() { *m = ImmediatelyTimingInfo{} }
func (m *ImmediatelyTimingInfo) String() string { return proto.CompactTextString(m) }
func (*ImmediatelyTimingInfo) ProtoMessage() {}