-
Notifications
You must be signed in to change notification settings - Fork 0
/
routing_services.pb.go
4117 lines (3885 loc) · 114 KB
/
routing_services.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/v1beta3/routing_services.proto
package packetbroker
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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 GetDefaultRoutingPolicyRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
}
func (m *GetDefaultRoutingPolicyRequest) Reset() { *m = GetDefaultRoutingPolicyRequest{} }
func (m *GetDefaultRoutingPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*GetDefaultRoutingPolicyRequest) ProtoMessage() {}
func (*GetDefaultRoutingPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{0}
}
func (m *GetDefaultRoutingPolicyRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetDefaultRoutingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetDefaultRoutingPolicyRequest.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 *GetDefaultRoutingPolicyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDefaultRoutingPolicyRequest.Merge(m, src)
}
func (m *GetDefaultRoutingPolicyRequest) XXX_Size() int {
return m.Size()
}
func (m *GetDefaultRoutingPolicyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDefaultRoutingPolicyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDefaultRoutingPolicyRequest proto.InternalMessageInfo
func (m *GetDefaultRoutingPolicyRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *GetDefaultRoutingPolicyRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
type SetDefaultRoutingPolicyRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
// New default Routing Policy.
Policy *RoutingPolicy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
}
func (m *SetDefaultRoutingPolicyRequest) Reset() { *m = SetDefaultRoutingPolicyRequest{} }
func (m *SetDefaultRoutingPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*SetDefaultRoutingPolicyRequest) ProtoMessage() {}
func (*SetDefaultRoutingPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{1}
}
func (m *SetDefaultRoutingPolicyRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SetDefaultRoutingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SetDefaultRoutingPolicyRequest.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 *SetDefaultRoutingPolicyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDefaultRoutingPolicyRequest.Merge(m, src)
}
func (m *SetDefaultRoutingPolicyRequest) XXX_Size() int {
return m.Size()
}
func (m *SetDefaultRoutingPolicyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetDefaultRoutingPolicyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetDefaultRoutingPolicyRequest proto.InternalMessageInfo
func (m *SetDefaultRoutingPolicyRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *SetDefaultRoutingPolicyRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *SetDefaultRoutingPolicyRequest) GetPolicy() *RoutingPolicy {
if m != nil {
return m.Policy
}
return nil
}
type GetHomeNetworkRoutingPolicyRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_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"`
}
func (m *GetHomeNetworkRoutingPolicyRequest) Reset() { *m = GetHomeNetworkRoutingPolicyRequest{} }
func (m *GetHomeNetworkRoutingPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*GetHomeNetworkRoutingPolicyRequest) ProtoMessage() {}
func (*GetHomeNetworkRoutingPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{2}
}
func (m *GetHomeNetworkRoutingPolicyRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetHomeNetworkRoutingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetHomeNetworkRoutingPolicyRequest.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 *GetHomeNetworkRoutingPolicyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetHomeNetworkRoutingPolicyRequest.Merge(m, src)
}
func (m *GetHomeNetworkRoutingPolicyRequest) XXX_Size() int {
return m.Size()
}
func (m *GetHomeNetworkRoutingPolicyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetHomeNetworkRoutingPolicyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetHomeNetworkRoutingPolicyRequest proto.InternalMessageInfo
func (m *GetHomeNetworkRoutingPolicyRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *GetHomeNetworkRoutingPolicyRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *GetHomeNetworkRoutingPolicyRequest) GetHomeNetworkNetId() uint32 {
if m != nil {
return m.HomeNetworkNetId
}
return 0
}
type SetHomeNetworkRoutingPolicyRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_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"`
// New Routing Policy for the Home Network Member.
Policy *RoutingPolicy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"`
}
func (m *SetHomeNetworkRoutingPolicyRequest) Reset() { *m = SetHomeNetworkRoutingPolicyRequest{} }
func (m *SetHomeNetworkRoutingPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*SetHomeNetworkRoutingPolicyRequest) ProtoMessage() {}
func (*SetHomeNetworkRoutingPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{3}
}
func (m *SetHomeNetworkRoutingPolicyRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SetHomeNetworkRoutingPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SetHomeNetworkRoutingPolicyRequest.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 *SetHomeNetworkRoutingPolicyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetHomeNetworkRoutingPolicyRequest.Merge(m, src)
}
func (m *SetHomeNetworkRoutingPolicyRequest) XXX_Size() int {
return m.Size()
}
func (m *SetHomeNetworkRoutingPolicyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetHomeNetworkRoutingPolicyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetHomeNetworkRoutingPolicyRequest proto.InternalMessageInfo
func (m *SetHomeNetworkRoutingPolicyRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *SetHomeNetworkRoutingPolicyRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *SetHomeNetworkRoutingPolicyRequest) GetHomeNetworkNetId() uint32 {
if m != nil {
return m.HomeNetworkNetId
}
return 0
}
func (m *SetHomeNetworkRoutingPolicyRequest) GetPolicy() *RoutingPolicy {
if m != nil {
return m.Policy
}
return nil
}
type GetRoutingPolicyResponse struct {
Policy *RoutingPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}
func (m *GetRoutingPolicyResponse) Reset() { *m = GetRoutingPolicyResponse{} }
func (m *GetRoutingPolicyResponse) String() string { return proto.CompactTextString(m) }
func (*GetRoutingPolicyResponse) ProtoMessage() {}
func (*GetRoutingPolicyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{4}
}
func (m *GetRoutingPolicyResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetRoutingPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetRoutingPolicyResponse.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 *GetRoutingPolicyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRoutingPolicyResponse.Merge(m, src)
}
func (m *GetRoutingPolicyResponse) XXX_Size() int {
return m.Size()
}
func (m *GetRoutingPolicyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetRoutingPolicyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetRoutingPolicyResponse proto.InternalMessageInfo
func (m *GetRoutingPolicyResponse) GetPolicy() *RoutingPolicy {
if m != nil {
return m.Policy
}
return nil
}
type PublishUplinkMessageRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
// Uplink message to publish.
Message *UplinkMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}
func (m *PublishUplinkMessageRequest) Reset() { *m = PublishUplinkMessageRequest{} }
func (m *PublishUplinkMessageRequest) String() string { return proto.CompactTextString(m) }
func (*PublishUplinkMessageRequest) ProtoMessage() {}
func (*PublishUplinkMessageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{5}
}
func (m *PublishUplinkMessageRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PublishUplinkMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PublishUplinkMessageRequest.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 *PublishUplinkMessageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishUplinkMessageRequest.Merge(m, src)
}
func (m *PublishUplinkMessageRequest) XXX_Size() int {
return m.Size()
}
func (m *PublishUplinkMessageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishUplinkMessageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishUplinkMessageRequest proto.InternalMessageInfo
func (m *PublishUplinkMessageRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *PublishUplinkMessageRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *PublishUplinkMessageRequest) GetMessage() *UplinkMessage {
if m != nil {
return m.Message
}
return nil
}
type PublishUplinkMessageResponse struct {
// Message identifier generated by the Router.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Delivery state of the uplink message.
State MessageDeliveryState `protobuf:"varint,2,opt,name=state,proto3,enum=org.packetbroker.v1beta3.MessageDeliveryState" json:"state,omitempty"`
}
func (m *PublishUplinkMessageResponse) Reset() { *m = PublishUplinkMessageResponse{} }
func (m *PublishUplinkMessageResponse) String() string { return proto.CompactTextString(m) }
func (*PublishUplinkMessageResponse) ProtoMessage() {}
func (*PublishUplinkMessageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{6}
}
func (m *PublishUplinkMessageResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PublishUplinkMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PublishUplinkMessageResponse.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 *PublishUplinkMessageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishUplinkMessageResponse.Merge(m, src)
}
func (m *PublishUplinkMessageResponse) XXX_Size() int {
return m.Size()
}
func (m *PublishUplinkMessageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PublishUplinkMessageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PublishUplinkMessageResponse proto.InternalMessageInfo
func (m *PublishUplinkMessageResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PublishUplinkMessageResponse) GetState() MessageDeliveryState {
if m != nil {
return m.State
}
return MessageDeliveryState_ACCEPTED
}
type PublishDownlinkMessageRequest struct {
// LoRa Alliance NetID of the Home Network Member.
HomeNetworkNetId uint32 `protobuf:"varint,1,opt,name=home_network_net_id,json=homeNetworkNetId,proto3" json:"home_network_net_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"`
// Forwarder identifier issued by the Forwarder Member.
// In LoRaWAN Class A downlink, this value must be copied from the RoutedUplinkMessage.
// In LoRaWAN Class B or C downlink, this value is typically copied from a recent RoutedUplinkMessage.
ForwarderId string `protobuf:"bytes,3,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
// Downlink message to publish.
Message *DownlinkMessage `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
}
func (m *PublishDownlinkMessageRequest) Reset() { *m = PublishDownlinkMessageRequest{} }
func (m *PublishDownlinkMessageRequest) String() string { return proto.CompactTextString(m) }
func (*PublishDownlinkMessageRequest) ProtoMessage() {}
func (*PublishDownlinkMessageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{7}
}
func (m *PublishDownlinkMessageRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PublishDownlinkMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PublishDownlinkMessageRequest.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 *PublishDownlinkMessageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishDownlinkMessageRequest.Merge(m, src)
}
func (m *PublishDownlinkMessageRequest) XXX_Size() int {
return m.Size()
}
func (m *PublishDownlinkMessageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishDownlinkMessageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishDownlinkMessageRequest proto.InternalMessageInfo
func (m *PublishDownlinkMessageRequest) GetHomeNetworkNetId() uint32 {
if m != nil {
return m.HomeNetworkNetId
}
return 0
}
func (m *PublishDownlinkMessageRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *PublishDownlinkMessageRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *PublishDownlinkMessageRequest) GetMessage() *DownlinkMessage {
if m != nil {
return m.Message
}
return nil
}
type PublishDownlinkMessageResponse struct {
// Message identifier generated by the Router.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Delivery state of the downlink message.
State MessageDeliveryState `protobuf:"varint,2,opt,name=state,proto3,enum=org.packetbroker.v1beta3.MessageDeliveryState" json:"state,omitempty"`
}
func (m *PublishDownlinkMessageResponse) Reset() { *m = PublishDownlinkMessageResponse{} }
func (m *PublishDownlinkMessageResponse) String() string { return proto.CompactTextString(m) }
func (*PublishDownlinkMessageResponse) ProtoMessage() {}
func (*PublishDownlinkMessageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{8}
}
func (m *PublishDownlinkMessageResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PublishDownlinkMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PublishDownlinkMessageResponse.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 *PublishDownlinkMessageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishDownlinkMessageResponse.Merge(m, src)
}
func (m *PublishDownlinkMessageResponse) XXX_Size() int {
return m.Size()
}
func (m *PublishDownlinkMessageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PublishDownlinkMessageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PublishDownlinkMessageResponse proto.InternalMessageInfo
func (m *PublishDownlinkMessageResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PublishDownlinkMessageResponse) GetState() MessageDeliveryState {
if m != nil {
return m.State
}
return MessageDeliveryState_ACCEPTED
}
type SubscribeForwarderRequest 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"`
// Forwarder identifier issued by the Forwarder Member.
ForwarderId string `protobuf:"bytes,2,opt,name=forwarder_id,json=forwarderId,proto3" json:"forwarder_id,omitempty"`
// Shared subscription group (optional).
// Queue durability depends on the Router configuration.
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
}
func (m *SubscribeForwarderRequest) Reset() { *m = SubscribeForwarderRequest{} }
func (m *SubscribeForwarderRequest) String() string { return proto.CompactTextString(m) }
func (*SubscribeForwarderRequest) ProtoMessage() {}
func (*SubscribeForwarderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{9}
}
func (m *SubscribeForwarderRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SubscribeForwarderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SubscribeForwarderRequest.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 *SubscribeForwarderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubscribeForwarderRequest.Merge(m, src)
}
func (m *SubscribeForwarderRequest) XXX_Size() int {
return m.Size()
}
func (m *SubscribeForwarderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SubscribeForwarderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SubscribeForwarderRequest proto.InternalMessageInfo
func (m *SubscribeForwarderRequest) GetForwarderNetId() uint32 {
if m != nil {
return m.ForwarderNetId
}
return 0
}
func (m *SubscribeForwarderRequest) GetForwarderId() string {
if m != nil {
return m.ForwarderId
}
return ""
}
func (m *SubscribeForwarderRequest) GetGroup() string {
if m != nil {
return m.Group
}
return ""
}
type SubscribeHomeNetworkRequest struct {
// LoRa Alliance NetID of the Home Network Member.
HomeNetworkNetId uint32 `protobuf:"varint,1,opt,name=home_network_net_id,json=homeNetworkNetId,proto3" json:"home_network_net_id,omitempty"`
// Routing filters to configure the subscription.
// A message gets delivered if any of the given filters pass.
// If no filters are specified, all messages will be delivered.
Filters []*RoutingFilter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
// Shared subscription group (optional).
// Queue durability depends on the Router configuration.
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
}
func (m *SubscribeHomeNetworkRequest) Reset() { *m = SubscribeHomeNetworkRequest{} }
func (m *SubscribeHomeNetworkRequest) String() string { return proto.CompactTextString(m) }
func (*SubscribeHomeNetworkRequest) ProtoMessage() {}
func (*SubscribeHomeNetworkRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{10}
}
func (m *SubscribeHomeNetworkRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SubscribeHomeNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SubscribeHomeNetworkRequest.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 *SubscribeHomeNetworkRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubscribeHomeNetworkRequest.Merge(m, src)
}
func (m *SubscribeHomeNetworkRequest) XXX_Size() int {
return m.Size()
}
func (m *SubscribeHomeNetworkRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SubscribeHomeNetworkRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SubscribeHomeNetworkRequest proto.InternalMessageInfo
func (m *SubscribeHomeNetworkRequest) GetHomeNetworkNetId() uint32 {
if m != nil {
return m.HomeNetworkNetId
}
return 0
}
func (m *SubscribeHomeNetworkRequest) GetFilters() []*RoutingFilter {
if m != nil {
return m.Filters
}
return nil
}
func (m *SubscribeHomeNetworkRequest) GetGroup() string {
if m != nil {
return m.Group
}
return ""
}
type RouteUplinkMessageRequest struct {
// Uplink message to route.
Message *RoutedUplinkMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (m *RouteUplinkMessageRequest) Reset() { *m = RouteUplinkMessageRequest{} }
func (m *RouteUplinkMessageRequest) String() string { return proto.CompactTextString(m) }
func (*RouteUplinkMessageRequest) ProtoMessage() {}
func (*RouteUplinkMessageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{11}
}
func (m *RouteUplinkMessageRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RouteUplinkMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RouteUplinkMessageRequest.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 *RouteUplinkMessageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteUplinkMessageRequest.Merge(m, src)
}
func (m *RouteUplinkMessageRequest) XXX_Size() int {
return m.Size()
}
func (m *RouteUplinkMessageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RouteUplinkMessageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RouteUplinkMessageRequest proto.InternalMessageInfo
func (m *RouteUplinkMessageRequest) GetMessage() *RoutedUplinkMessage {
if m != nil {
return m.Message
}
return nil
}
type RouteDownlinkMessageRequest struct {
// Downlink message to route.
Message *RoutedDownlinkMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (m *RouteDownlinkMessageRequest) Reset() { *m = RouteDownlinkMessageRequest{} }
func (m *RouteDownlinkMessageRequest) String() string { return proto.CompactTextString(m) }
func (*RouteDownlinkMessageRequest) ProtoMessage() {}
func (*RouteDownlinkMessageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{12}
}
func (m *RouteDownlinkMessageRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RouteDownlinkMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RouteDownlinkMessageRequest.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 *RouteDownlinkMessageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteDownlinkMessageRequest.Merge(m, src)
}
func (m *RouteDownlinkMessageRequest) XXX_Size() int {
return m.Size()
}
func (m *RouteDownlinkMessageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RouteDownlinkMessageRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RouteDownlinkMessageRequest proto.InternalMessageInfo
func (m *RouteDownlinkMessageRequest) GetMessage() *RoutedDownlinkMessage {
if m != nil {
return m.Message
}
return nil
}
type RouteMessageResponse struct {
// Delivery state of the message.
State MessageDeliveryState `protobuf:"varint,1,opt,name=state,proto3,enum=org.packetbroker.v1beta3.MessageDeliveryState" json:"state,omitempty"`
}
func (m *RouteMessageResponse) Reset() { *m = RouteMessageResponse{} }
func (m *RouteMessageResponse) String() string { return proto.CompactTextString(m) }
func (*RouteMessageResponse) ProtoMessage() {}
func (*RouteMessageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_60baf5ee7fe0db1d, []int{13}
}
func (m *RouteMessageResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RouteMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RouteMessageResponse.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 *RouteMessageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteMessageResponse.Merge(m, src)
}
func (m *RouteMessageResponse) XXX_Size() int {
return m.Size()
}
func (m *RouteMessageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RouteMessageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RouteMessageResponse proto.InternalMessageInfo
func (m *RouteMessageResponse) GetState() MessageDeliveryState {
if m != nil {
return m.State
}
return MessageDeliveryState_ACCEPTED
}
func init() {
proto.RegisterType((*GetDefaultRoutingPolicyRequest)(nil), "org.packetbroker.v1beta3.GetDefaultRoutingPolicyRequest")
proto.RegisterType((*SetDefaultRoutingPolicyRequest)(nil), "org.packetbroker.v1beta3.SetDefaultRoutingPolicyRequest")
proto.RegisterType((*GetHomeNetworkRoutingPolicyRequest)(nil), "org.packetbroker.v1beta3.GetHomeNetworkRoutingPolicyRequest")
proto.RegisterType((*SetHomeNetworkRoutingPolicyRequest)(nil), "org.packetbroker.v1beta3.SetHomeNetworkRoutingPolicyRequest")
proto.RegisterType((*GetRoutingPolicyResponse)(nil), "org.packetbroker.v1beta3.GetRoutingPolicyResponse")
proto.RegisterType((*PublishUplinkMessageRequest)(nil), "org.packetbroker.v1beta3.PublishUplinkMessageRequest")
proto.RegisterType((*PublishUplinkMessageResponse)(nil), "org.packetbroker.v1beta3.PublishUplinkMessageResponse")
proto.RegisterType((*PublishDownlinkMessageRequest)(nil), "org.packetbroker.v1beta3.PublishDownlinkMessageRequest")
proto.RegisterType((*PublishDownlinkMessageResponse)(nil), "org.packetbroker.v1beta3.PublishDownlinkMessageResponse")
proto.RegisterType((*SubscribeForwarderRequest)(nil), "org.packetbroker.v1beta3.SubscribeForwarderRequest")
proto.RegisterType((*SubscribeHomeNetworkRequest)(nil), "org.packetbroker.v1beta3.SubscribeHomeNetworkRequest")
proto.RegisterType((*RouteUplinkMessageRequest)(nil), "org.packetbroker.v1beta3.RouteUplinkMessageRequest")
proto.RegisterType((*RouteDownlinkMessageRequest)(nil), "org.packetbroker.v1beta3.RouteDownlinkMessageRequest")
proto.RegisterType((*RouteMessageResponse)(nil), "org.packetbroker.v1beta3.RouteMessageResponse")
}
func init() {
proto.RegisterFile("packetbroker/api/v1beta3/routing_services.proto", fileDescriptor_60baf5ee7fe0db1d)
}
var fileDescriptor_60baf5ee7fe0db1d = []byte{
// 843 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x41, 0x6f, 0xd3, 0x48,
0x14, 0xee, 0x24, 0xdb, 0x56, 0x7d, 0xdd, 0x56, 0x91, 0x9b, 0x5d, 0xa5, 0xce, 0xae, 0x95, 0xb5,
0x56, 0xdb, 0xac, 0x44, 0x9d, 0x92, 0xaa, 0x50, 0x09, 0x24, 0x54, 0x08, 0x0d, 0x3d, 0xb4, 0xaa,
0x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 0xeb, 0xde, 0xdf, 0xfd, 0x74, 0x21, 0xa1, 0xb3, 0x0b, 0x09, 0x9d, 0x5f, 0x48, 0xe8, 0xed,
0xa5, 0x34, 0x73, 0x76, 0x29, 0xcd, 0x7c, 0xbe, 0x94, 0x66, 0x9e, 0xdc, 0xd0, 0x49, 0x7f, 0x1e,
0x42, 0xf5, 0xf0, 0xef, 0xa6, 0x3b, 0xe1, 0xc5, 0xca, 0x9c, 0x3b, 0x70, 0x9b, 0xdf, 0x03, 0x00,
0x00, 0xff, 0xff, 0xb6, 0x9c, 0xfd, 0x82, 0x1e, 0x0e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// RoutingPolicyManagerClient is the client API for RoutingPolicyManager service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RoutingPolicyManagerClient interface {
// Get the Default Routing Policy.
GetDefaultPolicy(ctx context.Context, in *GetDefaultRoutingPolicyRequest, opts ...grpc.CallOption) (*GetRoutingPolicyResponse, error)
// Set the Default Routing Policy.
SetDefaultPolicy(ctx context.Context, in *SetDefaultRoutingPolicyRequest, opts ...grpc.CallOption) (*types.Empty, error)
// Get the Routing Policy with the Home Network.
GetHomeNetworkPolicy(ctx context.Context, in *GetHomeNetworkRoutingPolicyRequest, opts ...grpc.CallOption) (*GetRoutingPolicyResponse, error)
// Set the Routing Policy with the Home Network.
SetHomeNetworkPolicy(ctx context.Context, in *SetHomeNetworkRoutingPolicyRequest, opts ...grpc.CallOption) (*types.Empty, error)
}
type routingPolicyManagerClient struct {
cc *grpc.ClientConn
}
func NewRoutingPolicyManagerClient(cc *grpc.ClientConn) RoutingPolicyManagerClient {
return &routingPolicyManagerClient{cc}
}
func (c *routingPolicyManagerClient) GetDefaultPolicy(ctx context.Context, in *GetDefaultRoutingPolicyRequest, opts ...grpc.CallOption) (*GetRoutingPolicyResponse, error) {
out := new(GetRoutingPolicyResponse)
err := c.cc.Invoke(ctx, "/org.packetbroker.v1beta3.RoutingPolicyManager/GetDefaultPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *routingPolicyManagerClient) SetDefaultPolicy(ctx context.Context, in *SetDefaultRoutingPolicyRequest, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/org.packetbroker.v1beta3.RoutingPolicyManager/SetDefaultPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *routingPolicyManagerClient) GetHomeNetworkPolicy(ctx context.Context, in *GetHomeNetworkRoutingPolicyRequest, opts ...grpc.CallOption) (*GetRoutingPolicyResponse, error) {
out := new(GetRoutingPolicyResponse)
err := c.cc.Invoke(ctx, "/org.packetbroker.v1beta3.RoutingPolicyManager/GetHomeNetworkPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *routingPolicyManagerClient) SetHomeNetworkPolicy(ctx context.Context, in *SetHomeNetworkRoutingPolicyRequest, opts ...grpc.CallOption) (*types.Empty, error) {
out := new(types.Empty)
err := c.cc.Invoke(ctx, "/org.packetbroker.v1beta3.RoutingPolicyManager/SetHomeNetworkPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RoutingPolicyManagerServer is the server API for RoutingPolicyManager service.
type RoutingPolicyManagerServer interface {
// Get the Default Routing Policy.
GetDefaultPolicy(context.Context, *GetDefaultRoutingPolicyRequest) (*GetRoutingPolicyResponse, error)
// Set the Default Routing Policy.
SetDefaultPolicy(context.Context, *SetDefaultRoutingPolicyRequest) (*types.Empty, error)
// Get the Routing Policy with the Home Network.
GetHomeNetworkPolicy(context.Context, *GetHomeNetworkRoutingPolicyRequest) (*GetRoutingPolicyResponse, error)
// Set the Routing Policy with the Home Network.
SetHomeNetworkPolicy(context.Context, *SetHomeNetworkRoutingPolicyRequest) (*types.Empty, error)
}
// UnimplementedRoutingPolicyManagerServer can be embedded to have forward compatible implementations.
type UnimplementedRoutingPolicyManagerServer struct {
}
func (*UnimplementedRoutingPolicyManagerServer) GetDefaultPolicy(ctx context.Context, req *GetDefaultRoutingPolicyRequest) (*GetRoutingPolicyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPolicy not implemented")
}
func (*UnimplementedRoutingPolicyManagerServer) SetDefaultPolicy(ctx context.Context, req *SetDefaultRoutingPolicyRequest) (*types.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDefaultPolicy not implemented")