-
Notifications
You must be signed in to change notification settings - Fork 302
/
messages.pb.go
3172 lines (2970 loc) · 109 KB
/
messages.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: lorawan-stack/api/messages.proto
package ttnpb
import (
bytes "bytes"
fmt "fmt"
_ "github.com/TheThingsIndustries/protoc-gen-go-json/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
types "github.com/gogo/protobuf/types"
golang_proto "github.com/golang/protobuf/proto"
go_thethings_network_lorawan_stack_v3_pkg_types "go.thethings.network/lorawan-stack/v3/pkg/types"
math "math"
reflect "reflect"
strconv "strconv"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_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 PayloadFormatter int32
const (
// No payload formatter to work with raw payload only.
PayloadFormatter_FORMATTER_NONE PayloadFormatter = 0
// Use payload formatter for the end device type from a repository.
PayloadFormatter_FORMATTER_REPOSITORY PayloadFormatter = 1
// gRPC service payload formatter. The parameter is the host:port of the service.
PayloadFormatter_FORMATTER_GRPC_SERVICE PayloadFormatter = 2
// Custom payload formatter that executes Javascript code. The parameter is a JavaScript filename.
PayloadFormatter_FORMATTER_JAVASCRIPT PayloadFormatter = 3
// CayenneLPP payload formatter.
PayloadFormatter_FORMATTER_CAYENNELPP PayloadFormatter = 4
)
var PayloadFormatter_name = map[int32]string{
0: "FORMATTER_NONE",
1: "FORMATTER_REPOSITORY",
2: "FORMATTER_GRPC_SERVICE",
3: "FORMATTER_JAVASCRIPT",
4: "FORMATTER_CAYENNELPP",
}
var PayloadFormatter_value = map[string]int32{
"FORMATTER_NONE": 0,
"FORMATTER_REPOSITORY": 1,
"FORMATTER_GRPC_SERVICE": 2,
"FORMATTER_JAVASCRIPT": 3,
"FORMATTER_CAYENNELPP": 4,
}
func (PayloadFormatter) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{0}
}
type TxAcknowledgment_Result int32
const (
TxAcknowledgment_SUCCESS TxAcknowledgment_Result = 0
TxAcknowledgment_UNKNOWN_ERROR TxAcknowledgment_Result = 1
TxAcknowledgment_TOO_LATE TxAcknowledgment_Result = 2
TxAcknowledgment_TOO_EARLY TxAcknowledgment_Result = 3
TxAcknowledgment_COLLISION_PACKET TxAcknowledgment_Result = 4
TxAcknowledgment_COLLISION_BEACON TxAcknowledgment_Result = 5
TxAcknowledgment_TX_FREQ TxAcknowledgment_Result = 6
TxAcknowledgment_TX_POWER TxAcknowledgment_Result = 7
TxAcknowledgment_GPS_UNLOCKED TxAcknowledgment_Result = 8
)
var TxAcknowledgment_Result_name = map[int32]string{
0: "SUCCESS",
1: "UNKNOWN_ERROR",
2: "TOO_LATE",
3: "TOO_EARLY",
4: "COLLISION_PACKET",
5: "COLLISION_BEACON",
6: "TX_FREQ",
7: "TX_POWER",
8: "GPS_UNLOCKED",
}
var TxAcknowledgment_Result_value = map[string]int32{
"SUCCESS": 0,
"UNKNOWN_ERROR": 1,
"TOO_LATE": 2,
"TOO_EARLY": 3,
"COLLISION_PACKET": 4,
"COLLISION_BEACON": 5,
"TX_FREQ": 6,
"TX_POWER": 7,
"GPS_UNLOCKED": 8,
}
func (TxAcknowledgment_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{2, 0}
}
// Uplink message from the end device to the network
type UplinkMessage struct {
RawPayload []byte `protobuf:"bytes,1,opt,name=raw_payload,json=rawPayload,proto3" json:"raw_payload,omitempty"`
Payload *Message `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
Settings *TxSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"`
RxMetadata []*RxMetadata `protobuf:"bytes,5,rep,name=rx_metadata,json=rxMetadata,proto3" json:"rx_metadata,omitempty"`
// Server time when a component received the message.
// The Gateway Server and Network Server set this value to their local server time of reception.
ReceivedAt *types.Timestamp `protobuf:"bytes,6,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
CorrelationIds []string `protobuf:"bytes,7,rep,name=correlation_ids,json=correlationIds,proto3" json:"correlation_ids,omitempty"`
// Index of the device channel that received the message.
// Set by Network Server.
DeviceChannelIndex uint32 `protobuf:"varint,9,opt,name=device_channel_index,json=deviceChannelIndex,proto3" json:"device_channel_index,omitempty"`
// Consumed airtime for the transmission of the uplink message. Calculated by Network Server using the RawPayload size and the transmission settings.
ConsumedAirtime *types.Duration `protobuf:"bytes,10,opt,name=consumed_airtime,json=consumedAirtime,proto3" json:"consumed_airtime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UplinkMessage) Reset() { *m = UplinkMessage{} }
func (*UplinkMessage) ProtoMessage() {}
func (*UplinkMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{0}
}
func (m *UplinkMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UplinkMessage.Unmarshal(m, b)
}
func (m *UplinkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UplinkMessage.Marshal(b, m, deterministic)
}
func (m *UplinkMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_UplinkMessage.Merge(m, src)
}
func (m *UplinkMessage) XXX_Size() int {
return xxx_messageInfo_UplinkMessage.Size(m)
}
func (m *UplinkMessage) XXX_DiscardUnknown() {
xxx_messageInfo_UplinkMessage.DiscardUnknown(m)
}
var xxx_messageInfo_UplinkMessage proto.InternalMessageInfo
func (m *UplinkMessage) GetRawPayload() []byte {
if m != nil {
return m.RawPayload
}
return nil
}
func (m *UplinkMessage) GetPayload() *Message {
if m != nil {
return m.Payload
}
return nil
}
func (m *UplinkMessage) GetSettings() *TxSettings {
if m != nil {
return m.Settings
}
return nil
}
func (m *UplinkMessage) GetRxMetadata() []*RxMetadata {
if m != nil {
return m.RxMetadata
}
return nil
}
func (m *UplinkMessage) GetReceivedAt() *types.Timestamp {
if m != nil {
return m.ReceivedAt
}
return nil
}
func (m *UplinkMessage) GetCorrelationIds() []string {
if m != nil {
return m.CorrelationIds
}
return nil
}
func (m *UplinkMessage) GetDeviceChannelIndex() uint32 {
if m != nil {
return m.DeviceChannelIndex
}
return 0
}
func (m *UplinkMessage) GetConsumedAirtime() *types.Duration {
if m != nil {
return m.ConsumedAirtime
}
return nil
}
// Downlink message from the network to the end device
type DownlinkMessage struct {
RawPayload []byte `protobuf:"bytes,1,opt,name=raw_payload,json=rawPayload,proto3" json:"raw_payload,omitempty"`
Payload *Message `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
EndDeviceIds *EndDeviceIdentifiers `protobuf:"bytes,3,opt,name=end_device_ids,json=endDeviceIds,proto3" json:"end_device_ids,omitempty"`
// Types that are valid to be assigned to Settings:
// *DownlinkMessage_Request
// *DownlinkMessage_Scheduled
Settings isDownlinkMessage_Settings `protobuf_oneof:"settings"`
CorrelationIds []string `protobuf:"bytes,6,rep,name=correlation_ids,json=correlationIds,proto3" json:"correlation_ids,omitempty"`
SessionKeyId []byte `protobuf:"bytes,7,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DownlinkMessage) Reset() { *m = DownlinkMessage{} }
func (*DownlinkMessage) ProtoMessage() {}
func (*DownlinkMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{1}
}
func (m *DownlinkMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DownlinkMessage.Unmarshal(m, b)
}
func (m *DownlinkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DownlinkMessage.Marshal(b, m, deterministic)
}
func (m *DownlinkMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DownlinkMessage.Merge(m, src)
}
func (m *DownlinkMessage) XXX_Size() int {
return xxx_messageInfo_DownlinkMessage.Size(m)
}
func (m *DownlinkMessage) XXX_DiscardUnknown() {
xxx_messageInfo_DownlinkMessage.DiscardUnknown(m)
}
var xxx_messageInfo_DownlinkMessage proto.InternalMessageInfo
type isDownlinkMessage_Settings interface {
isDownlinkMessage_Settings()
Equal(interface{}) bool
}
type DownlinkMessage_Request struct {
Request *TxRequest `protobuf:"bytes,4,opt,name=request,proto3,oneof" json:"request,omitempty"`
}
type DownlinkMessage_Scheduled struct {
Scheduled *TxSettings `protobuf:"bytes,5,opt,name=scheduled,proto3,oneof" json:"scheduled,omitempty"`
}
func (*DownlinkMessage_Request) isDownlinkMessage_Settings() {}
func (*DownlinkMessage_Scheduled) isDownlinkMessage_Settings() {}
func (m *DownlinkMessage) GetSettings() isDownlinkMessage_Settings {
if m != nil {
return m.Settings
}
return nil
}
func (m *DownlinkMessage) GetRawPayload() []byte {
if m != nil {
return m.RawPayload
}
return nil
}
func (m *DownlinkMessage) GetPayload() *Message {
if m != nil {
return m.Payload
}
return nil
}
func (m *DownlinkMessage) GetEndDeviceIds() *EndDeviceIdentifiers {
if m != nil {
return m.EndDeviceIds
}
return nil
}
func (m *DownlinkMessage) GetRequest() *TxRequest {
if x, ok := m.GetSettings().(*DownlinkMessage_Request); ok {
return x.Request
}
return nil
}
func (m *DownlinkMessage) GetScheduled() *TxSettings {
if x, ok := m.GetSettings().(*DownlinkMessage_Scheduled); ok {
return x.Scheduled
}
return nil
}
func (m *DownlinkMessage) GetCorrelationIds() []string {
if m != nil {
return m.CorrelationIds
}
return nil
}
func (m *DownlinkMessage) GetSessionKeyId() []byte {
if m != nil {
return m.SessionKeyId
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*DownlinkMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*DownlinkMessage_Request)(nil),
(*DownlinkMessage_Scheduled)(nil),
}
}
type TxAcknowledgment struct {
// Correlation IDs for the downlink message.
// Set automatically by the UDP and LBS frontends.
// For gRPC and the MQTT v3 frontends, the correlation IDs must match the ones of the downlink message the Tx acknowledgment message refers to.
CorrelationIds []string `protobuf:"bytes,1,rep,name=correlation_ids,json=correlationIds,proto3" json:"correlation_ids,omitempty"`
Result TxAcknowledgment_Result `protobuf:"varint,2,opt,name=result,proto3,enum=ttn.lorawan.v3.TxAcknowledgment_Result" json:"result,omitempty"`
// The acknowledged downlink message. Set by the Gateway Server.
DownlinkMessage *DownlinkMessage `protobuf:"bytes,3,opt,name=downlink_message,json=downlinkMessage,proto3" json:"downlink_message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TxAcknowledgment) Reset() { *m = TxAcknowledgment{} }
func (*TxAcknowledgment) ProtoMessage() {}
func (*TxAcknowledgment) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{2}
}
func (m *TxAcknowledgment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxAcknowledgment.Unmarshal(m, b)
}
func (m *TxAcknowledgment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxAcknowledgment.Marshal(b, m, deterministic)
}
func (m *TxAcknowledgment) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxAcknowledgment.Merge(m, src)
}
func (m *TxAcknowledgment) XXX_Size() int {
return xxx_messageInfo_TxAcknowledgment.Size(m)
}
func (m *TxAcknowledgment) XXX_DiscardUnknown() {
xxx_messageInfo_TxAcknowledgment.DiscardUnknown(m)
}
var xxx_messageInfo_TxAcknowledgment proto.InternalMessageInfo
func (m *TxAcknowledgment) GetCorrelationIds() []string {
if m != nil {
return m.CorrelationIds
}
return nil
}
func (m *TxAcknowledgment) GetResult() TxAcknowledgment_Result {
if m != nil {
return m.Result
}
return TxAcknowledgment_SUCCESS
}
func (m *TxAcknowledgment) GetDownlinkMessage() *DownlinkMessage {
if m != nil {
return m.DownlinkMessage
}
return nil
}
type GatewayTxAcknowledgment struct {
GatewayIds *GatewayIdentifiers `protobuf:"bytes,1,opt,name=gateway_ids,json=gatewayIds,proto3" json:"gateway_ids,omitempty"`
TxAck *TxAcknowledgment `protobuf:"bytes,2,opt,name=tx_ack,json=txAck,proto3" json:"tx_ack,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayTxAcknowledgment) Reset() { *m = GatewayTxAcknowledgment{} }
func (*GatewayTxAcknowledgment) ProtoMessage() {}
func (*GatewayTxAcknowledgment) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{3}
}
func (m *GatewayTxAcknowledgment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayTxAcknowledgment.Unmarshal(m, b)
}
func (m *GatewayTxAcknowledgment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayTxAcknowledgment.Marshal(b, m, deterministic)
}
func (m *GatewayTxAcknowledgment) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayTxAcknowledgment.Merge(m, src)
}
func (m *GatewayTxAcknowledgment) XXX_Size() int {
return xxx_messageInfo_GatewayTxAcknowledgment.Size(m)
}
func (m *GatewayTxAcknowledgment) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayTxAcknowledgment.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayTxAcknowledgment proto.InternalMessageInfo
func (m *GatewayTxAcknowledgment) GetGatewayIds() *GatewayIdentifiers {
if m != nil {
return m.GatewayIds
}
return nil
}
func (m *GatewayTxAcknowledgment) GetTxAck() *TxAcknowledgment {
if m != nil {
return m.TxAck
}
return nil
}
type GatewayUplinkMessage struct {
Message *UplinkMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// LoRaWAN band ID of the gateway.
BandId string `protobuf:"bytes,2,opt,name=band_id,json=bandId,proto3" json:"band_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayUplinkMessage) Reset() { *m = GatewayUplinkMessage{} }
func (*GatewayUplinkMessage) ProtoMessage() {}
func (*GatewayUplinkMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{4}
}
func (m *GatewayUplinkMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayUplinkMessage.Unmarshal(m, b)
}
func (m *GatewayUplinkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayUplinkMessage.Marshal(b, m, deterministic)
}
func (m *GatewayUplinkMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayUplinkMessage.Merge(m, src)
}
func (m *GatewayUplinkMessage) XXX_Size() int {
return xxx_messageInfo_GatewayUplinkMessage.Size(m)
}
func (m *GatewayUplinkMessage) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayUplinkMessage.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayUplinkMessage proto.InternalMessageInfo
func (m *GatewayUplinkMessage) GetMessage() *UplinkMessage {
if m != nil {
return m.Message
}
return nil
}
func (m *GatewayUplinkMessage) GetBandId() string {
if m != nil {
return m.BandId
}
return ""
}
type ApplicationUplink struct {
// Join Server issued identifier for the session keys used by this uplink.
SessionKeyId []byte `protobuf:"bytes,1,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty"`
FPort uint32 `protobuf:"varint,2,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
FCnt uint32 `protobuf:"varint,3,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
// The frame payload of the uplink message.
// The payload is still encrypted if the skip_payload_crypto field of the EndDevice
// is true, which is indicated by the presence of the app_s_key field.
FrmPayload []byte `protobuf:"bytes,4,opt,name=frm_payload,json=frmPayload,proto3" json:"frm_payload,omitempty"`
// The decoded frame payload of the uplink message.
// This field is set by the message processor that is configured for the end device (see formatters) or application (see default_formatters).
DecodedPayload *types.Struct `protobuf:"bytes,5,opt,name=decoded_payload,json=decodedPayload,proto3" json:"decoded_payload,omitempty"`
// Warnings generated by the message processor while decoding the frm_payload.
DecodedPayloadWarnings []string `protobuf:"bytes,12,rep,name=decoded_payload_warnings,json=decodedPayloadWarnings,proto3" json:"decoded_payload_warnings,omitempty"`
// A list of metadata for each antenna of each gateway that received this message.
RxMetadata []*RxMetadata `protobuf:"bytes,6,rep,name=rx_metadata,json=rxMetadata,proto3" json:"rx_metadata,omitempty"`
// Settings for the transmission.
Settings *TxSettings `protobuf:"bytes,7,opt,name=settings,proto3" json:"settings,omitempty"`
// Server time when the Network Server received the message.
ReceivedAt *types.Timestamp `protobuf:"bytes,8,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
// The AppSKey of the current session.
// This field is only present if the skip_payload_crypto field of the EndDevice
// is true.
// Can be used to decrypt uplink payloads and encrypt downlink payloads.
AppSKey *KeyEnvelope `protobuf:"bytes,9,opt,name=app_s_key,json=appSKey,proto3" json:"app_s_key,omitempty"`
// The last AFCntDown of the current session.
// This field is only present if the skip_payload_crypto field of the EndDevice
// is true.
// Can be used with app_s_key to encrypt downlink payloads.
LastAFCntDown uint32 `protobuf:"varint,10,opt,name=last_a_f_cnt_down,json=lastAFCntDown,proto3" json:"last_a_f_cnt_down,omitempty"`
Confirmed bool `protobuf:"varint,11,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
// Consumed airtime for the transmission of the uplink message. Calculated by Network Server using the RawPayload size and the transmission settings.
ConsumedAirtime *types.Duration `protobuf:"bytes,13,opt,name=consumed_airtime,json=consumedAirtime,proto3" json:"consumed_airtime,omitempty"`
// End device location metadata, set by the Application Server while handling the message.
Locations map[string]*Location `protobuf:"bytes,14,rep,name=locations,proto3" json:"locations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// End device version identifiers, set by the Application Server while handling the message.
VersionIds *EndDeviceVersionIdentifiers `protobuf:"bytes,15,opt,name=version_ids,json=versionIds,proto3" json:"version_ids,omitempty"`
// Network identifiers, set by the Network Server that handles the message.
NetworkIds *NetworkIdentifiers `protobuf:"bytes,16,opt,name=network_ids,json=networkIds,proto3" json:"network_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationUplink) Reset() { *m = ApplicationUplink{} }
func (*ApplicationUplink) ProtoMessage() {}
func (*ApplicationUplink) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{5}
}
func (m *ApplicationUplink) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationUplink.Unmarshal(m, b)
}
func (m *ApplicationUplink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationUplink.Marshal(b, m, deterministic)
}
func (m *ApplicationUplink) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationUplink.Merge(m, src)
}
func (m *ApplicationUplink) XXX_Size() int {
return xxx_messageInfo_ApplicationUplink.Size(m)
}
func (m *ApplicationUplink) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationUplink.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationUplink proto.InternalMessageInfo
func (m *ApplicationUplink) GetSessionKeyId() []byte {
if m != nil {
return m.SessionKeyId
}
return nil
}
func (m *ApplicationUplink) GetFPort() uint32 {
if m != nil {
return m.FPort
}
return 0
}
func (m *ApplicationUplink) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
func (m *ApplicationUplink) GetFrmPayload() []byte {
if m != nil {
return m.FrmPayload
}
return nil
}
func (m *ApplicationUplink) GetDecodedPayload() *types.Struct {
if m != nil {
return m.DecodedPayload
}
return nil
}
func (m *ApplicationUplink) GetDecodedPayloadWarnings() []string {
if m != nil {
return m.DecodedPayloadWarnings
}
return nil
}
func (m *ApplicationUplink) GetRxMetadata() []*RxMetadata {
if m != nil {
return m.RxMetadata
}
return nil
}
func (m *ApplicationUplink) GetSettings() *TxSettings {
if m != nil {
return m.Settings
}
return nil
}
func (m *ApplicationUplink) GetReceivedAt() *types.Timestamp {
if m != nil {
return m.ReceivedAt
}
return nil
}
func (m *ApplicationUplink) GetAppSKey() *KeyEnvelope {
if m != nil {
return m.AppSKey
}
return nil
}
func (m *ApplicationUplink) GetLastAFCntDown() uint32 {
if m != nil {
return m.LastAFCntDown
}
return 0
}
func (m *ApplicationUplink) GetConfirmed() bool {
if m != nil {
return m.Confirmed
}
return false
}
func (m *ApplicationUplink) GetConsumedAirtime() *types.Duration {
if m != nil {
return m.ConsumedAirtime
}
return nil
}
func (m *ApplicationUplink) GetLocations() map[string]*Location {
if m != nil {
return m.Locations
}
return nil
}
func (m *ApplicationUplink) GetVersionIds() *EndDeviceVersionIdentifiers {
if m != nil {
return m.VersionIds
}
return nil
}
func (m *ApplicationUplink) GetNetworkIds() *NetworkIdentifiers {
if m != nil {
return m.NetworkIds
}
return nil
}
type ApplicationLocation struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationLocation) Reset() { *m = ApplicationLocation{} }
func (*ApplicationLocation) ProtoMessage() {}
func (*ApplicationLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{6}
}
func (m *ApplicationLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationLocation.Unmarshal(m, b)
}
func (m *ApplicationLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationLocation.Marshal(b, m, deterministic)
}
func (m *ApplicationLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationLocation.Merge(m, src)
}
func (m *ApplicationLocation) XXX_Size() int {
return xxx_messageInfo_ApplicationLocation.Size(m)
}
func (m *ApplicationLocation) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationLocation.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationLocation proto.InternalMessageInfo
func (m *ApplicationLocation) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *ApplicationLocation) GetLocation() *Location {
if m != nil {
return m.Location
}
return nil
}
func (m *ApplicationLocation) GetAttributes() map[string]string {
if m != nil {
return m.Attributes
}
return nil
}
type ApplicationJoinAccept struct {
// Join Server issued identifier for the session keys negotiated in this join.
SessionKeyId []byte `protobuf:"bytes,1,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty"`
// Encrypted Application Session Key (if Join Server sent it to Network Server).
AppSKey *KeyEnvelope `protobuf:"bytes,2,opt,name=app_s_key,json=appSKey,proto3" json:"app_s_key,omitempty"`
// Downlink messages in the queue that got invalidated because of the session change.
InvalidatedDownlinks []*ApplicationDownlink `protobuf:"bytes,3,rep,name=invalidated_downlinks,json=invalidatedDownlinks,proto3" json:"invalidated_downlinks,omitempty"`
// Indicates whether the security context refers to the pending session, i.e. when this join-accept is an answer to a
// rejoin-request.
PendingSession bool `protobuf:"varint,4,opt,name=pending_session,json=pendingSession,proto3" json:"pending_session,omitempty"`
// Server time when the Network Server received the message.
ReceivedAt *types.Timestamp `protobuf:"bytes,8,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationJoinAccept) Reset() { *m = ApplicationJoinAccept{} }
func (*ApplicationJoinAccept) ProtoMessage() {}
func (*ApplicationJoinAccept) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{7}
}
func (m *ApplicationJoinAccept) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationJoinAccept.Unmarshal(m, b)
}
func (m *ApplicationJoinAccept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationJoinAccept.Marshal(b, m, deterministic)
}
func (m *ApplicationJoinAccept) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationJoinAccept.Merge(m, src)
}
func (m *ApplicationJoinAccept) XXX_Size() int {
return xxx_messageInfo_ApplicationJoinAccept.Size(m)
}
func (m *ApplicationJoinAccept) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationJoinAccept.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationJoinAccept proto.InternalMessageInfo
func (m *ApplicationJoinAccept) GetSessionKeyId() []byte {
if m != nil {
return m.SessionKeyId
}
return nil
}
func (m *ApplicationJoinAccept) GetAppSKey() *KeyEnvelope {
if m != nil {
return m.AppSKey
}
return nil
}
func (m *ApplicationJoinAccept) GetInvalidatedDownlinks() []*ApplicationDownlink {
if m != nil {
return m.InvalidatedDownlinks
}
return nil
}
func (m *ApplicationJoinAccept) GetPendingSession() bool {
if m != nil {
return m.PendingSession
}
return false
}
func (m *ApplicationJoinAccept) GetReceivedAt() *types.Timestamp {
if m != nil {
return m.ReceivedAt
}
return nil
}
type ApplicationDownlink struct {
// Join Server issued identifier for the session keys used by this downlink.
SessionKeyId []byte `protobuf:"bytes,1,opt,name=session_key_id,json=sessionKeyId,proto3" json:"session_key_id,omitempty"`
FPort uint32 `protobuf:"varint,2,opt,name=f_port,json=fPort,proto3" json:"f_port,omitempty"`
FCnt uint32 `protobuf:"varint,3,opt,name=f_cnt,json=fCnt,proto3" json:"f_cnt,omitempty"`
// The frame payload of the downlink message.
// The payload is encrypted if the skip_payload_crypto field of the EndDevice
// is true.
FrmPayload []byte `protobuf:"bytes,4,opt,name=frm_payload,json=frmPayload,proto3" json:"frm_payload,omitempty"`
// The decoded frame payload of the downlink message.
// When scheduling downlink with a message processor configured for the end device (see formatters) or application (see default_formatters),
// this fields acts as input for the downlink encoder, and the output is set to frm_payload.
// When reading downlink (listing the queue, downlink message events, etc), this fields acts as output of the downlink decoder, and the input is frm_payload.
DecodedPayload *types.Struct `protobuf:"bytes,5,opt,name=decoded_payload,json=decodedPayload,proto3" json:"decoded_payload,omitempty"`
// Warnings generated by the message processor while encoding frm_payload (scheduling downlink) or decoding the frm_payload (reading downlink).
DecodedPayloadWarnings []string `protobuf:"bytes,10,rep,name=decoded_payload_warnings,json=decodedPayloadWarnings,proto3" json:"decoded_payload_warnings,omitempty"`
Confirmed bool `protobuf:"varint,6,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
// Optional gateway and timing information for class B and C.
// If set, this downlink message will only be transmitted as class B or C downlink.
// If not set, this downlink message may be transmitted in class A, B and C.
ClassBC *ApplicationDownlink_ClassBC `protobuf:"bytes,7,opt,name=class_b_c,json=classBC,proto3" json:"class_b_c,omitempty"`
// Priority for scheduling the downlink message.
Priority TxSchedulePriority `protobuf:"varint,8,opt,name=priority,proto3,enum=ttn.lorawan.v3.TxSchedulePriority" json:"priority,omitempty"`
CorrelationIds []string `protobuf:"bytes,9,rep,name=correlation_ids,json=correlationIds,proto3" json:"correlation_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationDownlink) Reset() { *m = ApplicationDownlink{} }
func (*ApplicationDownlink) ProtoMessage() {}
func (*ApplicationDownlink) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{8}
}
func (m *ApplicationDownlink) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationDownlink.Unmarshal(m, b)
}
func (m *ApplicationDownlink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationDownlink.Marshal(b, m, deterministic)
}
func (m *ApplicationDownlink) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationDownlink.Merge(m, src)
}
func (m *ApplicationDownlink) XXX_Size() int {
return xxx_messageInfo_ApplicationDownlink.Size(m)
}
func (m *ApplicationDownlink) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationDownlink.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationDownlink proto.InternalMessageInfo
func (m *ApplicationDownlink) GetSessionKeyId() []byte {
if m != nil {
return m.SessionKeyId
}
return nil
}
func (m *ApplicationDownlink) GetFPort() uint32 {
if m != nil {
return m.FPort
}
return 0
}
func (m *ApplicationDownlink) GetFCnt() uint32 {
if m != nil {
return m.FCnt
}
return 0
}
func (m *ApplicationDownlink) GetFrmPayload() []byte {
if m != nil {
return m.FrmPayload
}
return nil
}
func (m *ApplicationDownlink) GetDecodedPayload() *types.Struct {
if m != nil {
return m.DecodedPayload
}
return nil
}
func (m *ApplicationDownlink) GetDecodedPayloadWarnings() []string {
if m != nil {
return m.DecodedPayloadWarnings
}
return nil
}
func (m *ApplicationDownlink) GetConfirmed() bool {
if m != nil {
return m.Confirmed
}
return false
}
func (m *ApplicationDownlink) GetClassBC() *ApplicationDownlink_ClassBC {
if m != nil {
return m.ClassBC
}
return nil
}
func (m *ApplicationDownlink) GetPriority() TxSchedulePriority {
if m != nil {
return m.Priority
}
return TxSchedulePriority_LOWEST
}
func (m *ApplicationDownlink) GetCorrelationIds() []string {
if m != nil {
return m.CorrelationIds
}
return nil
}
type ApplicationDownlink_ClassBC struct {
// Possible gateway identifiers and antenna index to use for this downlink message.
// The Network Server selects one of these gateways for downlink, based on connectivity, signal quality, channel utilization and an available slot.
// If none of the gateways can be selected, the downlink message fails.
// If empty, a gateway and antenna is selected automatically from the gateways seen in recent uplinks.
Gateways []*GatewayAntennaIdentifiers `protobuf:"bytes,7,rep,name=gateways,proto3" json:"gateways,omitempty"`
// Absolute time when the downlink message should be transmitted.
// This requires the gateway to have GPS time synchronization.
// If the time is in the past or if there is a scheduling conflict, the downlink message fails.
// If null, the time is selected based on slot availability. This is recommended in class B mode.
AbsoluteTime *types.Timestamp `protobuf:"bytes,8,opt,name=absolute_time,json=absoluteTime,proto3" json:"absolute_time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationDownlink_ClassBC) Reset() { *m = ApplicationDownlink_ClassBC{} }
func (*ApplicationDownlink_ClassBC) ProtoMessage() {}
func (*ApplicationDownlink_ClassBC) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{8, 0}
}
func (m *ApplicationDownlink_ClassBC) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationDownlink_ClassBC.Unmarshal(m, b)
}
func (m *ApplicationDownlink_ClassBC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationDownlink_ClassBC.Marshal(b, m, deterministic)
}
func (m *ApplicationDownlink_ClassBC) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationDownlink_ClassBC.Merge(m, src)
}
func (m *ApplicationDownlink_ClassBC) XXX_Size() int {
return xxx_messageInfo_ApplicationDownlink_ClassBC.Size(m)
}
func (m *ApplicationDownlink_ClassBC) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationDownlink_ClassBC.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationDownlink_ClassBC proto.InternalMessageInfo
func (m *ApplicationDownlink_ClassBC) GetGateways() []*GatewayAntennaIdentifiers {
if m != nil {
return m.Gateways
}
return nil
}
func (m *ApplicationDownlink_ClassBC) GetAbsoluteTime() *types.Timestamp {
if m != nil {
return m.AbsoluteTime
}
return nil
}
type ApplicationDownlinks struct {
Downlinks []*ApplicationDownlink `protobuf:"bytes,1,rep,name=downlinks,proto3" json:"downlinks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationDownlinks) Reset() { *m = ApplicationDownlinks{} }
func (*ApplicationDownlinks) ProtoMessage() {}
func (*ApplicationDownlinks) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{9}
}
func (m *ApplicationDownlinks) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationDownlinks.Unmarshal(m, b)
}
func (m *ApplicationDownlinks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationDownlinks.Marshal(b, m, deterministic)
}
func (m *ApplicationDownlinks) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationDownlinks.Merge(m, src)
}
func (m *ApplicationDownlinks) XXX_Size() int {
return xxx_messageInfo_ApplicationDownlinks.Size(m)
}
func (m *ApplicationDownlinks) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationDownlinks.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationDownlinks proto.InternalMessageInfo
func (m *ApplicationDownlinks) GetDownlinks() []*ApplicationDownlink {
if m != nil {
return m.Downlinks
}
return nil
}
type ApplicationDownlinkFailed struct {
Downlink *ApplicationDownlink `protobuf:"bytes,1,opt,name=downlink,proto3" json:"downlink,omitempty"`
Error *ErrorDetails `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationDownlinkFailed) Reset() { *m = ApplicationDownlinkFailed{} }
func (*ApplicationDownlinkFailed) ProtoMessage() {}
func (*ApplicationDownlinkFailed) Descriptor() ([]byte, []int) {
return fileDescriptor_bbc6bff5780bdc9d, []int{10}
}
func (m *ApplicationDownlinkFailed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationDownlinkFailed.Unmarshal(m, b)
}
func (m *ApplicationDownlinkFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {