blob: 5e469344bca5795d96e8c333bfbb23f58f80f017 [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
Abhay Kumar03713392025-12-30 05:20:58 +00002// versions:
3// protoc-gen-go v1.36.11
4// protoc v4.25.8
William Kurkian1b363f42019-03-12 15:28:12 -04005// source: voltha_protos/device.proto
6
William Kurkianad745652019-03-20 08:45:51 -04007package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04008
William Kurkianad745652019-03-20 08:45:51 -04009import (
khenaidoo5fc5cea2021-08-11 17:39:16 -040010 common "github.com/opencord/voltha-protos/v5/go/common"
11 openflow_13 "github.com/opencord/voltha-protos/v5/go/openflow_13"
Abhay Kumar03713392025-12-30 05:20:58 +000012 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 anypb "google.golang.org/protobuf/types/known/anypb"
15 reflect "reflect"
16 sync "sync"
17 unsafe "unsafe"
William Kurkianad745652019-03-20 08:45:51 -040018)
William Kurkian1b363f42019-03-12 15:28:12 -040019
Abhay Kumar03713392025-12-30 05:20:58 +000020const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25)
William Kurkian1b363f42019-03-12 15:28:12 -040026
27type PmConfig_PmType int32
28
29const (
30 PmConfig_COUNTER PmConfig_PmType = 0
31 PmConfig_GAUGE PmConfig_PmType = 1
32 PmConfig_STATE PmConfig_PmType = 2
33 PmConfig_CONTEXT PmConfig_PmType = 3
34)
35
Abhay Kumar03713392025-12-30 05:20:58 +000036// Enum value maps for PmConfig_PmType.
37var (
38 PmConfig_PmType_name = map[int32]string{
39 0: "COUNTER",
40 1: "GAUGE",
41 2: "STATE",
42 3: "CONTEXT",
43 }
44 PmConfig_PmType_value = map[string]int32{
45 "COUNTER": 0,
46 "GAUGE": 1,
47 "STATE": 2,
48 "CONTEXT": 3,
49 }
50)
William Kurkianad745652019-03-20 08:45:51 -040051
Abhay Kumar03713392025-12-30 05:20:58 +000052func (x PmConfig_PmType) Enum() *PmConfig_PmType {
53 p := new(PmConfig_PmType)
54 *p = x
55 return p
William Kurkian1b363f42019-03-12 15:28:12 -040056}
57
58func (x PmConfig_PmType) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +000059 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -040060}
William Kurkianad745652019-03-20 08:45:51 -040061
Abhay Kumar03713392025-12-30 05:20:58 +000062func (PmConfig_PmType) Descriptor() protoreflect.EnumDescriptor {
63 return file_voltha_protos_device_proto_enumTypes[0].Descriptor()
64}
65
66func (PmConfig_PmType) Type() protoreflect.EnumType {
67 return &file_voltha_protos_device_proto_enumTypes[0]
68}
69
70func (x PmConfig_PmType) Number() protoreflect.EnumNumber {
71 return protoreflect.EnumNumber(x)
72}
73
74// Deprecated: Use PmConfig_PmType.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -040075func (PmConfig_PmType) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +000076 return file_voltha_protos_device_proto_rawDescGZIP(), []int{2, 0}
William Kurkian1b363f42019-03-12 15:28:12 -040077}
78
79type ImageDownload_ImageDownloadState int32
80
81const (
82 ImageDownload_DOWNLOAD_UNKNOWN ImageDownload_ImageDownloadState = 0
83 ImageDownload_DOWNLOAD_SUCCEEDED ImageDownload_ImageDownloadState = 1
84 ImageDownload_DOWNLOAD_REQUESTED ImageDownload_ImageDownloadState = 2
85 ImageDownload_DOWNLOAD_STARTED ImageDownload_ImageDownloadState = 3
86 ImageDownload_DOWNLOAD_FAILED ImageDownload_ImageDownloadState = 4
87 ImageDownload_DOWNLOAD_UNSUPPORTED ImageDownload_ImageDownloadState = 5
88 ImageDownload_DOWNLOAD_CANCELLED ImageDownload_ImageDownloadState = 6
89)
90
Abhay Kumar03713392025-12-30 05:20:58 +000091// Enum value maps for ImageDownload_ImageDownloadState.
92var (
93 ImageDownload_ImageDownloadState_name = map[int32]string{
94 0: "DOWNLOAD_UNKNOWN",
95 1: "DOWNLOAD_SUCCEEDED",
96 2: "DOWNLOAD_REQUESTED",
97 3: "DOWNLOAD_STARTED",
98 4: "DOWNLOAD_FAILED",
99 5: "DOWNLOAD_UNSUPPORTED",
100 6: "DOWNLOAD_CANCELLED",
101 }
102 ImageDownload_ImageDownloadState_value = map[string]int32{
103 "DOWNLOAD_UNKNOWN": 0,
104 "DOWNLOAD_SUCCEEDED": 1,
105 "DOWNLOAD_REQUESTED": 2,
106 "DOWNLOAD_STARTED": 3,
107 "DOWNLOAD_FAILED": 4,
108 "DOWNLOAD_UNSUPPORTED": 5,
109 "DOWNLOAD_CANCELLED": 6,
110 }
111)
William Kurkianad745652019-03-20 08:45:51 -0400112
Abhay Kumar03713392025-12-30 05:20:58 +0000113func (x ImageDownload_ImageDownloadState) Enum() *ImageDownload_ImageDownloadState {
114 p := new(ImageDownload_ImageDownloadState)
115 *p = x
116 return p
William Kurkian1b363f42019-03-12 15:28:12 -0400117}
118
119func (x ImageDownload_ImageDownloadState) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000120 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400121}
William Kurkianad745652019-03-20 08:45:51 -0400122
Abhay Kumar03713392025-12-30 05:20:58 +0000123func (ImageDownload_ImageDownloadState) Descriptor() protoreflect.EnumDescriptor {
124 return file_voltha_protos_device_proto_enumTypes[1].Descriptor()
125}
126
127func (ImageDownload_ImageDownloadState) Type() protoreflect.EnumType {
128 return &file_voltha_protos_device_proto_enumTypes[1]
129}
130
131func (x ImageDownload_ImageDownloadState) Number() protoreflect.EnumNumber {
132 return protoreflect.EnumNumber(x)
133}
134
135// Deprecated: Use ImageDownload_ImageDownloadState.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400136func (ImageDownload_ImageDownloadState) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000137 return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400138}
139
140type ImageDownload_ImageDownloadFailureReason int32
141
142const (
143 ImageDownload_NO_ERROR ImageDownload_ImageDownloadFailureReason = 0
144 ImageDownload_INVALID_URL ImageDownload_ImageDownloadFailureReason = 1
145 ImageDownload_DEVICE_BUSY ImageDownload_ImageDownloadFailureReason = 2
146 ImageDownload_INSUFFICIENT_SPACE ImageDownload_ImageDownloadFailureReason = 3
147 ImageDownload_UNKNOWN_ERROR ImageDownload_ImageDownloadFailureReason = 4
148 ImageDownload_CANCELLED ImageDownload_ImageDownloadFailureReason = 5
149)
150
Abhay Kumar03713392025-12-30 05:20:58 +0000151// Enum value maps for ImageDownload_ImageDownloadFailureReason.
152var (
153 ImageDownload_ImageDownloadFailureReason_name = map[int32]string{
154 0: "NO_ERROR",
155 1: "INVALID_URL",
156 2: "DEVICE_BUSY",
157 3: "INSUFFICIENT_SPACE",
158 4: "UNKNOWN_ERROR",
159 5: "CANCELLED",
160 }
161 ImageDownload_ImageDownloadFailureReason_value = map[string]int32{
162 "NO_ERROR": 0,
163 "INVALID_URL": 1,
164 "DEVICE_BUSY": 2,
165 "INSUFFICIENT_SPACE": 3,
166 "UNKNOWN_ERROR": 4,
167 "CANCELLED": 5,
168 }
169)
William Kurkianad745652019-03-20 08:45:51 -0400170
Abhay Kumar03713392025-12-30 05:20:58 +0000171func (x ImageDownload_ImageDownloadFailureReason) Enum() *ImageDownload_ImageDownloadFailureReason {
172 p := new(ImageDownload_ImageDownloadFailureReason)
173 *p = x
174 return p
William Kurkian1b363f42019-03-12 15:28:12 -0400175}
176
177func (x ImageDownload_ImageDownloadFailureReason) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000178 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400179}
William Kurkianad745652019-03-20 08:45:51 -0400180
Abhay Kumar03713392025-12-30 05:20:58 +0000181func (ImageDownload_ImageDownloadFailureReason) Descriptor() protoreflect.EnumDescriptor {
182 return file_voltha_protos_device_proto_enumTypes[2].Descriptor()
183}
184
185func (ImageDownload_ImageDownloadFailureReason) Type() protoreflect.EnumType {
186 return &file_voltha_protos_device_proto_enumTypes[2]
187}
188
189func (x ImageDownload_ImageDownloadFailureReason) Number() protoreflect.EnumNumber {
190 return protoreflect.EnumNumber(x)
191}
192
193// Deprecated: Use ImageDownload_ImageDownloadFailureReason.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400194func (ImageDownload_ImageDownloadFailureReason) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000195 return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 1}
William Kurkian1b363f42019-03-12 15:28:12 -0400196}
197
198type ImageDownload_ImageActivateState int32
199
200const (
201 ImageDownload_IMAGE_UNKNOWN ImageDownload_ImageActivateState = 0
202 ImageDownload_IMAGE_INACTIVE ImageDownload_ImageActivateState = 1
203 ImageDownload_IMAGE_ACTIVATING ImageDownload_ImageActivateState = 2
204 ImageDownload_IMAGE_ACTIVE ImageDownload_ImageActivateState = 3
205 ImageDownload_IMAGE_REVERTING ImageDownload_ImageActivateState = 4
206 ImageDownload_IMAGE_REVERTED ImageDownload_ImageActivateState = 5
207)
208
Abhay Kumar03713392025-12-30 05:20:58 +0000209// Enum value maps for ImageDownload_ImageActivateState.
210var (
211 ImageDownload_ImageActivateState_name = map[int32]string{
212 0: "IMAGE_UNKNOWN",
213 1: "IMAGE_INACTIVE",
214 2: "IMAGE_ACTIVATING",
215 3: "IMAGE_ACTIVE",
216 4: "IMAGE_REVERTING",
217 5: "IMAGE_REVERTED",
218 }
219 ImageDownload_ImageActivateState_value = map[string]int32{
220 "IMAGE_UNKNOWN": 0,
221 "IMAGE_INACTIVE": 1,
222 "IMAGE_ACTIVATING": 2,
223 "IMAGE_ACTIVE": 3,
224 "IMAGE_REVERTING": 4,
225 "IMAGE_REVERTED": 5,
226 }
227)
William Kurkianad745652019-03-20 08:45:51 -0400228
Abhay Kumar03713392025-12-30 05:20:58 +0000229func (x ImageDownload_ImageActivateState) Enum() *ImageDownload_ImageActivateState {
230 p := new(ImageDownload_ImageActivateState)
231 *p = x
232 return p
William Kurkian1b363f42019-03-12 15:28:12 -0400233}
234
235func (x ImageDownload_ImageActivateState) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000236 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400237}
William Kurkianad745652019-03-20 08:45:51 -0400238
Abhay Kumar03713392025-12-30 05:20:58 +0000239func (ImageDownload_ImageActivateState) Descriptor() protoreflect.EnumDescriptor {
240 return file_voltha_protos_device_proto_enumTypes[3].Descriptor()
241}
242
243func (ImageDownload_ImageActivateState) Type() protoreflect.EnumType {
244 return &file_voltha_protos_device_proto_enumTypes[3]
245}
246
247func (x ImageDownload_ImageActivateState) Number() protoreflect.EnumNumber {
248 return protoreflect.EnumNumber(x)
249}
250
251// Deprecated: Use ImageDownload_ImageActivateState.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400252func (ImageDownload_ImageActivateState) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000253 return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 2}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100254}
255
256type ImageState_ImageDownloadState int32
257
258const (
259 ImageState_DOWNLOAD_UNKNOWN ImageState_ImageDownloadState = 0
260 ImageState_DOWNLOAD_SUCCEEDED ImageState_ImageDownloadState = 1
261 ImageState_DOWNLOAD_REQUESTED ImageState_ImageDownloadState = 2
262 ImageState_DOWNLOAD_STARTED ImageState_ImageDownloadState = 3
263 ImageState_DOWNLOAD_FAILED ImageState_ImageDownloadState = 4
264 ImageState_DOWNLOAD_UNSUPPORTED ImageState_ImageDownloadState = 5
265 ImageState_DOWNLOAD_CANCELLING ImageState_ImageDownloadState = 6
266 ImageState_DOWNLOAD_CANCELLED ImageState_ImageDownloadState = 7
267)
268
Abhay Kumar03713392025-12-30 05:20:58 +0000269// Enum value maps for ImageState_ImageDownloadState.
270var (
271 ImageState_ImageDownloadState_name = map[int32]string{
272 0: "DOWNLOAD_UNKNOWN",
273 1: "DOWNLOAD_SUCCEEDED",
274 2: "DOWNLOAD_REQUESTED",
275 3: "DOWNLOAD_STARTED",
276 4: "DOWNLOAD_FAILED",
277 5: "DOWNLOAD_UNSUPPORTED",
278 6: "DOWNLOAD_CANCELLING",
279 7: "DOWNLOAD_CANCELLED",
280 }
281 ImageState_ImageDownloadState_value = map[string]int32{
282 "DOWNLOAD_UNKNOWN": 0,
283 "DOWNLOAD_SUCCEEDED": 1,
284 "DOWNLOAD_REQUESTED": 2,
285 "DOWNLOAD_STARTED": 3,
286 "DOWNLOAD_FAILED": 4,
287 "DOWNLOAD_UNSUPPORTED": 5,
288 "DOWNLOAD_CANCELLING": 6,
289 "DOWNLOAD_CANCELLED": 7,
290 }
291)
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100292
Abhay Kumar03713392025-12-30 05:20:58 +0000293func (x ImageState_ImageDownloadState) Enum() *ImageState_ImageDownloadState {
294 p := new(ImageState_ImageDownloadState)
295 *p = x
296 return p
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100297}
298
299func (x ImageState_ImageDownloadState) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000300 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100301}
302
Abhay Kumar03713392025-12-30 05:20:58 +0000303func (ImageState_ImageDownloadState) Descriptor() protoreflect.EnumDescriptor {
304 return file_voltha_protos_device_proto_enumTypes[4].Descriptor()
305}
306
307func (ImageState_ImageDownloadState) Type() protoreflect.EnumType {
308 return &file_voltha_protos_device_proto_enumTypes[4]
309}
310
311func (x ImageState_ImageDownloadState) Number() protoreflect.EnumNumber {
312 return protoreflect.EnumNumber(x)
313}
314
315// Deprecated: Use ImageState_ImageDownloadState.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100316func (ImageState_ImageDownloadState) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000317 return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 0}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100318}
319
320type ImageState_ImageFailureReason int32
321
322const (
323 ImageState_NO_ERROR ImageState_ImageFailureReason = 0
324 ImageState_INVALID_URL ImageState_ImageFailureReason = 1
325 ImageState_DEVICE_BUSY ImageState_ImageFailureReason = 2
Abhay Kumar03713392025-12-30 05:20:58 +0000326 ImageState_INSUFFICIENT_SPACE ImageState_ImageFailureReason = 3 // VOLTHA ONU ADAPTER has no more space to store images
327 ImageState_UNKNOWN_ERROR ImageState_ImageFailureReason = 4 // Used also for Checksum failure on ONU
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100328 ImageState_CANCELLED_ON_REQUEST ImageState_ImageFailureReason = 5
329 ImageState_CANCELLED_ON_ONU_STATE ImageState_ImageFailureReason = 6
330 ImageState_VENDOR_DEVICE_MISMATCH ImageState_ImageFailureReason = 7
331 ImageState_OMCI_TRANSFER_ERROR ImageState_ImageFailureReason = 8
332 ImageState_IMAGE_REFUSED_BY_ONU ImageState_ImageFailureReason = 9
333)
334
Abhay Kumar03713392025-12-30 05:20:58 +0000335// Enum value maps for ImageState_ImageFailureReason.
336var (
337 ImageState_ImageFailureReason_name = map[int32]string{
338 0: "NO_ERROR",
339 1: "INVALID_URL",
340 2: "DEVICE_BUSY",
341 3: "INSUFFICIENT_SPACE",
342 4: "UNKNOWN_ERROR",
343 5: "CANCELLED_ON_REQUEST",
344 6: "CANCELLED_ON_ONU_STATE",
345 7: "VENDOR_DEVICE_MISMATCH",
346 8: "OMCI_TRANSFER_ERROR",
347 9: "IMAGE_REFUSED_BY_ONU",
348 }
349 ImageState_ImageFailureReason_value = map[string]int32{
350 "NO_ERROR": 0,
351 "INVALID_URL": 1,
352 "DEVICE_BUSY": 2,
353 "INSUFFICIENT_SPACE": 3,
354 "UNKNOWN_ERROR": 4,
355 "CANCELLED_ON_REQUEST": 5,
356 "CANCELLED_ON_ONU_STATE": 6,
357 "VENDOR_DEVICE_MISMATCH": 7,
358 "OMCI_TRANSFER_ERROR": 8,
359 "IMAGE_REFUSED_BY_ONU": 9,
360 }
361)
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100362
Abhay Kumar03713392025-12-30 05:20:58 +0000363func (x ImageState_ImageFailureReason) Enum() *ImageState_ImageFailureReason {
364 p := new(ImageState_ImageFailureReason)
365 *p = x
366 return p
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100367}
368
369func (x ImageState_ImageFailureReason) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000370 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100371}
372
Abhay Kumar03713392025-12-30 05:20:58 +0000373func (ImageState_ImageFailureReason) Descriptor() protoreflect.EnumDescriptor {
374 return file_voltha_protos_device_proto_enumTypes[5].Descriptor()
375}
376
377func (ImageState_ImageFailureReason) Type() protoreflect.EnumType {
378 return &file_voltha_protos_device_proto_enumTypes[5]
379}
380
381func (x ImageState_ImageFailureReason) Number() protoreflect.EnumNumber {
382 return protoreflect.EnumNumber(x)
383}
384
385// Deprecated: Use ImageState_ImageFailureReason.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100386func (ImageState_ImageFailureReason) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000387 return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 1}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100388}
389
390type ImageState_ImageActivationState int32
391
392const (
393 ImageState_IMAGE_UNKNOWN ImageState_ImageActivationState = 0
394 ImageState_IMAGE_INACTIVE ImageState_ImageActivationState = 1
Abhay Kumar03713392025-12-30 05:20:58 +0000395 ImageState_IMAGE_ACTIVATING ImageState_ImageActivationState = 2 // Happens during Reboot of the ONU after activate call.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100396 ImageState_IMAGE_ACTIVE ImageState_ImageActivationState = 3
397 ImageState_IMAGE_COMMITTING ImageState_ImageActivationState = 4
398 ImageState_IMAGE_COMMITTED ImageState_ImageActivationState = 5
399 ImageState_IMAGE_ACTIVATION_ABORTING ImageState_ImageActivationState = 6
400 ImageState_IMAGE_ACTIVATION_ABORTED ImageState_ImageActivationState = 7
401 ImageState_IMAGE_COMMIT_ABORTING ImageState_ImageActivationState = 8
402 ImageState_IMAGE_COMMIT_ABORTED ImageState_ImageActivationState = 9
403 ImageState_IMAGE_DOWNLOADING ImageState_ImageActivationState = 10
bseenivad4072f62024-12-11 10:05:30 +0530404 ImageState_IMAGE_DOWNLOADING_ABORTED ImageState_ImageActivationState = 11
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100405)
406
Abhay Kumar03713392025-12-30 05:20:58 +0000407// Enum value maps for ImageState_ImageActivationState.
408var (
409 ImageState_ImageActivationState_name = map[int32]string{
410 0: "IMAGE_UNKNOWN",
411 1: "IMAGE_INACTIVE",
412 2: "IMAGE_ACTIVATING",
413 3: "IMAGE_ACTIVE",
414 4: "IMAGE_COMMITTING",
415 5: "IMAGE_COMMITTED",
416 6: "IMAGE_ACTIVATION_ABORTING",
417 7: "IMAGE_ACTIVATION_ABORTED",
418 8: "IMAGE_COMMIT_ABORTING",
419 9: "IMAGE_COMMIT_ABORTED",
420 10: "IMAGE_DOWNLOADING",
421 11: "IMAGE_DOWNLOADING_ABORTED",
422 }
423 ImageState_ImageActivationState_value = map[string]int32{
424 "IMAGE_UNKNOWN": 0,
425 "IMAGE_INACTIVE": 1,
426 "IMAGE_ACTIVATING": 2,
427 "IMAGE_ACTIVE": 3,
428 "IMAGE_COMMITTING": 4,
429 "IMAGE_COMMITTED": 5,
430 "IMAGE_ACTIVATION_ABORTING": 6,
431 "IMAGE_ACTIVATION_ABORTED": 7,
432 "IMAGE_COMMIT_ABORTING": 8,
433 "IMAGE_COMMIT_ABORTED": 9,
434 "IMAGE_DOWNLOADING": 10,
435 "IMAGE_DOWNLOADING_ABORTED": 11,
436 }
437)
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100438
Abhay Kumar03713392025-12-30 05:20:58 +0000439func (x ImageState_ImageActivationState) Enum() *ImageState_ImageActivationState {
440 p := new(ImageState_ImageActivationState)
441 *p = x
442 return p
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100443}
444
445func (x ImageState_ImageActivationState) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000446 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100447}
448
Abhay Kumar03713392025-12-30 05:20:58 +0000449func (ImageState_ImageActivationState) Descriptor() protoreflect.EnumDescriptor {
450 return file_voltha_protos_device_proto_enumTypes[6].Descriptor()
451}
452
453func (ImageState_ImageActivationState) Type() protoreflect.EnumType {
454 return &file_voltha_protos_device_proto_enumTypes[6]
455}
456
457func (x ImageState_ImageActivationState) Number() protoreflect.EnumNumber {
458 return protoreflect.EnumNumber(x)
459}
460
461// Deprecated: Use ImageState_ImageActivationState.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +0100462func (ImageState_ImageActivationState) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000463 return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 2}
William Kurkian1b363f42019-03-12 15:28:12 -0400464}
465
466type Port_PortType int32
467
468const (
469 Port_UNKNOWN Port_PortType = 0
470 Port_ETHERNET_NNI Port_PortType = 1
471 Port_ETHERNET_UNI Port_PortType = 2
472 Port_PON_OLT Port_PortType = 3
473 Port_PON_ONU Port_PortType = 4
474 Port_VENET_OLT Port_PortType = 5
475 Port_VENET_ONU Port_PortType = 6
476)
477
Abhay Kumar03713392025-12-30 05:20:58 +0000478// Enum value maps for Port_PortType.
479var (
480 Port_PortType_name = map[int32]string{
481 0: "UNKNOWN",
482 1: "ETHERNET_NNI",
483 2: "ETHERNET_UNI",
484 3: "PON_OLT",
485 4: "PON_ONU",
486 5: "VENET_OLT",
487 6: "VENET_ONU",
488 }
489 Port_PortType_value = map[string]int32{
490 "UNKNOWN": 0,
491 "ETHERNET_NNI": 1,
492 "ETHERNET_UNI": 2,
493 "PON_OLT": 3,
494 "PON_ONU": 4,
495 "VENET_OLT": 5,
496 "VENET_ONU": 6,
497 }
498)
William Kurkianad745652019-03-20 08:45:51 -0400499
Abhay Kumar03713392025-12-30 05:20:58 +0000500func (x Port_PortType) Enum() *Port_PortType {
501 p := new(Port_PortType)
502 *p = x
503 return p
William Kurkian1b363f42019-03-12 15:28:12 -0400504}
505
506func (x Port_PortType) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000507 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400508}
William Kurkianad745652019-03-20 08:45:51 -0400509
Abhay Kumar03713392025-12-30 05:20:58 +0000510func (Port_PortType) Descriptor() protoreflect.EnumDescriptor {
511 return file_voltha_protos_device_proto_enumTypes[7].Descriptor()
512}
513
514func (Port_PortType) Type() protoreflect.EnumType {
515 return &file_voltha_protos_device_proto_enumTypes[7]
516}
517
518func (x Port_PortType) Number() protoreflect.EnumNumber {
519 return protoreflect.EnumNumber(x)
520}
521
522// Deprecated: Use Port_PortType.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400523func (Port_PortType) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000524 return file_voltha_protos_device_proto_rawDescGZIP(), []int{13, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400525}
526
khenaidoo4c6543e2021-10-19 17:25:58 -0400527type SelfTestResponse_SelfTestResult int32
528
529const (
530 SelfTestResponse_SUCCESS SelfTestResponse_SelfTestResult = 0
531 SelfTestResponse_FAILURE SelfTestResponse_SelfTestResult = 1
532 SelfTestResponse_NOT_SUPPORTED SelfTestResponse_SelfTestResult = 2
533 SelfTestResponse_UNKNOWN_ERROR SelfTestResponse_SelfTestResult = 3
534)
535
Abhay Kumar03713392025-12-30 05:20:58 +0000536// Enum value maps for SelfTestResponse_SelfTestResult.
537var (
538 SelfTestResponse_SelfTestResult_name = map[int32]string{
539 0: "SUCCESS",
540 1: "FAILURE",
541 2: "NOT_SUPPORTED",
542 3: "UNKNOWN_ERROR",
543 }
544 SelfTestResponse_SelfTestResult_value = map[string]int32{
545 "SUCCESS": 0,
546 "FAILURE": 1,
547 "NOT_SUPPORTED": 2,
548 "UNKNOWN_ERROR": 3,
549 }
550)
khenaidoo4c6543e2021-10-19 17:25:58 -0400551
Abhay Kumar03713392025-12-30 05:20:58 +0000552func (x SelfTestResponse_SelfTestResult) Enum() *SelfTestResponse_SelfTestResult {
553 p := new(SelfTestResponse_SelfTestResult)
554 *p = x
555 return p
khenaidoo4c6543e2021-10-19 17:25:58 -0400556}
557
558func (x SelfTestResponse_SelfTestResult) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000559 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
khenaidoo4c6543e2021-10-19 17:25:58 -0400560}
561
Abhay Kumar03713392025-12-30 05:20:58 +0000562func (SelfTestResponse_SelfTestResult) Descriptor() protoreflect.EnumDescriptor {
563 return file_voltha_protos_device_proto_enumTypes[8].Descriptor()
564}
565
566func (SelfTestResponse_SelfTestResult) Type() protoreflect.EnumType {
567 return &file_voltha_protos_device_proto_enumTypes[8]
568}
569
570func (x SelfTestResponse_SelfTestResult) Number() protoreflect.EnumNumber {
571 return protoreflect.EnumNumber(x)
572}
573
574// Deprecated: Use SelfTestResponse_SelfTestResult.Descriptor instead.
khenaidoo4c6543e2021-10-19 17:25:58 -0400575func (SelfTestResponse_SelfTestResult) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000576 return file_voltha_protos_device_proto_rawDescGZIP(), []int{19, 0}
khenaidoo4c6543e2021-10-19 17:25:58 -0400577}
578
William Kurkian1b363f42019-03-12 15:28:12 -0400579type SimulateAlarmRequest_OperationType int32
580
581const (
582 SimulateAlarmRequest_RAISE SimulateAlarmRequest_OperationType = 0
583 SimulateAlarmRequest_CLEAR SimulateAlarmRequest_OperationType = 1
584)
585
Abhay Kumar03713392025-12-30 05:20:58 +0000586// Enum value maps for SimulateAlarmRequest_OperationType.
587var (
588 SimulateAlarmRequest_OperationType_name = map[int32]string{
589 0: "RAISE",
590 1: "CLEAR",
591 }
592 SimulateAlarmRequest_OperationType_value = map[string]int32{
593 "RAISE": 0,
594 "CLEAR": 1,
595 }
596)
William Kurkianad745652019-03-20 08:45:51 -0400597
Abhay Kumar03713392025-12-30 05:20:58 +0000598func (x SimulateAlarmRequest_OperationType) Enum() *SimulateAlarmRequest_OperationType {
599 p := new(SimulateAlarmRequest_OperationType)
600 *p = x
601 return p
William Kurkian1b363f42019-03-12 15:28:12 -0400602}
603
604func (x SimulateAlarmRequest_OperationType) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +0000605 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
William Kurkian1b363f42019-03-12 15:28:12 -0400606}
William Kurkianad745652019-03-20 08:45:51 -0400607
Abhay Kumar03713392025-12-30 05:20:58 +0000608func (SimulateAlarmRequest_OperationType) Descriptor() protoreflect.EnumDescriptor {
609 return file_voltha_protos_device_proto_enumTypes[9].Descriptor()
610}
611
612func (SimulateAlarmRequest_OperationType) Type() protoreflect.EnumType {
613 return &file_voltha_protos_device_proto_enumTypes[9]
614}
615
616func (x SimulateAlarmRequest_OperationType) Number() protoreflect.EnumNumber {
617 return protoreflect.EnumNumber(x)
618}
619
620// Deprecated: Use SimulateAlarmRequest_OperationType.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400621func (SimulateAlarmRequest_OperationType) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000622 return file_voltha_protos_device_proto_rawDescGZIP(), []int{21, 0}
William Kurkian1b363f42019-03-12 15:28:12 -0400623}
624
625// A Device Type
626type DeviceType struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000627 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -0400628 // Unique name for the device type
629 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
630 // Unique vendor id for the device type applicable to ONU
631 // 4 bytes of vendor id from ONU serial number
632 VendorId string `protobuf:"bytes,5,opt,name=vendor_id,json=vendorId,proto3" json:"vendor_id,omitempty"`
633 VendorIds []string `protobuf:"bytes,6,rep,name=vendor_ids,json=vendorIds,proto3" json:"vendor_ids,omitempty"`
634 // Name of the adapter that handles device type
khenaidoo5fc5cea2021-08-11 17:39:16 -0400635 // Deprecated and replaced by adapterType
William Kurkian1b363f42019-03-12 15:28:12 -0400636 Adapter string `protobuf:"bytes,2,opt,name=adapter,proto3" json:"adapter,omitempty"`
637 // Capabilities
khenaidoo5fc5cea2021-08-11 17:39:16 -0400638 AcceptsBulkFlowUpdate bool `protobuf:"varint,3,opt,name=accepts_bulk_flow_update,json=acceptsBulkFlowUpdate,proto3" json:"accepts_bulk_flow_update,omitempty"`
639 AcceptsAddRemoveFlowUpdates bool `protobuf:"varint,4,opt,name=accepts_add_remove_flow_updates,json=acceptsAddRemoveFlowUpdates,proto3" json:"accepts_add_remove_flow_updates,omitempty"`
640 AcceptsDirectLogicalFlowsUpdate bool `protobuf:"varint,7,opt,name=accepts_direct_logical_flows_update,json=acceptsDirectLogicalFlowsUpdate,proto3" json:"accepts_direct_logical_flows_update,omitempty"`
641 // Type of adapter that can handle this device type
Abhay Kumar03713392025-12-30 05:20:58 +0000642 AdapterType string `protobuf:"bytes,8,opt,name=adapter_type,json=adapterType,proto3" json:"adapter_type,omitempty"`
643 unknownFields protoimpl.UnknownFields
644 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400645}
646
Abhay Kumar03713392025-12-30 05:20:58 +0000647func (x *DeviceType) Reset() {
648 *x = DeviceType{}
649 mi := &file_voltha_protos_device_proto_msgTypes[0]
650 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
651 ms.StoreMessageInfo(mi)
652}
653
654func (x *DeviceType) String() string {
655 return protoimpl.X.MessageStringOf(x)
656}
657
658func (*DeviceType) ProtoMessage() {}
659
660func (x *DeviceType) ProtoReflect() protoreflect.Message {
661 mi := &file_voltha_protos_device_proto_msgTypes[0]
662 if x != nil {
663 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
664 if ms.LoadMessageInfo() == nil {
665 ms.StoreMessageInfo(mi)
666 }
667 return ms
668 }
669 return mi.MessageOf(x)
670}
671
672// Deprecated: Use DeviceType.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400673func (*DeviceType) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000674 return file_voltha_protos_device_proto_rawDescGZIP(), []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -0400675}
William Kurkianad745652019-03-20 08:45:51 -0400676
Abhay Kumar03713392025-12-30 05:20:58 +0000677func (x *DeviceType) GetId() string {
678 if x != nil {
679 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -0400680 }
681 return ""
682}
683
Abhay Kumar03713392025-12-30 05:20:58 +0000684func (x *DeviceType) GetVendorId() string {
685 if x != nil {
686 return x.VendorId
William Kurkian1b363f42019-03-12 15:28:12 -0400687 }
688 return ""
689}
690
Abhay Kumar03713392025-12-30 05:20:58 +0000691func (x *DeviceType) GetVendorIds() []string {
692 if x != nil {
693 return x.VendorIds
William Kurkian1b363f42019-03-12 15:28:12 -0400694 }
695 return nil
696}
697
Abhay Kumar03713392025-12-30 05:20:58 +0000698func (x *DeviceType) GetAdapter() string {
699 if x != nil {
700 return x.Adapter
William Kurkian1b363f42019-03-12 15:28:12 -0400701 }
702 return ""
703}
704
Abhay Kumar03713392025-12-30 05:20:58 +0000705func (x *DeviceType) GetAcceptsBulkFlowUpdate() bool {
706 if x != nil {
707 return x.AcceptsBulkFlowUpdate
William Kurkian1b363f42019-03-12 15:28:12 -0400708 }
709 return false
710}
711
Abhay Kumar03713392025-12-30 05:20:58 +0000712func (x *DeviceType) GetAcceptsAddRemoveFlowUpdates() bool {
713 if x != nil {
714 return x.AcceptsAddRemoveFlowUpdates
William Kurkian1b363f42019-03-12 15:28:12 -0400715 }
716 return false
717}
718
Abhay Kumar03713392025-12-30 05:20:58 +0000719func (x *DeviceType) GetAcceptsDirectLogicalFlowsUpdate() bool {
720 if x != nil {
721 return x.AcceptsDirectLogicalFlowsUpdate
William Kurkian1b363f42019-03-12 15:28:12 -0400722 }
723 return false
724}
725
Abhay Kumar03713392025-12-30 05:20:58 +0000726func (x *DeviceType) GetAdapterType() string {
727 if x != nil {
728 return x.AdapterType
khenaidoo5fc5cea2021-08-11 17:39:16 -0400729 }
730 return ""
731}
732
William Kurkian1b363f42019-03-12 15:28:12 -0400733// A plurality of device types
734type DeviceTypes struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000735 state protoimpl.MessageState `protogen:"open.v1"`
736 Items []*DeviceType `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
737 unknownFields protoimpl.UnknownFields
738 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400739}
740
Abhay Kumar03713392025-12-30 05:20:58 +0000741func (x *DeviceTypes) Reset() {
742 *x = DeviceTypes{}
743 mi := &file_voltha_protos_device_proto_msgTypes[1]
744 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
745 ms.StoreMessageInfo(mi)
746}
747
748func (x *DeviceTypes) String() string {
749 return protoimpl.X.MessageStringOf(x)
750}
751
752func (*DeviceTypes) ProtoMessage() {}
753
754func (x *DeviceTypes) ProtoReflect() protoreflect.Message {
755 mi := &file_voltha_protos_device_proto_msgTypes[1]
756 if x != nil {
757 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
758 if ms.LoadMessageInfo() == nil {
759 ms.StoreMessageInfo(mi)
760 }
761 return ms
762 }
763 return mi.MessageOf(x)
764}
765
766// Deprecated: Use DeviceTypes.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400767func (*DeviceTypes) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000768 return file_voltha_protos_device_proto_rawDescGZIP(), []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -0400769}
William Kurkianad745652019-03-20 08:45:51 -0400770
Abhay Kumar03713392025-12-30 05:20:58 +0000771func (x *DeviceTypes) GetItems() []*DeviceType {
772 if x != nil {
773 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -0400774 }
775 return nil
776}
777
778type PmConfig struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000779 state protoimpl.MessageState `protogen:"open.v1"`
780 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
781 Type PmConfig_PmType `protobuf:"varint,2,opt,name=type,proto3,enum=device.PmConfig_PmType" json:"type,omitempty"`
782 Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // Whether or not this metric makes it to Kafka
783 SampleFreq uint32 `protobuf:"varint,4,opt,name=sample_freq,json=sampleFreq,proto3" json:"sample_freq,omitempty"` // Sample rate in 10ths of a second
784 unknownFields protoimpl.UnknownFields
785 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400786}
787
Abhay Kumar03713392025-12-30 05:20:58 +0000788func (x *PmConfig) Reset() {
789 *x = PmConfig{}
790 mi := &file_voltha_protos_device_proto_msgTypes[2]
791 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
792 ms.StoreMessageInfo(mi)
793}
794
795func (x *PmConfig) String() string {
796 return protoimpl.X.MessageStringOf(x)
797}
798
799func (*PmConfig) ProtoMessage() {}
800
801func (x *PmConfig) ProtoReflect() protoreflect.Message {
802 mi := &file_voltha_protos_device_proto_msgTypes[2]
803 if x != nil {
804 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
805 if ms.LoadMessageInfo() == nil {
806 ms.StoreMessageInfo(mi)
807 }
808 return ms
809 }
810 return mi.MessageOf(x)
811}
812
813// Deprecated: Use PmConfig.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400814func (*PmConfig) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000815 return file_voltha_protos_device_proto_rawDescGZIP(), []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400816}
William Kurkianad745652019-03-20 08:45:51 -0400817
Abhay Kumar03713392025-12-30 05:20:58 +0000818func (x *PmConfig) GetName() string {
819 if x != nil {
820 return x.Name
William Kurkian1b363f42019-03-12 15:28:12 -0400821 }
822 return ""
823}
824
Abhay Kumar03713392025-12-30 05:20:58 +0000825func (x *PmConfig) GetType() PmConfig_PmType {
826 if x != nil {
827 return x.Type
William Kurkian1b363f42019-03-12 15:28:12 -0400828 }
829 return PmConfig_COUNTER
830}
831
Abhay Kumar03713392025-12-30 05:20:58 +0000832func (x *PmConfig) GetEnabled() bool {
833 if x != nil {
834 return x.Enabled
William Kurkian1b363f42019-03-12 15:28:12 -0400835 }
836 return false
837}
838
Abhay Kumar03713392025-12-30 05:20:58 +0000839func (x *PmConfig) GetSampleFreq() uint32 {
840 if x != nil {
841 return x.SampleFreq
William Kurkian1b363f42019-03-12 15:28:12 -0400842 }
843 return 0
844}
845
846type PmGroupConfig struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000847 state protoimpl.MessageState `protogen:"open.v1"`
848 GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
849 GroupFreq uint32 `protobuf:"varint,2,opt,name=group_freq,json=groupFreq,proto3" json:"group_freq,omitempty"` // Frequency applicable to the grop
850 Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // Enable/disable group level only
851 Metrics []*PmConfig `protobuf:"bytes,4,rep,name=metrics,proto3" json:"metrics,omitempty"`
852 unknownFields protoimpl.UnknownFields
853 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400854}
855
Abhay Kumar03713392025-12-30 05:20:58 +0000856func (x *PmGroupConfig) Reset() {
857 *x = PmGroupConfig{}
858 mi := &file_voltha_protos_device_proto_msgTypes[3]
859 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
860 ms.StoreMessageInfo(mi)
861}
862
863func (x *PmGroupConfig) String() string {
864 return protoimpl.X.MessageStringOf(x)
865}
866
867func (*PmGroupConfig) ProtoMessage() {}
868
869func (x *PmGroupConfig) ProtoReflect() protoreflect.Message {
870 mi := &file_voltha_protos_device_proto_msgTypes[3]
871 if x != nil {
872 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
873 if ms.LoadMessageInfo() == nil {
874 ms.StoreMessageInfo(mi)
875 }
876 return ms
877 }
878 return mi.MessageOf(x)
879}
880
881// Deprecated: Use PmGroupConfig.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400882func (*PmGroupConfig) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000883 return file_voltha_protos_device_proto_rawDescGZIP(), []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400884}
William Kurkianad745652019-03-20 08:45:51 -0400885
Abhay Kumar03713392025-12-30 05:20:58 +0000886func (x *PmGroupConfig) GetGroupName() string {
887 if x != nil {
888 return x.GroupName
William Kurkian1b363f42019-03-12 15:28:12 -0400889 }
890 return ""
891}
892
Abhay Kumar03713392025-12-30 05:20:58 +0000893func (x *PmGroupConfig) GetGroupFreq() uint32 {
894 if x != nil {
895 return x.GroupFreq
William Kurkian1b363f42019-03-12 15:28:12 -0400896 }
897 return 0
898}
899
Abhay Kumar03713392025-12-30 05:20:58 +0000900func (x *PmGroupConfig) GetEnabled() bool {
901 if x != nil {
902 return x.Enabled
William Kurkian1b363f42019-03-12 15:28:12 -0400903 }
904 return false
905}
906
Abhay Kumar03713392025-12-30 05:20:58 +0000907func (x *PmGroupConfig) GetMetrics() []*PmConfig {
908 if x != nil {
909 return x.Metrics
William Kurkian1b363f42019-03-12 15:28:12 -0400910 }
911 return nil
912}
913
914type PmConfigs struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000915 state protoimpl.MessageState `protogen:"open.v1"`
916 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // To work around a chameleon POST bug
917 DefaultFreq uint32 `protobuf:"varint,2,opt,name=default_freq,json=defaultFreq,proto3" json:"default_freq,omitempty"` // Default sample rate
William Kurkian1b363f42019-03-12 15:28:12 -0400918 // Forces group names and group semantics
919 Grouped bool `protobuf:"varint,3,opt,name=grouped,proto3" json:"grouped,omitempty"`
920 // Allows Pm to set an individual sample frequency
Abhay Kumar03713392025-12-30 05:20:58 +0000921 FreqOverride bool `protobuf:"varint,4,opt,name=freq_override,json=freqOverride,proto3" json:"freq_override,omitempty"`
922 Groups []*PmGroupConfig `protobuf:"bytes,5,rep,name=groups,proto3" json:"groups,omitempty"` // The groups if grouped is true
923 Metrics []*PmConfig `protobuf:"bytes,6,rep,name=metrics,proto3" json:"metrics,omitempty"` // The metrics themselves if grouped is false.
924 MaxSkew uint32 `protobuf:"varint,7,opt,name=max_skew,json=maxSkew,proto3" json:"max_skew,omitempty"` //Default value is set to 5 seconds
925 unknownFields protoimpl.UnknownFields
926 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400927}
928
Abhay Kumar03713392025-12-30 05:20:58 +0000929func (x *PmConfigs) Reset() {
930 *x = PmConfigs{}
931 mi := &file_voltha_protos_device_proto_msgTypes[4]
932 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
933 ms.StoreMessageInfo(mi)
934}
935
936func (x *PmConfigs) String() string {
937 return protoimpl.X.MessageStringOf(x)
938}
939
940func (*PmConfigs) ProtoMessage() {}
941
942func (x *PmConfigs) ProtoReflect() protoreflect.Message {
943 mi := &file_voltha_protos_device_proto_msgTypes[4]
944 if x != nil {
945 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
946 if ms.LoadMessageInfo() == nil {
947 ms.StoreMessageInfo(mi)
948 }
949 return ms
950 }
951 return mi.MessageOf(x)
952}
953
954// Deprecated: Use PmConfigs.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400955func (*PmConfigs) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000956 return file_voltha_protos_device_proto_rawDescGZIP(), []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400957}
William Kurkianad745652019-03-20 08:45:51 -0400958
Abhay Kumar03713392025-12-30 05:20:58 +0000959func (x *PmConfigs) GetId() string {
960 if x != nil {
961 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -0400962 }
963 return ""
964}
965
Abhay Kumar03713392025-12-30 05:20:58 +0000966func (x *PmConfigs) GetDefaultFreq() uint32 {
967 if x != nil {
968 return x.DefaultFreq
William Kurkian1b363f42019-03-12 15:28:12 -0400969 }
970 return 0
971}
972
Abhay Kumar03713392025-12-30 05:20:58 +0000973func (x *PmConfigs) GetGrouped() bool {
974 if x != nil {
975 return x.Grouped
William Kurkian1b363f42019-03-12 15:28:12 -0400976 }
977 return false
978}
979
Abhay Kumar03713392025-12-30 05:20:58 +0000980func (x *PmConfigs) GetFreqOverride() bool {
981 if x != nil {
982 return x.FreqOverride
William Kurkian1b363f42019-03-12 15:28:12 -0400983 }
984 return false
985}
986
Abhay Kumar03713392025-12-30 05:20:58 +0000987func (x *PmConfigs) GetGroups() []*PmGroupConfig {
988 if x != nil {
989 return x.Groups
William Kurkian1b363f42019-03-12 15:28:12 -0400990 }
991 return nil
992}
993
Abhay Kumar03713392025-12-30 05:20:58 +0000994func (x *PmConfigs) GetMetrics() []*PmConfig {
995 if x != nil {
996 return x.Metrics
William Kurkian1b363f42019-03-12 15:28:12 -0400997 }
998 return nil
999}
1000
Abhay Kumar03713392025-12-30 05:20:58 +00001001func (x *PmConfigs) GetMaxSkew() uint32 {
1002 if x != nil {
1003 return x.MaxSkew
Rohan Agrawal065c8182020-06-29 11:05:32 +00001004 }
1005 return 0
1006}
1007
Abhay Kumar03713392025-12-30 05:20:58 +00001008// Object representing an image
William Kurkian1b363f42019-03-12 15:28:12 -04001009type Image struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001010 state protoimpl.MessageState `protogen:"open.v1"`
1011 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // software patch name
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001012 // Version, this is the sole identifier of the image. it's the vendor specified OMCI version
1013 // must be known at the time of initiating a download, activate, commit image on an onu.
1014 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
1015 // hash of the image to be verified against
1016 // Deprecated in voltha 2.8, will be removed
1017 Hash uint32 `protobuf:"varint,3,opt,name=hash,proto3" json:"hash,omitempty"`
1018 // Deprecated in voltha 2.8, will be removed
Abhay Kumar03713392025-12-30 05:20:58 +00001019 InstallDatetime string `protobuf:"bytes,4,opt,name=install_datetime,json=installDatetime,proto3" json:"install_datetime,omitempty"` // combined date and time expressed in UTC.
William Kurkian1b363f42019-03-12 15:28:12 -04001020 // The active software image is one that is currently loaded and executing
1021 // in the ONU or circuit pack. Under normal operation, one software image
1022 // is always active while the other is inactive. Under no circumstances are
1023 // both software images allowed to be active at the same time
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001024 // Deprecated in voltha 2.8, will be removed
Abhay Kumar03713392025-12-30 05:20:58 +00001025 IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // True if the image is active
William Kurkian1b363f42019-03-12 15:28:12 -04001026 // The committed software image is loaded and executed upon reboot of the
1027 // ONU and/or circuit pack. During normal operation, one software image is
1028 // always committed, while the other is uncommitted.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001029 // Deprecated in voltha 2.8, will be removed
Abhay Kumar03713392025-12-30 05:20:58 +00001030 IsCommitted bool `protobuf:"varint,6,opt,name=is_committed,json=isCommitted,proto3" json:"is_committed,omitempty"` // True if the image is committed
William Kurkian1b363f42019-03-12 15:28:12 -04001031 // A software image is valid if it has been verified to be an executable
1032 // code image. The verification mechanism is not subject to standardization;
1033 // however, it should include at least a data integrity (e.g., CRC) check of
1034 // the entire code image.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001035 // Deprecated in voltha 2.8, will be removed
Abhay Kumar03713392025-12-30 05:20:58 +00001036 IsValid bool `protobuf:"varint,7,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` // True if the image is valid
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001037 // URL where the image is available
1038 // URL MUST be fully qualified,
1039 // including filename, username and password
1040 Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
1041 // Represents the vendor/device mfr
1042 // Needs to match the vendor of the device the image will be installed on
1043 // optional, if not matched no check will be performed
1044 Vendor string `protobuf:"bytes,9,opt,name=vendor,proto3" json:"vendor,omitempty"`
1045 // Represents the ONU Image CRC value.
1046 // Default to value 0 if not specified.
1047 // If different then 0 it's used to verify the image retrieved from outside before sending it to the ONU.
1048 // Calculation of this needs to be done according to ITU-T I.363.5 as per OMCI spec (section A.2.27)
Abhay Kumar03713392025-12-30 05:20:58 +00001049 Crc32 uint32 `protobuf:"varint,10,opt,name=crc32,proto3" json:"crc32,omitempty"`
1050 unknownFields protoimpl.UnknownFields
1051 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001052}
1053
Abhay Kumar03713392025-12-30 05:20:58 +00001054func (x *Image) Reset() {
1055 *x = Image{}
1056 mi := &file_voltha_protos_device_proto_msgTypes[5]
1057 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1058 ms.StoreMessageInfo(mi)
1059}
1060
1061func (x *Image) String() string {
1062 return protoimpl.X.MessageStringOf(x)
1063}
1064
1065func (*Image) ProtoMessage() {}
1066
1067func (x *Image) ProtoReflect() protoreflect.Message {
1068 mi := &file_voltha_protos_device_proto_msgTypes[5]
1069 if x != nil {
1070 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1071 if ms.LoadMessageInfo() == nil {
1072 ms.StoreMessageInfo(mi)
1073 }
1074 return ms
1075 }
1076 return mi.MessageOf(x)
1077}
1078
1079// Deprecated: Use Image.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001080func (*Image) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001081 return file_voltha_protos_device_proto_rawDescGZIP(), []int{5}
William Kurkian1b363f42019-03-12 15:28:12 -04001082}
William Kurkianad745652019-03-20 08:45:51 -04001083
Abhay Kumar03713392025-12-30 05:20:58 +00001084func (x *Image) GetName() string {
1085 if x != nil {
1086 return x.Name
William Kurkian1b363f42019-03-12 15:28:12 -04001087 }
1088 return ""
1089}
1090
Abhay Kumar03713392025-12-30 05:20:58 +00001091func (x *Image) GetVersion() string {
1092 if x != nil {
1093 return x.Version
William Kurkian1b363f42019-03-12 15:28:12 -04001094 }
1095 return ""
1096}
1097
Abhay Kumar03713392025-12-30 05:20:58 +00001098func (x *Image) GetHash() uint32 {
1099 if x != nil {
1100 return x.Hash
William Kurkian1b363f42019-03-12 15:28:12 -04001101 }
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001102 return 0
William Kurkian1b363f42019-03-12 15:28:12 -04001103}
1104
Abhay Kumar03713392025-12-30 05:20:58 +00001105func (x *Image) GetInstallDatetime() string {
1106 if x != nil {
1107 return x.InstallDatetime
William Kurkian1b363f42019-03-12 15:28:12 -04001108 }
1109 return ""
1110}
1111
Abhay Kumar03713392025-12-30 05:20:58 +00001112func (x *Image) GetIsActive() bool {
1113 if x != nil {
1114 return x.IsActive
William Kurkian1b363f42019-03-12 15:28:12 -04001115 }
1116 return false
1117}
1118
Abhay Kumar03713392025-12-30 05:20:58 +00001119func (x *Image) GetIsCommitted() bool {
1120 if x != nil {
1121 return x.IsCommitted
William Kurkian1b363f42019-03-12 15:28:12 -04001122 }
1123 return false
1124}
1125
Abhay Kumar03713392025-12-30 05:20:58 +00001126func (x *Image) GetIsValid() bool {
1127 if x != nil {
1128 return x.IsValid
William Kurkian1b363f42019-03-12 15:28:12 -04001129 }
1130 return false
1131}
1132
Abhay Kumar03713392025-12-30 05:20:58 +00001133func (x *Image) GetUrl() string {
1134 if x != nil {
1135 return x.Url
William Kurkian1b363f42019-03-12 15:28:12 -04001136 }
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001137 return ""
William Kurkian1b363f42019-03-12 15:28:12 -04001138}
1139
Abhay Kumar03713392025-12-30 05:20:58 +00001140func (x *Image) GetVendor() string {
1141 if x != nil {
1142 return x.Vendor
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001143 }
1144 return ""
1145}
1146
Abhay Kumar03713392025-12-30 05:20:58 +00001147func (x *Image) GetCrc32() uint32 {
1148 if x != nil {
1149 return x.Crc32
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001150 }
1151 return 0
1152}
1153
1154// Older version of the API please see DeviceImageDownloadRequest
1155// Deprecated in voltha 2.8, will be removed
khenaidoo4c6543e2021-10-19 17:25:58 -04001156//
Abhay Kumar03713392025-12-30 05:20:58 +00001157// Deprecated: Marked as deprecated in voltha_protos/device.proto.
William Kurkian1b363f42019-03-12 15:28:12 -04001158type ImageDownload struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001159 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -04001160 // Device Identifier
1161 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1162 // Image unique identifier
1163 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
1164 // URL where the image is available
1165 // should include username password
1166 Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
1167 // CRC of the image to be verified aginst
1168 Crc uint32 `protobuf:"varint,4,opt,name=crc,proto3" json:"crc,omitempty"`
1169 // Download state
khenaidoo4c6543e2021-10-19 17:25:58 -04001170 DownloadState ImageDownload_ImageDownloadState `protobuf:"varint,5,opt,name=download_state,json=downloadState,proto3,enum=device.ImageDownload_ImageDownloadState" json:"download_state,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -04001171 // Downloaded version
1172 ImageVersion string `protobuf:"bytes,6,opt,name=image_version,json=imageVersion,proto3" json:"image_version,omitempty"`
1173 // Bytes downloaded
1174 DownloadedBytes uint32 `protobuf:"varint,7,opt,name=downloaded_bytes,json=downloadedBytes,proto3" json:"downloaded_bytes,omitempty"`
1175 // Download failure reason
khenaidoo4c6543e2021-10-19 17:25:58 -04001176 Reason ImageDownload_ImageDownloadFailureReason `protobuf:"varint,8,opt,name=reason,proto3,enum=device.ImageDownload_ImageDownloadFailureReason" json:"reason,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -04001177 // Additional info
1178 AdditionalInfo string `protobuf:"bytes,9,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
1179 // Save current configuration
1180 SaveConfig bool `protobuf:"varint,10,opt,name=save_config,json=saveConfig,proto3" json:"save_config,omitempty"`
1181 // Image local location
1182 LocalDir string `protobuf:"bytes,11,opt,name=local_dir,json=localDir,proto3" json:"local_dir,omitempty"`
1183 // Image activation state
khenaidoo4c6543e2021-10-19 17:25:58 -04001184 ImageState ImageDownload_ImageActivateState `protobuf:"varint,12,opt,name=image_state,json=imageState,proto3,enum=device.ImageDownload_ImageActivateState" json:"image_state,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -04001185 // Image file size
Abhay Kumar03713392025-12-30 05:20:58 +00001186 FileSize uint32 `protobuf:"varint,13,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"`
1187 unknownFields protoimpl.UnknownFields
1188 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001189}
1190
Abhay Kumar03713392025-12-30 05:20:58 +00001191func (x *ImageDownload) Reset() {
1192 *x = ImageDownload{}
1193 mi := &file_voltha_protos_device_proto_msgTypes[6]
1194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1195 ms.StoreMessageInfo(mi)
1196}
1197
1198func (x *ImageDownload) String() string {
1199 return protoimpl.X.MessageStringOf(x)
1200}
1201
1202func (*ImageDownload) ProtoMessage() {}
1203
1204func (x *ImageDownload) ProtoReflect() protoreflect.Message {
1205 mi := &file_voltha_protos_device_proto_msgTypes[6]
1206 if x != nil {
1207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1208 if ms.LoadMessageInfo() == nil {
1209 ms.StoreMessageInfo(mi)
1210 }
1211 return ms
1212 }
1213 return mi.MessageOf(x)
1214}
1215
1216// Deprecated: Use ImageDownload.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001217func (*ImageDownload) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001218 return file_voltha_protos_device_proto_rawDescGZIP(), []int{6}
William Kurkian1b363f42019-03-12 15:28:12 -04001219}
William Kurkianad745652019-03-20 08:45:51 -04001220
Abhay Kumar03713392025-12-30 05:20:58 +00001221func (x *ImageDownload) GetId() string {
1222 if x != nil {
1223 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -04001224 }
1225 return ""
1226}
1227
Abhay Kumar03713392025-12-30 05:20:58 +00001228func (x *ImageDownload) GetName() string {
1229 if x != nil {
1230 return x.Name
William Kurkian1b363f42019-03-12 15:28:12 -04001231 }
1232 return ""
1233}
1234
Abhay Kumar03713392025-12-30 05:20:58 +00001235func (x *ImageDownload) GetUrl() string {
1236 if x != nil {
1237 return x.Url
William Kurkian1b363f42019-03-12 15:28:12 -04001238 }
1239 return ""
1240}
1241
Abhay Kumar03713392025-12-30 05:20:58 +00001242func (x *ImageDownload) GetCrc() uint32 {
1243 if x != nil {
1244 return x.Crc
William Kurkian1b363f42019-03-12 15:28:12 -04001245 }
1246 return 0
1247}
1248
Abhay Kumar03713392025-12-30 05:20:58 +00001249func (x *ImageDownload) GetDownloadState() ImageDownload_ImageDownloadState {
1250 if x != nil {
1251 return x.DownloadState
William Kurkian1b363f42019-03-12 15:28:12 -04001252 }
1253 return ImageDownload_DOWNLOAD_UNKNOWN
1254}
1255
Abhay Kumar03713392025-12-30 05:20:58 +00001256func (x *ImageDownload) GetImageVersion() string {
1257 if x != nil {
1258 return x.ImageVersion
William Kurkian1b363f42019-03-12 15:28:12 -04001259 }
1260 return ""
1261}
1262
Abhay Kumar03713392025-12-30 05:20:58 +00001263func (x *ImageDownload) GetDownloadedBytes() uint32 {
1264 if x != nil {
1265 return x.DownloadedBytes
William Kurkian1b363f42019-03-12 15:28:12 -04001266 }
1267 return 0
1268}
1269
Abhay Kumar03713392025-12-30 05:20:58 +00001270func (x *ImageDownload) GetReason() ImageDownload_ImageDownloadFailureReason {
1271 if x != nil {
1272 return x.Reason
William Kurkian1b363f42019-03-12 15:28:12 -04001273 }
1274 return ImageDownload_NO_ERROR
1275}
1276
Abhay Kumar03713392025-12-30 05:20:58 +00001277func (x *ImageDownload) GetAdditionalInfo() string {
1278 if x != nil {
1279 return x.AdditionalInfo
William Kurkian1b363f42019-03-12 15:28:12 -04001280 }
1281 return ""
1282}
1283
Abhay Kumar03713392025-12-30 05:20:58 +00001284func (x *ImageDownload) GetSaveConfig() bool {
1285 if x != nil {
1286 return x.SaveConfig
William Kurkian1b363f42019-03-12 15:28:12 -04001287 }
1288 return false
1289}
1290
Abhay Kumar03713392025-12-30 05:20:58 +00001291func (x *ImageDownload) GetLocalDir() string {
1292 if x != nil {
1293 return x.LocalDir
William Kurkian1b363f42019-03-12 15:28:12 -04001294 }
1295 return ""
1296}
1297
Abhay Kumar03713392025-12-30 05:20:58 +00001298func (x *ImageDownload) GetImageState() ImageDownload_ImageActivateState {
1299 if x != nil {
1300 return x.ImageState
William Kurkian1b363f42019-03-12 15:28:12 -04001301 }
1302 return ImageDownload_IMAGE_UNKNOWN
1303}
1304
Abhay Kumar03713392025-12-30 05:20:58 +00001305func (x *ImageDownload) GetFileSize() uint32 {
1306 if x != nil {
1307 return x.FileSize
William Kurkian1b363f42019-03-12 15:28:12 -04001308 }
1309 return 0
1310}
1311
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001312// Deprecated in voltha 2.8, will be removed
khenaidoo4c6543e2021-10-19 17:25:58 -04001313//
Abhay Kumar03713392025-12-30 05:20:58 +00001314// Deprecated: Marked as deprecated in voltha_protos/device.proto.
William Kurkian1b363f42019-03-12 15:28:12 -04001315type ImageDownloads struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001316 state protoimpl.MessageState `protogen:"open.v1"`
1317 Items []*ImageDownload `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
1318 unknownFields protoimpl.UnknownFields
1319 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001320}
1321
Abhay Kumar03713392025-12-30 05:20:58 +00001322func (x *ImageDownloads) Reset() {
1323 *x = ImageDownloads{}
1324 mi := &file_voltha_protos_device_proto_msgTypes[7]
1325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1326 ms.StoreMessageInfo(mi)
1327}
1328
1329func (x *ImageDownloads) String() string {
1330 return protoimpl.X.MessageStringOf(x)
1331}
1332
1333func (*ImageDownloads) ProtoMessage() {}
1334
1335func (x *ImageDownloads) ProtoReflect() protoreflect.Message {
1336 mi := &file_voltha_protos_device_proto_msgTypes[7]
1337 if x != nil {
1338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1339 if ms.LoadMessageInfo() == nil {
1340 ms.StoreMessageInfo(mi)
1341 }
1342 return ms
1343 }
1344 return mi.MessageOf(x)
1345}
1346
1347// Deprecated: Use ImageDownloads.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001348func (*ImageDownloads) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001349 return file_voltha_protos_device_proto_rawDescGZIP(), []int{7}
William Kurkian1b363f42019-03-12 15:28:12 -04001350}
William Kurkianad745652019-03-20 08:45:51 -04001351
Abhay Kumar03713392025-12-30 05:20:58 +00001352func (x *ImageDownloads) GetItems() []*ImageDownload {
1353 if x != nil {
1354 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -04001355 }
1356 return nil
1357}
1358
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001359type Images struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001360 state protoimpl.MessageState `protogen:"open.v1"`
1361 Image []*Image `protobuf:"bytes,1,rep,name=image,proto3" json:"image,omitempty"`
1362 unknownFields protoimpl.UnknownFields
1363 sizeCache protoimpl.SizeCache
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001364}
1365
Abhay Kumar03713392025-12-30 05:20:58 +00001366func (x *Images) Reset() {
1367 *x = Images{}
1368 mi := &file_voltha_protos_device_proto_msgTypes[8]
1369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1370 ms.StoreMessageInfo(mi)
1371}
1372
1373func (x *Images) String() string {
1374 return protoimpl.X.MessageStringOf(x)
1375}
1376
1377func (*Images) ProtoMessage() {}
1378
1379func (x *Images) ProtoReflect() protoreflect.Message {
1380 mi := &file_voltha_protos_device_proto_msgTypes[8]
1381 if x != nil {
1382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1383 if ms.LoadMessageInfo() == nil {
1384 ms.StoreMessageInfo(mi)
1385 }
1386 return ms
1387 }
1388 return mi.MessageOf(x)
1389}
1390
1391// Deprecated: Use Images.ProtoReflect.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001392func (*Images) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001393 return file_voltha_protos_device_proto_rawDescGZIP(), []int{8}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001394}
1395
Abhay Kumar03713392025-12-30 05:20:58 +00001396func (x *Images) GetImage() []*Image {
1397 if x != nil {
1398 return x.Image
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001399 }
1400 return nil
1401}
1402
1403// OnuImage represents the OMCI information as per OMCI spec
1404// the information will be populates exactly as extracted from the device.
1405type OnuImage struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001406 state protoimpl.MessageState `protogen:"open.v1"`
1407 // image version
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001408 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
1409 IsCommited bool `protobuf:"varint,2,opt,name=isCommited,proto3" json:"isCommited,omitempty"`
1410 IsActive bool `protobuf:"varint,3,opt,name=isActive,proto3" json:"isActive,omitempty"`
1411 IsValid bool `protobuf:"varint,4,opt,name=isValid,proto3" json:"isValid,omitempty"`
1412 ProductCode string `protobuf:"bytes,5,opt,name=productCode,proto3" json:"productCode,omitempty"`
1413 // Hash is computed by the ONU and is optional as per OMCI spec (paragraph 9.1.4)
1414 // No assumption should be made on the existence of this attribute at any time.
Abhay Kumar03713392025-12-30 05:20:58 +00001415 Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
1416 unknownFields protoimpl.UnknownFields
1417 sizeCache protoimpl.SizeCache
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001418}
1419
Abhay Kumar03713392025-12-30 05:20:58 +00001420func (x *OnuImage) Reset() {
1421 *x = OnuImage{}
1422 mi := &file_voltha_protos_device_proto_msgTypes[9]
1423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1424 ms.StoreMessageInfo(mi)
1425}
1426
1427func (x *OnuImage) String() string {
1428 return protoimpl.X.MessageStringOf(x)
1429}
1430
1431func (*OnuImage) ProtoMessage() {}
1432
1433func (x *OnuImage) ProtoReflect() protoreflect.Message {
1434 mi := &file_voltha_protos_device_proto_msgTypes[9]
1435 if x != nil {
1436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1437 if ms.LoadMessageInfo() == nil {
1438 ms.StoreMessageInfo(mi)
1439 }
1440 return ms
1441 }
1442 return mi.MessageOf(x)
1443}
1444
1445// Deprecated: Use OnuImage.ProtoReflect.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001446func (*OnuImage) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001447 return file_voltha_protos_device_proto_rawDescGZIP(), []int{9}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001448}
1449
Abhay Kumar03713392025-12-30 05:20:58 +00001450func (x *OnuImage) GetVersion() string {
1451 if x != nil {
1452 return x.Version
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001453 }
1454 return ""
1455}
1456
Abhay Kumar03713392025-12-30 05:20:58 +00001457func (x *OnuImage) GetIsCommited() bool {
1458 if x != nil {
1459 return x.IsCommited
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001460 }
1461 return false
1462}
1463
Abhay Kumar03713392025-12-30 05:20:58 +00001464func (x *OnuImage) GetIsActive() bool {
1465 if x != nil {
1466 return x.IsActive
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001467 }
1468 return false
1469}
1470
Abhay Kumar03713392025-12-30 05:20:58 +00001471func (x *OnuImage) GetIsValid() bool {
1472 if x != nil {
1473 return x.IsValid
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001474 }
1475 return false
1476}
1477
Abhay Kumar03713392025-12-30 05:20:58 +00001478func (x *OnuImage) GetProductCode() string {
1479 if x != nil {
1480 return x.ProductCode
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001481 }
1482 return ""
1483}
1484
Abhay Kumar03713392025-12-30 05:20:58 +00001485func (x *OnuImage) GetHash() string {
1486 if x != nil {
1487 return x.Hash
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001488 }
1489 return ""
1490}
1491
1492type OnuImages struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001493 state protoimpl.MessageState `protogen:"open.v1"`
1494 Items []*OnuImage `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
1495 unknownFields protoimpl.UnknownFields
1496 sizeCache protoimpl.SizeCache
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001497}
1498
Abhay Kumar03713392025-12-30 05:20:58 +00001499func (x *OnuImages) Reset() {
1500 *x = OnuImages{}
1501 mi := &file_voltha_protos_device_proto_msgTypes[10]
1502 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1503 ms.StoreMessageInfo(mi)
1504}
1505
1506func (x *OnuImages) String() string {
1507 return protoimpl.X.MessageStringOf(x)
1508}
1509
1510func (*OnuImages) ProtoMessage() {}
1511
1512func (x *OnuImages) ProtoReflect() protoreflect.Message {
1513 mi := &file_voltha_protos_device_proto_msgTypes[10]
1514 if x != nil {
1515 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1516 if ms.LoadMessageInfo() == nil {
1517 ms.StoreMessageInfo(mi)
1518 }
1519 return ms
1520 }
1521 return mi.MessageOf(x)
1522}
1523
1524// Deprecated: Use OnuImages.ProtoReflect.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001525func (*OnuImages) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001526 return file_voltha_protos_device_proto_rawDescGZIP(), []int{10}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001527}
1528
Abhay Kumar03713392025-12-30 05:20:58 +00001529func (x *OnuImages) GetItems() []*OnuImage {
1530 if x != nil {
1531 return x.Items
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001532 }
1533 return nil
1534}
1535
1536type DeviceImageState struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001537 state protoimpl.MessageState `protogen:"open.v1"`
1538 DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
1539 ImageState *ImageState `protobuf:"bytes,2,opt,name=imageState,proto3" json:"imageState,omitempty"`
1540 unknownFields protoimpl.UnknownFields
1541 sizeCache protoimpl.SizeCache
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001542}
1543
Abhay Kumar03713392025-12-30 05:20:58 +00001544func (x *DeviceImageState) Reset() {
1545 *x = DeviceImageState{}
1546 mi := &file_voltha_protos_device_proto_msgTypes[11]
1547 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1548 ms.StoreMessageInfo(mi)
1549}
1550
1551func (x *DeviceImageState) String() string {
1552 return protoimpl.X.MessageStringOf(x)
1553}
1554
1555func (*DeviceImageState) ProtoMessage() {}
1556
1557func (x *DeviceImageState) ProtoReflect() protoreflect.Message {
1558 mi := &file_voltha_protos_device_proto_msgTypes[11]
1559 if x != nil {
1560 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1561 if ms.LoadMessageInfo() == nil {
1562 ms.StoreMessageInfo(mi)
1563 }
1564 return ms
1565 }
1566 return mi.MessageOf(x)
1567}
1568
1569// Deprecated: Use DeviceImageState.ProtoReflect.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001570func (*DeviceImageState) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001571 return file_voltha_protos_device_proto_rawDescGZIP(), []int{11}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001572}
1573
Abhay Kumar03713392025-12-30 05:20:58 +00001574func (x *DeviceImageState) GetDeviceId() string {
1575 if x != nil {
1576 return x.DeviceId
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001577 }
1578 return ""
1579}
1580
Abhay Kumar03713392025-12-30 05:20:58 +00001581func (x *DeviceImageState) GetImageState() *ImageState {
1582 if x != nil {
1583 return x.ImageState
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001584 }
1585 return nil
1586}
1587
1588type ImageState struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001589 state protoimpl.MessageState `protogen:"open.v1"`
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001590 // image version
1591 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
1592 // Download state
khenaidoo4c6543e2021-10-19 17:25:58 -04001593 DownloadState ImageState_ImageDownloadState `protobuf:"varint,2,opt,name=download_state,json=downloadState,proto3,enum=device.ImageState_ImageDownloadState" json:"download_state,omitempty"`
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001594 // Image Operation Failure reason (use for both Download and Activate)
khenaidoo4c6543e2021-10-19 17:25:58 -04001595 Reason ImageState_ImageFailureReason `protobuf:"varint,3,opt,name=reason,proto3,enum=device.ImageState_ImageFailureReason" json:"reason,omitempty"`
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001596 // Image activation state
Abhay Kumar03713392025-12-30 05:20:58 +00001597 ImageState ImageState_ImageActivationState `protobuf:"varint,4,opt,name=image_state,json=imageState,proto3,enum=device.ImageState_ImageActivationState" json:"image_state,omitempty"`
1598 unknownFields protoimpl.UnknownFields
1599 sizeCache protoimpl.SizeCache
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001600}
1601
Abhay Kumar03713392025-12-30 05:20:58 +00001602func (x *ImageState) Reset() {
1603 *x = ImageState{}
1604 mi := &file_voltha_protos_device_proto_msgTypes[12]
1605 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1606 ms.StoreMessageInfo(mi)
1607}
1608
1609func (x *ImageState) String() string {
1610 return protoimpl.X.MessageStringOf(x)
1611}
1612
1613func (*ImageState) ProtoMessage() {}
1614
1615func (x *ImageState) ProtoReflect() protoreflect.Message {
1616 mi := &file_voltha_protos_device_proto_msgTypes[12]
1617 if x != nil {
1618 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1619 if ms.LoadMessageInfo() == nil {
1620 ms.StoreMessageInfo(mi)
1621 }
1622 return ms
1623 }
1624 return mi.MessageOf(x)
1625}
1626
1627// Deprecated: Use ImageState.ProtoReflect.Descriptor instead.
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001628func (*ImageState) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001629 return file_voltha_protos_device_proto_rawDescGZIP(), []int{12}
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001630}
1631
Abhay Kumar03713392025-12-30 05:20:58 +00001632func (x *ImageState) GetVersion() string {
1633 if x != nil {
1634 return x.Version
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001635 }
1636 return ""
1637}
1638
Abhay Kumar03713392025-12-30 05:20:58 +00001639func (x *ImageState) GetDownloadState() ImageState_ImageDownloadState {
1640 if x != nil {
1641 return x.DownloadState
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001642 }
1643 return ImageState_DOWNLOAD_UNKNOWN
1644}
1645
Abhay Kumar03713392025-12-30 05:20:58 +00001646func (x *ImageState) GetReason() ImageState_ImageFailureReason {
1647 if x != nil {
1648 return x.Reason
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001649 }
1650 return ImageState_NO_ERROR
1651}
1652
Abhay Kumar03713392025-12-30 05:20:58 +00001653func (x *ImageState) GetImageState() ImageState_ImageActivationState {
1654 if x != nil {
1655 return x.ImageState
Andrea Campanella9e94e8a2021-01-19 15:21:25 +01001656 }
1657 return ImageState_IMAGE_UNKNOWN
1658}
1659
William Kurkian1b363f42019-03-12 15:28:12 -04001660type Port struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001661 state protoimpl.MessageState `protogen:"open.v1"`
1662 PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` // Device-unique port number
1663 Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // Arbitrary port label
1664 Type Port_PortType `protobuf:"varint,3,opt,name=type,proto3,enum=device.Port_PortType" json:"type,omitempty"` // Type of port
khenaidooce41ea42020-06-09 18:10:16 -04001665 AdminState common.AdminState_Types `protobuf:"varint,5,opt,name=admin_state,json=adminState,proto3,enum=common.AdminState_Types" json:"admin_state,omitempty"`
1666 OperStatus common.OperStatus_Types `protobuf:"varint,6,opt,name=oper_status,json=operStatus,proto3,enum=common.OperStatus_Types" json:"oper_status,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00001667 DeviceId string `protobuf:"bytes,7,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Unique .id of device that owns this port
khenaidooce41ea42020-06-09 18:10:16 -04001668 Peers []*Port_PeerPort `protobuf:"bytes,8,rep,name=peers,proto3" json:"peers,omitempty"`
1669 RxPackets uint64 `protobuf:"fixed64,9,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"`
1670 RxBytes uint64 `protobuf:"fixed64,10,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
1671 RxErrors uint64 `protobuf:"fixed64,11,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"`
1672 TxPackets uint64 `protobuf:"fixed64,12,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"`
1673 TxBytes uint64 `protobuf:"fixed64,13,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
1674 TxErrors uint64 `protobuf:"fixed64,14,opt,name=tx_errors,json=txErrors,proto3" json:"tx_errors,omitempty"`
1675 // ofp_port represents the characteristics of a port, e.g. hardware
1676 // address and supported features. This field is relevant only for
1677 // UNI and NNI ports. For PON ports, it can be left empty.
Abhay Kumar03713392025-12-30 05:20:58 +00001678 OfpPort *openflow_13.OfpPort `protobuf:"bytes,15,opt,name=ofp_port,json=ofpPort,proto3" json:"ofp_port,omitempty"`
1679 unknownFields protoimpl.UnknownFields
1680 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001681}
1682
Abhay Kumar03713392025-12-30 05:20:58 +00001683func (x *Port) Reset() {
1684 *x = Port{}
1685 mi := &file_voltha_protos_device_proto_msgTypes[13]
1686 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1687 ms.StoreMessageInfo(mi)
1688}
1689
1690func (x *Port) String() string {
1691 return protoimpl.X.MessageStringOf(x)
1692}
1693
1694func (*Port) ProtoMessage() {}
1695
1696func (x *Port) ProtoReflect() protoreflect.Message {
1697 mi := &file_voltha_protos_device_proto_msgTypes[13]
1698 if x != nil {
1699 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1700 if ms.LoadMessageInfo() == nil {
1701 ms.StoreMessageInfo(mi)
1702 }
1703 return ms
1704 }
1705 return mi.MessageOf(x)
1706}
1707
1708// Deprecated: Use Port.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001709func (*Port) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001710 return file_voltha_protos_device_proto_rawDescGZIP(), []int{13}
William Kurkian1b363f42019-03-12 15:28:12 -04001711}
William Kurkianad745652019-03-20 08:45:51 -04001712
Abhay Kumar03713392025-12-30 05:20:58 +00001713func (x *Port) GetPortNo() uint32 {
1714 if x != nil {
1715 return x.PortNo
William Kurkian1b363f42019-03-12 15:28:12 -04001716 }
1717 return 0
1718}
1719
Abhay Kumar03713392025-12-30 05:20:58 +00001720func (x *Port) GetLabel() string {
1721 if x != nil {
1722 return x.Label
William Kurkian1b363f42019-03-12 15:28:12 -04001723 }
1724 return ""
1725}
1726
Abhay Kumar03713392025-12-30 05:20:58 +00001727func (x *Port) GetType() Port_PortType {
1728 if x != nil {
1729 return x.Type
William Kurkian1b363f42019-03-12 15:28:12 -04001730 }
1731 return Port_UNKNOWN
1732}
1733
Abhay Kumar03713392025-12-30 05:20:58 +00001734func (x *Port) GetAdminState() common.AdminState_Types {
1735 if x != nil {
1736 return x.AdminState
William Kurkian1b363f42019-03-12 15:28:12 -04001737 }
Abhay Kumar03713392025-12-30 05:20:58 +00001738 return common.AdminState_Types(0)
William Kurkian1b363f42019-03-12 15:28:12 -04001739}
1740
Abhay Kumar03713392025-12-30 05:20:58 +00001741func (x *Port) GetOperStatus() common.OperStatus_Types {
1742 if x != nil {
1743 return x.OperStatus
William Kurkian1b363f42019-03-12 15:28:12 -04001744 }
Abhay Kumar03713392025-12-30 05:20:58 +00001745 return common.OperStatus_Types(0)
William Kurkian1b363f42019-03-12 15:28:12 -04001746}
1747
Abhay Kumar03713392025-12-30 05:20:58 +00001748func (x *Port) GetDeviceId() string {
1749 if x != nil {
1750 return x.DeviceId
William Kurkian1b363f42019-03-12 15:28:12 -04001751 }
1752 return ""
1753}
1754
Abhay Kumar03713392025-12-30 05:20:58 +00001755func (x *Port) GetPeers() []*Port_PeerPort {
1756 if x != nil {
1757 return x.Peers
William Kurkian1b363f42019-03-12 15:28:12 -04001758 }
1759 return nil
1760}
1761
Abhay Kumar03713392025-12-30 05:20:58 +00001762func (x *Port) GetRxPackets() uint64 {
1763 if x != nil {
1764 return x.RxPackets
William Kurkian1b363f42019-03-12 15:28:12 -04001765 }
1766 return 0
1767}
1768
Abhay Kumar03713392025-12-30 05:20:58 +00001769func (x *Port) GetRxBytes() uint64 {
1770 if x != nil {
1771 return x.RxBytes
William Kurkian1b363f42019-03-12 15:28:12 -04001772 }
1773 return 0
1774}
1775
Abhay Kumar03713392025-12-30 05:20:58 +00001776func (x *Port) GetRxErrors() uint64 {
1777 if x != nil {
1778 return x.RxErrors
William Kurkian1b363f42019-03-12 15:28:12 -04001779 }
1780 return 0
1781}
1782
Abhay Kumar03713392025-12-30 05:20:58 +00001783func (x *Port) GetTxPackets() uint64 {
1784 if x != nil {
1785 return x.TxPackets
William Kurkian1b363f42019-03-12 15:28:12 -04001786 }
1787 return 0
1788}
1789
Abhay Kumar03713392025-12-30 05:20:58 +00001790func (x *Port) GetTxBytes() uint64 {
1791 if x != nil {
1792 return x.TxBytes
William Kurkian1b363f42019-03-12 15:28:12 -04001793 }
1794 return 0
1795}
1796
Abhay Kumar03713392025-12-30 05:20:58 +00001797func (x *Port) GetTxErrors() uint64 {
1798 if x != nil {
1799 return x.TxErrors
William Kurkian1b363f42019-03-12 15:28:12 -04001800 }
1801 return 0
1802}
1803
Abhay Kumar03713392025-12-30 05:20:58 +00001804func (x *Port) GetOfpPort() *openflow_13.OfpPort {
1805 if x != nil {
1806 return x.OfpPort
khenaidooce41ea42020-06-09 18:10:16 -04001807 }
1808 return nil
1809}
1810
William Kurkian1b363f42019-03-12 15:28:12 -04001811type Ports struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001812 state protoimpl.MessageState `protogen:"open.v1"`
1813 Items []*Port `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
1814 unknownFields protoimpl.UnknownFields
1815 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001816}
1817
Abhay Kumar03713392025-12-30 05:20:58 +00001818func (x *Ports) Reset() {
1819 *x = Ports{}
1820 mi := &file_voltha_protos_device_proto_msgTypes[14]
1821 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1822 ms.StoreMessageInfo(mi)
1823}
1824
1825func (x *Ports) String() string {
1826 return protoimpl.X.MessageStringOf(x)
1827}
1828
1829func (*Ports) ProtoMessage() {}
1830
1831func (x *Ports) ProtoReflect() protoreflect.Message {
1832 mi := &file_voltha_protos_device_proto_msgTypes[14]
1833 if x != nil {
1834 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1835 if ms.LoadMessageInfo() == nil {
1836 ms.StoreMessageInfo(mi)
1837 }
1838 return ms
1839 }
1840 return mi.MessageOf(x)
1841}
1842
1843// Deprecated: Use Ports.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001844func (*Ports) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001845 return file_voltha_protos_device_proto_rawDescGZIP(), []int{14}
William Kurkian1b363f42019-03-12 15:28:12 -04001846}
William Kurkianad745652019-03-20 08:45:51 -04001847
Abhay Kumar03713392025-12-30 05:20:58 +00001848func (x *Ports) GetItems() []*Port {
1849 if x != nil {
1850 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -04001851 }
1852 return nil
1853}
1854
1855// A Physical Device instance
1856type Device struct {
Abhay Kumar03713392025-12-30 05:20:58 +00001857 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -04001858 // Voltha's device identifier
1859 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1860 // Device type, refers to one of the registered device types
1861 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
1862 // Is this device a root device. Each logical switch has one root
1863 // device that is associated with the logical flow switch.
1864 Root bool `protobuf:"varint,3,opt,name=root,proto3" json:"root,omitempty"`
1865 // Parent device id, in the device tree (for a root device, the parent_id
1866 // is the logical_device.id)
1867 ParentId string `protobuf:"bytes,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
1868 ParentPortNo uint32 `protobuf:"varint,20,opt,name=parent_port_no,json=parentPortNo,proto3" json:"parent_port_no,omitempty"`
1869 // Vendor, version, serial number, etc.
1870 Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
1871 Model string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
1872 HardwareVersion string `protobuf:"bytes,7,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
1873 FirmwareVersion string `protobuf:"bytes,8,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"`
1874 // List of software on the device
1875 Images *Images `protobuf:"bytes,9,opt,name=images,proto3" json:"images,omitempty"`
1876 SerialNumber string `protobuf:"bytes,10,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
1877 VendorId string `protobuf:"bytes,24,opt,name=vendor_id,json=vendorId,proto3" json:"vendor_id,omitempty"`
khenaidoo5fc5cea2021-08-11 17:39:16 -04001878 // Indicates how to reach the adapter instance that manages this device
1879 AdapterEndpoint string `protobuf:"bytes,25,opt,name=adapter_endpoint,json=adapterEndpoint,proto3" json:"adapter_endpoint,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -04001880 // Device contact on vlan (if 0, no vlan)
1881 Vlan uint32 `protobuf:"varint,12,opt,name=vlan,proto3" json:"vlan,omitempty"`
1882 // Device contact MAC address (format: "xx:xx:xx:xx:xx:xx")
1883 MacAddress string `protobuf:"bytes,13,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
1884 // Types that are valid to be assigned to Address:
Abhay Kumar03713392025-12-30 05:20:58 +00001885 //
William Kurkian1b363f42019-03-12 15:28:12 -04001886 // *Device_Ipv4Address
1887 // *Device_Ipv6Address
1888 // *Device_HostAndPort
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001889 Address isDevice_Address `protobuf_oneof:"address"`
Abhay Kumar03713392025-12-30 05:20:58 +00001890 ExtraArgs string `protobuf:"bytes,23,opt,name=extra_args,json=extraArgs,proto3" json:"extra_args,omitempty"` // Used to pass additional device specific arguments
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001891 ProxyAddress *Device_ProxyAddress `protobuf:"bytes,19,opt,name=proxy_address,json=proxyAddress,proto3" json:"proxy_address,omitempty"`
1892 AdminState common.AdminState_Types `protobuf:"varint,16,opt,name=admin_state,json=adminState,proto3,enum=common.AdminState_Types" json:"admin_state,omitempty"`
1893 OperStatus common.OperStatus_Types `protobuf:"varint,17,opt,name=oper_status,json=operStatus,proto3,enum=common.OperStatus_Types" json:"oper_status,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00001894 Reason string `protobuf:"bytes,22,opt,name=reason,proto3" json:"reason,omitempty"` // Used in FAILED state
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03001895 ConnectStatus common.ConnectStatus_Types `protobuf:"varint,18,opt,name=connect_status,json=connectStatus,proto3,enum=common.ConnectStatus_Types" json:"connect_status,omitempty"`
William Kurkian1b363f42019-03-12 15:28:12 -04001896 // Device type specific attributes
Abhay Kumar03713392025-12-30 05:20:58 +00001897 Custom *anypb.Any `protobuf:"bytes,64,opt,name=custom,proto3" json:"custom,omitempty"`
khenaidoo4c6543e2021-10-19 17:25:58 -04001898 // PmConfigs type
Abhay Kumar03713392025-12-30 05:20:58 +00001899 PmConfigs *PmConfigs `protobuf:"bytes,131,opt,name=pm_configs,json=pmConfigs,proto3" json:"pm_configs,omitempty"`
1900 ImageDownloads []*ImageDownload `protobuf:"bytes,133,rep,name=image_downloads,json=imageDownloads,proto3" json:"image_downloads,omitempty"`
1901 unknownFields protoimpl.UnknownFields
1902 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04001903}
1904
Abhay Kumar03713392025-12-30 05:20:58 +00001905func (x *Device) Reset() {
1906 *x = Device{}
1907 mi := &file_voltha_protos_device_proto_msgTypes[15]
1908 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1909 ms.StoreMessageInfo(mi)
1910}
1911
1912func (x *Device) String() string {
1913 return protoimpl.X.MessageStringOf(x)
1914}
1915
1916func (*Device) ProtoMessage() {}
1917
1918func (x *Device) ProtoReflect() protoreflect.Message {
1919 mi := &file_voltha_protos_device_proto_msgTypes[15]
1920 if x != nil {
1921 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1922 if ms.LoadMessageInfo() == nil {
1923 ms.StoreMessageInfo(mi)
1924 }
1925 return ms
1926 }
1927 return mi.MessageOf(x)
1928}
1929
1930// Deprecated: Use Device.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04001931func (*Device) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00001932 return file_voltha_protos_device_proto_rawDescGZIP(), []int{15}
William Kurkian1b363f42019-03-12 15:28:12 -04001933}
William Kurkianad745652019-03-20 08:45:51 -04001934
Abhay Kumar03713392025-12-30 05:20:58 +00001935func (x *Device) GetId() string {
1936 if x != nil {
1937 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -04001938 }
1939 return ""
1940}
1941
Abhay Kumar03713392025-12-30 05:20:58 +00001942func (x *Device) GetType() string {
1943 if x != nil {
1944 return x.Type
William Kurkian1b363f42019-03-12 15:28:12 -04001945 }
1946 return ""
1947}
1948
Abhay Kumar03713392025-12-30 05:20:58 +00001949func (x *Device) GetRoot() bool {
1950 if x != nil {
1951 return x.Root
William Kurkian1b363f42019-03-12 15:28:12 -04001952 }
1953 return false
1954}
1955
Abhay Kumar03713392025-12-30 05:20:58 +00001956func (x *Device) GetParentId() string {
1957 if x != nil {
1958 return x.ParentId
William Kurkian1b363f42019-03-12 15:28:12 -04001959 }
1960 return ""
1961}
1962
Abhay Kumar03713392025-12-30 05:20:58 +00001963func (x *Device) GetParentPortNo() uint32 {
1964 if x != nil {
1965 return x.ParentPortNo
William Kurkian1b363f42019-03-12 15:28:12 -04001966 }
1967 return 0
1968}
1969
Abhay Kumar03713392025-12-30 05:20:58 +00001970func (x *Device) GetVendor() string {
1971 if x != nil {
1972 return x.Vendor
William Kurkian1b363f42019-03-12 15:28:12 -04001973 }
1974 return ""
1975}
1976
Abhay Kumar03713392025-12-30 05:20:58 +00001977func (x *Device) GetModel() string {
1978 if x != nil {
1979 return x.Model
William Kurkian1b363f42019-03-12 15:28:12 -04001980 }
1981 return ""
1982}
1983
Abhay Kumar03713392025-12-30 05:20:58 +00001984func (x *Device) GetHardwareVersion() string {
1985 if x != nil {
1986 return x.HardwareVersion
William Kurkian1b363f42019-03-12 15:28:12 -04001987 }
1988 return ""
1989}
1990
Abhay Kumar03713392025-12-30 05:20:58 +00001991func (x *Device) GetFirmwareVersion() string {
1992 if x != nil {
1993 return x.FirmwareVersion
William Kurkian1b363f42019-03-12 15:28:12 -04001994 }
1995 return ""
1996}
1997
Abhay Kumar03713392025-12-30 05:20:58 +00001998func (x *Device) GetImages() *Images {
1999 if x != nil {
2000 return x.Images
William Kurkian1b363f42019-03-12 15:28:12 -04002001 }
2002 return nil
2003}
2004
Abhay Kumar03713392025-12-30 05:20:58 +00002005func (x *Device) GetSerialNumber() string {
2006 if x != nil {
2007 return x.SerialNumber
William Kurkian1b363f42019-03-12 15:28:12 -04002008 }
2009 return ""
2010}
2011
Abhay Kumar03713392025-12-30 05:20:58 +00002012func (x *Device) GetVendorId() string {
2013 if x != nil {
2014 return x.VendorId
William Kurkian1b363f42019-03-12 15:28:12 -04002015 }
2016 return ""
2017}
2018
Abhay Kumar03713392025-12-30 05:20:58 +00002019func (x *Device) GetAdapterEndpoint() string {
2020 if x != nil {
2021 return x.AdapterEndpoint
khenaidoo5fc5cea2021-08-11 17:39:16 -04002022 }
2023 return ""
2024}
2025
Abhay Kumar03713392025-12-30 05:20:58 +00002026func (x *Device) GetVlan() uint32 {
2027 if x != nil {
2028 return x.Vlan
William Kurkian1b363f42019-03-12 15:28:12 -04002029 }
2030 return 0
2031}
2032
Abhay Kumar03713392025-12-30 05:20:58 +00002033func (x *Device) GetMacAddress() string {
2034 if x != nil {
2035 return x.MacAddress
William Kurkian1b363f42019-03-12 15:28:12 -04002036 }
2037 return ""
2038}
2039
Abhay Kumar03713392025-12-30 05:20:58 +00002040func (x *Device) GetAddress() isDevice_Address {
2041 if x != nil {
2042 return x.Address
2043 }
2044 return nil
2045}
2046
2047func (x *Device) GetIpv4Address() string {
2048 if x != nil {
2049 if x, ok := x.Address.(*Device_Ipv4Address); ok {
2050 return x.Ipv4Address
2051 }
2052 }
2053 return ""
2054}
2055
2056func (x *Device) GetIpv6Address() string {
2057 if x != nil {
2058 if x, ok := x.Address.(*Device_Ipv6Address); ok {
2059 return x.Ipv6Address
2060 }
2061 }
2062 return ""
2063}
2064
2065func (x *Device) GetHostAndPort() string {
2066 if x != nil {
2067 if x, ok := x.Address.(*Device_HostAndPort); ok {
2068 return x.HostAndPort
2069 }
2070 }
2071 return ""
2072}
2073
2074func (x *Device) GetExtraArgs() string {
2075 if x != nil {
2076 return x.ExtraArgs
2077 }
2078 return ""
2079}
2080
2081func (x *Device) GetProxyAddress() *Device_ProxyAddress {
2082 if x != nil {
2083 return x.ProxyAddress
2084 }
2085 return nil
2086}
2087
2088func (x *Device) GetAdminState() common.AdminState_Types {
2089 if x != nil {
2090 return x.AdminState
2091 }
2092 return common.AdminState_Types(0)
2093}
2094
2095func (x *Device) GetOperStatus() common.OperStatus_Types {
2096 if x != nil {
2097 return x.OperStatus
2098 }
2099 return common.OperStatus_Types(0)
2100}
2101
2102func (x *Device) GetReason() string {
2103 if x != nil {
2104 return x.Reason
2105 }
2106 return ""
2107}
2108
2109func (x *Device) GetConnectStatus() common.ConnectStatus_Types {
2110 if x != nil {
2111 return x.ConnectStatus
2112 }
2113 return common.ConnectStatus_Types(0)
2114}
2115
2116func (x *Device) GetCustom() *anypb.Any {
2117 if x != nil {
2118 return x.Custom
2119 }
2120 return nil
2121}
2122
2123func (x *Device) GetPmConfigs() *PmConfigs {
2124 if x != nil {
2125 return x.PmConfigs
2126 }
2127 return nil
2128}
2129
2130func (x *Device) GetImageDownloads() []*ImageDownload {
2131 if x != nil {
2132 return x.ImageDownloads
2133 }
2134 return nil
2135}
2136
William Kurkian1b363f42019-03-12 15:28:12 -04002137type isDevice_Address interface {
2138 isDevice_Address()
2139}
2140
2141type Device_Ipv4Address struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002142 // Device contact IPv4 address (format: "a.b.c.d" or can use hostname too)
William Kurkian1b363f42019-03-12 15:28:12 -04002143 Ipv4Address string `protobuf:"bytes,14,opt,name=ipv4_address,json=ipv4Address,proto3,oneof"`
2144}
2145
2146type Device_Ipv6Address struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002147 // Device contact IPv6 address using the canonical string form
2148 // ("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")
William Kurkian1b363f42019-03-12 15:28:12 -04002149 Ipv6Address string `protobuf:"bytes,15,opt,name=ipv6_address,json=ipv6Address,proto3,oneof"`
2150}
2151
2152type Device_HostAndPort struct {
2153 HostAndPort string `protobuf:"bytes,21,opt,name=host_and_port,json=hostAndPort,proto3,oneof"`
2154}
2155
2156func (*Device_Ipv4Address) isDevice_Address() {}
2157
2158func (*Device_Ipv6Address) isDevice_Address() {}
2159
2160func (*Device_HostAndPort) isDevice_Address() {}
2161
khenaidoo4c6543e2021-10-19 17:25:58 -04002162type DeviceImageDownloadRequest struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002163 state protoimpl.MessageState `protogen:"open.v1"`
khenaidoo4c6543e2021-10-19 17:25:58 -04002164 // Device Id
2165 // allows for operations on multiple devices.
2166 DeviceId []*common.ID `protobuf:"bytes,1,rep,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00002167 // The image for the device containing all the information
khenaidoo4c6543e2021-10-19 17:25:58 -04002168 Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00002169 // Activate the image if the download to the device is successful
khenaidoo4c6543e2021-10-19 17:25:58 -04002170 ActivateOnSuccess bool `protobuf:"varint,3,opt,name=activateOnSuccess,proto3" json:"activateOnSuccess,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00002171 // Automatically commit the image if the activation on the device is successful
2172 CommitOnSuccess bool `protobuf:"varint,4,opt,name=commitOnSuccess,proto3" json:"commitOnSuccess,omitempty"`
2173 unknownFields protoimpl.UnknownFields
2174 sizeCache protoimpl.SizeCache
khenaidoo4c6543e2021-10-19 17:25:58 -04002175}
2176
Abhay Kumar03713392025-12-30 05:20:58 +00002177func (x *DeviceImageDownloadRequest) Reset() {
2178 *x = DeviceImageDownloadRequest{}
2179 mi := &file_voltha_protos_device_proto_msgTypes[16]
2180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2181 ms.StoreMessageInfo(mi)
2182}
2183
2184func (x *DeviceImageDownloadRequest) String() string {
2185 return protoimpl.X.MessageStringOf(x)
2186}
2187
2188func (*DeviceImageDownloadRequest) ProtoMessage() {}
2189
2190func (x *DeviceImageDownloadRequest) ProtoReflect() protoreflect.Message {
2191 mi := &file_voltha_protos_device_proto_msgTypes[16]
2192 if x != nil {
2193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2194 if ms.LoadMessageInfo() == nil {
2195 ms.StoreMessageInfo(mi)
2196 }
2197 return ms
2198 }
2199 return mi.MessageOf(x)
2200}
2201
2202// Deprecated: Use DeviceImageDownloadRequest.ProtoReflect.Descriptor instead.
khenaidoo4c6543e2021-10-19 17:25:58 -04002203func (*DeviceImageDownloadRequest) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002204 return file_voltha_protos_device_proto_rawDescGZIP(), []int{16}
khenaidoo4c6543e2021-10-19 17:25:58 -04002205}
2206
Abhay Kumar03713392025-12-30 05:20:58 +00002207func (x *DeviceImageDownloadRequest) GetDeviceId() []*common.ID {
2208 if x != nil {
2209 return x.DeviceId
khenaidoo4c6543e2021-10-19 17:25:58 -04002210 }
2211 return nil
2212}
2213
Abhay Kumar03713392025-12-30 05:20:58 +00002214func (x *DeviceImageDownloadRequest) GetImage() *Image {
2215 if x != nil {
2216 return x.Image
khenaidoo4c6543e2021-10-19 17:25:58 -04002217 }
2218 return nil
2219}
2220
Abhay Kumar03713392025-12-30 05:20:58 +00002221func (x *DeviceImageDownloadRequest) GetActivateOnSuccess() bool {
2222 if x != nil {
2223 return x.ActivateOnSuccess
khenaidoo4c6543e2021-10-19 17:25:58 -04002224 }
2225 return false
2226}
2227
Abhay Kumar03713392025-12-30 05:20:58 +00002228func (x *DeviceImageDownloadRequest) GetCommitOnSuccess() bool {
2229 if x != nil {
2230 return x.CommitOnSuccess
khenaidoo4c6543e2021-10-19 17:25:58 -04002231 }
2232 return false
2233}
2234
2235type DeviceImageRequest struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002236 state protoimpl.MessageState `protogen:"open.v1"`
2237 // Device Id
2238 // allows for operations on multiple adapters.
khenaidoo4c6543e2021-10-19 17:25:58 -04002239 DeviceId []*common.ID `protobuf:"bytes,1,rep,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
2240 // Image Version, this is the sole identifier of the image. it's the vendor specified OMCI version
2241 // must be known at the time of initiating a download, activate, commit image on an onu.
2242 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Abhay Kumar03713392025-12-30 05:20:58 +00002243 // Automatically commit the image if the activation on the device is successful
2244 CommitOnSuccess bool `protobuf:"varint,3,opt,name=commitOnSuccess,proto3" json:"commitOnSuccess,omitempty"`
2245 unknownFields protoimpl.UnknownFields
2246 sizeCache protoimpl.SizeCache
khenaidoo4c6543e2021-10-19 17:25:58 -04002247}
2248
Abhay Kumar03713392025-12-30 05:20:58 +00002249func (x *DeviceImageRequest) Reset() {
2250 *x = DeviceImageRequest{}
2251 mi := &file_voltha_protos_device_proto_msgTypes[17]
2252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2253 ms.StoreMessageInfo(mi)
2254}
2255
2256func (x *DeviceImageRequest) String() string {
2257 return protoimpl.X.MessageStringOf(x)
2258}
2259
2260func (*DeviceImageRequest) ProtoMessage() {}
2261
2262func (x *DeviceImageRequest) ProtoReflect() protoreflect.Message {
2263 mi := &file_voltha_protos_device_proto_msgTypes[17]
2264 if x != nil {
2265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2266 if ms.LoadMessageInfo() == nil {
2267 ms.StoreMessageInfo(mi)
2268 }
2269 return ms
2270 }
2271 return mi.MessageOf(x)
2272}
2273
2274// Deprecated: Use DeviceImageRequest.ProtoReflect.Descriptor instead.
khenaidoo4c6543e2021-10-19 17:25:58 -04002275func (*DeviceImageRequest) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002276 return file_voltha_protos_device_proto_rawDescGZIP(), []int{17}
khenaidoo4c6543e2021-10-19 17:25:58 -04002277}
2278
Abhay Kumar03713392025-12-30 05:20:58 +00002279func (x *DeviceImageRequest) GetDeviceId() []*common.ID {
2280 if x != nil {
2281 return x.DeviceId
khenaidoo4c6543e2021-10-19 17:25:58 -04002282 }
2283 return nil
2284}
2285
Abhay Kumar03713392025-12-30 05:20:58 +00002286func (x *DeviceImageRequest) GetVersion() string {
2287 if x != nil {
2288 return x.Version
khenaidoo4c6543e2021-10-19 17:25:58 -04002289 }
2290 return ""
2291}
2292
Abhay Kumar03713392025-12-30 05:20:58 +00002293func (x *DeviceImageRequest) GetCommitOnSuccess() bool {
2294 if x != nil {
2295 return x.CommitOnSuccess
khenaidoo4c6543e2021-10-19 17:25:58 -04002296 }
2297 return false
2298}
2299
2300type DeviceImageResponse struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002301 state protoimpl.MessageState `protogen:"open.v1"`
2302 // Image state for the different devices
2303 DeviceImageStates []*DeviceImageState `protobuf:"bytes,1,rep,name=device_image_states,json=deviceImageStates,proto3" json:"device_image_states,omitempty"`
2304 unknownFields protoimpl.UnknownFields
2305 sizeCache protoimpl.SizeCache
khenaidoo4c6543e2021-10-19 17:25:58 -04002306}
2307
Abhay Kumar03713392025-12-30 05:20:58 +00002308func (x *DeviceImageResponse) Reset() {
2309 *x = DeviceImageResponse{}
2310 mi := &file_voltha_protos_device_proto_msgTypes[18]
2311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2312 ms.StoreMessageInfo(mi)
2313}
2314
2315func (x *DeviceImageResponse) String() string {
2316 return protoimpl.X.MessageStringOf(x)
2317}
2318
2319func (*DeviceImageResponse) ProtoMessage() {}
2320
2321func (x *DeviceImageResponse) ProtoReflect() protoreflect.Message {
2322 mi := &file_voltha_protos_device_proto_msgTypes[18]
2323 if x != nil {
2324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2325 if ms.LoadMessageInfo() == nil {
2326 ms.StoreMessageInfo(mi)
2327 }
2328 return ms
2329 }
2330 return mi.MessageOf(x)
2331}
2332
2333// Deprecated: Use DeviceImageResponse.ProtoReflect.Descriptor instead.
khenaidoo4c6543e2021-10-19 17:25:58 -04002334func (*DeviceImageResponse) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002335 return file_voltha_protos_device_proto_rawDescGZIP(), []int{18}
khenaidoo4c6543e2021-10-19 17:25:58 -04002336}
2337
Abhay Kumar03713392025-12-30 05:20:58 +00002338func (x *DeviceImageResponse) GetDeviceImageStates() []*DeviceImageState {
2339 if x != nil {
2340 return x.DeviceImageStates
khenaidoo4c6543e2021-10-19 17:25:58 -04002341 }
2342 return nil
2343}
2344
2345// Device Self Test Response
2346type SelfTestResponse struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002347 state protoimpl.MessageState `protogen:"open.v1"`
2348 Result SelfTestResponse_SelfTestResult `protobuf:"varint,1,opt,name=result,proto3,enum=device.SelfTestResponse_SelfTestResult" json:"result,omitempty"`
2349 unknownFields protoimpl.UnknownFields
2350 sizeCache protoimpl.SizeCache
khenaidoo4c6543e2021-10-19 17:25:58 -04002351}
2352
Abhay Kumar03713392025-12-30 05:20:58 +00002353func (x *SelfTestResponse) Reset() {
2354 *x = SelfTestResponse{}
2355 mi := &file_voltha_protos_device_proto_msgTypes[19]
2356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2357 ms.StoreMessageInfo(mi)
2358}
2359
2360func (x *SelfTestResponse) String() string {
2361 return protoimpl.X.MessageStringOf(x)
2362}
2363
2364func (*SelfTestResponse) ProtoMessage() {}
2365
2366func (x *SelfTestResponse) ProtoReflect() protoreflect.Message {
2367 mi := &file_voltha_protos_device_proto_msgTypes[19]
2368 if x != nil {
2369 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2370 if ms.LoadMessageInfo() == nil {
2371 ms.StoreMessageInfo(mi)
2372 }
2373 return ms
2374 }
2375 return mi.MessageOf(x)
2376}
2377
2378// Deprecated: Use SelfTestResponse.ProtoReflect.Descriptor instead.
khenaidoo4c6543e2021-10-19 17:25:58 -04002379func (*SelfTestResponse) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002380 return file_voltha_protos_device_proto_rawDescGZIP(), []int{19}
khenaidoo4c6543e2021-10-19 17:25:58 -04002381}
2382
Abhay Kumar03713392025-12-30 05:20:58 +00002383func (x *SelfTestResponse) GetResult() SelfTestResponse_SelfTestResult {
2384 if x != nil {
2385 return x.Result
khenaidoo4c6543e2021-10-19 17:25:58 -04002386 }
2387 return SelfTestResponse_SUCCESS
2388}
2389
William Kurkian1b363f42019-03-12 15:28:12 -04002390type Devices struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002391 state protoimpl.MessageState `protogen:"open.v1"`
2392 Items []*Device `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
2393 unknownFields protoimpl.UnknownFields
2394 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04002395}
2396
Abhay Kumar03713392025-12-30 05:20:58 +00002397func (x *Devices) Reset() {
2398 *x = Devices{}
2399 mi := &file_voltha_protos_device_proto_msgTypes[20]
2400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2401 ms.StoreMessageInfo(mi)
2402}
2403
2404func (x *Devices) String() string {
2405 return protoimpl.X.MessageStringOf(x)
2406}
2407
2408func (*Devices) ProtoMessage() {}
2409
2410func (x *Devices) ProtoReflect() protoreflect.Message {
2411 mi := &file_voltha_protos_device_proto_msgTypes[20]
2412 if x != nil {
2413 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2414 if ms.LoadMessageInfo() == nil {
2415 ms.StoreMessageInfo(mi)
2416 }
2417 return ms
2418 }
2419 return mi.MessageOf(x)
2420}
2421
2422// Deprecated: Use Devices.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04002423func (*Devices) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002424 return file_voltha_protos_device_proto_rawDescGZIP(), []int{20}
William Kurkian1b363f42019-03-12 15:28:12 -04002425}
William Kurkianad745652019-03-20 08:45:51 -04002426
Abhay Kumar03713392025-12-30 05:20:58 +00002427func (x *Devices) GetItems() []*Device {
2428 if x != nil {
2429 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -04002430 }
2431 return nil
2432}
2433
2434type SimulateAlarmRequest struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002435 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -04002436 // Device Identifier
Abhay Kumar03713392025-12-30 05:20:58 +00002437 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
2438 Indicator string `protobuf:"bytes,2,opt,name=indicator,proto3" json:"indicator,omitempty"`
2439 IntfId string `protobuf:"bytes,3,opt,name=intf_id,json=intfId,proto3" json:"intf_id,omitempty"`
2440 PortTypeName string `protobuf:"bytes,4,opt,name=port_type_name,json=portTypeName,proto3" json:"port_type_name,omitempty"`
2441 OnuDeviceId string `protobuf:"bytes,5,opt,name=onu_device_id,json=onuDeviceId,proto3" json:"onu_device_id,omitempty"`
2442 InverseBitErrorRate int32 `protobuf:"varint,6,opt,name=inverse_bit_error_rate,json=inverseBitErrorRate,proto3" json:"inverse_bit_error_rate,omitempty"`
2443 Drift int32 `protobuf:"varint,7,opt,name=drift,proto3" json:"drift,omitempty"`
2444 NewEqd int32 `protobuf:"varint,8,opt,name=new_eqd,json=newEqd,proto3" json:"new_eqd,omitempty"`
2445 OnuSerialNumber string `protobuf:"bytes,9,opt,name=onu_serial_number,json=onuSerialNumber,proto3" json:"onu_serial_number,omitempty"`
2446 Operation SimulateAlarmRequest_OperationType `protobuf:"varint,10,opt,name=operation,proto3,enum=device.SimulateAlarmRequest_OperationType" json:"operation,omitempty"`
2447 unknownFields protoimpl.UnknownFields
2448 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -04002449}
2450
Abhay Kumar03713392025-12-30 05:20:58 +00002451func (x *SimulateAlarmRequest) Reset() {
2452 *x = SimulateAlarmRequest{}
2453 mi := &file_voltha_protos_device_proto_msgTypes[21]
2454 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2455 ms.StoreMessageInfo(mi)
2456}
2457
2458func (x *SimulateAlarmRequest) String() string {
2459 return protoimpl.X.MessageStringOf(x)
2460}
2461
2462func (*SimulateAlarmRequest) ProtoMessage() {}
2463
2464func (x *SimulateAlarmRequest) ProtoReflect() protoreflect.Message {
2465 mi := &file_voltha_protos_device_proto_msgTypes[21]
2466 if x != nil {
2467 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2468 if ms.LoadMessageInfo() == nil {
2469 ms.StoreMessageInfo(mi)
2470 }
2471 return ms
2472 }
2473 return mi.MessageOf(x)
2474}
2475
2476// Deprecated: Use SimulateAlarmRequest.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -04002477func (*SimulateAlarmRequest) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002478 return file_voltha_protos_device_proto_rawDescGZIP(), []int{21}
William Kurkian1b363f42019-03-12 15:28:12 -04002479}
William Kurkianad745652019-03-20 08:45:51 -04002480
Abhay Kumar03713392025-12-30 05:20:58 +00002481func (x *SimulateAlarmRequest) GetId() string {
2482 if x != nil {
2483 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -04002484 }
2485 return ""
2486}
2487
Abhay Kumar03713392025-12-30 05:20:58 +00002488func (x *SimulateAlarmRequest) GetIndicator() string {
2489 if x != nil {
2490 return x.Indicator
William Kurkian1b363f42019-03-12 15:28:12 -04002491 }
2492 return ""
2493}
2494
Abhay Kumar03713392025-12-30 05:20:58 +00002495func (x *SimulateAlarmRequest) GetIntfId() string {
2496 if x != nil {
2497 return x.IntfId
William Kurkian1b363f42019-03-12 15:28:12 -04002498 }
2499 return ""
2500}
2501
Abhay Kumar03713392025-12-30 05:20:58 +00002502func (x *SimulateAlarmRequest) GetPortTypeName() string {
2503 if x != nil {
2504 return x.PortTypeName
William Kurkian1b363f42019-03-12 15:28:12 -04002505 }
2506 return ""
2507}
2508
Abhay Kumar03713392025-12-30 05:20:58 +00002509func (x *SimulateAlarmRequest) GetOnuDeviceId() string {
2510 if x != nil {
2511 return x.OnuDeviceId
William Kurkian1b363f42019-03-12 15:28:12 -04002512 }
2513 return ""
2514}
2515
Abhay Kumar03713392025-12-30 05:20:58 +00002516func (x *SimulateAlarmRequest) GetInverseBitErrorRate() int32 {
2517 if x != nil {
2518 return x.InverseBitErrorRate
William Kurkian1b363f42019-03-12 15:28:12 -04002519 }
2520 return 0
2521}
2522
Abhay Kumar03713392025-12-30 05:20:58 +00002523func (x *SimulateAlarmRequest) GetDrift() int32 {
2524 if x != nil {
2525 return x.Drift
William Kurkian1b363f42019-03-12 15:28:12 -04002526 }
2527 return 0
2528}
2529
Abhay Kumar03713392025-12-30 05:20:58 +00002530func (x *SimulateAlarmRequest) GetNewEqd() int32 {
2531 if x != nil {
2532 return x.NewEqd
William Kurkian1b363f42019-03-12 15:28:12 -04002533 }
2534 return 0
2535}
2536
Abhay Kumar03713392025-12-30 05:20:58 +00002537func (x *SimulateAlarmRequest) GetOnuSerialNumber() string {
2538 if x != nil {
2539 return x.OnuSerialNumber
William Kurkian1b363f42019-03-12 15:28:12 -04002540 }
2541 return ""
2542}
2543
Abhay Kumar03713392025-12-30 05:20:58 +00002544func (x *SimulateAlarmRequest) GetOperation() SimulateAlarmRequest_OperationType {
2545 if x != nil {
2546 return x.Operation
William Kurkian1b363f42019-03-12 15:28:12 -04002547 }
2548 return SimulateAlarmRequest_RAISE
2549}
2550
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302551// Represents a serialNumber of a child device on a olt pon port
2552type OnuSerialNumberOnOLTPon struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002553 state protoimpl.MessageState `protogen:"open.v1"`
2554 OltDeviceId *common.ID `protobuf:"bytes,1,opt,name=olt_device_id,json=oltDeviceId,proto3" json:"olt_device_id,omitempty"`
2555 Port *Port `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
2556 SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
2557 unknownFields protoimpl.UnknownFields
2558 sizeCache protoimpl.SizeCache
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302559}
2560
Abhay Kumar03713392025-12-30 05:20:58 +00002561func (x *OnuSerialNumberOnOLTPon) Reset() {
2562 *x = OnuSerialNumberOnOLTPon{}
2563 mi := &file_voltha_protos_device_proto_msgTypes[22]
2564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2565 ms.StoreMessageInfo(mi)
2566}
2567
2568func (x *OnuSerialNumberOnOLTPon) String() string {
2569 return protoimpl.X.MessageStringOf(x)
2570}
2571
2572func (*OnuSerialNumberOnOLTPon) ProtoMessage() {}
2573
2574func (x *OnuSerialNumberOnOLTPon) ProtoReflect() protoreflect.Message {
2575 mi := &file_voltha_protos_device_proto_msgTypes[22]
2576 if x != nil {
2577 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2578 if ms.LoadMessageInfo() == nil {
2579 ms.StoreMessageInfo(mi)
2580 }
2581 return ms
2582 }
2583 return mi.MessageOf(x)
2584}
2585
2586// Deprecated: Use OnuSerialNumberOnOLTPon.ProtoReflect.Descriptor instead.
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302587func (*OnuSerialNumberOnOLTPon) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002588 return file_voltha_protos_device_proto_rawDescGZIP(), []int{22}
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302589}
2590
Abhay Kumar03713392025-12-30 05:20:58 +00002591func (x *OnuSerialNumberOnOLTPon) GetOltDeviceId() *common.ID {
2592 if x != nil {
2593 return x.OltDeviceId
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302594 }
2595 return nil
2596}
2597
Abhay Kumar03713392025-12-30 05:20:58 +00002598func (x *OnuSerialNumberOnOLTPon) GetPort() *Port {
2599 if x != nil {
2600 return x.Port
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302601 }
2602 return nil
2603}
2604
Abhay Kumar03713392025-12-30 05:20:58 +00002605func (x *OnuSerialNumberOnOLTPon) GetSerialNumber() string {
2606 if x != nil {
2607 return x.SerialNumber
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05302608 }
2609 return ""
2610}
2611
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302612type UpdateDevice struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002613 state protoimpl.MessageState `protogen:"open.v1"`
2614 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //Device id of the device, for now only updating the OLT device is supported, and only ip address of the OLT
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302615 // Types that are valid to be assigned to Address:
Abhay Kumar03713392025-12-30 05:20:58 +00002616 //
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302617 // *UpdateDevice_Ipv4Address
2618 // *UpdateDevice_Ipv6Address
2619 // *UpdateDevice_HostAndPort
Abhay Kumar03713392025-12-30 05:20:58 +00002620 Address isUpdateDevice_Address `protobuf_oneof:"address"`
2621 unknownFields protoimpl.UnknownFields
2622 sizeCache protoimpl.SizeCache
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302623}
2624
Abhay Kumar03713392025-12-30 05:20:58 +00002625func (x *UpdateDevice) Reset() {
2626 *x = UpdateDevice{}
2627 mi := &file_voltha_protos_device_proto_msgTypes[23]
2628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2629 ms.StoreMessageInfo(mi)
2630}
2631
2632func (x *UpdateDevice) String() string {
2633 return protoimpl.X.MessageStringOf(x)
2634}
2635
2636func (*UpdateDevice) ProtoMessage() {}
2637
2638func (x *UpdateDevice) ProtoReflect() protoreflect.Message {
2639 mi := &file_voltha_protos_device_proto_msgTypes[23]
2640 if x != nil {
2641 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2642 if ms.LoadMessageInfo() == nil {
2643 ms.StoreMessageInfo(mi)
2644 }
2645 return ms
2646 }
2647 return mi.MessageOf(x)
2648}
2649
2650// Deprecated: Use UpdateDevice.ProtoReflect.Descriptor instead.
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302651func (*UpdateDevice) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +00002652 return file_voltha_protos_device_proto_rawDescGZIP(), []int{23}
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302653}
2654
Abhay Kumar03713392025-12-30 05:20:58 +00002655func (x *UpdateDevice) GetId() string {
2656 if x != nil {
2657 return x.Id
2658 }
2659 return ""
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302660}
2661
Abhay Kumar03713392025-12-30 05:20:58 +00002662func (x *UpdateDevice) GetAddress() isUpdateDevice_Address {
2663 if x != nil {
2664 return x.Address
2665 }
2666 return nil
2667}
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302668
Abhay Kumar03713392025-12-30 05:20:58 +00002669func (x *UpdateDevice) GetIpv4Address() string {
2670 if x != nil {
2671 if x, ok := x.Address.(*UpdateDevice_Ipv4Address); ok {
2672 return x.Ipv4Address
2673 }
2674 }
2675 return ""
2676}
2677
2678func (x *UpdateDevice) GetIpv6Address() string {
2679 if x != nil {
2680 if x, ok := x.Address.(*UpdateDevice_Ipv6Address); ok {
2681 return x.Ipv6Address
2682 }
2683 }
2684 return ""
2685}
2686
2687func (x *UpdateDevice) GetHostAndPort() string {
2688 if x != nil {
2689 if x, ok := x.Address.(*UpdateDevice_HostAndPort); ok {
2690 return x.HostAndPort
2691 }
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302692 }
2693 return ""
2694}
2695
2696type isUpdateDevice_Address interface {
2697 isUpdateDevice_Address()
2698}
2699
2700type UpdateDevice_Ipv4Address struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002701 // Device contact IPv4 address (format: "a.b.c.d" or can use hostname too)
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302702 Ipv4Address string `protobuf:"bytes,2,opt,name=ipv4_address,json=ipv4Address,proto3,oneof"`
2703}
2704
2705type UpdateDevice_Ipv6Address struct {
Abhay Kumar03713392025-12-30 05:20:58 +00002706 // Device contact IPv6 address using the canonical string form
2707 // ("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302708 Ipv6Address string `protobuf:"bytes,3,opt,name=ipv6_address,json=ipv6Address,proto3,oneof"`
2709}
2710
2711type UpdateDevice_HostAndPort struct {
2712 HostAndPort string `protobuf:"bytes,4,opt,name=host_and_port,json=hostAndPort,proto3,oneof"`
2713}
2714
2715func (*UpdateDevice_Ipv4Address) isUpdateDevice_Address() {}
2716
2717func (*UpdateDevice_Ipv6Address) isUpdateDevice_Address() {}
2718
2719func (*UpdateDevice_HostAndPort) isUpdateDevice_Address() {}
2720
Abhay Kumar03713392025-12-30 05:20:58 +00002721type Port_PeerPort struct {
2722 state protoimpl.MessageState `protogen:"open.v1"`
2723 DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
2724 PortNo uint32 `protobuf:"varint,2,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"`
2725 unknownFields protoimpl.UnknownFields
2726 sizeCache protoimpl.SizeCache
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302727}
2728
Abhay Kumar03713392025-12-30 05:20:58 +00002729func (x *Port_PeerPort) Reset() {
2730 *x = Port_PeerPort{}
2731 mi := &file_voltha_protos_device_proto_msgTypes[24]
2732 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2733 ms.StoreMessageInfo(mi)
2734}
2735
2736func (x *Port_PeerPort) String() string {
2737 return protoimpl.X.MessageStringOf(x)
2738}
2739
2740func (*Port_PeerPort) ProtoMessage() {}
2741
2742func (x *Port_PeerPort) ProtoReflect() protoreflect.Message {
2743 mi := &file_voltha_protos_device_proto_msgTypes[24]
2744 if x != nil {
2745 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2746 if ms.LoadMessageInfo() == nil {
2747 ms.StoreMessageInfo(mi)
2748 }
2749 return ms
2750 }
2751 return mi.MessageOf(x)
2752}
2753
2754// Deprecated: Use Port_PeerPort.ProtoReflect.Descriptor instead.
2755func (*Port_PeerPort) Descriptor() ([]byte, []int) {
2756 return file_voltha_protos_device_proto_rawDescGZIP(), []int{13, 0}
2757}
2758
2759func (x *Port_PeerPort) GetDeviceId() string {
2760 if x != nil {
2761 return x.DeviceId
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302762 }
2763 return ""
2764}
2765
Abhay Kumar03713392025-12-30 05:20:58 +00002766func (x *Port_PeerPort) GetPortNo() uint32 {
2767 if x != nil {
2768 return x.PortNo
2769 }
2770 return 0
2771}
2772
2773type Device_ProxyAddress struct {
2774 state protoimpl.MessageState `protogen:"open.v1"`
2775 DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Which device to use as proxy to this device
2776 DeviceType string `protobuf:"bytes,2,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` // The device type of the proxy device to use as the adapter name
2777 ChannelId uint32 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // Sub-address within proxy
2778 ChannelGroupId uint32 `protobuf:"varint,4,opt,name=channel_group_id,json=channelGroupId,proto3" json:"channel_group_id,omitempty"` // Channel Group index
2779 ChannelTermination string `protobuf:"bytes,5,opt,name=channel_termination,json=channelTermination,proto3" json:"channel_termination,omitempty"` // Channel Termination name
2780 OnuId uint32 `protobuf:"varint,6,opt,name=onu_id,json=onuId,proto3" json:"onu_id,omitempty"` // onu identifier; optional
2781 OnuSessionId uint32 `protobuf:"varint,7,opt,name=onu_session_id,json=onuSessionId,proto3" json:"onu_session_id,omitempty"` // session identifier for the ONU; optional
2782 AdapterEndpoint string `protobuf:"bytes,8,opt,name=adapter_endpoint,json=adapterEndpoint,proto3" json:"adapter_endpoint,omitempty"` // endpoint of the adapter that handles the proxy device
2783 unknownFields protoimpl.UnknownFields
2784 sizeCache protoimpl.SizeCache
2785}
2786
2787func (x *Device_ProxyAddress) Reset() {
2788 *x = Device_ProxyAddress{}
2789 mi := &file_voltha_protos_device_proto_msgTypes[25]
2790 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2791 ms.StoreMessageInfo(mi)
2792}
2793
2794func (x *Device_ProxyAddress) String() string {
2795 return protoimpl.X.MessageStringOf(x)
2796}
2797
2798func (*Device_ProxyAddress) ProtoMessage() {}
2799
2800func (x *Device_ProxyAddress) ProtoReflect() protoreflect.Message {
2801 mi := &file_voltha_protos_device_proto_msgTypes[25]
2802 if x != nil {
2803 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2804 if ms.LoadMessageInfo() == nil {
2805 ms.StoreMessageInfo(mi)
2806 }
2807 return ms
2808 }
2809 return mi.MessageOf(x)
2810}
2811
2812// Deprecated: Use Device_ProxyAddress.ProtoReflect.Descriptor instead.
2813func (*Device_ProxyAddress) Descriptor() ([]byte, []int) {
2814 return file_voltha_protos_device_proto_rawDescGZIP(), []int{15, 0}
2815}
2816
2817func (x *Device_ProxyAddress) GetDeviceId() string {
2818 if x != nil {
2819 return x.DeviceId
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302820 }
2821 return ""
2822}
2823
Abhay Kumar03713392025-12-30 05:20:58 +00002824func (x *Device_ProxyAddress) GetDeviceType() string {
2825 if x != nil {
2826 return x.DeviceType
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05302827 }
2828 return ""
2829}
2830
Abhay Kumar03713392025-12-30 05:20:58 +00002831func (x *Device_ProxyAddress) GetChannelId() uint32 {
2832 if x != nil {
2833 return x.ChannelId
2834 }
2835 return 0
2836}
2837
2838func (x *Device_ProxyAddress) GetChannelGroupId() uint32 {
2839 if x != nil {
2840 return x.ChannelGroupId
2841 }
2842 return 0
2843}
2844
2845func (x *Device_ProxyAddress) GetChannelTermination() string {
2846 if x != nil {
2847 return x.ChannelTermination
2848 }
2849 return ""
2850}
2851
2852func (x *Device_ProxyAddress) GetOnuId() uint32 {
2853 if x != nil {
2854 return x.OnuId
2855 }
2856 return 0
2857}
2858
2859func (x *Device_ProxyAddress) GetOnuSessionId() uint32 {
2860 if x != nil {
2861 return x.OnuSessionId
2862 }
2863 return 0
2864}
2865
2866func (x *Device_ProxyAddress) GetAdapterEndpoint() string {
2867 if x != nil {
2868 return x.AdapterEndpoint
2869 }
2870 return ""
2871}
2872
2873var File_voltha_protos_device_proto protoreflect.FileDescriptor
2874
2875const file_voltha_protos_device_proto_rawDesc = "" +
2876 "\n" +
2877 "\x1avoltha_protos/device.proto\x12\x06device\x1a\x19google/protobuf/any.proto\x1a\x1avoltha_protos/common.proto\x1a\x1fvoltha_protos/openflow_13.proto\"\xe2\x02\n" +
2878 "\n" +
2879 "DeviceType\x12\x0e\n" +
2880 "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
2881 "\tvendor_id\x18\x05 \x01(\tR\bvendorId\x12\x1d\n" +
2882 "\n" +
2883 "vendor_ids\x18\x06 \x03(\tR\tvendorIds\x12\x18\n" +
2884 "\aadapter\x18\x02 \x01(\tR\aadapter\x127\n" +
2885 "\x18accepts_bulk_flow_update\x18\x03 \x01(\bR\x15acceptsBulkFlowUpdate\x12D\n" +
2886 "\x1faccepts_add_remove_flow_updates\x18\x04 \x01(\bR\x1bacceptsAddRemoveFlowUpdates\x12L\n" +
2887 "#accepts_direct_logical_flows_update\x18\a \x01(\bR\x1facceptsDirectLogicalFlowsUpdate\x12!\n" +
2888 "\fadapter_type\x18\b \x01(\tR\vadapterType\"7\n" +
2889 "\vDeviceTypes\x12(\n" +
2890 "\x05items\x18\x01 \x03(\v2\x12.device.DeviceTypeR\x05items\"\xc0\x01\n" +
2891 "\bPmConfig\x12\x12\n" +
2892 "\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +
2893 "\x04type\x18\x02 \x01(\x0e2\x17.device.PmConfig.PmTypeR\x04type\x12\x18\n" +
2894 "\aenabled\x18\x03 \x01(\bR\aenabled\x12\x1f\n" +
2895 "\vsample_freq\x18\x04 \x01(\rR\n" +
2896 "sampleFreq\"8\n" +
2897 "\x06PmType\x12\v\n" +
2898 "\aCOUNTER\x10\x00\x12\t\n" +
2899 "\x05GAUGE\x10\x01\x12\t\n" +
2900 "\x05STATE\x10\x02\x12\v\n" +
2901 "\aCONTEXT\x10\x03\"\x93\x01\n" +
2902 "\rPmGroupConfig\x12\x1d\n" +
2903 "\n" +
2904 "group_name\x18\x01 \x01(\tR\tgroupName\x12\x1d\n" +
2905 "\n" +
2906 "group_freq\x18\x02 \x01(\rR\tgroupFreq\x12\x18\n" +
2907 "\aenabled\x18\x03 \x01(\bR\aenabled\x12*\n" +
2908 "\ametrics\x18\x04 \x03(\v2\x10.device.PmConfigR\ametrics\"\xf3\x01\n" +
2909 "\tPmConfigs\x12\x0e\n" +
2910 "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" +
2911 "\fdefault_freq\x18\x02 \x01(\rR\vdefaultFreq\x12\x18\n" +
2912 "\agrouped\x18\x03 \x01(\bR\agrouped\x12#\n" +
2913 "\rfreq_override\x18\x04 \x01(\bR\ffreqOverride\x12-\n" +
2914 "\x06groups\x18\x05 \x03(\v2\x15.device.PmGroupConfigR\x06groups\x12*\n" +
2915 "\ametrics\x18\x06 \x03(\v2\x10.device.PmConfigR\ametrics\x12\x19\n" +
2916 "\bmax_skew\x18\a \x01(\rR\amaxSkew\"\x8f\x02\n" +
2917 "\x05Image\x12\x12\n" +
2918 "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
2919 "\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" +
2920 "\x04hash\x18\x03 \x01(\rR\x04hash\x12)\n" +
2921 "\x10install_datetime\x18\x04 \x01(\tR\x0finstallDatetime\x12\x1b\n" +
2922 "\tis_active\x18\x05 \x01(\bR\bisActive\x12!\n" +
2923 "\fis_committed\x18\x06 \x01(\bR\visCommitted\x12\x19\n" +
2924 "\bis_valid\x18\a \x01(\bR\aisValid\x12\x10\n" +
2925 "\x03url\x18\b \x01(\tR\x03url\x12\x16\n" +
2926 "\x06vendor\x18\t \x01(\tR\x06vendor\x12\x14\n" +
2927 "\x05crc32\x18\n" +
2928 " \x01(\rR\x05crc32\"\xe7\a\n" +
2929 "\rImageDownload\x12\x0e\n" +
2930 "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
2931 "\x04name\x18\x02 \x01(\tR\x04name\x12\x10\n" +
2932 "\x03url\x18\x03 \x01(\tR\x03url\x12\x10\n" +
2933 "\x03crc\x18\x04 \x01(\rR\x03crc\x12O\n" +
2934 "\x0edownload_state\x18\x05 \x01(\x0e2(.device.ImageDownload.ImageDownloadStateR\rdownloadState\x12#\n" +
2935 "\rimage_version\x18\x06 \x01(\tR\fimageVersion\x12)\n" +
2936 "\x10downloaded_bytes\x18\a \x01(\rR\x0fdownloadedBytes\x12H\n" +
2937 "\x06reason\x18\b \x01(\x0e20.device.ImageDownload.ImageDownloadFailureReasonR\x06reason\x12'\n" +
2938 "\x0fadditional_info\x18\t \x01(\tR\x0eadditionalInfo\x12\x1f\n" +
2939 "\vsave_config\x18\n" +
2940 " \x01(\bR\n" +
2941 "saveConfig\x12\x1b\n" +
2942 "\tlocal_dir\x18\v \x01(\tR\blocalDir\x12I\n" +
2943 "\vimage_state\x18\f \x01(\x0e2(.device.ImageDownload.ImageActivateStateR\n" +
2944 "imageState\x12\x1b\n" +
2945 "\tfile_size\x18\r \x01(\rR\bfileSize\"\xb7\x01\n" +
2946 "\x12ImageDownloadState\x12\x14\n" +
2947 "\x10DOWNLOAD_UNKNOWN\x10\x00\x12\x16\n" +
2948 "\x12DOWNLOAD_SUCCEEDED\x10\x01\x12\x16\n" +
2949 "\x12DOWNLOAD_REQUESTED\x10\x02\x12\x14\n" +
2950 "\x10DOWNLOAD_STARTED\x10\x03\x12\x13\n" +
2951 "\x0fDOWNLOAD_FAILED\x10\x04\x12\x18\n" +
2952 "\x14DOWNLOAD_UNSUPPORTED\x10\x05\x12\x16\n" +
2953 "\x12DOWNLOAD_CANCELLED\x10\x06\"\x86\x01\n" +
2954 "\x1aImageDownloadFailureReason\x12\f\n" +
2955 "\bNO_ERROR\x10\x00\x12\x0f\n" +
2956 "\vINVALID_URL\x10\x01\x12\x0f\n" +
2957 "\vDEVICE_BUSY\x10\x02\x12\x16\n" +
2958 "\x12INSUFFICIENT_SPACE\x10\x03\x12\x11\n" +
2959 "\rUNKNOWN_ERROR\x10\x04\x12\r\n" +
2960 "\tCANCELLED\x10\x05\"\x8c\x01\n" +
2961 "\x12ImageActivateState\x12\x11\n" +
2962 "\rIMAGE_UNKNOWN\x10\x00\x12\x12\n" +
2963 "\x0eIMAGE_INACTIVE\x10\x01\x12\x14\n" +
2964 "\x10IMAGE_ACTIVATING\x10\x02\x12\x10\n" +
2965 "\fIMAGE_ACTIVE\x10\x03\x12\x13\n" +
2966 "\x0fIMAGE_REVERTING\x10\x04\x12\x12\n" +
2967 "\x0eIMAGE_REVERTED\x10\x05:\x02\x18\x01\"A\n" +
2968 "\x0eImageDownloads\x12+\n" +
2969 "\x05items\x18\x02 \x03(\v2\x15.device.ImageDownloadR\x05items:\x02\x18\x01\"-\n" +
2970 "\x06Images\x12#\n" +
2971 "\x05image\x18\x01 \x03(\v2\r.device.ImageR\x05image\"\xb0\x01\n" +
2972 "\bOnuImage\x12\x18\n" +
2973 "\aversion\x18\x01 \x01(\tR\aversion\x12\x1e\n" +
2974 "\n" +
2975 "isCommited\x18\x02 \x01(\bR\n" +
2976 "isCommited\x12\x1a\n" +
2977 "\bisActive\x18\x03 \x01(\bR\bisActive\x12\x18\n" +
2978 "\aisValid\x18\x04 \x01(\bR\aisValid\x12 \n" +
2979 "\vproductCode\x18\x05 \x01(\tR\vproductCode\x12\x12\n" +
2980 "\x04hash\x18\x06 \x01(\tR\x04hash\"3\n" +
2981 "\tOnuImages\x12&\n" +
2982 "\x05items\x18\x01 \x03(\v2\x10.device.OnuImageR\x05items\"c\n" +
2983 "\x10DeviceImageState\x12\x1b\n" +
2984 "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x122\n" +
2985 "\n" +
2986 "imageState\x18\x02 \x01(\v2\x12.device.ImageStateR\n" +
2987 "imageState\"\x82\b\n" +
2988 "\n" +
2989 "ImageState\x12\x18\n" +
2990 "\aversion\x18\x01 \x01(\tR\aversion\x12L\n" +
2991 "\x0edownload_state\x18\x02 \x01(\x0e2%.device.ImageState.ImageDownloadStateR\rdownloadState\x12=\n" +
2992 "\x06reason\x18\x03 \x01(\x0e2%.device.ImageState.ImageFailureReasonR\x06reason\x12H\n" +
2993 "\vimage_state\x18\x04 \x01(\x0e2'.device.ImageState.ImageActivationStateR\n" +
2994 "imageState\"\xd0\x01\n" +
2995 "\x12ImageDownloadState\x12\x14\n" +
2996 "\x10DOWNLOAD_UNKNOWN\x10\x00\x12\x16\n" +
2997 "\x12DOWNLOAD_SUCCEEDED\x10\x01\x12\x16\n" +
2998 "\x12DOWNLOAD_REQUESTED\x10\x02\x12\x14\n" +
2999 "\x10DOWNLOAD_STARTED\x10\x03\x12\x13\n" +
3000 "\x0fDOWNLOAD_FAILED\x10\x04\x12\x18\n" +
3001 "\x14DOWNLOAD_UNSUPPORTED\x10\x05\x12\x17\n" +
3002 "\x13DOWNLOAD_CANCELLING\x10\x06\x12\x16\n" +
3003 "\x12DOWNLOAD_CANCELLED\x10\a\"\xf4\x01\n" +
3004 "\x12ImageFailureReason\x12\f\n" +
3005 "\bNO_ERROR\x10\x00\x12\x0f\n" +
3006 "\vINVALID_URL\x10\x01\x12\x0f\n" +
3007 "\vDEVICE_BUSY\x10\x02\x12\x16\n" +
3008 "\x12INSUFFICIENT_SPACE\x10\x03\x12\x11\n" +
3009 "\rUNKNOWN_ERROR\x10\x04\x12\x18\n" +
3010 "\x14CANCELLED_ON_REQUEST\x10\x05\x12\x1a\n" +
3011 "\x16CANCELLED_ON_ONU_STATE\x10\x06\x12\x1a\n" +
3012 "\x16VENDOR_DEVICE_MISMATCH\x10\a\x12\x17\n" +
3013 "\x13OMCI_TRANSFER_ERROR\x10\b\x12\x18\n" +
3014 "\x14IMAGE_REFUSED_BY_ONU\x10\t\"\xb8\x02\n" +
3015 "\x14ImageActivationState\x12\x11\n" +
3016 "\rIMAGE_UNKNOWN\x10\x00\x12\x12\n" +
3017 "\x0eIMAGE_INACTIVE\x10\x01\x12\x14\n" +
3018 "\x10IMAGE_ACTIVATING\x10\x02\x12\x10\n" +
3019 "\fIMAGE_ACTIVE\x10\x03\x12\x14\n" +
3020 "\x10IMAGE_COMMITTING\x10\x04\x12\x13\n" +
3021 "\x0fIMAGE_COMMITTED\x10\x05\x12\x1d\n" +
3022 "\x19IMAGE_ACTIVATION_ABORTING\x10\x06\x12\x1c\n" +
3023 "\x18IMAGE_ACTIVATION_ABORTED\x10\a\x12\x19\n" +
3024 "\x15IMAGE_COMMIT_ABORTING\x10\b\x12\x18\n" +
3025 "\x14IMAGE_COMMIT_ABORTED\x10\t\x12\x15\n" +
3026 "\x11IMAGE_DOWNLOADING\x10\n" +
3027 "\x12\x1d\n" +
3028 "\x19IMAGE_DOWNLOADING_ABORTED\x10\v\"\xb7\x05\n" +
3029 "\x04Port\x12\x17\n" +
3030 "\aport_no\x18\x01 \x01(\rR\x06portNo\x12\x14\n" +
3031 "\x05label\x18\x02 \x01(\tR\x05label\x12)\n" +
3032 "\x04type\x18\x03 \x01(\x0e2\x15.device.Port.PortTypeR\x04type\x129\n" +
3033 "\vadmin_state\x18\x05 \x01(\x0e2\x18.common.AdminState.TypesR\n" +
3034 "adminState\x129\n" +
3035 "\voper_status\x18\x06 \x01(\x0e2\x18.common.OperStatus.TypesR\n" +
3036 "operStatus\x12\x1b\n" +
3037 "\tdevice_id\x18\a \x01(\tR\bdeviceId\x12+\n" +
3038 "\x05peers\x18\b \x03(\v2\x15.device.Port.PeerPortR\x05peers\x12\x1d\n" +
3039 "\n" +
3040 "rx_packets\x18\t \x01(\x06R\trxPackets\x12\x19\n" +
3041 "\brx_bytes\x18\n" +
3042 " \x01(\x06R\arxBytes\x12\x1b\n" +
3043 "\trx_errors\x18\v \x01(\x06R\brxErrors\x12\x1d\n" +
3044 "\n" +
3045 "tx_packets\x18\f \x01(\x06R\ttxPackets\x12\x19\n" +
3046 "\btx_bytes\x18\r \x01(\x06R\atxBytes\x12\x1b\n" +
3047 "\ttx_errors\x18\x0e \x01(\x06R\btxErrors\x120\n" +
3048 "\bofp_port\x18\x0f \x01(\v2\x15.openflow_13.ofp_portR\aofpPort\x1a@\n" +
3049 "\bPeerPort\x12\x1b\n" +
3050 "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x17\n" +
3051 "\aport_no\x18\x02 \x01(\rR\x06portNo\"s\n" +
3052 "\bPortType\x12\v\n" +
3053 "\aUNKNOWN\x10\x00\x12\x10\n" +
3054 "\fETHERNET_NNI\x10\x01\x12\x10\n" +
3055 "\fETHERNET_UNI\x10\x02\x12\v\n" +
3056 "\aPON_OLT\x10\x03\x12\v\n" +
3057 "\aPON_ONU\x10\x04\x12\r\n" +
3058 "\tVENET_OLT\x10\x05\x12\r\n" +
3059 "\tVENET_ONU\x10\x06\"+\n" +
3060 "\x05Ports\x12\"\n" +
3061 "\x05items\x18\x01 \x03(\v2\f.device.PortR\x05items\"\xd8\n" +
3062 "\n" +
3063 "\x06Device\x12\x0e\n" +
3064 "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
3065 "\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
3066 "\x04root\x18\x03 \x01(\bR\x04root\x12\x1b\n" +
3067 "\tparent_id\x18\x04 \x01(\tR\bparentId\x12$\n" +
3068 "\x0eparent_port_no\x18\x14 \x01(\rR\fparentPortNo\x12\x16\n" +
3069 "\x06vendor\x18\x05 \x01(\tR\x06vendor\x12\x14\n" +
3070 "\x05model\x18\x06 \x01(\tR\x05model\x12)\n" +
3071 "\x10hardware_version\x18\a \x01(\tR\x0fhardwareVersion\x12)\n" +
3072 "\x10firmware_version\x18\b \x01(\tR\x0ffirmwareVersion\x12&\n" +
3073 "\x06images\x18\t \x01(\v2\x0e.device.ImagesR\x06images\x12#\n" +
3074 "\rserial_number\x18\n" +
3075 " \x01(\tR\fserialNumber\x12\x1b\n" +
3076 "\tvendor_id\x18\x18 \x01(\tR\bvendorId\x12)\n" +
3077 "\x10adapter_endpoint\x18\x19 \x01(\tR\x0fadapterEndpoint\x12\x12\n" +
3078 "\x04vlan\x18\f \x01(\rR\x04vlan\x12\x1f\n" +
3079 "\vmac_address\x18\r \x01(\tR\n" +
3080 "macAddress\x12#\n" +
3081 "\fipv4_address\x18\x0e \x01(\tH\x00R\vipv4Address\x12#\n" +
3082 "\fipv6_address\x18\x0f \x01(\tH\x00R\vipv6Address\x12$\n" +
3083 "\rhost_and_port\x18\x15 \x01(\tH\x00R\vhostAndPort\x12\x1d\n" +
3084 "\n" +
3085 "extra_args\x18\x17 \x01(\tR\textraArgs\x12@\n" +
3086 "\rproxy_address\x18\x13 \x01(\v2\x1b.device.Device.ProxyAddressR\fproxyAddress\x129\n" +
3087 "\vadmin_state\x18\x10 \x01(\x0e2\x18.common.AdminState.TypesR\n" +
3088 "adminState\x129\n" +
3089 "\voper_status\x18\x11 \x01(\x0e2\x18.common.OperStatus.TypesR\n" +
3090 "operStatus\x12\x16\n" +
3091 "\x06reason\x18\x16 \x01(\tR\x06reason\x12B\n" +
3092 "\x0econnect_status\x18\x12 \x01(\x0e2\x1b.common.ConnectStatus.TypesR\rconnectStatus\x12,\n" +
3093 "\x06custom\x18@ \x01(\v2\x14.google.protobuf.AnyR\x06custom\x121\n" +
3094 "\n" +
3095 "pm_configs\x18\x83\x01 \x01(\v2\x11.device.PmConfigsR\tpmConfigs\x12?\n" +
3096 "\x0fimage_downloads\x18\x85\x01 \x03(\v2\x15.device.ImageDownloadR\x0eimageDownloads\x1a\xae\x02\n" +
3097 "\fProxyAddress\x12\x1b\n" +
3098 "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x1f\n" +
3099 "\vdevice_type\x18\x02 \x01(\tR\n" +
3100 "deviceType\x12\x1d\n" +
3101 "\n" +
3102 "channel_id\x18\x03 \x01(\rR\tchannelId\x12(\n" +
3103 "\x10channel_group_id\x18\x04 \x01(\rR\x0echannelGroupId\x12/\n" +
3104 "\x13channel_termination\x18\x05 \x01(\tR\x12channelTermination\x12\x15\n" +
3105 "\x06onu_id\x18\x06 \x01(\rR\x05onuId\x12$\n" +
3106 "\x0eonu_session_id\x18\a \x01(\rR\fonuSessionId\x12)\n" +
3107 "\x10adapter_endpoint\x18\b \x01(\tR\x0fadapterEndpointB\t\n" +
3108 "\aaddressJ\x04\b\v\x10\f\"\xc2\x01\n" +
3109 "\x1aDeviceImageDownloadRequest\x12'\n" +
3110 "\tdevice_id\x18\x01 \x03(\v2\n" +
3111 ".common.IDR\bdeviceId\x12#\n" +
3112 "\x05image\x18\x02 \x01(\v2\r.device.ImageR\x05image\x12,\n" +
3113 "\x11activateOnSuccess\x18\x03 \x01(\bR\x11activateOnSuccess\x12(\n" +
3114 "\x0fcommitOnSuccess\x18\x04 \x01(\bR\x0fcommitOnSuccess\"\x81\x01\n" +
3115 "\x12DeviceImageRequest\x12'\n" +
3116 "\tdevice_id\x18\x01 \x03(\v2\n" +
3117 ".common.IDR\bdeviceId\x12\x18\n" +
3118 "\aversion\x18\x02 \x01(\tR\aversion\x12(\n" +
3119 "\x0fcommitOnSuccess\x18\x03 \x01(\bR\x0fcommitOnSuccess\"_\n" +
3120 "\x13DeviceImageResponse\x12H\n" +
3121 "\x13device_image_states\x18\x01 \x03(\v2\x18.device.DeviceImageStateR\x11deviceImageStates\"\xa5\x01\n" +
3122 "\x10SelfTestResponse\x12?\n" +
3123 "\x06result\x18\x01 \x01(\x0e2'.device.SelfTestResponse.SelfTestResultR\x06result\"P\n" +
3124 "\x0eSelfTestResult\x12\v\n" +
3125 "\aSUCCESS\x10\x00\x12\v\n" +
3126 "\aFAILURE\x10\x01\x12\x11\n" +
3127 "\rNOT_SUPPORTED\x10\x02\x12\x11\n" +
3128 "\rUNKNOWN_ERROR\x10\x03\"/\n" +
3129 "\aDevices\x12$\n" +
3130 "\x05items\x18\x01 \x03(\v2\x0e.device.DeviceR\x05items\"\xa8\x03\n" +
3131 "\x14SimulateAlarmRequest\x12\x0e\n" +
3132 "\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +
3133 "\tindicator\x18\x02 \x01(\tR\tindicator\x12\x17\n" +
3134 "\aintf_id\x18\x03 \x01(\tR\x06intfId\x12$\n" +
3135 "\x0eport_type_name\x18\x04 \x01(\tR\fportTypeName\x12\"\n" +
3136 "\ronu_device_id\x18\x05 \x01(\tR\vonuDeviceId\x123\n" +
3137 "\x16inverse_bit_error_rate\x18\x06 \x01(\x05R\x13inverseBitErrorRate\x12\x14\n" +
3138 "\x05drift\x18\a \x01(\x05R\x05drift\x12\x17\n" +
3139 "\anew_eqd\x18\b \x01(\x05R\x06newEqd\x12*\n" +
3140 "\x11onu_serial_number\x18\t \x01(\tR\x0fonuSerialNumber\x12H\n" +
3141 "\toperation\x18\n" +
3142 " \x01(\x0e2*.device.SimulateAlarmRequest.OperationTypeR\toperation\"%\n" +
3143 "\rOperationType\x12\t\n" +
3144 "\x05RAISE\x10\x00\x12\t\n" +
3145 "\x05CLEAR\x10\x01\"\x90\x01\n" +
3146 "\x17OnuSerialNumberOnOLTPon\x12.\n" +
3147 "\rolt_device_id\x18\x01 \x01(\v2\n" +
3148 ".common.IDR\voltDeviceId\x12 \n" +
3149 "\x04port\x18\x02 \x01(\v2\f.device.PortR\x04port\x12#\n" +
3150 "\rserial_number\x18\x03 \x01(\tR\fserialNumber\"\x99\x01\n" +
3151 "\fUpdateDevice\x12\x0e\n" +
3152 "\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
3153 "\fipv4_address\x18\x02 \x01(\tH\x00R\vipv4Address\x12#\n" +
3154 "\fipv6_address\x18\x03 \x01(\tH\x00R\vipv6Address\x12$\n" +
3155 "\rhost_and_port\x18\x04 \x01(\tH\x00R\vhostAndPortB\t\n" +
3156 "\aaddressBZ\n" +
3157 "\x1aorg.opencord.voltha.deviceB\fVolthaDeviceZ.github.com/opencord/voltha-protos/v5/go/volthab\x06proto3"
3158
3159var (
3160 file_voltha_protos_device_proto_rawDescOnce sync.Once
3161 file_voltha_protos_device_proto_rawDescData []byte
3162)
3163
3164func file_voltha_protos_device_proto_rawDescGZIP() []byte {
3165 file_voltha_protos_device_proto_rawDescOnce.Do(func() {
3166 file_voltha_protos_device_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_device_proto_rawDesc), len(file_voltha_protos_device_proto_rawDesc)))
3167 })
3168 return file_voltha_protos_device_proto_rawDescData
3169}
3170
3171var file_voltha_protos_device_proto_enumTypes = make([]protoimpl.EnumInfo, 10)
3172var file_voltha_protos_device_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
3173var file_voltha_protos_device_proto_goTypes = []any{
3174 (PmConfig_PmType)(0), // 0: device.PmConfig.PmType
3175 (ImageDownload_ImageDownloadState)(0), // 1: device.ImageDownload.ImageDownloadState
3176 (ImageDownload_ImageDownloadFailureReason)(0), // 2: device.ImageDownload.ImageDownloadFailureReason
3177 (ImageDownload_ImageActivateState)(0), // 3: device.ImageDownload.ImageActivateState
3178 (ImageState_ImageDownloadState)(0), // 4: device.ImageState.ImageDownloadState
3179 (ImageState_ImageFailureReason)(0), // 5: device.ImageState.ImageFailureReason
3180 (ImageState_ImageActivationState)(0), // 6: device.ImageState.ImageActivationState
3181 (Port_PortType)(0), // 7: device.Port.PortType
3182 (SelfTestResponse_SelfTestResult)(0), // 8: device.SelfTestResponse.SelfTestResult
3183 (SimulateAlarmRequest_OperationType)(0), // 9: device.SimulateAlarmRequest.OperationType
3184 (*DeviceType)(nil), // 10: device.DeviceType
3185 (*DeviceTypes)(nil), // 11: device.DeviceTypes
3186 (*PmConfig)(nil), // 12: device.PmConfig
3187 (*PmGroupConfig)(nil), // 13: device.PmGroupConfig
3188 (*PmConfigs)(nil), // 14: device.PmConfigs
3189 (*Image)(nil), // 15: device.Image
3190 (*ImageDownload)(nil), // 16: device.ImageDownload
3191 (*ImageDownloads)(nil), // 17: device.ImageDownloads
3192 (*Images)(nil), // 18: device.Images
3193 (*OnuImage)(nil), // 19: device.OnuImage
3194 (*OnuImages)(nil), // 20: device.OnuImages
3195 (*DeviceImageState)(nil), // 21: device.DeviceImageState
3196 (*ImageState)(nil), // 22: device.ImageState
3197 (*Port)(nil), // 23: device.Port
3198 (*Ports)(nil), // 24: device.Ports
3199 (*Device)(nil), // 25: device.Device
3200 (*DeviceImageDownloadRequest)(nil), // 26: device.DeviceImageDownloadRequest
3201 (*DeviceImageRequest)(nil), // 27: device.DeviceImageRequest
3202 (*DeviceImageResponse)(nil), // 28: device.DeviceImageResponse
3203 (*SelfTestResponse)(nil), // 29: device.SelfTestResponse
3204 (*Devices)(nil), // 30: device.Devices
3205 (*SimulateAlarmRequest)(nil), // 31: device.SimulateAlarmRequest
3206 (*OnuSerialNumberOnOLTPon)(nil), // 32: device.OnuSerialNumberOnOLTPon
3207 (*UpdateDevice)(nil), // 33: device.UpdateDevice
3208 (*Port_PeerPort)(nil), // 34: device.Port.PeerPort
3209 (*Device_ProxyAddress)(nil), // 35: device.Device.ProxyAddress
3210 (common.AdminState_Types)(0), // 36: common.AdminState.Types
3211 (common.OperStatus_Types)(0), // 37: common.OperStatus.Types
3212 (*openflow_13.OfpPort)(nil), // 38: openflow_13.ofp_port
3213 (common.ConnectStatus_Types)(0), // 39: common.ConnectStatus.Types
3214 (*anypb.Any)(nil), // 40: google.protobuf.Any
3215 (*common.ID)(nil), // 41: common.ID
3216}
3217var file_voltha_protos_device_proto_depIdxs = []int32{
3218 10, // 0: device.DeviceTypes.items:type_name -> device.DeviceType
3219 0, // 1: device.PmConfig.type:type_name -> device.PmConfig.PmType
3220 12, // 2: device.PmGroupConfig.metrics:type_name -> device.PmConfig
3221 13, // 3: device.PmConfigs.groups:type_name -> device.PmGroupConfig
3222 12, // 4: device.PmConfigs.metrics:type_name -> device.PmConfig
3223 1, // 5: device.ImageDownload.download_state:type_name -> device.ImageDownload.ImageDownloadState
3224 2, // 6: device.ImageDownload.reason:type_name -> device.ImageDownload.ImageDownloadFailureReason
3225 3, // 7: device.ImageDownload.image_state:type_name -> device.ImageDownload.ImageActivateState
3226 16, // 8: device.ImageDownloads.items:type_name -> device.ImageDownload
3227 15, // 9: device.Images.image:type_name -> device.Image
3228 19, // 10: device.OnuImages.items:type_name -> device.OnuImage
3229 22, // 11: device.DeviceImageState.imageState:type_name -> device.ImageState
3230 4, // 12: device.ImageState.download_state:type_name -> device.ImageState.ImageDownloadState
3231 5, // 13: device.ImageState.reason:type_name -> device.ImageState.ImageFailureReason
3232 6, // 14: device.ImageState.image_state:type_name -> device.ImageState.ImageActivationState
3233 7, // 15: device.Port.type:type_name -> device.Port.PortType
3234 36, // 16: device.Port.admin_state:type_name -> common.AdminState.Types
3235 37, // 17: device.Port.oper_status:type_name -> common.OperStatus.Types
3236 34, // 18: device.Port.peers:type_name -> device.Port.PeerPort
3237 38, // 19: device.Port.ofp_port:type_name -> openflow_13.ofp_port
3238 23, // 20: device.Ports.items:type_name -> device.Port
3239 18, // 21: device.Device.images:type_name -> device.Images
3240 35, // 22: device.Device.proxy_address:type_name -> device.Device.ProxyAddress
3241 36, // 23: device.Device.admin_state:type_name -> common.AdminState.Types
3242 37, // 24: device.Device.oper_status:type_name -> common.OperStatus.Types
3243 39, // 25: device.Device.connect_status:type_name -> common.ConnectStatus.Types
3244 40, // 26: device.Device.custom:type_name -> google.protobuf.Any
3245 14, // 27: device.Device.pm_configs:type_name -> device.PmConfigs
3246 16, // 28: device.Device.image_downloads:type_name -> device.ImageDownload
3247 41, // 29: device.DeviceImageDownloadRequest.device_id:type_name -> common.ID
3248 15, // 30: device.DeviceImageDownloadRequest.image:type_name -> device.Image
3249 41, // 31: device.DeviceImageRequest.device_id:type_name -> common.ID
3250 21, // 32: device.DeviceImageResponse.device_image_states:type_name -> device.DeviceImageState
3251 8, // 33: device.SelfTestResponse.result:type_name -> device.SelfTestResponse.SelfTestResult
3252 25, // 34: device.Devices.items:type_name -> device.Device
3253 9, // 35: device.SimulateAlarmRequest.operation:type_name -> device.SimulateAlarmRequest.OperationType
3254 41, // 36: device.OnuSerialNumberOnOLTPon.olt_device_id:type_name -> common.ID
3255 23, // 37: device.OnuSerialNumberOnOLTPon.port:type_name -> device.Port
3256 38, // [38:38] is the sub-list for method output_type
3257 38, // [38:38] is the sub-list for method input_type
3258 38, // [38:38] is the sub-list for extension type_name
3259 38, // [38:38] is the sub-list for extension extendee
3260 0, // [0:38] is the sub-list for field type_name
3261}
3262
3263func init() { file_voltha_protos_device_proto_init() }
3264func file_voltha_protos_device_proto_init() {
3265 if File_voltha_protos_device_proto != nil {
3266 return
3267 }
3268 file_voltha_protos_device_proto_msgTypes[15].OneofWrappers = []any{
3269 (*Device_Ipv4Address)(nil),
3270 (*Device_Ipv6Address)(nil),
3271 (*Device_HostAndPort)(nil),
3272 }
3273 file_voltha_protos_device_proto_msgTypes[23].OneofWrappers = []any{
Abhilash laxmeshwar62bb7ed2025-09-30 12:49:32 +05303274 (*UpdateDevice_Ipv4Address)(nil),
3275 (*UpdateDevice_Ipv6Address)(nil),
3276 (*UpdateDevice_HostAndPort)(nil),
3277 }
Abhay Kumar03713392025-12-30 05:20:58 +00003278 type x struct{}
3279 out := protoimpl.TypeBuilder{
3280 File: protoimpl.DescBuilder{
3281 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
3282 RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_device_proto_rawDesc), len(file_voltha_protos_device_proto_rawDesc)),
3283 NumEnums: 10,
3284 NumMessages: 26,
3285 NumExtensions: 0,
3286 NumServices: 0,
3287 },
3288 GoTypes: file_voltha_protos_device_proto_goTypes,
3289 DependencyIndexes: file_voltha_protos_device_proto_depIdxs,
3290 EnumInfos: file_voltha_protos_device_proto_enumTypes,
3291 MessageInfos: file_voltha_protos_device_proto_msgTypes,
3292 }.Build()
3293 File_voltha_protos_device_proto = out.File
3294 file_voltha_protos_device_proto_goTypes = nil
3295 file_voltha_protos_device_proto_depIdxs = nil
William Kurkian1b363f42019-03-12 15:28:12 -04003296}