| William Kurkian | ad74565 | 2019-03-20 08:45:51 -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 | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 5 | // source: voltha_protos/ietf_interfaces.proto |
| 6 | |
| 7 | package ietf |
| 8 | |
| 9 | import ( |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | reflect "reflect" |
| 13 | sync "sync" |
| 14 | unsafe "unsafe" |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 15 | ) |
| 16 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 17 | const ( |
| 18 | // Verify that this generated code is sufficiently up-to-date. |
| 19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 | ) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 23 | |
| 24 | type Interface_LinkUpDownTrapEnableType int32 |
| 25 | |
| 26 | const ( |
| 27 | Interface_TRAP_DISABLED Interface_LinkUpDownTrapEnableType = 0 |
| 28 | Interface_TRAP_ENABLED Interface_LinkUpDownTrapEnableType = 1 |
| 29 | ) |
| 30 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 31 | // Enum value maps for Interface_LinkUpDownTrapEnableType. |
| 32 | var ( |
| 33 | Interface_LinkUpDownTrapEnableType_name = map[int32]string{ |
| 34 | 0: "TRAP_DISABLED", |
| 35 | 1: "TRAP_ENABLED", |
| 36 | } |
| 37 | Interface_LinkUpDownTrapEnableType_value = map[string]int32{ |
| 38 | "TRAP_DISABLED": 0, |
| 39 | "TRAP_ENABLED": 1, |
| 40 | } |
| 41 | ) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 42 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 43 | func (x Interface_LinkUpDownTrapEnableType) Enum() *Interface_LinkUpDownTrapEnableType { |
| 44 | p := new(Interface_LinkUpDownTrapEnableType) |
| 45 | *p = x |
| 46 | return p |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | func (x Interface_LinkUpDownTrapEnableType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 50 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 51 | } |
| 52 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 53 | func (Interface_LinkUpDownTrapEnableType) Descriptor() protoreflect.EnumDescriptor { |
| 54 | return file_voltha_protos_ietf_interfaces_proto_enumTypes[0].Descriptor() |
| 55 | } |
| 56 | |
| 57 | func (Interface_LinkUpDownTrapEnableType) Type() protoreflect.EnumType { |
| 58 | return &file_voltha_protos_ietf_interfaces_proto_enumTypes[0] |
| 59 | } |
| 60 | |
| 61 | func (x Interface_LinkUpDownTrapEnableType) Number() protoreflect.EnumNumber { |
| 62 | return protoreflect.EnumNumber(x) |
| 63 | } |
| 64 | |
| 65 | // Deprecated: Use Interface_LinkUpDownTrapEnableType.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 66 | func (Interface_LinkUpDownTrapEnableType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 67 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{1, 0} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | type InterfaceState_AdminStatusType int32 |
| 71 | |
| 72 | const ( |
| 73 | InterfaceState_ADMIN_DOWN InterfaceState_AdminStatusType = 0 |
| 74 | InterfaceState_ADMIN_TESTING InterfaceState_AdminStatusType = 1 |
| 75 | InterfaceState_ADMIN_UP InterfaceState_AdminStatusType = 2 |
| 76 | ) |
| 77 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 78 | // Enum value maps for InterfaceState_AdminStatusType. |
| 79 | var ( |
| 80 | InterfaceState_AdminStatusType_name = map[int32]string{ |
| 81 | 0: "ADMIN_DOWN", |
| 82 | 1: "ADMIN_TESTING", |
| 83 | 2: "ADMIN_UP", |
| 84 | } |
| 85 | InterfaceState_AdminStatusType_value = map[string]int32{ |
| 86 | "ADMIN_DOWN": 0, |
| 87 | "ADMIN_TESTING": 1, |
| 88 | "ADMIN_UP": 2, |
| 89 | } |
| 90 | ) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 91 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 92 | func (x InterfaceState_AdminStatusType) Enum() *InterfaceState_AdminStatusType { |
| 93 | p := new(InterfaceState_AdminStatusType) |
| 94 | *p = x |
| 95 | return p |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | func (x InterfaceState_AdminStatusType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 99 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 100 | } |
| 101 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 102 | func (InterfaceState_AdminStatusType) Descriptor() protoreflect.EnumDescriptor { |
| 103 | return file_voltha_protos_ietf_interfaces_proto_enumTypes[1].Descriptor() |
| 104 | } |
| 105 | |
| 106 | func (InterfaceState_AdminStatusType) Type() protoreflect.EnumType { |
| 107 | return &file_voltha_protos_ietf_interfaces_proto_enumTypes[1] |
| 108 | } |
| 109 | |
| 110 | func (x InterfaceState_AdminStatusType) Number() protoreflect.EnumNumber { |
| 111 | return protoreflect.EnumNumber(x) |
| 112 | } |
| 113 | |
| 114 | // Deprecated: Use InterfaceState_AdminStatusType.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 115 | func (InterfaceState_AdminStatusType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 116 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3, 0} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | type InterfaceState_OperStatusType int32 |
| 120 | |
| 121 | const ( |
| 122 | InterfaceState_DORMANT InterfaceState_OperStatusType = 0 |
| 123 | InterfaceState_LOWER_LAYER_DOWN InterfaceState_OperStatusType = 1 |
| 124 | InterfaceState_UNKNOWN InterfaceState_OperStatusType = 2 |
| 125 | InterfaceState_TESTING InterfaceState_OperStatusType = 3 |
| 126 | InterfaceState_UP InterfaceState_OperStatusType = 4 |
| 127 | InterfaceState_DOWN InterfaceState_OperStatusType = 5 |
| 128 | InterfaceState_NOT_PRESENT InterfaceState_OperStatusType = 6 |
| 129 | ) |
| 130 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 131 | // Enum value maps for InterfaceState_OperStatusType. |
| 132 | var ( |
| 133 | InterfaceState_OperStatusType_name = map[int32]string{ |
| 134 | 0: "DORMANT", |
| 135 | 1: "LOWER_LAYER_DOWN", |
| 136 | 2: "UNKNOWN", |
| 137 | 3: "TESTING", |
| 138 | 4: "UP", |
| 139 | 5: "DOWN", |
| 140 | 6: "NOT_PRESENT", |
| 141 | } |
| 142 | InterfaceState_OperStatusType_value = map[string]int32{ |
| 143 | "DORMANT": 0, |
| 144 | "LOWER_LAYER_DOWN": 1, |
| 145 | "UNKNOWN": 2, |
| 146 | "TESTING": 3, |
| 147 | "UP": 4, |
| 148 | "DOWN": 5, |
| 149 | "NOT_PRESENT": 6, |
| 150 | } |
| 151 | ) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 152 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 153 | func (x InterfaceState_OperStatusType) Enum() *InterfaceState_OperStatusType { |
| 154 | p := new(InterfaceState_OperStatusType) |
| 155 | *p = x |
| 156 | return p |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | func (x InterfaceState_OperStatusType) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 160 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 161 | } |
| 162 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 163 | func (InterfaceState_OperStatusType) Descriptor() protoreflect.EnumDescriptor { |
| 164 | return file_voltha_protos_ietf_interfaces_proto_enumTypes[2].Descriptor() |
| 165 | } |
| 166 | |
| 167 | func (InterfaceState_OperStatusType) Type() protoreflect.EnumType { |
| 168 | return &file_voltha_protos_ietf_interfaces_proto_enumTypes[2] |
| 169 | } |
| 170 | |
| 171 | func (x InterfaceState_OperStatusType) Number() protoreflect.EnumNumber { |
| 172 | return protoreflect.EnumNumber(x) |
| 173 | } |
| 174 | |
| 175 | // Deprecated: Use InterfaceState_OperStatusType.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 176 | func (InterfaceState_OperStatusType) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 177 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3, 1} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | type Interfaces struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 181 | state protoimpl.MessageState `protogen:"open.v1"` |
| 182 | AllInterfaces []*Interface `protobuf:"bytes,1,rep,name=all_interfaces,json=allInterfaces,proto3" json:"all_interfaces,omitempty"` |
| 183 | unknownFields protoimpl.UnknownFields |
| 184 | sizeCache protoimpl.SizeCache |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 185 | } |
| 186 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 187 | func (x *Interfaces) Reset() { |
| 188 | *x = Interfaces{} |
| 189 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[0] |
| 190 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 191 | ms.StoreMessageInfo(mi) |
| 192 | } |
| 193 | |
| 194 | func (x *Interfaces) String() string { |
| 195 | return protoimpl.X.MessageStringOf(x) |
| 196 | } |
| 197 | |
| 198 | func (*Interfaces) ProtoMessage() {} |
| 199 | |
| 200 | func (x *Interfaces) ProtoReflect() protoreflect.Message { |
| 201 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[0] |
| 202 | if x != nil { |
| 203 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 204 | if ms.LoadMessageInfo() == nil { |
| 205 | ms.StoreMessageInfo(mi) |
| 206 | } |
| 207 | return ms |
| 208 | } |
| 209 | return mi.MessageOf(x) |
| 210 | } |
| 211 | |
| 212 | // Deprecated: Use Interfaces.ProtoReflect.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 213 | func (*Interfaces) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 214 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{0} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 215 | } |
| 216 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 217 | func (x *Interfaces) GetAllInterfaces() []*Interface { |
| 218 | if x != nil { |
| 219 | return x.AllInterfaces |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 220 | } |
| 221 | return nil |
| 222 | } |
| 223 | |
| 224 | type Interface struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 225 | state protoimpl.MessageState `protogen:"open.v1"` |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 226 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 227 | Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| 228 | Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` |
| 229 | Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 230 | LinkUpDownTrapEnable Interface_LinkUpDownTrapEnableType `protobuf:"varint,5,opt,name=link_up_down_trap_enable,json=linkUpDownTrapEnable,proto3,enum=ietf.Interface_LinkUpDownTrapEnableType" json:"link_up_down_trap_enable,omitempty"` |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 231 | unknownFields protoimpl.UnknownFields |
| 232 | sizeCache protoimpl.SizeCache |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 233 | } |
| 234 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 235 | func (x *Interface) Reset() { |
| 236 | *x = Interface{} |
| 237 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[1] |
| 238 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 239 | ms.StoreMessageInfo(mi) |
| 240 | } |
| 241 | |
| 242 | func (x *Interface) String() string { |
| 243 | return protoimpl.X.MessageStringOf(x) |
| 244 | } |
| 245 | |
| 246 | func (*Interface) ProtoMessage() {} |
| 247 | |
| 248 | func (x *Interface) ProtoReflect() protoreflect.Message { |
| 249 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[1] |
| 250 | if x != nil { |
| 251 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 252 | if ms.LoadMessageInfo() == nil { |
| 253 | ms.StoreMessageInfo(mi) |
| 254 | } |
| 255 | return ms |
| 256 | } |
| 257 | return mi.MessageOf(x) |
| 258 | } |
| 259 | |
| 260 | // Deprecated: Use Interface.ProtoReflect.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 261 | func (*Interface) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 262 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{1} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 263 | } |
| 264 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 265 | func (x *Interface) GetName() string { |
| 266 | if x != nil { |
| 267 | return x.Name |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 268 | } |
| 269 | return "" |
| 270 | } |
| 271 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 272 | func (x *Interface) GetDescription() string { |
| 273 | if x != nil { |
| 274 | return x.Description |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 275 | } |
| 276 | return "" |
| 277 | } |
| 278 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 279 | func (x *Interface) GetType() string { |
| 280 | if x != nil { |
| 281 | return x.Type |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 282 | } |
| 283 | return "" |
| 284 | } |
| 285 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 286 | func (x *Interface) GetEnabled() bool { |
| 287 | if x != nil { |
| 288 | return x.Enabled |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 289 | } |
| 290 | return false |
| 291 | } |
| 292 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 293 | func (x *Interface) GetLinkUpDownTrapEnable() Interface_LinkUpDownTrapEnableType { |
| 294 | if x != nil { |
| 295 | return x.LinkUpDownTrapEnable |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 296 | } |
| 297 | return Interface_TRAP_DISABLED |
| 298 | } |
| 299 | |
| 300 | type InterfacesState struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 301 | state protoimpl.MessageState `protogen:"open.v1"` |
| 302 | AllInterfacs []*InterfaceState `protobuf:"bytes,1,rep,name=all_interfacs,json=allInterfacs,proto3" json:"all_interfacs,omitempty"` |
| 303 | unknownFields protoimpl.UnknownFields |
| 304 | sizeCache protoimpl.SizeCache |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 305 | } |
| 306 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 307 | func (x *InterfacesState) Reset() { |
| 308 | *x = InterfacesState{} |
| 309 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[2] |
| 310 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 311 | ms.StoreMessageInfo(mi) |
| 312 | } |
| 313 | |
| 314 | func (x *InterfacesState) String() string { |
| 315 | return protoimpl.X.MessageStringOf(x) |
| 316 | } |
| 317 | |
| 318 | func (*InterfacesState) ProtoMessage() {} |
| 319 | |
| 320 | func (x *InterfacesState) ProtoReflect() protoreflect.Message { |
| 321 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[2] |
| 322 | if x != nil { |
| 323 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 324 | if ms.LoadMessageInfo() == nil { |
| 325 | ms.StoreMessageInfo(mi) |
| 326 | } |
| 327 | return ms |
| 328 | } |
| 329 | return mi.MessageOf(x) |
| 330 | } |
| 331 | |
| 332 | // Deprecated: Use InterfacesState.ProtoReflect.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 333 | func (*InterfacesState) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 334 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{2} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 335 | } |
| 336 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 337 | func (x *InterfacesState) GetAllInterfacs() []*InterfaceState { |
| 338 | if x != nil { |
| 339 | return x.AllInterfacs |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 340 | } |
| 341 | return nil |
| 342 | } |
| 343 | |
| 344 | type InterfaceState struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 345 | state protoimpl.MessageState `protogen:"open.v1"` |
| 346 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 347 | Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` |
| 348 | AdminStatus InterfaceState_AdminStatusType `protobuf:"varint,3,opt,name=admin_status,json=adminStatus,proto3,enum=ietf.InterfaceState_AdminStatusType" json:"admin_status,omitempty"` |
| 349 | OperStatus InterfaceState_OperStatusType `protobuf:"varint,4,opt,name=oper_status,json=operStatus,proto3,enum=ietf.InterfaceState_OperStatusType" json:"oper_status,omitempty"` |
| 350 | LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` |
| 351 | IfIndex int32 `protobuf:"varint,6,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"` |
| 352 | PhysAddress string `protobuf:"bytes,7,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"` |
| 353 | HigherLayerIf []string `protobuf:"bytes,8,rep,name=higher_layer_if,json=higherLayerIf,proto3" json:"higher_layer_if,omitempty"` |
| 354 | LowerLayerIf []string `protobuf:"bytes,9,rep,name=lower_layer_if,json=lowerLayerIf,proto3" json:"lower_layer_if,omitempty"` |
| 355 | Speed uint64 `protobuf:"varint,10,opt,name=speed,proto3" json:"speed,omitempty"` |
| 356 | unknownFields protoimpl.UnknownFields |
| 357 | sizeCache protoimpl.SizeCache |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 358 | } |
| 359 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 360 | func (x *InterfaceState) Reset() { |
| 361 | *x = InterfaceState{} |
| 362 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[3] |
| 363 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 364 | ms.StoreMessageInfo(mi) |
| 365 | } |
| 366 | |
| 367 | func (x *InterfaceState) String() string { |
| 368 | return protoimpl.X.MessageStringOf(x) |
| 369 | } |
| 370 | |
| 371 | func (*InterfaceState) ProtoMessage() {} |
| 372 | |
| 373 | func (x *InterfaceState) ProtoReflect() protoreflect.Message { |
| 374 | mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[3] |
| 375 | if x != nil { |
| 376 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 377 | if ms.LoadMessageInfo() == nil { |
| 378 | ms.StoreMessageInfo(mi) |
| 379 | } |
| 380 | return ms |
| 381 | } |
| 382 | return mi.MessageOf(x) |
| 383 | } |
| 384 | |
| 385 | // Deprecated: Use InterfaceState.ProtoReflect.Descriptor instead. |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 386 | func (*InterfaceState) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 387 | return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3} |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 388 | } |
| 389 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 390 | func (x *InterfaceState) GetName() string { |
| 391 | if x != nil { |
| 392 | return x.Name |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 393 | } |
| 394 | return "" |
| 395 | } |
| 396 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 397 | func (x *InterfaceState) GetType() string { |
| 398 | if x != nil { |
| 399 | return x.Type |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 400 | } |
| 401 | return "" |
| 402 | } |
| 403 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 404 | func (x *InterfaceState) GetAdminStatus() InterfaceState_AdminStatusType { |
| 405 | if x != nil { |
| 406 | return x.AdminStatus |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 407 | } |
| 408 | return InterfaceState_ADMIN_DOWN |
| 409 | } |
| 410 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 411 | func (x *InterfaceState) GetOperStatus() InterfaceState_OperStatusType { |
| 412 | if x != nil { |
| 413 | return x.OperStatus |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 414 | } |
| 415 | return InterfaceState_DORMANT |
| 416 | } |
| 417 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 418 | func (x *InterfaceState) GetLastChange() string { |
| 419 | if x != nil { |
| 420 | return x.LastChange |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 421 | } |
| 422 | return "" |
| 423 | } |
| 424 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 425 | func (x *InterfaceState) GetIfIndex() int32 { |
| 426 | if x != nil { |
| 427 | return x.IfIndex |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 428 | } |
| 429 | return 0 |
| 430 | } |
| 431 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 432 | func (x *InterfaceState) GetPhysAddress() string { |
| 433 | if x != nil { |
| 434 | return x.PhysAddress |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 435 | } |
| 436 | return "" |
| 437 | } |
| 438 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 439 | func (x *InterfaceState) GetHigherLayerIf() []string { |
| 440 | if x != nil { |
| 441 | return x.HigherLayerIf |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 442 | } |
| 443 | return nil |
| 444 | } |
| 445 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 446 | func (x *InterfaceState) GetLowerLayerIf() []string { |
| 447 | if x != nil { |
| 448 | return x.LowerLayerIf |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 449 | } |
| 450 | return nil |
| 451 | } |
| 452 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 453 | func (x *InterfaceState) GetSpeed() uint64 { |
| 454 | if x != nil { |
| 455 | return x.Speed |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 456 | } |
| 457 | return 0 |
| 458 | } |
| 459 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 460 | var File_voltha_protos_ietf_interfaces_proto protoreflect.FileDescriptor |
| 461 | |
| 462 | const file_voltha_protos_ietf_interfaces_proto_rawDesc = "" + |
| 463 | "\n" + |
| 464 | "#voltha_protos/ietf_interfaces.proto\x12\x04ietf\"D\n" + |
| 465 | "\n" + |
| 466 | "Interfaces\x126\n" + |
| 467 | "\x0eall_interfaces\x18\x01 \x03(\v2\x0f.ietf.InterfaceR\rallInterfaces\"\x92\x02\n" + |
| 468 | "\tInterface\x12\x12\n" + |
| 469 | "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + |
| 470 | "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x12\n" + |
| 471 | "\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" + |
| 472 | "\aenabled\x18\x04 \x01(\bR\aenabled\x12`\n" + |
| 473 | "\x18link_up_down_trap_enable\x18\x05 \x01(\x0e2(.ietf.Interface.LinkUpDownTrapEnableTypeR\x14linkUpDownTrapEnable\"?\n" + |
| 474 | "\x18LinkUpDownTrapEnableType\x12\x11\n" + |
| 475 | "\rTRAP_DISABLED\x10\x00\x12\x10\n" + |
| 476 | "\fTRAP_ENABLED\x10\x01\"L\n" + |
| 477 | "\x0fInterfacesState\x129\n" + |
| 478 | "\rall_interfacs\x18\x01 \x03(\v2\x14.ietf.InterfaceStateR\fallInterfacs\"\xc0\x04\n" + |
| 479 | "\x0eInterfaceState\x12\x12\n" + |
| 480 | "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + |
| 481 | "\x04type\x18\x02 \x01(\tR\x04type\x12G\n" + |
| 482 | "\fadmin_status\x18\x03 \x01(\x0e2$.ietf.InterfaceState.AdminStatusTypeR\vadminStatus\x12D\n" + |
| 483 | "\voper_status\x18\x04 \x01(\x0e2#.ietf.InterfaceState.OperStatusTypeR\n" + |
| 484 | "operStatus\x12\x1f\n" + |
| 485 | "\vlast_change\x18\x05 \x01(\tR\n" + |
| 486 | "lastChange\x12\x19\n" + |
| 487 | "\bif_index\x18\x06 \x01(\x05R\aifIndex\x12!\n" + |
| 488 | "\fphys_address\x18\a \x01(\tR\vphysAddress\x12&\n" + |
| 489 | "\x0fhigher_layer_if\x18\b \x03(\tR\rhigherLayerIf\x12$\n" + |
| 490 | "\x0elower_layer_if\x18\t \x03(\tR\flowerLayerIf\x12\x14\n" + |
| 491 | "\x05speed\x18\n" + |
| 492 | " \x01(\x04R\x05speed\"B\n" + |
| 493 | "\x0fAdminStatusType\x12\x0e\n" + |
| 494 | "\n" + |
| 495 | "ADMIN_DOWN\x10\x00\x12\x11\n" + |
| 496 | "\rADMIN_TESTING\x10\x01\x12\f\n" + |
| 497 | "\bADMIN_UP\x10\x02\"p\n" + |
| 498 | "\x0eOperStatusType\x12\v\n" + |
| 499 | "\aDORMANT\x10\x00\x12\x14\n" + |
| 500 | "\x10LOWER_LAYER_DOWN\x10\x01\x12\v\n" + |
| 501 | "\aUNKNOWN\x10\x02\x12\v\n" + |
| 502 | "\aTESTING\x10\x03\x12\x06\n" + |
| 503 | "\x02UP\x10\x04\x12\b\n" + |
| 504 | "\x04DOWN\x10\x05\x12\x0f\n" + |
| 505 | "\vNOT_PRESENT\x10\x06BH\n" + |
| 506 | "\x18org.opencord.voltha.ietfZ,github.com/opencord/voltha-protos/v5/go/ietfb\x06proto3" |
| 507 | |
| 508 | var ( |
| 509 | file_voltha_protos_ietf_interfaces_proto_rawDescOnce sync.Once |
| 510 | file_voltha_protos_ietf_interfaces_proto_rawDescData []byte |
| 511 | ) |
| 512 | |
| 513 | func file_voltha_protos_ietf_interfaces_proto_rawDescGZIP() []byte { |
| 514 | file_voltha_protos_ietf_interfaces_proto_rawDescOnce.Do(func() { |
| 515 | file_voltha_protos_ietf_interfaces_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_ietf_interfaces_proto_rawDesc), len(file_voltha_protos_ietf_interfaces_proto_rawDesc))) |
| 516 | }) |
| 517 | return file_voltha_protos_ietf_interfaces_proto_rawDescData |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 518 | } |
| 519 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 520 | var file_voltha_protos_ietf_interfaces_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| 521 | var file_voltha_protos_ietf_interfaces_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 522 | var file_voltha_protos_ietf_interfaces_proto_goTypes = []any{ |
| 523 | (Interface_LinkUpDownTrapEnableType)(0), // 0: ietf.Interface.LinkUpDownTrapEnableType |
| 524 | (InterfaceState_AdminStatusType)(0), // 1: ietf.InterfaceState.AdminStatusType |
| 525 | (InterfaceState_OperStatusType)(0), // 2: ietf.InterfaceState.OperStatusType |
| 526 | (*Interfaces)(nil), // 3: ietf.Interfaces |
| 527 | (*Interface)(nil), // 4: ietf.Interface |
| 528 | (*InterfacesState)(nil), // 5: ietf.InterfacesState |
| 529 | (*InterfaceState)(nil), // 6: ietf.InterfaceState |
| 530 | } |
| 531 | var file_voltha_protos_ietf_interfaces_proto_depIdxs = []int32{ |
| 532 | 4, // 0: ietf.Interfaces.all_interfaces:type_name -> ietf.Interface |
| 533 | 0, // 1: ietf.Interface.link_up_down_trap_enable:type_name -> ietf.Interface.LinkUpDownTrapEnableType |
| 534 | 6, // 2: ietf.InterfacesState.all_interfacs:type_name -> ietf.InterfaceState |
| 535 | 1, // 3: ietf.InterfaceState.admin_status:type_name -> ietf.InterfaceState.AdminStatusType |
| 536 | 2, // 4: ietf.InterfaceState.oper_status:type_name -> ietf.InterfaceState.OperStatusType |
| 537 | 5, // [5:5] is the sub-list for method output_type |
| 538 | 5, // [5:5] is the sub-list for method input_type |
| 539 | 5, // [5:5] is the sub-list for extension type_name |
| 540 | 5, // [5:5] is the sub-list for extension extendee |
| 541 | 0, // [0:5] is the sub-list for field type_name |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 542 | } |
| 543 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame] | 544 | func init() { file_voltha_protos_ietf_interfaces_proto_init() } |
| 545 | func file_voltha_protos_ietf_interfaces_proto_init() { |
| 546 | if File_voltha_protos_ietf_interfaces_proto != nil { |
| 547 | return |
| 548 | } |
| 549 | type x struct{} |
| 550 | out := protoimpl.TypeBuilder{ |
| 551 | File: protoimpl.DescBuilder{ |
| 552 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 553 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_ietf_interfaces_proto_rawDesc), len(file_voltha_protos_ietf_interfaces_proto_rawDesc)), |
| 554 | NumEnums: 3, |
| 555 | NumMessages: 4, |
| 556 | NumExtensions: 0, |
| 557 | NumServices: 0, |
| 558 | }, |
| 559 | GoTypes: file_voltha_protos_ietf_interfaces_proto_goTypes, |
| 560 | DependencyIndexes: file_voltha_protos_ietf_interfaces_proto_depIdxs, |
| 561 | EnumInfos: file_voltha_protos_ietf_interfaces_proto_enumTypes, |
| 562 | MessageInfos: file_voltha_protos_ietf_interfaces_proto_msgTypes, |
| 563 | }.Build() |
| 564 | File_voltha_protos_ietf_interfaces_proto = out.File |
| 565 | file_voltha_protos_ietf_interfaces_proto_goTypes = nil |
| 566 | file_voltha_protos_ietf_interfaces_proto_depIdxs = nil |
| William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 567 | } |