-
Notifications
You must be signed in to change notification settings - Fork 0
/
routing.pb.go
5129 lines (4931 loc) · 125 KB
/
routing.pb.go
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-gogo. DO NOT EDIT.
// source: packetbroker/api/v2beta1/routing.proto
package packetbroker
import (
encoding_binary "encoding/binary"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
io "io"
math "math"
math_bits "math/bits"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type DevAddrPrefix struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// Significant bits of value.
Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
}
func (m *DevAddrPrefix) Reset() { *m = DevAddrPrefix{} }
func (m *DevAddrPrefix) String() string { return proto.CompactTextString(m) }
func (*DevAddrPrefix) ProtoMessage() {}
func (*DevAddrPrefix) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{0}
}
func (m *DevAddrPrefix) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DevAddrPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DevAddrPrefix.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DevAddrPrefix) XXX_Merge(src proto.Message) {
xxx_messageInfo_DevAddrPrefix.Merge(m, src)
}
func (m *DevAddrPrefix) XXX_Size() int {
return m.Size()
}
func (m *DevAddrPrefix) XXX_DiscardUnknown() {
xxx_messageInfo_DevAddrPrefix.DiscardUnknown(m)
}
var xxx_messageInfo_DevAddrPrefix proto.InternalMessageInfo
func (m *DevAddrPrefix) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
func (m *DevAddrPrefix) GetLength() uint32 {
if m != nil {
return m.Length
}
return 0
}
type Tenant struct {
// LoRa Alliance NetID of the Member.
NetId uint32 `protobuf:"varint,1,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
// ID assigned by the Member.
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// DevAddr prefixes of the tenant.
DevAddrPrefixes []*DevAddrPrefix `protobuf:"bytes,3,rep,name=dev_addr_prefixes,json=devAddrPrefixes,proto3" json:"dev_addr_prefixes,omitempty"`
}
func (m *Tenant) Reset() { *m = Tenant{} }
func (m *Tenant) String() string { return proto.CompactTextString(m) }
func (*Tenant) ProtoMessage() {}
func (*Tenant) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{1}
}
func (m *Tenant) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Tenant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Tenant.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Tenant) XXX_Merge(src proto.Message) {
xxx_messageInfo_Tenant.Merge(m, src)
}
func (m *Tenant) XXX_Size() int {
return m.Size()
}
func (m *Tenant) XXX_DiscardUnknown() {
xxx_messageInfo_Tenant.DiscardUnknown(m)
}
var xxx_messageInfo_Tenant proto.InternalMessageInfo
func (m *Tenant) GetNetId() uint32 {
if m != nil {
return m.NetId
}
return 0
}
func (m *Tenant) GetTenantId() string {
if m != nil {
return m.TenantId
}
return ""
}
func (m *Tenant) GetDevAddrPrefixes() []*DevAddrPrefix {
if m != nil {
return m.DevAddrPrefixes
}
return nil
}
// Routing policy between a Forwarder and a Home Network.
type RoutingPolicy struct {
// LoRa Alliance NetID of the Forwarder Member.
ForwarderNetId uint32 `protobuf:"varint,1,opt,name=forwarder_net_id,json=forwarderNetId,proto3" json:"forwarder_net_id,omitempty"`
// Tenant ID managed by the Forwarder Member.
ForwarderTenantId string `protobuf:"bytes,2,opt,name=forwarder_tenant_id,json=forwarderTenantId,proto3" json:"forwarder_tenant_id,omitempty"`
// LoRa Alliance NetID of the Home Network Member.
HomeNetworkNetId uint32 `protobuf:"varint,3,opt,name=home_network_net_id,json=homeNetworkNetId,proto3" json:"home_network_net_id,omitempty"`
// Tenant ID managed by the Home Network Member.
HomeNetworkTenantId string `protobuf:"bytes,4,opt,name=home_network_tenant_id,json=homeNetworkTenantId,proto3" json:"home_network_tenant_id,omitempty"`
// Uplink policy.
Uplink *RoutingPolicy_Uplink `protobuf:"bytes,5,opt,name=uplink,proto3" json:"uplink,omitempty"`
// Downlink policy.
Downlink *RoutingPolicy_Downlink `protobuf:"bytes,6,opt,name=downlink,proto3" json:"downlink,omitempty"`
}
func (m *RoutingPolicy) Reset() { *m = RoutingPolicy{} }
func (m *RoutingPolicy) String() string { return proto.CompactTextString(m) }
func (*RoutingPolicy) ProtoMessage() {}
func (*RoutingPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{2}
}
func (m *RoutingPolicy) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingPolicy.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingPolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingPolicy.Merge(m, src)
}
func (m *RoutingPolicy) XXX_Size() int {
return m.Size()
}
func (m *RoutingPolicy) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingPolicy.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingPolicy proto.InternalMessageInfo
func (m *RoutingPolicy) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *RoutingPolicy) GetForwarderTenantId() string {
if m != nil {
return m.ForwarderTenantId
}
return ""
}
func (m *RoutingPolicy) GetHomeNetworkNetId() uint32 {
if m != nil {
return m.HomeNetworkNetId
}
return 0
}
func (m *RoutingPolicy) GetHomeNetworkTenantId() string {
if m != nil {
return m.HomeNetworkTenantId
}
return ""
}
func (m *RoutingPolicy) GetUplink() *RoutingPolicy_Uplink {
if m != nil {
return m.Uplink
}
return nil
}
func (m *RoutingPolicy) GetDownlink() *RoutingPolicy_Downlink {
if m != nil {
return m.Downlink
}
return nil
}
type RoutingPolicy_Uplink struct {
// Forward join-request messages.
JoinRequest bool `protobuf:"varint,1,opt,name=join_request,json=joinRequest,proto3" json:"join_request,omitempty"`
// Forward uplink messages with FPort of 0.
MacData bool `protobuf:"varint,2,opt,name=mac_data,json=macData,proto3" json:"mac_data,omitempty"`
// Forward uplink messages with FPort between 1 and 255.
ApplicationData bool `protobuf:"varint,3,opt,name=application_data,json=applicationData,proto3" json:"application_data,omitempty"`
// Forward RSSI and SNR.
SignalQuality bool `protobuf:"varint,4,opt,name=signal_quality,json=signalQuality,proto3" json:"signal_quality,omitempty"`
// Forward gateway location, RSSI, SNR and fine timestamp.
Localization bool `protobuf:"varint,5,opt,name=localization,proto3" json:"localization,omitempty"`
// Forward uplink token to enable downlink.
AllowDownlink bool `protobuf:"varint,6,opt,name=allow_downlink,json=allowDownlink,proto3" json:"allow_downlink,omitempty"`
}
func (m *RoutingPolicy_Uplink) Reset() { *m = RoutingPolicy_Uplink{} }
func (m *RoutingPolicy_Uplink) String() string { return proto.CompactTextString(m) }
func (*RoutingPolicy_Uplink) ProtoMessage() {}
func (*RoutingPolicy_Uplink) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{2, 0}
}
func (m *RoutingPolicy_Uplink) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingPolicy_Uplink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingPolicy_Uplink.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingPolicy_Uplink) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingPolicy_Uplink.Merge(m, src)
}
func (m *RoutingPolicy_Uplink) XXX_Size() int {
return m.Size()
}
func (m *RoutingPolicy_Uplink) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingPolicy_Uplink.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingPolicy_Uplink proto.InternalMessageInfo
func (m *RoutingPolicy_Uplink) GetJoinRequest() bool {
if m != nil {
return m.JoinRequest
}
return false
}
func (m *RoutingPolicy_Uplink) GetMacData() bool {
if m != nil {
return m.MacData
}
return false
}
func (m *RoutingPolicy_Uplink) GetApplicationData() bool {
if m != nil {
return m.ApplicationData
}
return false
}
func (m *RoutingPolicy_Uplink) GetSignalQuality() bool {
if m != nil {
return m.SignalQuality
}
return false
}
func (m *RoutingPolicy_Uplink) GetLocalization() bool {
if m != nil {
return m.Localization
}
return false
}
func (m *RoutingPolicy_Uplink) GetAllowDownlink() bool {
if m != nil {
return m.AllowDownlink
}
return false
}
type RoutingPolicy_Downlink struct {
// Allow join-accept messages.
JoinAccept bool `protobuf:"varint,1,opt,name=join_accept,json=joinAccept,proto3" json:"join_accept,omitempty"`
// Allow downlink messages with FPort of 0.
MacData bool `protobuf:"varint,2,opt,name=mac_data,json=macData,proto3" json:"mac_data,omitempty"`
// Allow downlink messages with FPort between 1 and 255.
ApplicationData bool `protobuf:"varint,3,opt,name=application_data,json=applicationData,proto3" json:"application_data,omitempty"`
}
func (m *RoutingPolicy_Downlink) Reset() { *m = RoutingPolicy_Downlink{} }
func (m *RoutingPolicy_Downlink) String() string { return proto.CompactTextString(m) }
func (*RoutingPolicy_Downlink) ProtoMessage() {}
func (*RoutingPolicy_Downlink) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{2, 1}
}
func (m *RoutingPolicy_Downlink) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingPolicy_Downlink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingPolicy_Downlink.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingPolicy_Downlink) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingPolicy_Downlink.Merge(m, src)
}
func (m *RoutingPolicy_Downlink) XXX_Size() int {
return m.Size()
}
func (m *RoutingPolicy_Downlink) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingPolicy_Downlink.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingPolicy_Downlink proto.InternalMessageInfo
func (m *RoutingPolicy_Downlink) GetJoinAccept() bool {
if m != nil {
return m.JoinAccept
}
return false
}
func (m *RoutingPolicy_Downlink) GetMacData() bool {
if m != nil {
return m.MacData
}
return false
}
func (m *RoutingPolicy_Downlink) GetApplicationData() bool {
if m != nil {
return m.ApplicationData
}
return false
}
type ForwarderIdentifier struct {
// LoRa Alliance NetID of the Forwarder Member.
NetId uint32 `protobuf:"varint,1,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
// Forwarder ID. If empty, consider NetID only.
// Forwarder IDs are assigned by the Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
}
func (m *ForwarderIdentifier) Reset() { *m = ForwarderIdentifier{} }
func (m *ForwarderIdentifier) String() string { return proto.CompactTextString(m) }
func (*ForwarderIdentifier) ProtoMessage() {}
func (*ForwarderIdentifier) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{3}
}
func (m *ForwarderIdentifier) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ForwarderIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ForwarderIdentifier.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ForwarderIdentifier) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForwarderIdentifier.Merge(m, src)
}
func (m *ForwarderIdentifier) XXX_Size() int {
return m.Size()
}
func (m *ForwarderIdentifier) XXX_DiscardUnknown() {
xxx_messageInfo_ForwarderIdentifier.DiscardUnknown(m)
}
var xxx_messageInfo_ForwarderIdentifier proto.InternalMessageInfo
func (m *ForwarderIdentifier) GetNetId() uint32 {
if m != nil {
return m.NetId
}
return 0
}
func (m *ForwarderIdentifier) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
type ForwarderIdentifiers struct {
List []*ForwarderIdentifier `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
}
func (m *ForwarderIdentifiers) Reset() { *m = ForwarderIdentifiers{} }
func (m *ForwarderIdentifiers) String() string { return proto.CompactTextString(m) }
func (*ForwarderIdentifiers) ProtoMessage() {}
func (*ForwarderIdentifiers) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{4}
}
func (m *ForwarderIdentifiers) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ForwarderIdentifiers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ForwarderIdentifiers.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ForwarderIdentifiers) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForwarderIdentifiers.Merge(m, src)
}
func (m *ForwarderIdentifiers) XXX_Size() int {
return m.Size()
}
func (m *ForwarderIdentifiers) XXX_DiscardUnknown() {
xxx_messageInfo_ForwarderIdentifiers.DiscardUnknown(m)
}
var xxx_messageInfo_ForwarderIdentifiers proto.InternalMessageInfo
func (m *ForwarderIdentifiers) GetList() []*ForwarderIdentifier {
if m != nil {
return m.List
}
return nil
}
// Filter for Home Networks to subscribe to forwarded messages.
type RoutingFilter struct {
// Types that are valid to be assigned to Forwarders:
// *RoutingFilter_ForwarderWhitelist
// *RoutingFilter_ForwarderBlacklist
Forwarders isRoutingFilter_Forwarders `protobuf_oneof:"forwarders"`
// Types that are valid to be assigned to Message:
// *RoutingFilter_JoinRequest_
// *RoutingFilter_Mac
Message isRoutingFilter_Message `protobuf_oneof:"message"`
// Pass gateway metadata. If not set, pass gateway metadata if available.
GatewayMetadata *types.BoolValue `protobuf:"bytes,5,opt,name=gateway_metadata,json=gatewayMetadata,proto3" json:"gateway_metadata,omitempty"`
}
func (m *RoutingFilter) Reset() { *m = RoutingFilter{} }
func (m *RoutingFilter) String() string { return proto.CompactTextString(m) }
func (*RoutingFilter) ProtoMessage() {}
func (*RoutingFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{5}
}
func (m *RoutingFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingFilter.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingFilter.Merge(m, src)
}
func (m *RoutingFilter) XXX_Size() int {
return m.Size()
}
func (m *RoutingFilter) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingFilter.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingFilter proto.InternalMessageInfo
type isRoutingFilter_Forwarders interface {
isRoutingFilter_Forwarders()
MarshalTo([]byte) (int, error)
Size() int
}
type isRoutingFilter_Message interface {
isRoutingFilter_Message()
MarshalTo([]byte) (int, error)
Size() int
}
type RoutingFilter_ForwarderWhitelist struct {
ForwarderWhitelist *ForwarderIdentifiers `protobuf:"bytes,1,opt,name=forwarder_whitelist,json=forwarderWhitelist,proto3,oneof" json:"forwarder_whitelist,omitempty"`
}
type RoutingFilter_ForwarderBlacklist struct {
ForwarderBlacklist *ForwarderIdentifiers `protobuf:"bytes,2,opt,name=forwarder_blacklist,json=forwarderBlacklist,proto3,oneof" json:"forwarder_blacklist,omitempty"`
}
type RoutingFilter_JoinRequest_ struct {
JoinRequest *RoutingFilter_JoinRequest `protobuf:"bytes,3,opt,name=join_request,json=joinRequest,proto3,oneof" json:"join_request,omitempty"`
}
type RoutingFilter_Mac struct {
Mac *RoutingFilter_MACPayload `protobuf:"bytes,4,opt,name=mac,proto3,oneof" json:"mac,omitempty"`
}
func (*RoutingFilter_ForwarderWhitelist) isRoutingFilter_Forwarders() {}
func (*RoutingFilter_ForwarderBlacklist) isRoutingFilter_Forwarders() {}
func (*RoutingFilter_JoinRequest_) isRoutingFilter_Message() {}
func (*RoutingFilter_Mac) isRoutingFilter_Message() {}
func (m *RoutingFilter) GetForwarders() isRoutingFilter_Forwarders {
if m != nil {
return m.Forwarders
}
return nil
}
func (m *RoutingFilter) GetMessage() isRoutingFilter_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *RoutingFilter) GetForwarderWhitelist() *ForwarderIdentifiers {
if x, ok := m.GetForwarders().(*RoutingFilter_ForwarderWhitelist); ok {
return x.ForwarderWhitelist
}
return nil
}
func (m *RoutingFilter) GetForwarderBlacklist() *ForwarderIdentifiers {
if x, ok := m.GetForwarders().(*RoutingFilter_ForwarderBlacklist); ok {
return x.ForwarderBlacklist
}
return nil
}
func (m *RoutingFilter) GetJoinRequest() *RoutingFilter_JoinRequest {
if x, ok := m.GetMessage().(*RoutingFilter_JoinRequest_); ok {
return x.JoinRequest
}
return nil
}
func (m *RoutingFilter) GetMac() *RoutingFilter_MACPayload {
if x, ok := m.GetMessage().(*RoutingFilter_Mac); ok {
return x.Mac
}
return nil
}
func (m *RoutingFilter) GetGatewayMetadata() *types.BoolValue {
if m != nil {
return m.GatewayMetadata
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*RoutingFilter) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RoutingFilter_ForwarderWhitelist)(nil),
(*RoutingFilter_ForwarderBlacklist)(nil),
(*RoutingFilter_JoinRequest_)(nil),
(*RoutingFilter_Mac)(nil),
}
}
type RoutingFilter_JoinRequest struct {
// Pass join-request EUIs by prefix. If empty, allow all join-requests.
EuiPrefixes []*RoutingFilter_JoinRequest_EUIPrefixes `protobuf:"bytes,1,rep,name=eui_prefixes,json=euiPrefixes,proto3" json:"eui_prefixes,omitempty"`
}
func (m *RoutingFilter_JoinRequest) Reset() { *m = RoutingFilter_JoinRequest{} }
func (m *RoutingFilter_JoinRequest) String() string { return proto.CompactTextString(m) }
func (*RoutingFilter_JoinRequest) ProtoMessage() {}
func (*RoutingFilter_JoinRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{5, 0}
}
func (m *RoutingFilter_JoinRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingFilter_JoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingFilter_JoinRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingFilter_JoinRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingFilter_JoinRequest.Merge(m, src)
}
func (m *RoutingFilter_JoinRequest) XXX_Size() int {
return m.Size()
}
func (m *RoutingFilter_JoinRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingFilter_JoinRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingFilter_JoinRequest proto.InternalMessageInfo
func (m *RoutingFilter_JoinRequest) GetEuiPrefixes() []*RoutingFilter_JoinRequest_EUIPrefixes {
if m != nil {
return m.EuiPrefixes
}
return nil
}
type RoutingFilter_JoinRequest_EUIPrefixes struct {
JoinEui uint64 `protobuf:"fixed64,1,opt,name=join_eui,json=joinEui,proto3" json:"join_eui,omitempty"`
// Significant bits of join_eui.
JoinEuiLength uint32 `protobuf:"varint,2,opt,name=join_eui_length,json=joinEuiLength,proto3" json:"join_eui_length,omitempty"`
DevEui uint64 `protobuf:"fixed64,3,opt,name=dev_eui,json=devEui,proto3" json:"dev_eui,omitempty"`
// Significant bits of dev_eui.
DevEuiLength uint32 `protobuf:"varint,4,opt,name=dev_eui_length,json=devEuiLength,proto3" json:"dev_eui_length,omitempty"`
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) Reset() { *m = RoutingFilter_JoinRequest_EUIPrefixes{} }
func (m *RoutingFilter_JoinRequest_EUIPrefixes) String() string { return proto.CompactTextString(m) }
func (*RoutingFilter_JoinRequest_EUIPrefixes) ProtoMessage() {}
func (*RoutingFilter_JoinRequest_EUIPrefixes) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{5, 0, 0}
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingFilter_JoinRequest_EUIPrefixes.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingFilter_JoinRequest_EUIPrefixes.Merge(m, src)
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) XXX_Size() int {
return m.Size()
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingFilter_JoinRequest_EUIPrefixes.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingFilter_JoinRequest_EUIPrefixes proto.InternalMessageInfo
func (m *RoutingFilter_JoinRequest_EUIPrefixes) GetJoinEui() uint64 {
if m != nil {
return m.JoinEui
}
return 0
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) GetJoinEuiLength() uint32 {
if m != nil {
return m.JoinEuiLength
}
return 0
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) GetDevEui() uint64 {
if m != nil {
return m.DevEui
}
return 0
}
func (m *RoutingFilter_JoinRequest_EUIPrefixes) GetDevEuiLength() uint32 {
if m != nil {
return m.DevEuiLength
}
return 0
}
type RoutingFilter_MACPayload struct {
// Pass (un)confirmed uplink data messages.
Confirmed *types.BoolValue `protobuf:"bytes,1,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
// Pass DevAddrs by prefix. If empty, allow all DevAddrs.
DevAddrPrefixes []*DevAddrPrefix `protobuf:"bytes,2,rep,name=dev_addr_prefixes,json=devAddrPrefixes,proto3" json:"dev_addr_prefixes,omitempty"`
// Pass messages with or without FOpts.
FOpts *types.BoolValue `protobuf:"bytes,3,opt,name=f_opts,json=fOpts,proto3" json:"f_opts,omitempty"`
// Pass for FPort ranges. If empty, allow all FPorts.
FPortRanges []*RoutingFilter_MACPayload_FPortRange `protobuf:"bytes,4,rep,name=f_port_ranges,json=fPortRanges,proto3" json:"f_port_ranges,omitempty"`
}
func (m *RoutingFilter_MACPayload) Reset() { *m = RoutingFilter_MACPayload{} }
func (m *RoutingFilter_MACPayload) String() string { return proto.CompactTextString(m) }
func (*RoutingFilter_MACPayload) ProtoMessage() {}
func (*RoutingFilter_MACPayload) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{5, 1}
}
func (m *RoutingFilter_MACPayload) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingFilter_MACPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingFilter_MACPayload.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingFilter_MACPayload) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingFilter_MACPayload.Merge(m, src)
}
func (m *RoutingFilter_MACPayload) XXX_Size() int {
return m.Size()
}
func (m *RoutingFilter_MACPayload) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingFilter_MACPayload.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingFilter_MACPayload proto.InternalMessageInfo
func (m *RoutingFilter_MACPayload) GetConfirmed() *types.BoolValue {
if m != nil {
return m.Confirmed
}
return nil
}
func (m *RoutingFilter_MACPayload) GetDevAddrPrefixes() []*DevAddrPrefix {
if m != nil {
return m.DevAddrPrefixes
}
return nil
}
func (m *RoutingFilter_MACPayload) GetFOpts() *types.BoolValue {
if m != nil {
return m.FOpts
}
return nil
}
func (m *RoutingFilter_MACPayload) GetFPortRanges() []*RoutingFilter_MACPayload_FPortRange {
if m != nil {
return m.FPortRanges
}
return nil
}
type RoutingFilter_MACPayload_FPortRange struct {
// Inclusive start value of the range.
Low uint32 `protobuf:"varint,1,opt,name=low,proto3" json:"low,omitempty"`
// Inclusive end value of the range.
High uint32 `protobuf:"varint,2,opt,name=high,proto3" json:"high,omitempty"`
}
func (m *RoutingFilter_MACPayload_FPortRange) Reset() { *m = RoutingFilter_MACPayload_FPortRange{} }
func (m *RoutingFilter_MACPayload_FPortRange) String() string { return proto.CompactTextString(m) }
func (*RoutingFilter_MACPayload_FPortRange) ProtoMessage() {}
func (*RoutingFilter_MACPayload_FPortRange) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{5, 1, 0}
}
func (m *RoutingFilter_MACPayload_FPortRange) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutingFilter_MACPayload_FPortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutingFilter_MACPayload_FPortRange.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutingFilter_MACPayload_FPortRange) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutingFilter_MACPayload_FPortRange.Merge(m, src)
}
func (m *RoutingFilter_MACPayload_FPortRange) XXX_Size() int {
return m.Size()
}
func (m *RoutingFilter_MACPayload_FPortRange) XXX_DiscardUnknown() {
xxx_messageInfo_RoutingFilter_MACPayload_FPortRange.DiscardUnknown(m)
}
var xxx_messageInfo_RoutingFilter_MACPayload_FPortRange proto.InternalMessageInfo
func (m *RoutingFilter_MACPayload_FPortRange) GetLow() uint32 {
if m != nil {
return m.Low
}
return 0
}
func (m *RoutingFilter_MACPayload_FPortRange) GetHigh() uint32 {
if m != nil {
return m.High
}
return 0
}
type RouteHop struct {
// Time when the server received the message.
ReceivedAt *types.Timestamp `protobuf:"bytes,1,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
// Sender of the message, typically the authorized client identifier.
SenderName string `protobuf:"bytes,2,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"`
// Sender IP address or host name.
SenderAddress string `protobuf:"bytes,3,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"`
// Receiver of the message.
ReceiverName string `protobuf:"bytes,4,opt,name=receiver_name,json=receiverName,proto3" json:"receiver_name,omitempty"`
// Receiver agent.
ReceiverAgent string `protobuf:"bytes,5,opt,name=receiver_agent,json=receiverAgent,proto3" json:"receiver_agent,omitempty"`
}
func (m *RouteHop) Reset() { *m = RouteHop{} }
func (m *RouteHop) String() string { return proto.CompactTextString(m) }
func (*RouteHop) ProtoMessage() {}
func (*RouteHop) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{6}
}
func (m *RouteHop) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RouteHop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RouteHop.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RouteHop) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteHop.Merge(m, src)
}
func (m *RouteHop) XXX_Size() int {
return m.Size()
}
func (m *RouteHop) XXX_DiscardUnknown() {
xxx_messageInfo_RouteHop.DiscardUnknown(m)
}
var xxx_messageInfo_RouteHop proto.InternalMessageInfo
func (m *RouteHop) GetReceivedAt() *types.Timestamp {
if m != nil {
return m.ReceivedAt
}
return nil
}
func (m *RouteHop) GetSenderName() string {
if m != nil {
return m.SenderName
}
return ""
}
func (m *RouteHop) GetSenderAddress() string {
if m != nil {
return m.SenderAddress
}
return ""
}
func (m *RouteHop) GetReceiverName() string {
if m != nil {
return m.ReceiverName
}
return ""
}
func (m *RouteHop) GetReceiverAgent() string {
if m != nil {
return m.ReceiverAgent
}
return ""
}
// Uplink message routed from a Forwarder to a Home Network.
type RoutedUplinkMessage struct {
// Message identifier generated by the Router.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// LoRa Alliance NetID of the Forwarder Member.
ForwarderNetId uint32 `protobuf:"varint,2,opt,name=forwarder_net_id,json=forwarderNetId,proto3" json:"forwarder_net_id,omitempty"`
// Tenant ID managed by the Forwarder Member.
ForwarderTenantId string `protobuf:"bytes,3,opt,name=forwarder_tenant_id,json=forwarderTenantId,proto3" json:"forwarder_tenant_id,omitempty"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,4,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
// LoRa Alliance NetID of the Home Network Member.
HomeNetworkNetId uint32 `protobuf:"varint,5,opt,name=home_network_net_id,json=homeNetworkNetId,proto3" json:"home_network_net_id,omitempty"`
// Tenant ID managed by the Home Network Member.
// This value is empty if it cannot be determined by the Router.
HomeNetworkTenantId string `protobuf:"bytes,6,opt,name=home_network_tenant_id,json=homeNetworkTenantId,proto3" json:"home_network_tenant_id,omitempty"`
// Uplink message.
Message *UplinkMessage `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
// Hops that the message passed. Each Router appends an entry.
Hops []*RouteHop `protobuf:"bytes,8,rep,name=hops,proto3" json:"hops,omitempty"`
}
func (m *RoutedUplinkMessage) Reset() { *m = RoutedUplinkMessage{} }
func (m *RoutedUplinkMessage) String() string { return proto.CompactTextString(m) }
func (*RoutedUplinkMessage) ProtoMessage() {}
func (*RoutedUplinkMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_46ab4bdec1be43a7, []int{7}
}
func (m *RoutedUplinkMessage) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RoutedUplinkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RoutedUplinkMessage.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RoutedUplinkMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_RoutedUplinkMessage.Merge(m, src)
}
func (m *RoutedUplinkMessage) XXX_Size() int {
return m.Size()
}
func (m *RoutedUplinkMessage) XXX_DiscardUnknown() {
xxx_messageInfo_RoutedUplinkMessage.DiscardUnknown(m)
}
var xxx_messageInfo_RoutedUplinkMessage proto.InternalMessageInfo
func (m *RoutedUplinkMessage) GetId() string {
if m != nil {
return m.Id
}
return ""