-
Notifications
You must be signed in to change notification settings - Fork 310
/
gateway.pb.go
3443 lines (3212 loc) · 122 KB
/
gateway.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/gateway.proto
package ttnpb
import (
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 GatewayAntennaPlacement int32
const (
GatewayAntennaPlacement_PLACEMENT_UNKNOWN GatewayAntennaPlacement = 0
GatewayAntennaPlacement_INDOOR GatewayAntennaPlacement = 1
GatewayAntennaPlacement_OUTDOOR GatewayAntennaPlacement = 2
)
var GatewayAntennaPlacement_name = map[int32]string{
0: "PLACEMENT_UNKNOWN",
1: "INDOOR",
2: "OUTDOOR",
}
var GatewayAntennaPlacement_value = map[string]int32{
"PLACEMENT_UNKNOWN": 0,
"INDOOR": 1,
"OUTDOOR": 2,
}
func (GatewayAntennaPlacement) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{0}
}
type GatewayBrand struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// Logos contains file names of brand logos.
Logos []string `protobuf:"bytes,4,rep,name=logos,proto3" json:"logos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayBrand) Reset() { *m = GatewayBrand{} }
func (*GatewayBrand) ProtoMessage() {}
func (*GatewayBrand) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{0}
}
func (m *GatewayBrand) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayBrand.Unmarshal(m, b)
}
func (m *GatewayBrand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayBrand.Marshal(b, m, deterministic)
}
func (m *GatewayBrand) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayBrand.Merge(m, src)
}
func (m *GatewayBrand) XXX_Size() int {
return xxx_messageInfo_GatewayBrand.Size(m)
}
func (m *GatewayBrand) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayBrand.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayBrand proto.InternalMessageInfo
func (m *GatewayBrand) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *GatewayBrand) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GatewayBrand) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *GatewayBrand) GetLogos() []string {
if m != nil {
return m.Logos
}
return nil
}
type GatewayModel struct {
BrandId string `protobuf:"bytes,1,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayModel) Reset() { *m = GatewayModel{} }
func (*GatewayModel) ProtoMessage() {}
func (*GatewayModel) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{1}
}
func (m *GatewayModel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayModel.Unmarshal(m, b)
}
func (m *GatewayModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayModel.Marshal(b, m, deterministic)
}
func (m *GatewayModel) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayModel.Merge(m, src)
}
func (m *GatewayModel) XXX_Size() int {
return xxx_messageInfo_GatewayModel.Size(m)
}
func (m *GatewayModel) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayModel.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayModel proto.InternalMessageInfo
func (m *GatewayModel) GetBrandId() string {
if m != nil {
return m.BrandId
}
return ""
}
func (m *GatewayModel) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *GatewayModel) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Identifies an end device model with version information.
type GatewayVersionIdentifiers struct {
BrandId string `protobuf:"bytes,1,opt,name=brand_id,json=brandId,proto3" json:"brand_id,omitempty"`
ModelId string `protobuf:"bytes,2,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
HardwareVersion string `protobuf:"bytes,3,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
FirmwareVersion string `protobuf:"bytes,4,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayVersionIdentifiers) Reset() { *m = GatewayVersionIdentifiers{} }
func (*GatewayVersionIdentifiers) ProtoMessage() {}
func (*GatewayVersionIdentifiers) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{2}
}
func (m *GatewayVersionIdentifiers) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayVersionIdentifiers.Unmarshal(m, b)
}
func (m *GatewayVersionIdentifiers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayVersionIdentifiers.Marshal(b, m, deterministic)
}
func (m *GatewayVersionIdentifiers) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayVersionIdentifiers.Merge(m, src)
}
func (m *GatewayVersionIdentifiers) XXX_Size() int {
return xxx_messageInfo_GatewayVersionIdentifiers.Size(m)
}
func (m *GatewayVersionIdentifiers) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayVersionIdentifiers.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayVersionIdentifiers proto.InternalMessageInfo
func (m *GatewayVersionIdentifiers) GetBrandId() string {
if m != nil {
return m.BrandId
}
return ""
}
func (m *GatewayVersionIdentifiers) GetModelId() string {
if m != nil {
return m.ModelId
}
return ""
}
func (m *GatewayVersionIdentifiers) GetHardwareVersion() string {
if m != nil {
return m.HardwareVersion
}
return ""
}
func (m *GatewayVersionIdentifiers) GetFirmwareVersion() string {
if m != nil {
return m.FirmwareVersion
}
return ""
}
type GatewayRadio struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
ChipType string `protobuf:"bytes,2,opt,name=chip_type,json=chipType,proto3" json:"chip_type,omitempty"`
Frequency uint64 `protobuf:"varint,3,opt,name=frequency,proto3" json:"frequency,omitempty"`
RssiOffset float32 `protobuf:"fixed32,4,opt,name=rssi_offset,json=rssiOffset,proto3" json:"rssi_offset,omitempty"`
TxConfiguration *GatewayRadio_TxConfiguration `protobuf:"bytes,5,opt,name=tx_configuration,json=txConfiguration,proto3" json:"tx_configuration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayRadio) Reset() { *m = GatewayRadio{} }
func (*GatewayRadio) ProtoMessage() {}
func (*GatewayRadio) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{3}
}
func (m *GatewayRadio) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayRadio.Unmarshal(m, b)
}
func (m *GatewayRadio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayRadio.Marshal(b, m, deterministic)
}
func (m *GatewayRadio) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayRadio.Merge(m, src)
}
func (m *GatewayRadio) XXX_Size() int {
return xxx_messageInfo_GatewayRadio.Size(m)
}
func (m *GatewayRadio) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayRadio.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayRadio proto.InternalMessageInfo
func (m *GatewayRadio) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
func (m *GatewayRadio) GetChipType() string {
if m != nil {
return m.ChipType
}
return ""
}
func (m *GatewayRadio) GetFrequency() uint64 {
if m != nil {
return m.Frequency
}
return 0
}
func (m *GatewayRadio) GetRssiOffset() float32 {
if m != nil {
return m.RssiOffset
}
return 0
}
func (m *GatewayRadio) GetTxConfiguration() *GatewayRadio_TxConfiguration {
if m != nil {
return m.TxConfiguration
}
return nil
}
type GatewayRadio_TxConfiguration struct {
MinFrequency uint64 `protobuf:"varint,1,opt,name=min_frequency,json=minFrequency,proto3" json:"min_frequency,omitempty"`
MaxFrequency uint64 `protobuf:"varint,2,opt,name=max_frequency,json=maxFrequency,proto3" json:"max_frequency,omitempty"`
NotchFrequency uint64 `protobuf:"varint,3,opt,name=notch_frequency,json=notchFrequency,proto3" json:"notch_frequency,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayRadio_TxConfiguration) Reset() { *m = GatewayRadio_TxConfiguration{} }
func (*GatewayRadio_TxConfiguration) ProtoMessage() {}
func (*GatewayRadio_TxConfiguration) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{3, 0}
}
func (m *GatewayRadio_TxConfiguration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayRadio_TxConfiguration.Unmarshal(m, b)
}
func (m *GatewayRadio_TxConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayRadio_TxConfiguration.Marshal(b, m, deterministic)
}
func (m *GatewayRadio_TxConfiguration) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayRadio_TxConfiguration.Merge(m, src)
}
func (m *GatewayRadio_TxConfiguration) XXX_Size() int {
return xxx_messageInfo_GatewayRadio_TxConfiguration.Size(m)
}
func (m *GatewayRadio_TxConfiguration) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayRadio_TxConfiguration.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayRadio_TxConfiguration proto.InternalMessageInfo
func (m *GatewayRadio_TxConfiguration) GetMinFrequency() uint64 {
if m != nil {
return m.MinFrequency
}
return 0
}
func (m *GatewayRadio_TxConfiguration) GetMaxFrequency() uint64 {
if m != nil {
return m.MaxFrequency
}
return 0
}
func (m *GatewayRadio_TxConfiguration) GetNotchFrequency() uint64 {
if m != nil {
return m.NotchFrequency
}
return 0
}
// Authentication code for claiming gateways.
type GatewayClaimAuthenticationCode struct {
Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
ValidFrom *types.Timestamp `protobuf:"bytes,2,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"`
ValidTo *types.Timestamp `protobuf:"bytes,3,opt,name=valid_to,json=validTo,proto3" json:"valid_to,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayClaimAuthenticationCode) Reset() { *m = GatewayClaimAuthenticationCode{} }
func (*GatewayClaimAuthenticationCode) ProtoMessage() {}
func (*GatewayClaimAuthenticationCode) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{4}
}
func (m *GatewayClaimAuthenticationCode) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayClaimAuthenticationCode.Unmarshal(m, b)
}
func (m *GatewayClaimAuthenticationCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayClaimAuthenticationCode.Marshal(b, m, deterministic)
}
func (m *GatewayClaimAuthenticationCode) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayClaimAuthenticationCode.Merge(m, src)
}
func (m *GatewayClaimAuthenticationCode) XXX_Size() int {
return xxx_messageInfo_GatewayClaimAuthenticationCode.Size(m)
}
func (m *GatewayClaimAuthenticationCode) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayClaimAuthenticationCode.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayClaimAuthenticationCode proto.InternalMessageInfo
func (m *GatewayClaimAuthenticationCode) GetSecret() *Secret {
if m != nil {
return m.Secret
}
return nil
}
func (m *GatewayClaimAuthenticationCode) GetValidFrom() *types.Timestamp {
if m != nil {
return m.ValidFrom
}
return nil
}
func (m *GatewayClaimAuthenticationCode) GetValidTo() *types.Timestamp {
if m != nil {
return m.ValidTo
}
return nil
}
// Gateway is the message that defines a gateway on the network.
type Gateway struct {
// The identifiers of the gateway. These are public and can be seen by any authenticated user in the network.
Ids *GatewayIdentifiers `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
// When the gateway was created. This information is public and can be seen by any authenticated user in the network.
CreatedAt *types.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// When the gateway was last updated. This information is public and can be seen by any authenticated user in the network.
UpdatedAt *types.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// When the gateway was deleted. This information is public and can be seen by any authenticated user in the network.
DeletedAt *types.Timestamp `protobuf:"bytes,26,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
// The name of the gateway. This information is public and can be seen by any authenticated user in the network.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// A description for the gateway. This information is public and can be seen by any authenticated user in the network.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Key-value attributes for this gateway. Typically used for organizing gateways or for storing integration-specific data.
Attributes map[string]string `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Contact information for this gateway. Typically used to indicate who to contact with technical/security questions about the gateway.
ContactInfo []*ContactInfo `protobuf:"bytes,7,rep,name=contact_info,json=contactInfo,proto3" json:"contact_info,omitempty"`
VersionIds *GatewayVersionIdentifiers `protobuf:"bytes,8,opt,name=version_ids,json=versionIds,proto3" json:"version_ids,omitempty"`
// The address of the Gateway Server to connect to.
// This information is public and can be seen by any authenticated user in the network if status_public is true.
// The typical format of the address is "scheme://host:port". The scheme is optional. If the port is omitted,
// the normal port inference (with DNS lookup, otherwise defaults) is used.
// The connection shall be established with transport layer security (TLS).
// Custom certificate authorities may be configured out-of-band.
GatewayServerAddress string `protobuf:"bytes,9,opt,name=gateway_server_address,json=gatewayServerAddress,proto3" json:"gateway_server_address,omitempty"`
AutoUpdate bool `protobuf:"varint,10,opt,name=auto_update,json=autoUpdate,proto3" json:"auto_update,omitempty"`
UpdateChannel string `protobuf:"bytes,11,opt,name=update_channel,json=updateChannel,proto3" json:"update_channel,omitempty"`
// Frequency plan ID of the gateway.
// This information is public and can be seen by any authenticated user in the network.
// DEPRECATED: use frequency_plan_ids.
// This equals the first element of the frequency_plan_ids field.
FrequencyPlanId string `protobuf:"bytes,12,opt,name=frequency_plan_id,json=frequencyPlanId,proto3" json:"frequency_plan_id,omitempty"`
// Frequency plan IDs of the gateway.
// This information is public and can be seen by any authenticated user in the network.
// The first element equals the frequency_plan_id field.
FrequencyPlanIds []string `protobuf:"bytes,20,rep,name=frequency_plan_ids,json=frequencyPlanIds,proto3" json:"frequency_plan_ids,omitempty"`
// Antennas of the gateway. Location information of the antennas is public and can be seen by any authenticated user in the network if location_public=true.
Antennas []*GatewayAntenna `protobuf:"bytes,13,rep,name=antennas,proto3" json:"antennas,omitempty"`
// The status of this gateway may be publicly displayed.
StatusPublic bool `protobuf:"varint,14,opt,name=status_public,json=statusPublic,proto3" json:"status_public,omitempty"`
// The location of this gateway may be publicly displayed.
LocationPublic bool `protobuf:"varint,15,opt,name=location_public,json=locationPublic,proto3" json:"location_public,omitempty"`
// Enable server-side buffering of downlink messages. This is recommended for gateways using the Semtech UDP Packet
// Forwarder v2.x or older, as it does not feature a just-in-time queue. If enabled, the Gateway Server schedules the
// downlink message late to the gateway so that it does not overwrite previously scheduled downlink messages that have
// not been transmitted yet.
ScheduleDownlinkLate bool `protobuf:"varint,16,opt,name=schedule_downlink_late,json=scheduleDownlinkLate,proto3" json:"schedule_downlink_late,omitempty"`
// Enforcing gateway duty cycle is recommended for all gateways to respect spectrum regulations. Disable enforcing the
// duty cycle only in controlled research and development environments.
EnforceDutyCycle bool `protobuf:"varint,17,opt,name=enforce_duty_cycle,json=enforceDutyCycle,proto3" json:"enforce_duty_cycle,omitempty"`
DownlinkPathConstraint DownlinkPathConstraint `protobuf:"varint,18,opt,name=downlink_path_constraint,json=downlinkPathConstraint,proto3,enum=ttn.lorawan.v3.DownlinkPathConstraint" json:"downlink_path_constraint,omitempty"`
// Adjust the time that GS schedules class C messages in advance. This is useful for gateways that have a known high latency backhaul, like 3G and satellite.
ScheduleAnytimeDelay *types.Duration `protobuf:"bytes,19,opt,name=schedule_anytime_delay,json=scheduleAnytimeDelay,proto3" json:"schedule_anytime_delay,omitempty"`
// Update the location of this gateway from status messages. This only works for gateways connecting with authentication; gateways connected over UDP are not supported.
UpdateLocationFromStatus bool `protobuf:"varint,21,opt,name=update_location_from_status,json=updateLocationFromStatus,proto3" json:"update_location_from_status,omitempty"`
// The LoRa Basics Station LNS secret.
// This is either an auth token (such as an API Key) or a TLS private certificate.
// Requires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value.
LbsLnsSecret *Secret `protobuf:"bytes,22,opt,name=lbs_lns_secret,json=lbsLnsSecret,proto3" json:"lbs_lns_secret,omitempty"`
// The authentication code for gateway claiming.
// Requires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value.
// The entire field must be used in RPCs since sub-fields are validated wrt to each other. Direct selection/update of sub-fields only are not allowed.
// Use the top level field mask `claim_authentication_code` even when updating single fields.
ClaimAuthenticationCode *GatewayClaimAuthenticationCode `protobuf:"bytes,23,opt,name=claim_authentication_code,json=claimAuthenticationCode,proto3" json:"claim_authentication_code,omitempty"`
// CUPS URI for LoRa Basics Station CUPS redirection.
// The CUPS Trust field will be automatically fetched from the cert chain presented by the target server.
TargetCupsUri string `protobuf:"bytes,24,opt,name=target_cups_uri,json=targetCupsUri,proto3" json:"target_cups_uri,omitempty"`
// CUPS Key for LoRa Basics Station CUPS redirection.
// If redirecting to another instance of TTS, use the CUPS API Key for the gateway on the target instance.
// Requires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value.
TargetCupsKey *Secret `protobuf:"bytes,25,opt,name=target_cups_key,json=targetCupsKey,proto3" json:"target_cups_key,omitempty"`
// Require an authenticated gateway connection. This prevents the gateway from using the UDP protocol and requires authentication when using other protocols.
RequireAuthenticatedConnection bool `protobuf:"varint,27,opt,name=require_authenticated_connection,json=requireAuthenticatedConnection,proto3" json:"require_authenticated_connection,omitempty"`
Lrfhss *Gateway_LRFHSS `protobuf:"bytes,28,opt,name=lrfhss,proto3" json:"lrfhss,omitempty"`
DisablePacketBrokerForwarding bool `protobuf:"varint,29,opt,name=disable_packet_broker_forwarding,json=disablePacketBrokerForwarding,proto3" json:"disable_packet_broker_forwarding,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Gateway) Reset() { *m = Gateway{} }
func (*Gateway) ProtoMessage() {}
func (*Gateway) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{5}
}
func (m *Gateway) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Gateway.Unmarshal(m, b)
}
func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Gateway.Marshal(b, m, deterministic)
}
func (m *Gateway) XXX_Merge(src proto.Message) {
xxx_messageInfo_Gateway.Merge(m, src)
}
func (m *Gateway) XXX_Size() int {
return xxx_messageInfo_Gateway.Size(m)
}
func (m *Gateway) XXX_DiscardUnknown() {
xxx_messageInfo_Gateway.DiscardUnknown(m)
}
var xxx_messageInfo_Gateway proto.InternalMessageInfo
func (m *Gateway) GetIds() *GatewayIdentifiers {
if m != nil {
return m.Ids
}
return nil
}
func (m *Gateway) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *Gateway) GetUpdatedAt() *types.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
func (m *Gateway) GetDeletedAt() *types.Timestamp {
if m != nil {
return m.DeletedAt
}
return nil
}
func (m *Gateway) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Gateway) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Gateway) GetAttributes() map[string]string {
if m != nil {
return m.Attributes
}
return nil
}
func (m *Gateway) GetContactInfo() []*ContactInfo {
if m != nil {
return m.ContactInfo
}
return nil
}
func (m *Gateway) GetVersionIds() *GatewayVersionIdentifiers {
if m != nil {
return m.VersionIds
}
return nil
}
func (m *Gateway) GetGatewayServerAddress() string {
if m != nil {
return m.GatewayServerAddress
}
return ""
}
func (m *Gateway) GetAutoUpdate() bool {
if m != nil {
return m.AutoUpdate
}
return false
}
func (m *Gateway) GetUpdateChannel() string {
if m != nil {
return m.UpdateChannel
}
return ""
}
func (m *Gateway) GetFrequencyPlanId() string {
if m != nil {
return m.FrequencyPlanId
}
return ""
}
func (m *Gateway) GetFrequencyPlanIds() []string {
if m != nil {
return m.FrequencyPlanIds
}
return nil
}
func (m *Gateway) GetAntennas() []*GatewayAntenna {
if m != nil {
return m.Antennas
}
return nil
}
func (m *Gateway) GetStatusPublic() bool {
if m != nil {
return m.StatusPublic
}
return false
}
func (m *Gateway) GetLocationPublic() bool {
if m != nil {
return m.LocationPublic
}
return false
}
func (m *Gateway) GetScheduleDownlinkLate() bool {
if m != nil {
return m.ScheduleDownlinkLate
}
return false
}
func (m *Gateway) GetEnforceDutyCycle() bool {
if m != nil {
return m.EnforceDutyCycle
}
return false
}
func (m *Gateway) GetDownlinkPathConstraint() DownlinkPathConstraint {
if m != nil {
return m.DownlinkPathConstraint
}
return DOWNLINK_PATH_CONSTRAINT_NONE
}
func (m *Gateway) GetScheduleAnytimeDelay() *types.Duration {
if m != nil {
return m.ScheduleAnytimeDelay
}
return nil
}
func (m *Gateway) GetUpdateLocationFromStatus() bool {
if m != nil {
return m.UpdateLocationFromStatus
}
return false
}
func (m *Gateway) GetLbsLnsSecret() *Secret {
if m != nil {
return m.LbsLnsSecret
}
return nil
}
func (m *Gateway) GetClaimAuthenticationCode() *GatewayClaimAuthenticationCode {
if m != nil {
return m.ClaimAuthenticationCode
}
return nil
}
func (m *Gateway) GetTargetCupsUri() string {
if m != nil {
return m.TargetCupsUri
}
return ""
}
func (m *Gateway) GetTargetCupsKey() *Secret {
if m != nil {
return m.TargetCupsKey
}
return nil
}
func (m *Gateway) GetRequireAuthenticatedConnection() bool {
if m != nil {
return m.RequireAuthenticatedConnection
}
return false
}
func (m *Gateway) GetLrfhss() *Gateway_LRFHSS {
if m != nil {
return m.Lrfhss
}
return nil
}
func (m *Gateway) GetDisablePacketBrokerForwarding() bool {
if m != nil {
return m.DisablePacketBrokerForwarding
}
return false
}
// LR-FHSS gateway capabilities.
type Gateway_LRFHSS struct {
// The gateway supports the LR-FHSS uplink channels.
Supported bool `protobuf:"varint,1,opt,name=supported,proto3" json:"supported,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Gateway_LRFHSS) Reset() { *m = Gateway_LRFHSS{} }
func (*Gateway_LRFHSS) ProtoMessage() {}
func (*Gateway_LRFHSS) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{5, 1}
}
func (m *Gateway_LRFHSS) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Gateway_LRFHSS.Unmarshal(m, b)
}
func (m *Gateway_LRFHSS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Gateway_LRFHSS.Marshal(b, m, deterministic)
}
func (m *Gateway_LRFHSS) XXX_Merge(src proto.Message) {
xxx_messageInfo_Gateway_LRFHSS.Merge(m, src)
}
func (m *Gateway_LRFHSS) XXX_Size() int {
return xxx_messageInfo_Gateway_LRFHSS.Size(m)
}
func (m *Gateway_LRFHSS) XXX_DiscardUnknown() {
xxx_messageInfo_Gateway_LRFHSS.DiscardUnknown(m)
}
var xxx_messageInfo_Gateway_LRFHSS proto.InternalMessageInfo
func (m *Gateway_LRFHSS) GetSupported() bool {
if m != nil {
return m.Supported
}
return false
}
type Gateways struct {
Gateways []*Gateway `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Gateways) Reset() { *m = Gateways{} }
func (*Gateways) ProtoMessage() {}
func (*Gateways) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{6}
}
func (m *Gateways) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Gateways.Unmarshal(m, b)
}
func (m *Gateways) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Gateways.Marshal(b, m, deterministic)
}
func (m *Gateways) XXX_Merge(src proto.Message) {
xxx_messageInfo_Gateways.Merge(m, src)
}
func (m *Gateways) XXX_Size() int {
return xxx_messageInfo_Gateways.Size(m)
}
func (m *Gateways) XXX_DiscardUnknown() {
xxx_messageInfo_Gateways.DiscardUnknown(m)
}
var xxx_messageInfo_Gateways proto.InternalMessageInfo
func (m *Gateways) GetGateways() []*Gateway {
if m != nil {
return m.Gateways
}
return nil
}
type GetGatewayRequest struct {
GatewayIds *GatewayIdentifiers `protobuf:"bytes,1,opt,name=gateway_ids,json=gatewayIds,proto3" json:"gateway_ids,omitempty"`
// The names of the gateway fields that should be returned.
FieldMask *types.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGatewayRequest) Reset() { *m = GetGatewayRequest{} }
func (*GetGatewayRequest) ProtoMessage() {}
func (*GetGatewayRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{7}
}
func (m *GetGatewayRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGatewayRequest.Unmarshal(m, b)
}
func (m *GetGatewayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGatewayRequest.Marshal(b, m, deterministic)
}
func (m *GetGatewayRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGatewayRequest.Merge(m, src)
}
func (m *GetGatewayRequest) XXX_Size() int {
return xxx_messageInfo_GetGatewayRequest.Size(m)
}
func (m *GetGatewayRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGatewayRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGatewayRequest proto.InternalMessageInfo
func (m *GetGatewayRequest) GetGatewayIds() *GatewayIdentifiers {
if m != nil {
return m.GatewayIds
}
return nil
}
func (m *GetGatewayRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
type GetGatewayIdentifiersForEUIRequest struct {
Eui *go_thethings_network_lorawan_stack_v3_pkg_types.EUI64 `protobuf:"bytes,1,opt,name=eui,proto3,customtype=go.thethings.network/lorawan-stack/v3/pkg/types.EUI64" json:"eui,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGatewayIdentifiersForEUIRequest) Reset() { *m = GetGatewayIdentifiersForEUIRequest{} }
func (*GetGatewayIdentifiersForEUIRequest) ProtoMessage() {}
func (*GetGatewayIdentifiersForEUIRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{8}
}
func (m *GetGatewayIdentifiersForEUIRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGatewayIdentifiersForEUIRequest.Unmarshal(m, b)
}
func (m *GetGatewayIdentifiersForEUIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGatewayIdentifiersForEUIRequest.Marshal(b, m, deterministic)
}
func (m *GetGatewayIdentifiersForEUIRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGatewayIdentifiersForEUIRequest.Merge(m, src)
}
func (m *GetGatewayIdentifiersForEUIRequest) XXX_Size() int {
return xxx_messageInfo_GetGatewayIdentifiersForEUIRequest.Size(m)
}
func (m *GetGatewayIdentifiersForEUIRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGatewayIdentifiersForEUIRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGatewayIdentifiersForEUIRequest proto.InternalMessageInfo
type ListGatewaysRequest struct {
// By default we list all gateways the caller has rights on.
// Set the user or the organization (not both) to instead list the gateways
// where the user or organization is collaborator on.
Collaborator *OrganizationOrUserIdentifiers `protobuf:"bytes,1,opt,name=collaborator,proto3" json:"collaborator,omitempty"`
// The names of the gateway fields that should be returned.
FieldMask *types.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted gateways.
Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListGatewaysRequest) Reset() { *m = ListGatewaysRequest{} }
func (*ListGatewaysRequest) ProtoMessage() {}
func (*ListGatewaysRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{9}
}
func (m *ListGatewaysRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListGatewaysRequest.Unmarshal(m, b)
}
func (m *ListGatewaysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListGatewaysRequest.Marshal(b, m, deterministic)
}
func (m *ListGatewaysRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListGatewaysRequest.Merge(m, src)
}
func (m *ListGatewaysRequest) XXX_Size() int {
return xxx_messageInfo_ListGatewaysRequest.Size(m)
}
func (m *ListGatewaysRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListGatewaysRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListGatewaysRequest proto.InternalMessageInfo
func (m *ListGatewaysRequest) GetCollaborator() *OrganizationOrUserIdentifiers {
if m != nil {
return m.Collaborator
}
return nil
}
func (m *ListGatewaysRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *ListGatewaysRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *ListGatewaysRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListGatewaysRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *ListGatewaysRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
type CreateGatewayRequest struct {
Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
// Collaborator to grant all rights on the newly created gateway.
Collaborator *OrganizationOrUserIdentifiers `protobuf:"bytes,2,opt,name=collaborator,proto3" json:"collaborator,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateGatewayRequest) Reset() { *m = CreateGatewayRequest{} }
func (*CreateGatewayRequest) ProtoMessage() {}
func (*CreateGatewayRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{10}
}
func (m *CreateGatewayRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateGatewayRequest.Unmarshal(m, b)
}
func (m *CreateGatewayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateGatewayRequest.Marshal(b, m, deterministic)
}
func (m *CreateGatewayRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateGatewayRequest.Merge(m, src)
}
func (m *CreateGatewayRequest) XXX_Size() int {
return xxx_messageInfo_CreateGatewayRequest.Size(m)
}
func (m *CreateGatewayRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateGatewayRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateGatewayRequest proto.InternalMessageInfo
func (m *CreateGatewayRequest) GetGateway() *Gateway {
if m != nil {
return m.Gateway
}
return nil
}
func (m *CreateGatewayRequest) GetCollaborator() *OrganizationOrUserIdentifiers {
if m != nil {
return m.Collaborator
}
return nil
}
type UpdateGatewayRequest struct {
Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
// The names of the gateway fields that should be updated.
FieldMask *types.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateGatewayRequest) Reset() { *m = UpdateGatewayRequest{} }
func (*UpdateGatewayRequest) ProtoMessage() {}
func (*UpdateGatewayRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1df6bae1ac946b39, []int{11}