-
Notifications
You must be signed in to change notification settings - Fork 310
/
enums.pb.go
222 lines (198 loc) · 9.41 KB
/
enums.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/enums.proto
package ttnpb
import (
fmt "fmt"
math "math"
strconv "strconv"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
)
// 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 DownlinkPathConstraint int32
const (
// Indicates that the gateway can be selected for downlink without constraints by the Network Server.
DOWNLINK_PATH_CONSTRAINT_NONE DownlinkPathConstraint = 0
// Indicates that the gateway can be selected for downlink only if no other or better gateway can be selected.
DOWNLINK_PATH_CONSTRAINT_PREFER_OTHER DownlinkPathConstraint = 1
// Indicates that this gateway will never be selected for downlink, even if that results in no available downlink path.
DOWNLINK_PATH_CONSTRAINT_NEVER DownlinkPathConstraint = 2
)
var DownlinkPathConstraint_name = map[int32]string{
0: "DOWNLINK_PATH_CONSTRAINT_NONE",
1: "DOWNLINK_PATH_CONSTRAINT_PREFER_OTHER",
2: "DOWNLINK_PATH_CONSTRAINT_NEVER",
}
var DownlinkPathConstraint_value = map[string]int32{
"DOWNLINK_PATH_CONSTRAINT_NONE": 0,
"DOWNLINK_PATH_CONSTRAINT_PREFER_OTHER": 1,
"DOWNLINK_PATH_CONSTRAINT_NEVER": 2,
}
func (DownlinkPathConstraint) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e36318a1e2f407cb, []int{0}
}
// State enum defines states that an entity can be in.
type State int32
const (
// Denotes that the entity has been requested and is pending review by an admin.
STATE_REQUESTED State = 0
// Denotes that the entity has been reviewed and approved by an admin.
STATE_APPROVED State = 1
// Denotes that the entity has been reviewed and rejected by an admin.
STATE_REJECTED State = 2
// Denotes that the entity has been flagged and is pending review by an admin.
STATE_FLAGGED State = 3
// Denotes that the entity has been reviewed and suspended by an admin.
STATE_SUSPENDED State = 4
)
var State_name = map[int32]string{
0: "STATE_REQUESTED",
1: "STATE_APPROVED",
2: "STATE_REJECTED",
3: "STATE_FLAGGED",
4: "STATE_SUSPENDED",
}
var State_value = map[string]int32{
"STATE_REQUESTED": 0,
"STATE_APPROVED": 1,
"STATE_REJECTED": 2,
"STATE_FLAGGED": 3,
"STATE_SUSPENDED": 4,
}
func (State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e36318a1e2f407cb, []int{1}
}
type ClusterRole int32
const (
ClusterRole_NONE ClusterRole = 0
ClusterRole_ENTITY_REGISTRY ClusterRole = 1
ClusterRole_ACCESS ClusterRole = 2
ClusterRole_GATEWAY_SERVER ClusterRole = 3
ClusterRole_NETWORK_SERVER ClusterRole = 4
ClusterRole_APPLICATION_SERVER ClusterRole = 5
ClusterRole_JOIN_SERVER ClusterRole = 6
ClusterRole_CRYPTO_SERVER ClusterRole = 7
ClusterRole_DEVICE_TEMPLATE_CONVERTER ClusterRole = 8
ClusterRole_DEVICE_CLAIMING_SERVER ClusterRole = 9
ClusterRole_GATEWAY_CONFIGURATION_SERVER ClusterRole = 10
ClusterRole_QR_CODE_GENERATOR ClusterRole = 11
ClusterRole_PACKET_BROKER_AGENT ClusterRole = 12
)
var ClusterRole_name = map[int32]string{
0: "NONE",
1: "ENTITY_REGISTRY",
2: "ACCESS",
3: "GATEWAY_SERVER",
4: "NETWORK_SERVER",
5: "APPLICATION_SERVER",
6: "JOIN_SERVER",
7: "CRYPTO_SERVER",
8: "DEVICE_TEMPLATE_CONVERTER",
9: "DEVICE_CLAIMING_SERVER",
10: "GATEWAY_CONFIGURATION_SERVER",
11: "QR_CODE_GENERATOR",
12: "PACKET_BROKER_AGENT",
}
var ClusterRole_value = map[string]int32{
"NONE": 0,
"ENTITY_REGISTRY": 1,
"ACCESS": 2,
"GATEWAY_SERVER": 3,
"NETWORK_SERVER": 4,
"APPLICATION_SERVER": 5,
"JOIN_SERVER": 6,
"CRYPTO_SERVER": 7,
"DEVICE_TEMPLATE_CONVERTER": 8,
"DEVICE_CLAIMING_SERVER": 9,
"GATEWAY_CONFIGURATION_SERVER": 10,
"QR_CODE_GENERATOR": 11,
"PACKET_BROKER_AGENT": 12,
}
func (ClusterRole) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e36318a1e2f407cb, []int{2}
}
func init() {
proto.RegisterEnum("ttn.lorawan.v3.DownlinkPathConstraint", DownlinkPathConstraint_name, DownlinkPathConstraint_value)
golang_proto.RegisterEnum("ttn.lorawan.v3.DownlinkPathConstraint", DownlinkPathConstraint_name, DownlinkPathConstraint_value)
proto.RegisterEnum("ttn.lorawan.v3.State", State_name, State_value)
golang_proto.RegisterEnum("ttn.lorawan.v3.State", State_name, State_value)
proto.RegisterEnum("ttn.lorawan.v3.ClusterRole", ClusterRole_name, ClusterRole_value)
golang_proto.RegisterEnum("ttn.lorawan.v3.ClusterRole", ClusterRole_name, ClusterRole_value)
}
func init() { proto.RegisterFile("lorawan-stack/api/enums.proto", fileDescriptor_e36318a1e2f407cb) }
func init() {
golang_proto.RegisterFile("lorawan-stack/api/enums.proto", fileDescriptor_e36318a1e2f407cb)
}
var fileDescriptor_e36318a1e2f407cb = []byte{
// 615 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xb1, 0x4f, 0xdb, 0x40,
0x14, 0xc6, 0xef, 0x42, 0xa0, 0xf4, 0x68, 0xc1, 0x1c, 0x2a, 0x55, 0x51, 0x79, 0x6a, 0x2b, 0x75,
0x28, 0x12, 0xf1, 0xc0, 0x5f, 0x60, 0xec, 0x87, 0x31, 0x09, 0xb6, 0x39, 0x1f, 0x41, 0xe9, 0x62,
0x25, 0x28, 0x4d, 0xa2, 0x04, 0x3b, 0x4a, 0x2e, 0xb0, 0x32, 0x32, 0x32, 0x76, 0xac, 0x54, 0x55,
0xa2, 0x1b, 0x23, 0x23, 0x23, 0x23, 0x23, 0x23, 0xb1, 0x17, 0x46, 0x46, 0xc6, 0x2a, 0x21, 0x29,
0x62, 0x60, 0xbb, 0xf7, 0xbb, 0xef, 0xbd, 0xf7, 0x7d, 0xd2, 0x1d, 0x5b, 0x6e, 0xc5, 0x9d, 0xf2,
0x51, 0x39, 0x5a, 0xed, 0xaa, 0xf2, 0x7e, 0x53, 0x2f, 0xb7, 0x1b, 0x7a, 0x35, 0xea, 0x1d, 0x74,
0x73, 0xed, 0x4e, 0xac, 0x62, 0x3e, 0xab, 0x54, 0x94, 0x1b, 0x49, 0x72, 0x87, 0x6b, 0x4b, 0xab,
0xb5, 0x86, 0xaa, 0xf7, 0x2a, 0xb9, 0xfd, 0xf8, 0x40, 0xaf, 0xc5, 0xb5, 0x58, 0x1f, 0xca, 0x2a,
0xbd, 0x1f, 0xc3, 0x6a, 0x58, 0x0c, 0x4f, 0x8f, 0xed, 0x2b,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xd0, 0x9b, 0x04, 0xc8, 0x6d,
0x02, 0xf4, 0x2e, 0x01, 0x72, 0x9f, 0x00, 0x7d, 0x48, 0x80, 0x1c, 0xa7, 0x40, 0x4e, 0x52, 0xa0,
0xa7, 0x29, 0x90, 0x9f, 0x29, 0xd0, 0x5f, 0x29, 0x90, 0xb3, 0x14, 0xc8, 0x79, 0x0a, 0xf4, 0x22,
0x05, 0x7a, 0x99, 0x02, 0xfd, 0xae, 0xd7, 0xe2, 0x9c, 0xaa, 0x57, 0x55, 0xbd, 0x11, 0xd5, 0xba,
0xb9, 0xa8, 0xaa, 0x8e, 0xe2, 0x4e, 0x53, 0x7f, 0xfe, 0x39, 0x0e, 0xd7, 0xf4, 0x76, 0xb3, 0xa6,
0x2b, 0x15, 0xb5, 0x2b, 0x95, 0xa9, 0xe1, 0x0b, 0x5f, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0x43,
0x49, 0xbe, 0x69, 0x41, 0x03, 0x00, 0x00,
}
func (x DownlinkPathConstraint) String() string {
s, ok := DownlinkPathConstraint_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (x State) String() string {
s, ok := State_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (x ClusterRole) String() string {
s, ok := ClusterRole_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}