[VOL-5567] update protos
Change-Id: I2237e104062831286129ece7cae6621fd971ecb9
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/go/ietf/ietf_interfaces.pb.go b/go/ietf/ietf_interfaces.pb.go
index 9a9c79c..e397c5c 100644
--- a/go/ietf/ietf_interfaces.pb.go
+++ b/go/ietf/ietf_interfaces.pb.go
@@ -1,24 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.36.11
+// protoc v4.25.8
// source: voltha_protos/ietf_interfaces.proto
package ietf
import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- math "math"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+ unsafe "unsafe"
)
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = proto.Marshal
-var _ = fmt.Errorf
-var _ = math.Inf
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the proto package it is being compiled against.
-// A compilation error at this line likely means your copy of the
-// proto package needs to be updated.
-const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
type Interface_LinkUpDownTrapEnableType int32
@@ -27,22 +28,43 @@
Interface_TRAP_ENABLED Interface_LinkUpDownTrapEnableType = 1
)
-var Interface_LinkUpDownTrapEnableType_name = map[int32]string{
- 0: "TRAP_DISABLED",
- 1: "TRAP_ENABLED",
-}
+// Enum value maps for Interface_LinkUpDownTrapEnableType.
+var (
+ Interface_LinkUpDownTrapEnableType_name = map[int32]string{
+ 0: "TRAP_DISABLED",
+ 1: "TRAP_ENABLED",
+ }
+ Interface_LinkUpDownTrapEnableType_value = map[string]int32{
+ "TRAP_DISABLED": 0,
+ "TRAP_ENABLED": 1,
+ }
+)
-var Interface_LinkUpDownTrapEnableType_value = map[string]int32{
- "TRAP_DISABLED": 0,
- "TRAP_ENABLED": 1,
+func (x Interface_LinkUpDownTrapEnableType) Enum() *Interface_LinkUpDownTrapEnableType {
+ p := new(Interface_LinkUpDownTrapEnableType)
+ *p = x
+ return p
}
func (x Interface_LinkUpDownTrapEnableType) String() string {
- return proto.EnumName(Interface_LinkUpDownTrapEnableType_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
+func (Interface_LinkUpDownTrapEnableType) Descriptor() protoreflect.EnumDescriptor {
+ return file_voltha_protos_ietf_interfaces_proto_enumTypes[0].Descriptor()
+}
+
+func (Interface_LinkUpDownTrapEnableType) Type() protoreflect.EnumType {
+ return &file_voltha_protos_ietf_interfaces_proto_enumTypes[0]
+}
+
+func (x Interface_LinkUpDownTrapEnableType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use Interface_LinkUpDownTrapEnableType.Descriptor instead.
func (Interface_LinkUpDownTrapEnableType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{1, 0}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{1, 0}
}
type InterfaceState_AdminStatusType int32
@@ -53,24 +75,45 @@
InterfaceState_ADMIN_UP InterfaceState_AdminStatusType = 2
)
-var InterfaceState_AdminStatusType_name = map[int32]string{
- 0: "ADMIN_DOWN",
- 1: "ADMIN_TESTING",
- 2: "ADMIN_UP",
-}
+// Enum value maps for InterfaceState_AdminStatusType.
+var (
+ InterfaceState_AdminStatusType_name = map[int32]string{
+ 0: "ADMIN_DOWN",
+ 1: "ADMIN_TESTING",
+ 2: "ADMIN_UP",
+ }
+ InterfaceState_AdminStatusType_value = map[string]int32{
+ "ADMIN_DOWN": 0,
+ "ADMIN_TESTING": 1,
+ "ADMIN_UP": 2,
+ }
+)
-var InterfaceState_AdminStatusType_value = map[string]int32{
- "ADMIN_DOWN": 0,
- "ADMIN_TESTING": 1,
- "ADMIN_UP": 2,
+func (x InterfaceState_AdminStatusType) Enum() *InterfaceState_AdminStatusType {
+ p := new(InterfaceState_AdminStatusType)
+ *p = x
+ return p
}
func (x InterfaceState_AdminStatusType) String() string {
- return proto.EnumName(InterfaceState_AdminStatusType_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
+func (InterfaceState_AdminStatusType) Descriptor() protoreflect.EnumDescriptor {
+ return file_voltha_protos_ietf_interfaces_proto_enumTypes[1].Descriptor()
+}
+
+func (InterfaceState_AdminStatusType) Type() protoreflect.EnumType {
+ return &file_voltha_protos_ietf_interfaces_proto_enumTypes[1]
+}
+
+func (x InterfaceState_AdminStatusType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use InterfaceState_AdminStatusType.Descriptor instead.
func (InterfaceState_AdminStatusType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{3, 0}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3, 0}
}
type InterfaceState_OperStatusType int32
@@ -85,348 +128,440 @@
InterfaceState_NOT_PRESENT InterfaceState_OperStatusType = 6
)
-var InterfaceState_OperStatusType_name = map[int32]string{
- 0: "DORMANT",
- 1: "LOWER_LAYER_DOWN",
- 2: "UNKNOWN",
- 3: "TESTING",
- 4: "UP",
- 5: "DOWN",
- 6: "NOT_PRESENT",
-}
+// Enum value maps for InterfaceState_OperStatusType.
+var (
+ InterfaceState_OperStatusType_name = map[int32]string{
+ 0: "DORMANT",
+ 1: "LOWER_LAYER_DOWN",
+ 2: "UNKNOWN",
+ 3: "TESTING",
+ 4: "UP",
+ 5: "DOWN",
+ 6: "NOT_PRESENT",
+ }
+ InterfaceState_OperStatusType_value = map[string]int32{
+ "DORMANT": 0,
+ "LOWER_LAYER_DOWN": 1,
+ "UNKNOWN": 2,
+ "TESTING": 3,
+ "UP": 4,
+ "DOWN": 5,
+ "NOT_PRESENT": 6,
+ }
+)
-var InterfaceState_OperStatusType_value = map[string]int32{
- "DORMANT": 0,
- "LOWER_LAYER_DOWN": 1,
- "UNKNOWN": 2,
- "TESTING": 3,
- "UP": 4,
- "DOWN": 5,
- "NOT_PRESENT": 6,
+func (x InterfaceState_OperStatusType) Enum() *InterfaceState_OperStatusType {
+ p := new(InterfaceState_OperStatusType)
+ *p = x
+ return p
}
func (x InterfaceState_OperStatusType) String() string {
- return proto.EnumName(InterfaceState_OperStatusType_name, int32(x))
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
+func (InterfaceState_OperStatusType) Descriptor() protoreflect.EnumDescriptor {
+ return file_voltha_protos_ietf_interfaces_proto_enumTypes[2].Descriptor()
+}
+
+func (InterfaceState_OperStatusType) Type() protoreflect.EnumType {
+ return &file_voltha_protos_ietf_interfaces_proto_enumTypes[2]
+}
+
+func (x InterfaceState_OperStatusType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use InterfaceState_OperStatusType.Descriptor instead.
func (InterfaceState_OperStatusType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{3, 1}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3, 1}
}
type Interfaces struct {
- AllInterfaces []*Interface `protobuf:"bytes,1,rep,name=all_interfaces,json=allInterfaces,proto3" json:"all_interfaces,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState `protogen:"open.v1"`
+ AllInterfaces []*Interface `protobuf:"bytes,1,rep,name=all_interfaces,json=allInterfaces,proto3" json:"all_interfaces,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
-func (m *Interfaces) Reset() { *m = Interfaces{} }
-func (m *Interfaces) String() string { return proto.CompactTextString(m) }
-func (*Interfaces) ProtoMessage() {}
+func (x *Interfaces) Reset() {
+ *x = Interfaces{}
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *Interfaces) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Interfaces) ProtoMessage() {}
+
+func (x *Interfaces) ProtoReflect() protoreflect.Message {
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[0]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Interfaces.ProtoReflect.Descriptor instead.
func (*Interfaces) Descriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{0}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{0}
}
-func (m *Interfaces) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Interfaces.Unmarshal(m, b)
-}
-func (m *Interfaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Interfaces.Marshal(b, m, deterministic)
-}
-func (m *Interfaces) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Interfaces.Merge(m, src)
-}
-func (m *Interfaces) XXX_Size() int {
- return xxx_messageInfo_Interfaces.Size(m)
-}
-func (m *Interfaces) XXX_DiscardUnknown() {
- xxx_messageInfo_Interfaces.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_Interfaces proto.InternalMessageInfo
-
-func (m *Interfaces) GetAllInterfaces() []*Interface {
- if m != nil {
- return m.AllInterfaces
+func (x *Interfaces) GetAllInterfaces() []*Interface {
+ if x != nil {
+ return x.AllInterfaces
}
return nil
}
type Interface struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
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"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
-func (m *Interface) Reset() { *m = Interface{} }
-func (m *Interface) String() string { return proto.CompactTextString(m) }
-func (*Interface) ProtoMessage() {}
+func (x *Interface) Reset() {
+ *x = Interface{}
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *Interface) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Interface) ProtoMessage() {}
+
+func (x *Interface) ProtoReflect() protoreflect.Message {
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[1]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Interface.ProtoReflect.Descriptor instead.
func (*Interface) Descriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{1}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{1}
}
-func (m *Interface) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Interface.Unmarshal(m, b)
-}
-func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Interface.Marshal(b, m, deterministic)
-}
-func (m *Interface) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Interface.Merge(m, src)
-}
-func (m *Interface) XXX_Size() int {
- return xxx_messageInfo_Interface.Size(m)
-}
-func (m *Interface) XXX_DiscardUnknown() {
- xxx_messageInfo_Interface.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_Interface proto.InternalMessageInfo
-
-func (m *Interface) GetName() string {
- if m != nil {
- return m.Name
+func (x *Interface) GetName() string {
+ if x != nil {
+ return x.Name
}
return ""
}
-func (m *Interface) GetDescription() string {
- if m != nil {
- return m.Description
+func (x *Interface) GetDescription() string {
+ if x != nil {
+ return x.Description
}
return ""
}
-func (m *Interface) GetType() string {
- if m != nil {
- return m.Type
+func (x *Interface) GetType() string {
+ if x != nil {
+ return x.Type
}
return ""
}
-func (m *Interface) GetEnabled() bool {
- if m != nil {
- return m.Enabled
+func (x *Interface) GetEnabled() bool {
+ if x != nil {
+ return x.Enabled
}
return false
}
-func (m *Interface) GetLinkUpDownTrapEnable() Interface_LinkUpDownTrapEnableType {
- if m != nil {
- return m.LinkUpDownTrapEnable
+func (x *Interface) GetLinkUpDownTrapEnable() Interface_LinkUpDownTrapEnableType {
+ if x != nil {
+ return x.LinkUpDownTrapEnable
}
return Interface_TRAP_DISABLED
}
type InterfacesState struct {
- AllInterfacs []*InterfaceState `protobuf:"bytes,1,rep,name=all_interfacs,json=allInterfacs,proto3" json:"all_interfacs,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState `protogen:"open.v1"`
+ AllInterfacs []*InterfaceState `protobuf:"bytes,1,rep,name=all_interfacs,json=allInterfacs,proto3" json:"all_interfacs,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
-func (m *InterfacesState) Reset() { *m = InterfacesState{} }
-func (m *InterfacesState) String() string { return proto.CompactTextString(m) }
-func (*InterfacesState) ProtoMessage() {}
+func (x *InterfacesState) Reset() {
+ *x = InterfacesState{}
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *InterfacesState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*InterfacesState) ProtoMessage() {}
+
+func (x *InterfacesState) ProtoReflect() protoreflect.Message {
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[2]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use InterfacesState.ProtoReflect.Descriptor instead.
func (*InterfacesState) Descriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{2}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{2}
}
-func (m *InterfacesState) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_InterfacesState.Unmarshal(m, b)
-}
-func (m *InterfacesState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_InterfacesState.Marshal(b, m, deterministic)
-}
-func (m *InterfacesState) XXX_Merge(src proto.Message) {
- xxx_messageInfo_InterfacesState.Merge(m, src)
-}
-func (m *InterfacesState) XXX_Size() int {
- return xxx_messageInfo_InterfacesState.Size(m)
-}
-func (m *InterfacesState) XXX_DiscardUnknown() {
- xxx_messageInfo_InterfacesState.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_InterfacesState proto.InternalMessageInfo
-
-func (m *InterfacesState) GetAllInterfacs() []*InterfaceState {
- if m != nil {
- return m.AllInterfacs
+func (x *InterfacesState) GetAllInterfacs() []*InterfaceState {
+ if x != nil {
+ return x.AllInterfacs
}
return nil
}
type InterfaceState struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
- AdminStatus InterfaceState_AdminStatusType `protobuf:"varint,3,opt,name=admin_status,json=adminStatus,proto3,enum=ietf.InterfaceState_AdminStatusType" json:"admin_status,omitempty"`
- OperStatus InterfaceState_OperStatusType `protobuf:"varint,4,opt,name=oper_status,json=operStatus,proto3,enum=ietf.InterfaceState_OperStatusType" json:"oper_status,omitempty"`
- LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
- IfIndex int32 `protobuf:"varint,6,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"`
- PhysAddress string `protobuf:"bytes,7,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
- HigherLayerIf []string `protobuf:"bytes,8,rep,name=higher_layer_if,json=higherLayerIf,proto3" json:"higher_layer_if,omitempty"`
- LowerLayerIf []string `protobuf:"bytes,9,rep,name=lower_layer_if,json=lowerLayerIf,proto3" json:"lower_layer_if,omitempty"`
- Speed uint64 `protobuf:"varint,10,opt,name=speed,proto3" json:"speed,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
+ AdminStatus InterfaceState_AdminStatusType `protobuf:"varint,3,opt,name=admin_status,json=adminStatus,proto3,enum=ietf.InterfaceState_AdminStatusType" json:"admin_status,omitempty"`
+ OperStatus InterfaceState_OperStatusType `protobuf:"varint,4,opt,name=oper_status,json=operStatus,proto3,enum=ietf.InterfaceState_OperStatusType" json:"oper_status,omitempty"`
+ LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
+ IfIndex int32 `protobuf:"varint,6,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"`
+ PhysAddress string `protobuf:"bytes,7,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
+ HigherLayerIf []string `protobuf:"bytes,8,rep,name=higher_layer_if,json=higherLayerIf,proto3" json:"higher_layer_if,omitempty"`
+ LowerLayerIf []string `protobuf:"bytes,9,rep,name=lower_layer_if,json=lowerLayerIf,proto3" json:"lower_layer_if,omitempty"`
+ Speed uint64 `protobuf:"varint,10,opt,name=speed,proto3" json:"speed,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
-func (m *InterfaceState) Reset() { *m = InterfaceState{} }
-func (m *InterfaceState) String() string { return proto.CompactTextString(m) }
-func (*InterfaceState) ProtoMessage() {}
+func (x *InterfaceState) Reset() {
+ *x = InterfaceState{}
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *InterfaceState) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*InterfaceState) ProtoMessage() {}
+
+func (x *InterfaceState) ProtoReflect() protoreflect.Message {
+ mi := &file_voltha_protos_ietf_interfaces_proto_msgTypes[3]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use InterfaceState.ProtoReflect.Descriptor instead.
func (*InterfaceState) Descriptor() ([]byte, []int) {
- return fileDescriptor_5a91e49a45099096, []int{3}
+ return file_voltha_protos_ietf_interfaces_proto_rawDescGZIP(), []int{3}
}
-func (m *InterfaceState) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_InterfaceState.Unmarshal(m, b)
-}
-func (m *InterfaceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_InterfaceState.Marshal(b, m, deterministic)
-}
-func (m *InterfaceState) XXX_Merge(src proto.Message) {
- xxx_messageInfo_InterfaceState.Merge(m, src)
-}
-func (m *InterfaceState) XXX_Size() int {
- return xxx_messageInfo_InterfaceState.Size(m)
-}
-func (m *InterfaceState) XXX_DiscardUnknown() {
- xxx_messageInfo_InterfaceState.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_InterfaceState proto.InternalMessageInfo
-
-func (m *InterfaceState) GetName() string {
- if m != nil {
- return m.Name
+func (x *InterfaceState) GetName() string {
+ if x != nil {
+ return x.Name
}
return ""
}
-func (m *InterfaceState) GetType() string {
- if m != nil {
- return m.Type
+func (x *InterfaceState) GetType() string {
+ if x != nil {
+ return x.Type
}
return ""
}
-func (m *InterfaceState) GetAdminStatus() InterfaceState_AdminStatusType {
- if m != nil {
- return m.AdminStatus
+func (x *InterfaceState) GetAdminStatus() InterfaceState_AdminStatusType {
+ if x != nil {
+ return x.AdminStatus
}
return InterfaceState_ADMIN_DOWN
}
-func (m *InterfaceState) GetOperStatus() InterfaceState_OperStatusType {
- if m != nil {
- return m.OperStatus
+func (x *InterfaceState) GetOperStatus() InterfaceState_OperStatusType {
+ if x != nil {
+ return x.OperStatus
}
return InterfaceState_DORMANT
}
-func (m *InterfaceState) GetLastChange() string {
- if m != nil {
- return m.LastChange
+func (x *InterfaceState) GetLastChange() string {
+ if x != nil {
+ return x.LastChange
}
return ""
}
-func (m *InterfaceState) GetIfIndex() int32 {
- if m != nil {
- return m.IfIndex
+func (x *InterfaceState) GetIfIndex() int32 {
+ if x != nil {
+ return x.IfIndex
}
return 0
}
-func (m *InterfaceState) GetPhysAddress() string {
- if m != nil {
- return m.PhysAddress
+func (x *InterfaceState) GetPhysAddress() string {
+ if x != nil {
+ return x.PhysAddress
}
return ""
}
-func (m *InterfaceState) GetHigherLayerIf() []string {
- if m != nil {
- return m.HigherLayerIf
+func (x *InterfaceState) GetHigherLayerIf() []string {
+ if x != nil {
+ return x.HigherLayerIf
}
return nil
}
-func (m *InterfaceState) GetLowerLayerIf() []string {
- if m != nil {
- return m.LowerLayerIf
+func (x *InterfaceState) GetLowerLayerIf() []string {
+ if x != nil {
+ return x.LowerLayerIf
}
return nil
}
-func (m *InterfaceState) GetSpeed() uint64 {
- if m != nil {
- return m.Speed
+func (x *InterfaceState) GetSpeed() uint64 {
+ if x != nil {
+ return x.Speed
}
return 0
}
-func init() {
- proto.RegisterEnum("ietf.Interface_LinkUpDownTrapEnableType", Interface_LinkUpDownTrapEnableType_name, Interface_LinkUpDownTrapEnableType_value)
- proto.RegisterEnum("ietf.InterfaceState_AdminStatusType", InterfaceState_AdminStatusType_name, InterfaceState_AdminStatusType_value)
- proto.RegisterEnum("ietf.InterfaceState_OperStatusType", InterfaceState_OperStatusType_name, InterfaceState_OperStatusType_value)
- proto.RegisterType((*Interfaces)(nil), "ietf.Interfaces")
- proto.RegisterType((*Interface)(nil), "ietf.Interface")
- proto.RegisterType((*InterfacesState)(nil), "ietf.InterfacesState")
- proto.RegisterType((*InterfaceState)(nil), "ietf.InterfaceState")
+var File_voltha_protos_ietf_interfaces_proto protoreflect.FileDescriptor
+
+const file_voltha_protos_ietf_interfaces_proto_rawDesc = "" +
+ "\n" +
+ "#voltha_protos/ietf_interfaces.proto\x12\x04ietf\"D\n" +
+ "\n" +
+ "Interfaces\x126\n" +
+ "\x0eall_interfaces\x18\x01 \x03(\v2\x0f.ietf.InterfaceR\rallInterfaces\"\x92\x02\n" +
+ "\tInterface\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
+ "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x12\n" +
+ "\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" +
+ "\aenabled\x18\x04 \x01(\bR\aenabled\x12`\n" +
+ "\x18link_up_down_trap_enable\x18\x05 \x01(\x0e2(.ietf.Interface.LinkUpDownTrapEnableTypeR\x14linkUpDownTrapEnable\"?\n" +
+ "\x18LinkUpDownTrapEnableType\x12\x11\n" +
+ "\rTRAP_DISABLED\x10\x00\x12\x10\n" +
+ "\fTRAP_ENABLED\x10\x01\"L\n" +
+ "\x0fInterfacesState\x129\n" +
+ "\rall_interfacs\x18\x01 \x03(\v2\x14.ietf.InterfaceStateR\fallInterfacs\"\xc0\x04\n" +
+ "\x0eInterfaceState\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
+ "\x04type\x18\x02 \x01(\tR\x04type\x12G\n" +
+ "\fadmin_status\x18\x03 \x01(\x0e2$.ietf.InterfaceState.AdminStatusTypeR\vadminStatus\x12D\n" +
+ "\voper_status\x18\x04 \x01(\x0e2#.ietf.InterfaceState.OperStatusTypeR\n" +
+ "operStatus\x12\x1f\n" +
+ "\vlast_change\x18\x05 \x01(\tR\n" +
+ "lastChange\x12\x19\n" +
+ "\bif_index\x18\x06 \x01(\x05R\aifIndex\x12!\n" +
+ "\fphys_address\x18\a \x01(\tR\vphysAddress\x12&\n" +
+ "\x0fhigher_layer_if\x18\b \x03(\tR\rhigherLayerIf\x12$\n" +
+ "\x0elower_layer_if\x18\t \x03(\tR\flowerLayerIf\x12\x14\n" +
+ "\x05speed\x18\n" +
+ " \x01(\x04R\x05speed\"B\n" +
+ "\x0fAdminStatusType\x12\x0e\n" +
+ "\n" +
+ "ADMIN_DOWN\x10\x00\x12\x11\n" +
+ "\rADMIN_TESTING\x10\x01\x12\f\n" +
+ "\bADMIN_UP\x10\x02\"p\n" +
+ "\x0eOperStatusType\x12\v\n" +
+ "\aDORMANT\x10\x00\x12\x14\n" +
+ "\x10LOWER_LAYER_DOWN\x10\x01\x12\v\n" +
+ "\aUNKNOWN\x10\x02\x12\v\n" +
+ "\aTESTING\x10\x03\x12\x06\n" +
+ "\x02UP\x10\x04\x12\b\n" +
+ "\x04DOWN\x10\x05\x12\x0f\n" +
+ "\vNOT_PRESENT\x10\x06BH\n" +
+ "\x18org.opencord.voltha.ietfZ,github.com/opencord/voltha-protos/v5/go/ietfb\x06proto3"
+
+var (
+ file_voltha_protos_ietf_interfaces_proto_rawDescOnce sync.Once
+ file_voltha_protos_ietf_interfaces_proto_rawDescData []byte
+)
+
+func file_voltha_protos_ietf_interfaces_proto_rawDescGZIP() []byte {
+ file_voltha_protos_ietf_interfaces_proto_rawDescOnce.Do(func() {
+ 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)))
+ })
+ return file_voltha_protos_ietf_interfaces_proto_rawDescData
}
-func init() {
- proto.RegisterFile("voltha_protos/ietf_interfaces.proto", fileDescriptor_5a91e49a45099096)
+var file_voltha_protos_ietf_interfaces_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
+var file_voltha_protos_ietf_interfaces_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
+var file_voltha_protos_ietf_interfaces_proto_goTypes = []any{
+ (Interface_LinkUpDownTrapEnableType)(0), // 0: ietf.Interface.LinkUpDownTrapEnableType
+ (InterfaceState_AdminStatusType)(0), // 1: ietf.InterfaceState.AdminStatusType
+ (InterfaceState_OperStatusType)(0), // 2: ietf.InterfaceState.OperStatusType
+ (*Interfaces)(nil), // 3: ietf.Interfaces
+ (*Interface)(nil), // 4: ietf.Interface
+ (*InterfacesState)(nil), // 5: ietf.InterfacesState
+ (*InterfaceState)(nil), // 6: ietf.InterfaceState
+}
+var file_voltha_protos_ietf_interfaces_proto_depIdxs = []int32{
+ 4, // 0: ietf.Interfaces.all_interfaces:type_name -> ietf.Interface
+ 0, // 1: ietf.Interface.link_up_down_trap_enable:type_name -> ietf.Interface.LinkUpDownTrapEnableType
+ 6, // 2: ietf.InterfacesState.all_interfacs:type_name -> ietf.InterfaceState
+ 1, // 3: ietf.InterfaceState.admin_status:type_name -> ietf.InterfaceState.AdminStatusType
+ 2, // 4: ietf.InterfaceState.oper_status:type_name -> ietf.InterfaceState.OperStatusType
+ 5, // [5:5] is the sub-list for method output_type
+ 5, // [5:5] is the sub-list for method input_type
+ 5, // [5:5] is the sub-list for extension type_name
+ 5, // [5:5] is the sub-list for extension extendee
+ 0, // [0:5] is the sub-list for field type_name
}
-var fileDescriptor_5a91e49a45099096 = []byte{
- // 631 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x94, 0x5d, 0x6f, 0x9b, 0x3a,
- 0x18, 0xc7, 0x4b, 0x42, 0xde, 0x9e, 0xbc, 0x71, 0xac, 0x5c, 0x70, 0xae, 0x0e, 0x27, 0xad, 0x26,
- 0x2e, 0x36, 0x22, 0x75, 0xda, 0xa4, 0x5d, 0x4d, 0xe9, 0x40, 0x5d, 0xb4, 0x94, 0x44, 0x0e, 0x51,
- 0xb5, 0xdd, 0x78, 0x6e, 0x70, 0x12, 0x54, 0x8a, 0x2d, 0xa0, 0xed, 0xf2, 0x35, 0xf6, 0x89, 0xf6,
- 0xd1, 0x26, 0x9b, 0x25, 0xa5, 0x55, 0x76, 0xc7, 0xff, 0xe7, 0x9f, 0x1f, 0xd0, 0x1f, 0xcb, 0x70,
- 0xfa, 0xc0, 0xe3, 0x7c, 0x4b, 0x89, 0x48, 0x79, 0xce, 0xb3, 0x51, 0xc4, 0xf2, 0x35, 0x89, 0x92,
- 0x9c, 0xa5, 0x6b, 0xba, 0x62, 0x99, 0xa3, 0x30, 0xd2, 0x25, 0x1e, 0xba, 0x00, 0x93, 0xc3, 0x0a,
- 0x7a, 0x0f, 0x3d, 0x1a, 0xc7, 0x25, 0xd7, 0xd4, 0xac, 0xaa, 0xdd, 0x3e, 0xef, 0x3b, 0x52, 0x76,
- 0x0e, 0x26, 0xee, 0xd2, 0x38, 0x7e, 0xda, 0x37, 0xfc, 0x59, 0x81, 0xd6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, 0xe7, 0x46, 0x65, 0x28, 0xa0, 0xf7, 0xbc, 0x24, 0xd4, 0x86, 0x86,
- 0x3b, 0xc3, 0x57, 0x63, 0x3f, 0x30, 0x4e, 0xd0, 0x00, 0x8c, 0xe9, 0xec, 0xda, 0xc3, 0x64, 0x3a,
- 0xfe, 0xea, 0xe1, 0x62, 0xaa, 0x26, 0x95, 0xa5, 0xff, 0xc5, 0x97, 0xa1, 0x22, 0xc3, 0x7e, 0x78,
- 0x15, 0xd5, 0xa1, 0xb2, 0x9c, 0x1b, 0x3a, 0x6a, 0x82, 0xae, 0xdc, 0x1a, 0xea, 0x43, 0xdb, 0x9f,
- 0x05, 0x64, 0x8e, 0xbd, 0x85, 0xe7, 0x07, 0x46, 0xfd, 0xe2, 0x33, 0x98, 0x3c, 0xdd, 0x38, 0x5c,
- 0xb0, 0x64, 0xc5, 0xd3, 0xd0, 0x29, 0x6e, 0x09, 0xf5, 0xfb, 0xbe, 0xbd, 0xde, 0x44, 0xf9, 0xf6,
- 0xfe, 0xc6, 0x59, 0xf1, 0xbb, 0xd1, 0x5e, 0x18, 0x15, 0xc2, 0x9b, 0x3f, 0xd7, 0xc8, 0xc3, 0xbb,
- 0xd1, 0x86, 0xab, 0xcb, 0xe4, 0xa6, 0xae, 0xd0, 0xdb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa4,
- 0x35, 0xed, 0x7c, 0x69, 0x04, 0x00, 0x00,
+func init() { file_voltha_protos_ietf_interfaces_proto_init() }
+func file_voltha_protos_ietf_interfaces_proto_init() {
+ if File_voltha_protos_ietf_interfaces_proto != nil {
+ return
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_ietf_interfaces_proto_rawDesc), len(file_voltha_protos_ietf_interfaces_proto_rawDesc)),
+ NumEnums: 3,
+ NumMessages: 4,
+ NumExtensions: 0,
+ NumServices: 0,
+ },
+ GoTypes: file_voltha_protos_ietf_interfaces_proto_goTypes,
+ DependencyIndexes: file_voltha_protos_ietf_interfaces_proto_depIdxs,
+ EnumInfos: file_voltha_protos_ietf_interfaces_proto_enumTypes,
+ MessageInfos: file_voltha_protos_ietf_interfaces_proto_msgTypes,
+ }.Build()
+ File_voltha_protos_ietf_interfaces_proto = out.File
+ file_voltha_protos_ietf_interfaces_proto_goTypes = nil
+ file_voltha_protos_ietf_interfaces_proto_depIdxs = nil
}