| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v4.25.8 |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | // source: voltha_protos/device.proto |
| 6 | |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 7 | package voltha |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 8 | |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 9 | import ( |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 10 | common "github.com/opencord/voltha-protos/v5/go/common" |
| 11 | openflow_13 "github.com/opencord/voltha-protos/v5/go/openflow_13" |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 12 | 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 18 | ) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 19 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 20 | const ( |
| 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 26 | |
| 27 | type PmConfig_PmType int32 |
| 28 | |
| 29 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 36 | // Enum value maps for PmConfig_PmType. |
| 37 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 51 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 52 | func (x PmConfig_PmType) Enum() *PmConfig_PmType { |
| 53 | p := new(PmConfig_PmType) |
| 54 | *p = x |
| 55 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | func (x PmConfig_PmType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 59 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 60 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 61 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 62 | func (PmConfig_PmType) Descriptor() protoreflect.EnumDescriptor { |
| 63 | return file_voltha_protos_device_proto_enumTypes[0].Descriptor() |
| 64 | } |
| 65 | |
| 66 | func (PmConfig_PmType) Type() protoreflect.EnumType { |
| 67 | return &file_voltha_protos_device_proto_enumTypes[0] |
| 68 | } |
| 69 | |
| 70 | func (x PmConfig_PmType) Number() protoreflect.EnumNumber { |
| 71 | return protoreflect.EnumNumber(x) |
| 72 | } |
| 73 | |
| 74 | // Deprecated: Use PmConfig_PmType.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 75 | func (PmConfig_PmType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 76 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{2, 0} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | type ImageDownload_ImageDownloadState int32 |
| 80 | |
| 81 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 91 | // Enum value maps for ImageDownload_ImageDownloadState. |
| 92 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 112 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 113 | func (x ImageDownload_ImageDownloadState) Enum() *ImageDownload_ImageDownloadState { |
| 114 | p := new(ImageDownload_ImageDownloadState) |
| 115 | *p = x |
| 116 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | func (x ImageDownload_ImageDownloadState) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 120 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 121 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 122 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 123 | func (ImageDownload_ImageDownloadState) Descriptor() protoreflect.EnumDescriptor { |
| 124 | return file_voltha_protos_device_proto_enumTypes[1].Descriptor() |
| 125 | } |
| 126 | |
| 127 | func (ImageDownload_ImageDownloadState) Type() protoreflect.EnumType { |
| 128 | return &file_voltha_protos_device_proto_enumTypes[1] |
| 129 | } |
| 130 | |
| 131 | func (x ImageDownload_ImageDownloadState) Number() protoreflect.EnumNumber { |
| 132 | return protoreflect.EnumNumber(x) |
| 133 | } |
| 134 | |
| 135 | // Deprecated: Use ImageDownload_ImageDownloadState.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 136 | func (ImageDownload_ImageDownloadState) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 137 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 0} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 138 | } |
| 139 | |
| 140 | type ImageDownload_ImageDownloadFailureReason int32 |
| 141 | |
| 142 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 151 | // Enum value maps for ImageDownload_ImageDownloadFailureReason. |
| 152 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 170 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 171 | func (x ImageDownload_ImageDownloadFailureReason) Enum() *ImageDownload_ImageDownloadFailureReason { |
| 172 | p := new(ImageDownload_ImageDownloadFailureReason) |
| 173 | *p = x |
| 174 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | func (x ImageDownload_ImageDownloadFailureReason) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 178 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 179 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 180 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 181 | func (ImageDownload_ImageDownloadFailureReason) Descriptor() protoreflect.EnumDescriptor { |
| 182 | return file_voltha_protos_device_proto_enumTypes[2].Descriptor() |
| 183 | } |
| 184 | |
| 185 | func (ImageDownload_ImageDownloadFailureReason) Type() protoreflect.EnumType { |
| 186 | return &file_voltha_protos_device_proto_enumTypes[2] |
| 187 | } |
| 188 | |
| 189 | func (x ImageDownload_ImageDownloadFailureReason) Number() protoreflect.EnumNumber { |
| 190 | return protoreflect.EnumNumber(x) |
| 191 | } |
| 192 | |
| 193 | // Deprecated: Use ImageDownload_ImageDownloadFailureReason.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 194 | func (ImageDownload_ImageDownloadFailureReason) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 195 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 1} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 196 | } |
| 197 | |
| 198 | type ImageDownload_ImageActivateState int32 |
| 199 | |
| 200 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 209 | // Enum value maps for ImageDownload_ImageActivateState. |
| 210 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 228 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 229 | func (x ImageDownload_ImageActivateState) Enum() *ImageDownload_ImageActivateState { |
| 230 | p := new(ImageDownload_ImageActivateState) |
| 231 | *p = x |
| 232 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | func (x ImageDownload_ImageActivateState) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 236 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 237 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 238 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 239 | func (ImageDownload_ImageActivateState) Descriptor() protoreflect.EnumDescriptor { |
| 240 | return file_voltha_protos_device_proto_enumTypes[3].Descriptor() |
| 241 | } |
| 242 | |
| 243 | func (ImageDownload_ImageActivateState) Type() protoreflect.EnumType { |
| 244 | return &file_voltha_protos_device_proto_enumTypes[3] |
| 245 | } |
| 246 | |
| 247 | func (x ImageDownload_ImageActivateState) Number() protoreflect.EnumNumber { |
| 248 | return protoreflect.EnumNumber(x) |
| 249 | } |
| 250 | |
| 251 | // Deprecated: Use ImageDownload_ImageActivateState.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 252 | func (ImageDownload_ImageActivateState) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 253 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{6, 2} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 254 | } |
| 255 | |
| 256 | type ImageState_ImageDownloadState int32 |
| 257 | |
| 258 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 269 | // Enum value maps for ImageState_ImageDownloadState. |
| 270 | var ( |
| 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 292 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 293 | func (x ImageState_ImageDownloadState) Enum() *ImageState_ImageDownloadState { |
| 294 | p := new(ImageState_ImageDownloadState) |
| 295 | *p = x |
| 296 | return p |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 297 | } |
| 298 | |
| 299 | func (x ImageState_ImageDownloadState) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 300 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 301 | } |
| 302 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 303 | func (ImageState_ImageDownloadState) Descriptor() protoreflect.EnumDescriptor { |
| 304 | return file_voltha_protos_device_proto_enumTypes[4].Descriptor() |
| 305 | } |
| 306 | |
| 307 | func (ImageState_ImageDownloadState) Type() protoreflect.EnumType { |
| 308 | return &file_voltha_protos_device_proto_enumTypes[4] |
| 309 | } |
| 310 | |
| 311 | func (x ImageState_ImageDownloadState) Number() protoreflect.EnumNumber { |
| 312 | return protoreflect.EnumNumber(x) |
| 313 | } |
| 314 | |
| 315 | // Deprecated: Use ImageState_ImageDownloadState.Descriptor instead. |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 316 | func (ImageState_ImageDownloadState) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 317 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 0} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 318 | } |
| 319 | |
| 320 | type ImageState_ImageFailureReason int32 |
| 321 | |
| 322 | const ( |
| 323 | ImageState_NO_ERROR ImageState_ImageFailureReason = 0 |
| 324 | ImageState_INVALID_URL ImageState_ImageFailureReason = 1 |
| 325 | ImageState_DEVICE_BUSY ImageState_ImageFailureReason = 2 |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 326 | 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 328 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 335 | // Enum value maps for ImageState_ImageFailureReason. |
| 336 | var ( |
| 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 362 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 363 | func (x ImageState_ImageFailureReason) Enum() *ImageState_ImageFailureReason { |
| 364 | p := new(ImageState_ImageFailureReason) |
| 365 | *p = x |
| 366 | return p |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 367 | } |
| 368 | |
| 369 | func (x ImageState_ImageFailureReason) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 370 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 371 | } |
| 372 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 373 | func (ImageState_ImageFailureReason) Descriptor() protoreflect.EnumDescriptor { |
| 374 | return file_voltha_protos_device_proto_enumTypes[5].Descriptor() |
| 375 | } |
| 376 | |
| 377 | func (ImageState_ImageFailureReason) Type() protoreflect.EnumType { |
| 378 | return &file_voltha_protos_device_proto_enumTypes[5] |
| 379 | } |
| 380 | |
| 381 | func (x ImageState_ImageFailureReason) Number() protoreflect.EnumNumber { |
| 382 | return protoreflect.EnumNumber(x) |
| 383 | } |
| 384 | |
| 385 | // Deprecated: Use ImageState_ImageFailureReason.Descriptor instead. |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 386 | func (ImageState_ImageFailureReason) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 387 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 1} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 388 | } |
| 389 | |
| 390 | type ImageState_ImageActivationState int32 |
| 391 | |
| 392 | const ( |
| 393 | ImageState_IMAGE_UNKNOWN ImageState_ImageActivationState = 0 |
| 394 | ImageState_IMAGE_INACTIVE ImageState_ImageActivationState = 1 |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 395 | ImageState_IMAGE_ACTIVATING ImageState_ImageActivationState = 2 // Happens during Reboot of the ONU after activate call. |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 396 | 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 |
| bseeniva | d4072f6 | 2024-12-11 10:05:30 +0530 | [diff] [blame] | 404 | ImageState_IMAGE_DOWNLOADING_ABORTED ImageState_ImageActivationState = 11 |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 405 | ) |
| 406 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 407 | // Enum value maps for ImageState_ImageActivationState. |
| 408 | var ( |
| 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 438 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 439 | func (x ImageState_ImageActivationState) Enum() *ImageState_ImageActivationState { |
| 440 | p := new(ImageState_ImageActivationState) |
| 441 | *p = x |
| 442 | return p |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 443 | } |
| 444 | |
| 445 | func (x ImageState_ImageActivationState) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 446 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 447 | } |
| 448 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 449 | func (ImageState_ImageActivationState) Descriptor() protoreflect.EnumDescriptor { |
| 450 | return file_voltha_protos_device_proto_enumTypes[6].Descriptor() |
| 451 | } |
| 452 | |
| 453 | func (ImageState_ImageActivationState) Type() protoreflect.EnumType { |
| 454 | return &file_voltha_protos_device_proto_enumTypes[6] |
| 455 | } |
| 456 | |
| 457 | func (x ImageState_ImageActivationState) Number() protoreflect.EnumNumber { |
| 458 | return protoreflect.EnumNumber(x) |
| 459 | } |
| 460 | |
| 461 | // Deprecated: Use ImageState_ImageActivationState.Descriptor instead. |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 462 | func (ImageState_ImageActivationState) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 463 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{12, 2} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 464 | } |
| 465 | |
| 466 | type Port_PortType int32 |
| 467 | |
| 468 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 478 | // Enum value maps for Port_PortType. |
| 479 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 499 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 500 | func (x Port_PortType) Enum() *Port_PortType { |
| 501 | p := new(Port_PortType) |
| 502 | *p = x |
| 503 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 504 | } |
| 505 | |
| 506 | func (x Port_PortType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 507 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 508 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 509 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 510 | func (Port_PortType) Descriptor() protoreflect.EnumDescriptor { |
| 511 | return file_voltha_protos_device_proto_enumTypes[7].Descriptor() |
| 512 | } |
| 513 | |
| 514 | func (Port_PortType) Type() protoreflect.EnumType { |
| 515 | return &file_voltha_protos_device_proto_enumTypes[7] |
| 516 | } |
| 517 | |
| 518 | func (x Port_PortType) Number() protoreflect.EnumNumber { |
| 519 | return protoreflect.EnumNumber(x) |
| 520 | } |
| 521 | |
| 522 | // Deprecated: Use Port_PortType.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 523 | func (Port_PortType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 524 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{13, 0} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 525 | } |
| 526 | |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 527 | type SelfTestResponse_SelfTestResult int32 |
| 528 | |
| 529 | const ( |
| 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 536 | // Enum value maps for SelfTestResponse_SelfTestResult. |
| 537 | var ( |
| 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 | ) |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 551 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 552 | func (x SelfTestResponse_SelfTestResult) Enum() *SelfTestResponse_SelfTestResult { |
| 553 | p := new(SelfTestResponse_SelfTestResult) |
| 554 | *p = x |
| 555 | return p |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 556 | } |
| 557 | |
| 558 | func (x SelfTestResponse_SelfTestResult) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 559 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 560 | } |
| 561 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 562 | func (SelfTestResponse_SelfTestResult) Descriptor() protoreflect.EnumDescriptor { |
| 563 | return file_voltha_protos_device_proto_enumTypes[8].Descriptor() |
| 564 | } |
| 565 | |
| 566 | func (SelfTestResponse_SelfTestResult) Type() protoreflect.EnumType { |
| 567 | return &file_voltha_protos_device_proto_enumTypes[8] |
| 568 | } |
| 569 | |
| 570 | func (x SelfTestResponse_SelfTestResult) Number() protoreflect.EnumNumber { |
| 571 | return protoreflect.EnumNumber(x) |
| 572 | } |
| 573 | |
| 574 | // Deprecated: Use SelfTestResponse_SelfTestResult.Descriptor instead. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 575 | func (SelfTestResponse_SelfTestResult) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 576 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{19, 0} |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 577 | } |
| 578 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 579 | type SimulateAlarmRequest_OperationType int32 |
| 580 | |
| 581 | const ( |
| 582 | SimulateAlarmRequest_RAISE SimulateAlarmRequest_OperationType = 0 |
| 583 | SimulateAlarmRequest_CLEAR SimulateAlarmRequest_OperationType = 1 |
| 584 | ) |
| 585 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 586 | // Enum value maps for SimulateAlarmRequest_OperationType. |
| 587 | var ( |
| 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 597 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 598 | func (x SimulateAlarmRequest_OperationType) Enum() *SimulateAlarmRequest_OperationType { |
| 599 | p := new(SimulateAlarmRequest_OperationType) |
| 600 | *p = x |
| 601 | return p |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 602 | } |
| 603 | |
| 604 | func (x SimulateAlarmRequest_OperationType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 605 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 606 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 607 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 608 | func (SimulateAlarmRequest_OperationType) Descriptor() protoreflect.EnumDescriptor { |
| 609 | return file_voltha_protos_device_proto_enumTypes[9].Descriptor() |
| 610 | } |
| 611 | |
| 612 | func (SimulateAlarmRequest_OperationType) Type() protoreflect.EnumType { |
| 613 | return &file_voltha_protos_device_proto_enumTypes[9] |
| 614 | } |
| 615 | |
| 616 | func (x SimulateAlarmRequest_OperationType) Number() protoreflect.EnumNumber { |
| 617 | return protoreflect.EnumNumber(x) |
| 618 | } |
| 619 | |
| 620 | // Deprecated: Use SimulateAlarmRequest_OperationType.Descriptor instead. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 621 | func (SimulateAlarmRequest_OperationType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 622 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{21, 0} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 623 | } |
| 624 | |
| 625 | // A Device Type |
| 626 | type DeviceType struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 627 | state protoimpl.MessageState `protogen:"open.v1"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 628 | // 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 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 635 | // Deprecated and replaced by adapterType |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 636 | Adapter string `protobuf:"bytes,2,opt,name=adapter,proto3" json:"adapter,omitempty"` |
| 637 | // Capabilities |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 638 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 642 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 645 | } |
| 646 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 647 | func (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 | |
| 654 | func (x *DeviceType) String() string { |
| 655 | return protoimpl.X.MessageStringOf(x) |
| 656 | } |
| 657 | |
| 658 | func (*DeviceType) ProtoMessage() {} |
| 659 | |
| 660 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 673 | func (*DeviceType) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 674 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{0} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 675 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 676 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 677 | func (x *DeviceType) GetId() string { |
| 678 | if x != nil { |
| 679 | return x.Id |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 680 | } |
| 681 | return "" |
| 682 | } |
| 683 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 684 | func (x *DeviceType) GetVendorId() string { |
| 685 | if x != nil { |
| 686 | return x.VendorId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 687 | } |
| 688 | return "" |
| 689 | } |
| 690 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 691 | func (x *DeviceType) GetVendorIds() []string { |
| 692 | if x != nil { |
| 693 | return x.VendorIds |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 694 | } |
| 695 | return nil |
| 696 | } |
| 697 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 698 | func (x *DeviceType) GetAdapter() string { |
| 699 | if x != nil { |
| 700 | return x.Adapter |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 701 | } |
| 702 | return "" |
| 703 | } |
| 704 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 705 | func (x *DeviceType) GetAcceptsBulkFlowUpdate() bool { |
| 706 | if x != nil { |
| 707 | return x.AcceptsBulkFlowUpdate |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 708 | } |
| 709 | return false |
| 710 | } |
| 711 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 712 | func (x *DeviceType) GetAcceptsAddRemoveFlowUpdates() bool { |
| 713 | if x != nil { |
| 714 | return x.AcceptsAddRemoveFlowUpdates |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 715 | } |
| 716 | return false |
| 717 | } |
| 718 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 719 | func (x *DeviceType) GetAcceptsDirectLogicalFlowsUpdate() bool { |
| 720 | if x != nil { |
| 721 | return x.AcceptsDirectLogicalFlowsUpdate |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 722 | } |
| 723 | return false |
| 724 | } |
| 725 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 726 | func (x *DeviceType) GetAdapterType() string { |
| 727 | if x != nil { |
| 728 | return x.AdapterType |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 729 | } |
| 730 | return "" |
| 731 | } |
| 732 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 733 | // A plurality of device types |
| 734 | type DeviceTypes struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 735 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 739 | } |
| 740 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 741 | func (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 | |
| 748 | func (x *DeviceTypes) String() string { |
| 749 | return protoimpl.X.MessageStringOf(x) |
| 750 | } |
| 751 | |
| 752 | func (*DeviceTypes) ProtoMessage() {} |
| 753 | |
| 754 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 767 | func (*DeviceTypes) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 768 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{1} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 769 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 770 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 771 | func (x *DeviceTypes) GetItems() []*DeviceType { |
| 772 | if x != nil { |
| 773 | return x.Items |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 774 | } |
| 775 | return nil |
| 776 | } |
| 777 | |
| 778 | type PmConfig struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 779 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 786 | } |
| 787 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 788 | func (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 | |
| 795 | func (x *PmConfig) String() string { |
| 796 | return protoimpl.X.MessageStringOf(x) |
| 797 | } |
| 798 | |
| 799 | func (*PmConfig) ProtoMessage() {} |
| 800 | |
| 801 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 814 | func (*PmConfig) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 815 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{2} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 816 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 817 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 818 | func (x *PmConfig) GetName() string { |
| 819 | if x != nil { |
| 820 | return x.Name |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 821 | } |
| 822 | return "" |
| 823 | } |
| 824 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 825 | func (x *PmConfig) GetType() PmConfig_PmType { |
| 826 | if x != nil { |
| 827 | return x.Type |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 828 | } |
| 829 | return PmConfig_COUNTER |
| 830 | } |
| 831 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 832 | func (x *PmConfig) GetEnabled() bool { |
| 833 | if x != nil { |
| 834 | return x.Enabled |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 835 | } |
| 836 | return false |
| 837 | } |
| 838 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 839 | func (x *PmConfig) GetSampleFreq() uint32 { |
| 840 | if x != nil { |
| 841 | return x.SampleFreq |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 842 | } |
| 843 | return 0 |
| 844 | } |
| 845 | |
| 846 | type PmGroupConfig struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 847 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 854 | } |
| 855 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 856 | func (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 | |
| 863 | func (x *PmGroupConfig) String() string { |
| 864 | return protoimpl.X.MessageStringOf(x) |
| 865 | } |
| 866 | |
| 867 | func (*PmGroupConfig) ProtoMessage() {} |
| 868 | |
| 869 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 882 | func (*PmGroupConfig) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 883 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{3} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 884 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 885 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 886 | func (x *PmGroupConfig) GetGroupName() string { |
| 887 | if x != nil { |
| 888 | return x.GroupName |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 889 | } |
| 890 | return "" |
| 891 | } |
| 892 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 893 | func (x *PmGroupConfig) GetGroupFreq() uint32 { |
| 894 | if x != nil { |
| 895 | return x.GroupFreq |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 896 | } |
| 897 | return 0 |
| 898 | } |
| 899 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 900 | func (x *PmGroupConfig) GetEnabled() bool { |
| 901 | if x != nil { |
| 902 | return x.Enabled |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 903 | } |
| 904 | return false |
| 905 | } |
| 906 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 907 | func (x *PmGroupConfig) GetMetrics() []*PmConfig { |
| 908 | if x != nil { |
| 909 | return x.Metrics |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 910 | } |
| 911 | return nil |
| 912 | } |
| 913 | |
| 914 | type PmConfigs struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 915 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 918 | // 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 921 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 927 | } |
| 928 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 929 | func (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 | |
| 936 | func (x *PmConfigs) String() string { |
| 937 | return protoimpl.X.MessageStringOf(x) |
| 938 | } |
| 939 | |
| 940 | func (*PmConfigs) ProtoMessage() {} |
| 941 | |
| 942 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 955 | func (*PmConfigs) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 956 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{4} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 957 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 958 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 959 | func (x *PmConfigs) GetId() string { |
| 960 | if x != nil { |
| 961 | return x.Id |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 962 | } |
| 963 | return "" |
| 964 | } |
| 965 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 966 | func (x *PmConfigs) GetDefaultFreq() uint32 { |
| 967 | if x != nil { |
| 968 | return x.DefaultFreq |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 969 | } |
| 970 | return 0 |
| 971 | } |
| 972 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 973 | func (x *PmConfigs) GetGrouped() bool { |
| 974 | if x != nil { |
| 975 | return x.Grouped |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 976 | } |
| 977 | return false |
| 978 | } |
| 979 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 980 | func (x *PmConfigs) GetFreqOverride() bool { |
| 981 | if x != nil { |
| 982 | return x.FreqOverride |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 983 | } |
| 984 | return false |
| 985 | } |
| 986 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 987 | func (x *PmConfigs) GetGroups() []*PmGroupConfig { |
| 988 | if x != nil { |
| 989 | return x.Groups |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 990 | } |
| 991 | return nil |
| 992 | } |
| 993 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 994 | func (x *PmConfigs) GetMetrics() []*PmConfig { |
| 995 | if x != nil { |
| 996 | return x.Metrics |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 997 | } |
| 998 | return nil |
| 999 | } |
| 1000 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1001 | func (x *PmConfigs) GetMaxSkew() uint32 { |
| 1002 | if x != nil { |
| 1003 | return x.MaxSkew |
| Rohan Agrawal | 065c818 | 2020-06-29 11:05:32 +0000 | [diff] [blame] | 1004 | } |
| 1005 | return 0 |
| 1006 | } |
| 1007 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1008 | // Object representing an image |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1009 | type Image struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1010 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1011 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // software patch name |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1012 | // 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1019 | InstallDatetime string `protobuf:"bytes,4,opt,name=install_datetime,json=installDatetime,proto3" json:"install_datetime,omitempty"` // combined date and time expressed in UTC. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1020 | // 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1024 | // Deprecated in voltha 2.8, will be removed |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1025 | IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // True if the image is active |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1026 | // 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1029 | // Deprecated in voltha 2.8, will be removed |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1030 | IsCommitted bool `protobuf:"varint,6,opt,name=is_committed,json=isCommitted,proto3" json:"is_committed,omitempty"` // True if the image is committed |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1031 | // 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1035 | // Deprecated in voltha 2.8, will be removed |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1036 | IsValid bool `protobuf:"varint,7,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` // True if the image is valid |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1037 | // 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1049 | Crc32 uint32 `protobuf:"varint,10,opt,name=crc32,proto3" json:"crc32,omitempty"` |
| 1050 | unknownFields protoimpl.UnknownFields |
| 1051 | sizeCache protoimpl.SizeCache |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1052 | } |
| 1053 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1054 | func (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 | |
| 1061 | func (x *Image) String() string { |
| 1062 | return protoimpl.X.MessageStringOf(x) |
| 1063 | } |
| 1064 | |
| 1065 | func (*Image) ProtoMessage() {} |
| 1066 | |
| 1067 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1080 | func (*Image) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1081 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{5} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1082 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1083 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1084 | func (x *Image) GetName() string { |
| 1085 | if x != nil { |
| 1086 | return x.Name |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1087 | } |
| 1088 | return "" |
| 1089 | } |
| 1090 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1091 | func (x *Image) GetVersion() string { |
| 1092 | if x != nil { |
| 1093 | return x.Version |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1094 | } |
| 1095 | return "" |
| 1096 | } |
| 1097 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1098 | func (x *Image) GetHash() uint32 { |
| 1099 | if x != nil { |
| 1100 | return x.Hash |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1101 | } |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1102 | return 0 |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1103 | } |
| 1104 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1105 | func (x *Image) GetInstallDatetime() string { |
| 1106 | if x != nil { |
| 1107 | return x.InstallDatetime |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1108 | } |
| 1109 | return "" |
| 1110 | } |
| 1111 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1112 | func (x *Image) GetIsActive() bool { |
| 1113 | if x != nil { |
| 1114 | return x.IsActive |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1115 | } |
| 1116 | return false |
| 1117 | } |
| 1118 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1119 | func (x *Image) GetIsCommitted() bool { |
| 1120 | if x != nil { |
| 1121 | return x.IsCommitted |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1122 | } |
| 1123 | return false |
| 1124 | } |
| 1125 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1126 | func (x *Image) GetIsValid() bool { |
| 1127 | if x != nil { |
| 1128 | return x.IsValid |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1129 | } |
| 1130 | return false |
| 1131 | } |
| 1132 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1133 | func (x *Image) GetUrl() string { |
| 1134 | if x != nil { |
| 1135 | return x.Url |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1136 | } |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1137 | return "" |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1138 | } |
| 1139 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1140 | func (x *Image) GetVendor() string { |
| 1141 | if x != nil { |
| 1142 | return x.Vendor |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1143 | } |
| 1144 | return "" |
| 1145 | } |
| 1146 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1147 | func (x *Image) GetCrc32() uint32 { |
| 1148 | if x != nil { |
| 1149 | return x.Crc32 |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1150 | } |
| 1151 | return 0 |
| 1152 | } |
| 1153 | |
| 1154 | // Older version of the API please see DeviceImageDownloadRequest |
| 1155 | // Deprecated in voltha 2.8, will be removed |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1156 | // |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1157 | // Deprecated: Marked as deprecated in voltha_protos/device.proto. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1158 | type ImageDownload struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1159 | state protoimpl.MessageState `protogen:"open.v1"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1160 | // 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1170 | DownloadState ImageDownload_ImageDownloadState `protobuf:"varint,5,opt,name=download_state,json=downloadState,proto3,enum=device.ImageDownload_ImageDownloadState" json:"download_state,omitempty"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1171 | // 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1176 | Reason ImageDownload_ImageDownloadFailureReason `protobuf:"varint,8,opt,name=reason,proto3,enum=device.ImageDownload_ImageDownloadFailureReason" json:"reason,omitempty"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1177 | // 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1184 | ImageState ImageDownload_ImageActivateState `protobuf:"varint,12,opt,name=image_state,json=imageState,proto3,enum=device.ImageDownload_ImageActivateState" json:"image_state,omitempty"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1185 | // Image file size |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1186 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1189 | } |
| 1190 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1191 | func (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 | |
| 1198 | func (x *ImageDownload) String() string { |
| 1199 | return protoimpl.X.MessageStringOf(x) |
| 1200 | } |
| 1201 | |
| 1202 | func (*ImageDownload) ProtoMessage() {} |
| 1203 | |
| 1204 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1217 | func (*ImageDownload) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1218 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{6} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1219 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1220 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1221 | func (x *ImageDownload) GetId() string { |
| 1222 | if x != nil { |
| 1223 | return x.Id |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1224 | } |
| 1225 | return "" |
| 1226 | } |
| 1227 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1228 | func (x *ImageDownload) GetName() string { |
| 1229 | if x != nil { |
| 1230 | return x.Name |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1231 | } |
| 1232 | return "" |
| 1233 | } |
| 1234 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1235 | func (x *ImageDownload) GetUrl() string { |
| 1236 | if x != nil { |
| 1237 | return x.Url |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1238 | } |
| 1239 | return "" |
| 1240 | } |
| 1241 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1242 | func (x *ImageDownload) GetCrc() uint32 { |
| 1243 | if x != nil { |
| 1244 | return x.Crc |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1245 | } |
| 1246 | return 0 |
| 1247 | } |
| 1248 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1249 | func (x *ImageDownload) GetDownloadState() ImageDownload_ImageDownloadState { |
| 1250 | if x != nil { |
| 1251 | return x.DownloadState |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1252 | } |
| 1253 | return ImageDownload_DOWNLOAD_UNKNOWN |
| 1254 | } |
| 1255 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1256 | func (x *ImageDownload) GetImageVersion() string { |
| 1257 | if x != nil { |
| 1258 | return x.ImageVersion |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1259 | } |
| 1260 | return "" |
| 1261 | } |
| 1262 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1263 | func (x *ImageDownload) GetDownloadedBytes() uint32 { |
| 1264 | if x != nil { |
| 1265 | return x.DownloadedBytes |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1266 | } |
| 1267 | return 0 |
| 1268 | } |
| 1269 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1270 | func (x *ImageDownload) GetReason() ImageDownload_ImageDownloadFailureReason { |
| 1271 | if x != nil { |
| 1272 | return x.Reason |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1273 | } |
| 1274 | return ImageDownload_NO_ERROR |
| 1275 | } |
| 1276 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1277 | func (x *ImageDownload) GetAdditionalInfo() string { |
| 1278 | if x != nil { |
| 1279 | return x.AdditionalInfo |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1280 | } |
| 1281 | return "" |
| 1282 | } |
| 1283 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1284 | func (x *ImageDownload) GetSaveConfig() bool { |
| 1285 | if x != nil { |
| 1286 | return x.SaveConfig |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1287 | } |
| 1288 | return false |
| 1289 | } |
| 1290 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1291 | func (x *ImageDownload) GetLocalDir() string { |
| 1292 | if x != nil { |
| 1293 | return x.LocalDir |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1294 | } |
| 1295 | return "" |
| 1296 | } |
| 1297 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1298 | func (x *ImageDownload) GetImageState() ImageDownload_ImageActivateState { |
| 1299 | if x != nil { |
| 1300 | return x.ImageState |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1301 | } |
| 1302 | return ImageDownload_IMAGE_UNKNOWN |
| 1303 | } |
| 1304 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1305 | func (x *ImageDownload) GetFileSize() uint32 { |
| 1306 | if x != nil { |
| 1307 | return x.FileSize |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1308 | } |
| 1309 | return 0 |
| 1310 | } |
| 1311 | |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1312 | // Deprecated in voltha 2.8, will be removed |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1313 | // |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1314 | // Deprecated: Marked as deprecated in voltha_protos/device.proto. |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1315 | type ImageDownloads struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1316 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1320 | } |
| 1321 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1322 | func (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 | |
| 1329 | func (x *ImageDownloads) String() string { |
| 1330 | return protoimpl.X.MessageStringOf(x) |
| 1331 | } |
| 1332 | |
| 1333 | func (*ImageDownloads) ProtoMessage() {} |
| 1334 | |
| 1335 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1348 | func (*ImageDownloads) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1349 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{7} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1350 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1351 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1352 | func (x *ImageDownloads) GetItems() []*ImageDownload { |
| 1353 | if x != nil { |
| 1354 | return x.Items |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1355 | } |
| 1356 | return nil |
| 1357 | } |
| 1358 | |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1359 | type Images struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1360 | 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1364 | } |
| 1365 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1366 | func (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 | |
| 1373 | func (x *Images) String() string { |
| 1374 | return protoimpl.X.MessageStringOf(x) |
| 1375 | } |
| 1376 | |
| 1377 | func (*Images) ProtoMessage() {} |
| 1378 | |
| 1379 | func (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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1392 | func (*Images) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1393 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{8} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1394 | } |
| 1395 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1396 | func (x *Images) GetImage() []*Image { |
| 1397 | if x != nil { |
| 1398 | return x.Image |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1399 | } |
| 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. |
| 1405 | type OnuImage struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1406 | state protoimpl.MessageState `protogen:"open.v1"` |
| 1407 | // image version |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1408 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1415 | Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` |
| 1416 | unknownFields protoimpl.UnknownFields |
| 1417 | sizeCache protoimpl.SizeCache |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1418 | } |
| 1419 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1420 | func (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 | |
| 1427 | func (x *OnuImage) String() string { |
| 1428 | return protoimpl.X.MessageStringOf(x) |
| 1429 | } |
| 1430 | |
| 1431 | func (*OnuImage) ProtoMessage() {} |
| 1432 | |
| 1433 | func (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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1446 | func (*OnuImage) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1447 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{9} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1448 | } |
| 1449 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1450 | func (x *OnuImage) GetVersion() string { |
| 1451 | if x != nil { |
| 1452 | return x.Version |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1453 | } |
| 1454 | return "" |
| 1455 | } |
| 1456 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1457 | func (x *OnuImage) GetIsCommited() bool { |
| 1458 | if x != nil { |
| 1459 | return x.IsCommited |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1460 | } |
| 1461 | return false |
| 1462 | } |
| 1463 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1464 | func (x *OnuImage) GetIsActive() bool { |
| 1465 | if x != nil { |
| 1466 | return x.IsActive |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1467 | } |
| 1468 | return false |
| 1469 | } |
| 1470 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1471 | func (x *OnuImage) GetIsValid() bool { |
| 1472 | if x != nil { |
| 1473 | return x.IsValid |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1474 | } |
| 1475 | return false |
| 1476 | } |
| 1477 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1478 | func (x *OnuImage) GetProductCode() string { |
| 1479 | if x != nil { |
| 1480 | return x.ProductCode |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1481 | } |
| 1482 | return "" |
| 1483 | } |
| 1484 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1485 | func (x *OnuImage) GetHash() string { |
| 1486 | if x != nil { |
| 1487 | return x.Hash |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1488 | } |
| 1489 | return "" |
| 1490 | } |
| 1491 | |
| 1492 | type OnuImages struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1493 | 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1497 | } |
| 1498 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1499 | func (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 | |
| 1506 | func (x *OnuImages) String() string { |
| 1507 | return protoimpl.X.MessageStringOf(x) |
| 1508 | } |
| 1509 | |
| 1510 | func (*OnuImages) ProtoMessage() {} |
| 1511 | |
| 1512 | func (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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1525 | func (*OnuImages) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1526 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{10} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1527 | } |
| 1528 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1529 | func (x *OnuImages) GetItems() []*OnuImage { |
| 1530 | if x != nil { |
| 1531 | return x.Items |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1532 | } |
| 1533 | return nil |
| 1534 | } |
| 1535 | |
| 1536 | type DeviceImageState struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1537 | 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1542 | } |
| 1543 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1544 | func (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 | |
| 1551 | func (x *DeviceImageState) String() string { |
| 1552 | return protoimpl.X.MessageStringOf(x) |
| 1553 | } |
| 1554 | |
| 1555 | func (*DeviceImageState) ProtoMessage() {} |
| 1556 | |
| 1557 | func (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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1570 | func (*DeviceImageState) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1571 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{11} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1572 | } |
| 1573 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1574 | func (x *DeviceImageState) GetDeviceId() string { |
| 1575 | if x != nil { |
| 1576 | return x.DeviceId |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1577 | } |
| 1578 | return "" |
| 1579 | } |
| 1580 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1581 | func (x *DeviceImageState) GetImageState() *ImageState { |
| 1582 | if x != nil { |
| 1583 | return x.ImageState |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1584 | } |
| 1585 | return nil |
| 1586 | } |
| 1587 | |
| 1588 | type ImageState struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1589 | state protoimpl.MessageState `protogen:"open.v1"` |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1590 | // image version |
| 1591 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 1592 | // Download state |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1593 | DownloadState ImageState_ImageDownloadState `protobuf:"varint,2,opt,name=download_state,json=downloadState,proto3,enum=device.ImageState_ImageDownloadState" json:"download_state,omitempty"` |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1594 | // Image Operation Failure reason (use for both Download and Activate) |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1595 | Reason ImageState_ImageFailureReason `protobuf:"varint,3,opt,name=reason,proto3,enum=device.ImageState_ImageFailureReason" json:"reason,omitempty"` |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1596 | // Image activation state |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1597 | 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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1600 | } |
| 1601 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1602 | func (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 | |
| 1609 | func (x *ImageState) String() string { |
| 1610 | return protoimpl.X.MessageStringOf(x) |
| 1611 | } |
| 1612 | |
| 1613 | func (*ImageState) ProtoMessage() {} |
| 1614 | |
| 1615 | func (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 Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1628 | func (*ImageState) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1629 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{12} |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1630 | } |
| 1631 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1632 | func (x *ImageState) GetVersion() string { |
| 1633 | if x != nil { |
| 1634 | return x.Version |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1635 | } |
| 1636 | return "" |
| 1637 | } |
| 1638 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1639 | func (x *ImageState) GetDownloadState() ImageState_ImageDownloadState { |
| 1640 | if x != nil { |
| 1641 | return x.DownloadState |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1642 | } |
| 1643 | return ImageState_DOWNLOAD_UNKNOWN |
| 1644 | } |
| 1645 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1646 | func (x *ImageState) GetReason() ImageState_ImageFailureReason { |
| 1647 | if x != nil { |
| 1648 | return x.Reason |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1649 | } |
| 1650 | return ImageState_NO_ERROR |
| 1651 | } |
| 1652 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1653 | func (x *ImageState) GetImageState() ImageState_ImageActivationState { |
| 1654 | if x != nil { |
| 1655 | return x.ImageState |
| Andrea Campanella | 9e94e8a | 2021-01-19 15:21:25 +0100 | [diff] [blame] | 1656 | } |
| 1657 | return ImageState_IMAGE_UNKNOWN |
| 1658 | } |
| 1659 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1660 | type Port struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1661 | 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 |
| khenaidoo | ce41ea4 | 2020-06-09 18:10:16 -0400 | [diff] [blame] | 1665 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1667 | DeviceId string `protobuf:"bytes,7,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // Unique .id of device that owns this port |
| khenaidoo | ce41ea4 | 2020-06-09 18:10:16 -0400 | [diff] [blame] | 1668 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1678 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1681 | } |
| 1682 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1683 | func (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 | |
| 1690 | func (x *Port) String() string { |
| 1691 | return protoimpl.X.MessageStringOf(x) |
| 1692 | } |
| 1693 | |
| 1694 | func (*Port) ProtoMessage() {} |
| 1695 | |
| 1696 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1709 | func (*Port) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1710 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{13} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1711 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1712 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1713 | func (x *Port) GetPortNo() uint32 { |
| 1714 | if x != nil { |
| 1715 | return x.PortNo |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1716 | } |
| 1717 | return 0 |
| 1718 | } |
| 1719 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1720 | func (x *Port) GetLabel() string { |
| 1721 | if x != nil { |
| 1722 | return x.Label |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1723 | } |
| 1724 | return "" |
| 1725 | } |
| 1726 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1727 | func (x *Port) GetType() Port_PortType { |
| 1728 | if x != nil { |
| 1729 | return x.Type |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1730 | } |
| 1731 | return Port_UNKNOWN |
| 1732 | } |
| 1733 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1734 | func (x *Port) GetAdminState() common.AdminState_Types { |
| 1735 | if x != nil { |
| 1736 | return x.AdminState |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1737 | } |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1738 | return common.AdminState_Types(0) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1739 | } |
| 1740 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1741 | func (x *Port) GetOperStatus() common.OperStatus_Types { |
| 1742 | if x != nil { |
| 1743 | return x.OperStatus |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1744 | } |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1745 | return common.OperStatus_Types(0) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1746 | } |
| 1747 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1748 | func (x *Port) GetDeviceId() string { |
| 1749 | if x != nil { |
| 1750 | return x.DeviceId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1751 | } |
| 1752 | return "" |
| 1753 | } |
| 1754 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1755 | func (x *Port) GetPeers() []*Port_PeerPort { |
| 1756 | if x != nil { |
| 1757 | return x.Peers |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1758 | } |
| 1759 | return nil |
| 1760 | } |
| 1761 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1762 | func (x *Port) GetRxPackets() uint64 { |
| 1763 | if x != nil { |
| 1764 | return x.RxPackets |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1765 | } |
| 1766 | return 0 |
| 1767 | } |
| 1768 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1769 | func (x *Port) GetRxBytes() uint64 { |
| 1770 | if x != nil { |
| 1771 | return x.RxBytes |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1772 | } |
| 1773 | return 0 |
| 1774 | } |
| 1775 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1776 | func (x *Port) GetRxErrors() uint64 { |
| 1777 | if x != nil { |
| 1778 | return x.RxErrors |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1779 | } |
| 1780 | return 0 |
| 1781 | } |
| 1782 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1783 | func (x *Port) GetTxPackets() uint64 { |
| 1784 | if x != nil { |
| 1785 | return x.TxPackets |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1786 | } |
| 1787 | return 0 |
| 1788 | } |
| 1789 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1790 | func (x *Port) GetTxBytes() uint64 { |
| 1791 | if x != nil { |
| 1792 | return x.TxBytes |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1793 | } |
| 1794 | return 0 |
| 1795 | } |
| 1796 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1797 | func (x *Port) GetTxErrors() uint64 { |
| 1798 | if x != nil { |
| 1799 | return x.TxErrors |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1800 | } |
| 1801 | return 0 |
| 1802 | } |
| 1803 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1804 | func (x *Port) GetOfpPort() *openflow_13.OfpPort { |
| 1805 | if x != nil { |
| 1806 | return x.OfpPort |
| khenaidoo | ce41ea4 | 2020-06-09 18:10:16 -0400 | [diff] [blame] | 1807 | } |
| 1808 | return nil |
| 1809 | } |
| 1810 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1811 | type Ports struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1812 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1816 | } |
| 1817 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1818 | func (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 | |
| 1825 | func (x *Ports) String() string { |
| 1826 | return protoimpl.X.MessageStringOf(x) |
| 1827 | } |
| 1828 | |
| 1829 | func (*Ports) ProtoMessage() {} |
| 1830 | |
| 1831 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1844 | func (*Ports) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1845 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{14} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1846 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1847 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1848 | func (x *Ports) GetItems() []*Port { |
| 1849 | if x != nil { |
| 1850 | return x.Items |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1851 | } |
| 1852 | return nil |
| 1853 | } |
| 1854 | |
| 1855 | // A Physical Device instance |
| 1856 | type Device struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1857 | state protoimpl.MessageState `protogen:"open.v1"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1858 | // 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"` |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 1878 | // 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1880 | // 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1885 | // |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1886 | // *Device_Ipv4Address |
| 1887 | // *Device_Ipv6Address |
| 1888 | // *Device_HostAndPort |
| Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 1889 | Address isDevice_Address `protobuf_oneof:"address"` |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1890 | ExtraArgs string `protobuf:"bytes,23,opt,name=extra_args,json=extraArgs,proto3" json:"extra_args,omitempty"` // Used to pass additional device specific arguments |
| Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 1891 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1894 | Reason string `protobuf:"bytes,22,opt,name=reason,proto3" json:"reason,omitempty"` // Used in FAILED state |
| Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 1895 | ConnectStatus common.ConnectStatus_Types `protobuf:"varint,18,opt,name=connect_status,json=connectStatus,proto3,enum=common.ConnectStatus_Types" json:"connect_status,omitempty"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1896 | // Device type specific attributes |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1897 | Custom *anypb.Any `protobuf:"bytes,64,opt,name=custom,proto3" json:"custom,omitempty"` |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1898 | // PmConfigs type |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1899 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1903 | } |
| 1904 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1905 | func (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 | |
| 1912 | func (x *Device) String() string { |
| 1913 | return protoimpl.X.MessageStringOf(x) |
| 1914 | } |
| 1915 | |
| 1916 | func (*Device) ProtoMessage() {} |
| 1917 | |
| 1918 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1931 | func (*Device) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1932 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{15} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1933 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 1934 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1935 | func (x *Device) GetId() string { |
| 1936 | if x != nil { |
| 1937 | return x.Id |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1938 | } |
| 1939 | return "" |
| 1940 | } |
| 1941 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1942 | func (x *Device) GetType() string { |
| 1943 | if x != nil { |
| 1944 | return x.Type |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1945 | } |
| 1946 | return "" |
| 1947 | } |
| 1948 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1949 | func (x *Device) GetRoot() bool { |
| 1950 | if x != nil { |
| 1951 | return x.Root |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1952 | } |
| 1953 | return false |
| 1954 | } |
| 1955 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1956 | func (x *Device) GetParentId() string { |
| 1957 | if x != nil { |
| 1958 | return x.ParentId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1959 | } |
| 1960 | return "" |
| 1961 | } |
| 1962 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1963 | func (x *Device) GetParentPortNo() uint32 { |
| 1964 | if x != nil { |
| 1965 | return x.ParentPortNo |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1966 | } |
| 1967 | return 0 |
| 1968 | } |
| 1969 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1970 | func (x *Device) GetVendor() string { |
| 1971 | if x != nil { |
| 1972 | return x.Vendor |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1973 | } |
| 1974 | return "" |
| 1975 | } |
| 1976 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1977 | func (x *Device) GetModel() string { |
| 1978 | if x != nil { |
| 1979 | return x.Model |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1980 | } |
| 1981 | return "" |
| 1982 | } |
| 1983 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1984 | func (x *Device) GetHardwareVersion() string { |
| 1985 | if x != nil { |
| 1986 | return x.HardwareVersion |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1987 | } |
| 1988 | return "" |
| 1989 | } |
| 1990 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1991 | func (x *Device) GetFirmwareVersion() string { |
| 1992 | if x != nil { |
| 1993 | return x.FirmwareVersion |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1994 | } |
| 1995 | return "" |
| 1996 | } |
| 1997 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 1998 | func (x *Device) GetImages() *Images { |
| 1999 | if x != nil { |
| 2000 | return x.Images |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2001 | } |
| 2002 | return nil |
| 2003 | } |
| 2004 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2005 | func (x *Device) GetSerialNumber() string { |
| 2006 | if x != nil { |
| 2007 | return x.SerialNumber |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2008 | } |
| 2009 | return "" |
| 2010 | } |
| 2011 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2012 | func (x *Device) GetVendorId() string { |
| 2013 | if x != nil { |
| 2014 | return x.VendorId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2015 | } |
| 2016 | return "" |
| 2017 | } |
| 2018 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2019 | func (x *Device) GetAdapterEndpoint() string { |
| 2020 | if x != nil { |
| 2021 | return x.AdapterEndpoint |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 2022 | } |
| 2023 | return "" |
| 2024 | } |
| 2025 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2026 | func (x *Device) GetVlan() uint32 { |
| 2027 | if x != nil { |
| 2028 | return x.Vlan |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2029 | } |
| 2030 | return 0 |
| 2031 | } |
| 2032 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2033 | func (x *Device) GetMacAddress() string { |
| 2034 | if x != nil { |
| 2035 | return x.MacAddress |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2036 | } |
| 2037 | return "" |
| 2038 | } |
| 2039 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2040 | func (x *Device) GetAddress() isDevice_Address { |
| 2041 | if x != nil { |
| 2042 | return x.Address |
| 2043 | } |
| 2044 | return nil |
| 2045 | } |
| 2046 | |
| 2047 | func (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 | |
| 2056 | func (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 | |
| 2065 | func (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 | |
| 2074 | func (x *Device) GetExtraArgs() string { |
| 2075 | if x != nil { |
| 2076 | return x.ExtraArgs |
| 2077 | } |
| 2078 | return "" |
| 2079 | } |
| 2080 | |
| 2081 | func (x *Device) GetProxyAddress() *Device_ProxyAddress { |
| 2082 | if x != nil { |
| 2083 | return x.ProxyAddress |
| 2084 | } |
| 2085 | return nil |
| 2086 | } |
| 2087 | |
| 2088 | func (x *Device) GetAdminState() common.AdminState_Types { |
| 2089 | if x != nil { |
| 2090 | return x.AdminState |
| 2091 | } |
| 2092 | return common.AdminState_Types(0) |
| 2093 | } |
| 2094 | |
| 2095 | func (x *Device) GetOperStatus() common.OperStatus_Types { |
| 2096 | if x != nil { |
| 2097 | return x.OperStatus |
| 2098 | } |
| 2099 | return common.OperStatus_Types(0) |
| 2100 | } |
| 2101 | |
| 2102 | func (x *Device) GetReason() string { |
| 2103 | if x != nil { |
| 2104 | return x.Reason |
| 2105 | } |
| 2106 | return "" |
| 2107 | } |
| 2108 | |
| 2109 | func (x *Device) GetConnectStatus() common.ConnectStatus_Types { |
| 2110 | if x != nil { |
| 2111 | return x.ConnectStatus |
| 2112 | } |
| 2113 | return common.ConnectStatus_Types(0) |
| 2114 | } |
| 2115 | |
| 2116 | func (x *Device) GetCustom() *anypb.Any { |
| 2117 | if x != nil { |
| 2118 | return x.Custom |
| 2119 | } |
| 2120 | return nil |
| 2121 | } |
| 2122 | |
| 2123 | func (x *Device) GetPmConfigs() *PmConfigs { |
| 2124 | if x != nil { |
| 2125 | return x.PmConfigs |
| 2126 | } |
| 2127 | return nil |
| 2128 | } |
| 2129 | |
| 2130 | func (x *Device) GetImageDownloads() []*ImageDownload { |
| 2131 | if x != nil { |
| 2132 | return x.ImageDownloads |
| 2133 | } |
| 2134 | return nil |
| 2135 | } |
| 2136 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2137 | type isDevice_Address interface { |
| 2138 | isDevice_Address() |
| 2139 | } |
| 2140 | |
| 2141 | type Device_Ipv4Address struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2142 | // Device contact IPv4 address (format: "a.b.c.d" or can use hostname too) |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2143 | Ipv4Address string `protobuf:"bytes,14,opt,name=ipv4_address,json=ipv4Address,proto3,oneof"` |
| 2144 | } |
| 2145 | |
| 2146 | type Device_Ipv6Address struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2147 | // Device contact IPv6 address using the canonical string form |
| 2148 | // ("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx") |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2149 | Ipv6Address string `protobuf:"bytes,15,opt,name=ipv6_address,json=ipv6Address,proto3,oneof"` |
| 2150 | } |
| 2151 | |
| 2152 | type Device_HostAndPort struct { |
| 2153 | HostAndPort string `protobuf:"bytes,21,opt,name=host_and_port,json=hostAndPort,proto3,oneof"` |
| 2154 | } |
| 2155 | |
| 2156 | func (*Device_Ipv4Address) isDevice_Address() {} |
| 2157 | |
| 2158 | func (*Device_Ipv6Address) isDevice_Address() {} |
| 2159 | |
| 2160 | func (*Device_HostAndPort) isDevice_Address() {} |
| 2161 | |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2162 | type DeviceImageDownloadRequest struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2163 | state protoimpl.MessageState `protogen:"open.v1"` |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2164 | // 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2167 | // The image for the device containing all the information |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2168 | Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2169 | // Activate the image if the download to the device is successful |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2170 | ActivateOnSuccess bool `protobuf:"varint,3,opt,name=activateOnSuccess,proto3" json:"activateOnSuccess,omitempty"` |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2171 | // 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2175 | } |
| 2176 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2177 | func (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 | |
| 2184 | func (x *DeviceImageDownloadRequest) String() string { |
| 2185 | return protoimpl.X.MessageStringOf(x) |
| 2186 | } |
| 2187 | |
| 2188 | func (*DeviceImageDownloadRequest) ProtoMessage() {} |
| 2189 | |
| 2190 | func (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. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2203 | func (*DeviceImageDownloadRequest) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2204 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{16} |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2205 | } |
| 2206 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2207 | func (x *DeviceImageDownloadRequest) GetDeviceId() []*common.ID { |
| 2208 | if x != nil { |
| 2209 | return x.DeviceId |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2210 | } |
| 2211 | return nil |
| 2212 | } |
| 2213 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2214 | func (x *DeviceImageDownloadRequest) GetImage() *Image { |
| 2215 | if x != nil { |
| 2216 | return x.Image |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2217 | } |
| 2218 | return nil |
| 2219 | } |
| 2220 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2221 | func (x *DeviceImageDownloadRequest) GetActivateOnSuccess() bool { |
| 2222 | if x != nil { |
| 2223 | return x.ActivateOnSuccess |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2224 | } |
| 2225 | return false |
| 2226 | } |
| 2227 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2228 | func (x *DeviceImageDownloadRequest) GetCommitOnSuccess() bool { |
| 2229 | if x != nil { |
| 2230 | return x.CommitOnSuccess |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2231 | } |
| 2232 | return false |
| 2233 | } |
| 2234 | |
| 2235 | type DeviceImageRequest struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2236 | state protoimpl.MessageState `protogen:"open.v1"` |
| 2237 | // Device Id |
| 2238 | // allows for operations on multiple adapters. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2239 | 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 Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2243 | // 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2247 | } |
| 2248 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2249 | func (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 | |
| 2256 | func (x *DeviceImageRequest) String() string { |
| 2257 | return protoimpl.X.MessageStringOf(x) |
| 2258 | } |
| 2259 | |
| 2260 | func (*DeviceImageRequest) ProtoMessage() {} |
| 2261 | |
| 2262 | func (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. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2275 | func (*DeviceImageRequest) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2276 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{17} |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2277 | } |
| 2278 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2279 | func (x *DeviceImageRequest) GetDeviceId() []*common.ID { |
| 2280 | if x != nil { |
| 2281 | return x.DeviceId |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2282 | } |
| 2283 | return nil |
| 2284 | } |
| 2285 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2286 | func (x *DeviceImageRequest) GetVersion() string { |
| 2287 | if x != nil { |
| 2288 | return x.Version |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2289 | } |
| 2290 | return "" |
| 2291 | } |
| 2292 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2293 | func (x *DeviceImageRequest) GetCommitOnSuccess() bool { |
| 2294 | if x != nil { |
| 2295 | return x.CommitOnSuccess |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2296 | } |
| 2297 | return false |
| 2298 | } |
| 2299 | |
| 2300 | type DeviceImageResponse struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2301 | 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2306 | } |
| 2307 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2308 | func (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 | |
| 2315 | func (x *DeviceImageResponse) String() string { |
| 2316 | return protoimpl.X.MessageStringOf(x) |
| 2317 | } |
| 2318 | |
| 2319 | func (*DeviceImageResponse) ProtoMessage() {} |
| 2320 | |
| 2321 | func (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. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2334 | func (*DeviceImageResponse) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2335 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{18} |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2336 | } |
| 2337 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2338 | func (x *DeviceImageResponse) GetDeviceImageStates() []*DeviceImageState { |
| 2339 | if x != nil { |
| 2340 | return x.DeviceImageStates |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2341 | } |
| 2342 | return nil |
| 2343 | } |
| 2344 | |
| 2345 | // Device Self Test Response |
| 2346 | type SelfTestResponse struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2347 | 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 |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2351 | } |
| 2352 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2353 | func (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 | |
| 2360 | func (x *SelfTestResponse) String() string { |
| 2361 | return protoimpl.X.MessageStringOf(x) |
| 2362 | } |
| 2363 | |
| 2364 | func (*SelfTestResponse) ProtoMessage() {} |
| 2365 | |
| 2366 | func (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. |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2379 | func (*SelfTestResponse) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2380 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{19} |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2381 | } |
| 2382 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2383 | func (x *SelfTestResponse) GetResult() SelfTestResponse_SelfTestResult { |
| 2384 | if x != nil { |
| 2385 | return x.Result |
| khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 2386 | } |
| 2387 | return SelfTestResponse_SUCCESS |
| 2388 | } |
| 2389 | |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2390 | type Devices struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2391 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2395 | } |
| 2396 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2397 | func (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 | |
| 2404 | func (x *Devices) String() string { |
| 2405 | return protoimpl.X.MessageStringOf(x) |
| 2406 | } |
| 2407 | |
| 2408 | func (*Devices) ProtoMessage() {} |
| 2409 | |
| 2410 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2423 | func (*Devices) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2424 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{20} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2425 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 2426 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2427 | func (x *Devices) GetItems() []*Device { |
| 2428 | if x != nil { |
| 2429 | return x.Items |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2430 | } |
| 2431 | return nil |
| 2432 | } |
| 2433 | |
| 2434 | type SimulateAlarmRequest struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2435 | state protoimpl.MessageState `protogen:"open.v1"` |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2436 | // Device Identifier |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2437 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2449 | } |
| 2450 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2451 | func (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 | |
| 2458 | func (x *SimulateAlarmRequest) String() string { |
| 2459 | return protoimpl.X.MessageStringOf(x) |
| 2460 | } |
| 2461 | |
| 2462 | func (*SimulateAlarmRequest) ProtoMessage() {} |
| 2463 | |
| 2464 | func (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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2477 | func (*SimulateAlarmRequest) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2478 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{21} |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2479 | } |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 2480 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2481 | func (x *SimulateAlarmRequest) GetId() string { |
| 2482 | if x != nil { |
| 2483 | return x.Id |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2484 | } |
| 2485 | return "" |
| 2486 | } |
| 2487 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2488 | func (x *SimulateAlarmRequest) GetIndicator() string { |
| 2489 | if x != nil { |
| 2490 | return x.Indicator |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2491 | } |
| 2492 | return "" |
| 2493 | } |
| 2494 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2495 | func (x *SimulateAlarmRequest) GetIntfId() string { |
| 2496 | if x != nil { |
| 2497 | return x.IntfId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2498 | } |
| 2499 | return "" |
| 2500 | } |
| 2501 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2502 | func (x *SimulateAlarmRequest) GetPortTypeName() string { |
| 2503 | if x != nil { |
| 2504 | return x.PortTypeName |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2505 | } |
| 2506 | return "" |
| 2507 | } |
| 2508 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2509 | func (x *SimulateAlarmRequest) GetOnuDeviceId() string { |
| 2510 | if x != nil { |
| 2511 | return x.OnuDeviceId |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2512 | } |
| 2513 | return "" |
| 2514 | } |
| 2515 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2516 | func (x *SimulateAlarmRequest) GetInverseBitErrorRate() int32 { |
| 2517 | if x != nil { |
| 2518 | return x.InverseBitErrorRate |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2519 | } |
| 2520 | return 0 |
| 2521 | } |
| 2522 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2523 | func (x *SimulateAlarmRequest) GetDrift() int32 { |
| 2524 | if x != nil { |
| 2525 | return x.Drift |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2526 | } |
| 2527 | return 0 |
| 2528 | } |
| 2529 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2530 | func (x *SimulateAlarmRequest) GetNewEqd() int32 { |
| 2531 | if x != nil { |
| 2532 | return x.NewEqd |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2533 | } |
| 2534 | return 0 |
| 2535 | } |
| 2536 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2537 | func (x *SimulateAlarmRequest) GetOnuSerialNumber() string { |
| 2538 | if x != nil { |
| 2539 | return x.OnuSerialNumber |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2540 | } |
| 2541 | return "" |
| 2542 | } |
| 2543 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2544 | func (x *SimulateAlarmRequest) GetOperation() SimulateAlarmRequest_OperationType { |
| 2545 | if x != nil { |
| 2546 | return x.Operation |
| William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 2547 | } |
| 2548 | return SimulateAlarmRequest_RAISE |
| 2549 | } |
| 2550 | |
| Abhilash laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2551 | // Represents a serialNumber of a child device on a olt pon port |
| 2552 | type OnuSerialNumberOnOLTPon struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2553 | 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 laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2559 | } |
| 2560 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2561 | func (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 | |
| 2568 | func (x *OnuSerialNumberOnOLTPon) String() string { |
| 2569 | return protoimpl.X.MessageStringOf(x) |
| 2570 | } |
| 2571 | |
| 2572 | func (*OnuSerialNumberOnOLTPon) ProtoMessage() {} |
| 2573 | |
| 2574 | func (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 laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2587 | func (*OnuSerialNumberOnOLTPon) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2588 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{22} |
| Abhilash laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2589 | } |
| 2590 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2591 | func (x *OnuSerialNumberOnOLTPon) GetOltDeviceId() *common.ID { |
| 2592 | if x != nil { |
| 2593 | return x.OltDeviceId |
| Abhilash laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2594 | } |
| 2595 | return nil |
| 2596 | } |
| 2597 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2598 | func (x *OnuSerialNumberOnOLTPon) GetPort() *Port { |
| 2599 | if x != nil { |
| 2600 | return x.Port |
| Abhilash laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2601 | } |
| 2602 | return nil |
| 2603 | } |
| 2604 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2605 | func (x *OnuSerialNumberOnOLTPon) GetSerialNumber() string { |
| 2606 | if x != nil { |
| 2607 | return x.SerialNumber |
| Abhilash laxmeshwar | e46f98e | 2025-06-23 20:33:29 +0530 | [diff] [blame] | 2608 | } |
| 2609 | return "" |
| 2610 | } |
| 2611 | |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2612 | type UpdateDevice struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2613 | 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 laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2615 | // Types that are valid to be assigned to Address: |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2616 | // |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2617 | // *UpdateDevice_Ipv4Address |
| 2618 | // *UpdateDevice_Ipv6Address |
| 2619 | // *UpdateDevice_HostAndPort |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2620 | Address isUpdateDevice_Address `protobuf_oneof:"address"` |
| 2621 | unknownFields protoimpl.UnknownFields |
| 2622 | sizeCache protoimpl.SizeCache |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2623 | } |
| 2624 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2625 | func (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 | |
| 2632 | func (x *UpdateDevice) String() string { |
| 2633 | return protoimpl.X.MessageStringOf(x) |
| 2634 | } |
| 2635 | |
| 2636 | func (*UpdateDevice) ProtoMessage() {} |
| 2637 | |
| 2638 | func (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 laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2651 | func (*UpdateDevice) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2652 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{23} |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2653 | } |
| 2654 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2655 | func (x *UpdateDevice) GetId() string { |
| 2656 | if x != nil { |
| 2657 | return x.Id |
| 2658 | } |
| 2659 | return "" |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2660 | } |
| 2661 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2662 | func (x *UpdateDevice) GetAddress() isUpdateDevice_Address { |
| 2663 | if x != nil { |
| 2664 | return x.Address |
| 2665 | } |
| 2666 | return nil |
| 2667 | } |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2668 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2669 | func (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 | |
| 2678 | func (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 | |
| 2687 | func (x *UpdateDevice) GetHostAndPort() string { |
| 2688 | if x != nil { |
| 2689 | if x, ok := x.Address.(*UpdateDevice_HostAndPort); ok { |
| 2690 | return x.HostAndPort |
| 2691 | } |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2692 | } |
| 2693 | return "" |
| 2694 | } |
| 2695 | |
| 2696 | type isUpdateDevice_Address interface { |
| 2697 | isUpdateDevice_Address() |
| 2698 | } |
| 2699 | |
| 2700 | type UpdateDevice_Ipv4Address struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2701 | // Device contact IPv4 address (format: "a.b.c.d" or can use hostname too) |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2702 | Ipv4Address string `protobuf:"bytes,2,opt,name=ipv4_address,json=ipv4Address,proto3,oneof"` |
| 2703 | } |
| 2704 | |
| 2705 | type UpdateDevice_Ipv6Address struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2706 | // Device contact IPv6 address using the canonical string form |
| 2707 | // ("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx") |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2708 | Ipv6Address string `protobuf:"bytes,3,opt,name=ipv6_address,json=ipv6Address,proto3,oneof"` |
| 2709 | } |
| 2710 | |
| 2711 | type UpdateDevice_HostAndPort struct { |
| 2712 | HostAndPort string `protobuf:"bytes,4,opt,name=host_and_port,json=hostAndPort,proto3,oneof"` |
| 2713 | } |
| 2714 | |
| 2715 | func (*UpdateDevice_Ipv4Address) isUpdateDevice_Address() {} |
| 2716 | |
| 2717 | func (*UpdateDevice_Ipv6Address) isUpdateDevice_Address() {} |
| 2718 | |
| 2719 | func (*UpdateDevice_HostAndPort) isUpdateDevice_Address() {} |
| 2720 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2721 | type 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 laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2727 | } |
| 2728 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2729 | func (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 | |
| 2736 | func (x *Port_PeerPort) String() string { |
| 2737 | return protoimpl.X.MessageStringOf(x) |
| 2738 | } |
| 2739 | |
| 2740 | func (*Port_PeerPort) ProtoMessage() {} |
| 2741 | |
| 2742 | func (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. |
| 2755 | func (*Port_PeerPort) Descriptor() ([]byte, []int) { |
| 2756 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{13, 0} |
| 2757 | } |
| 2758 | |
| 2759 | func (x *Port_PeerPort) GetDeviceId() string { |
| 2760 | if x != nil { |
| 2761 | return x.DeviceId |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2762 | } |
| 2763 | return "" |
| 2764 | } |
| 2765 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2766 | func (x *Port_PeerPort) GetPortNo() uint32 { |
| 2767 | if x != nil { |
| 2768 | return x.PortNo |
| 2769 | } |
| 2770 | return 0 |
| 2771 | } |
| 2772 | |
| 2773 | type 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 | |
| 2787 | func (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 | |
| 2794 | func (x *Device_ProxyAddress) String() string { |
| 2795 | return protoimpl.X.MessageStringOf(x) |
| 2796 | } |
| 2797 | |
| 2798 | func (*Device_ProxyAddress) ProtoMessage() {} |
| 2799 | |
| 2800 | func (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. |
| 2813 | func (*Device_ProxyAddress) Descriptor() ([]byte, []int) { |
| 2814 | return file_voltha_protos_device_proto_rawDescGZIP(), []int{15, 0} |
| 2815 | } |
| 2816 | |
| 2817 | func (x *Device_ProxyAddress) GetDeviceId() string { |
| 2818 | if x != nil { |
| 2819 | return x.DeviceId |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2820 | } |
| 2821 | return "" |
| 2822 | } |
| 2823 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2824 | func (x *Device_ProxyAddress) GetDeviceType() string { |
| 2825 | if x != nil { |
| 2826 | return x.DeviceType |
| Abhilash laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 2827 | } |
| 2828 | return "" |
| 2829 | } |
| 2830 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2831 | func (x *Device_ProxyAddress) GetChannelId() uint32 { |
| 2832 | if x != nil { |
| 2833 | return x.ChannelId |
| 2834 | } |
| 2835 | return 0 |
| 2836 | } |
| 2837 | |
| 2838 | func (x *Device_ProxyAddress) GetChannelGroupId() uint32 { |
| 2839 | if x != nil { |
| 2840 | return x.ChannelGroupId |
| 2841 | } |
| 2842 | return 0 |
| 2843 | } |
| 2844 | |
| 2845 | func (x *Device_ProxyAddress) GetChannelTermination() string { |
| 2846 | if x != nil { |
| 2847 | return x.ChannelTermination |
| 2848 | } |
| 2849 | return "" |
| 2850 | } |
| 2851 | |
| 2852 | func (x *Device_ProxyAddress) GetOnuId() uint32 { |
| 2853 | if x != nil { |
| 2854 | return x.OnuId |
| 2855 | } |
| 2856 | return 0 |
| 2857 | } |
| 2858 | |
| 2859 | func (x *Device_ProxyAddress) GetOnuSessionId() uint32 { |
| 2860 | if x != nil { |
| 2861 | return x.OnuSessionId |
| 2862 | } |
| 2863 | return 0 |
| 2864 | } |
| 2865 | |
| 2866 | func (x *Device_ProxyAddress) GetAdapterEndpoint() string { |
| 2867 | if x != nil { |
| 2868 | return x.AdapterEndpoint |
| 2869 | } |
| 2870 | return "" |
| 2871 | } |
| 2872 | |
| 2873 | var File_voltha_protos_device_proto protoreflect.FileDescriptor |
| 2874 | |
| 2875 | const 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 | |
| 3159 | var ( |
| 3160 | file_voltha_protos_device_proto_rawDescOnce sync.Once |
| 3161 | file_voltha_protos_device_proto_rawDescData []byte |
| 3162 | ) |
| 3163 | |
| 3164 | func 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 | |
| 3171 | var file_voltha_protos_device_proto_enumTypes = make([]protoimpl.EnumInfo, 10) |
| 3172 | var file_voltha_protos_device_proto_msgTypes = make([]protoimpl.MessageInfo, 26) |
| 3173 | var 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 | } |
| 3217 | var 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 | |
| 3263 | func init() { file_voltha_protos_device_proto_init() } |
| 3264 | func 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 laxmeshwar | 62bb7ed | 2025-09-30 12:49:32 +0530 | [diff] [blame] | 3274 | (*UpdateDevice_Ipv4Address)(nil), |
| 3275 | (*UpdateDevice_Ipv6Address)(nil), |
| 3276 | (*UpdateDevice_HostAndPort)(nil), |
| 3277 | } |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 3278 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 3296 | } |