| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/adapter.proto |
| |
| package voltha // import "github.com/opencord/voltha-protos/go/voltha" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import any "github.com/golang/protobuf/ptypes/any" |
| import common "github.com/opencord/voltha-protos/go/common" |
| |
| // 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.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type AdapterConfig struct { |
| // Common adapter config attributes here |
| LogLevel common.LogLevel_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=voltha.LogLevel_LogLevel" json:"log_level,omitempty"` |
| // Custom (vendor-specific) configuration attributes |
| AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AdapterConfig) Reset() { *m = AdapterConfig{} } |
| func (m *AdapterConfig) String() string { return proto.CompactTextString(m) } |
| func (*AdapterConfig) ProtoMessage() {} |
| func (*AdapterConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_adapter_afe3683afb102200, []int{0} |
| } |
| func (m *AdapterConfig) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AdapterConfig.Unmarshal(m, b) |
| } |
| func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic) |
| } |
| func (dst *AdapterConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AdapterConfig.Merge(dst, src) |
| } |
| func (m *AdapterConfig) XXX_Size() int { |
| return xxx_messageInfo_AdapterConfig.Size(m) |
| } |
| func (m *AdapterConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_AdapterConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo |
| |
| func (m *AdapterConfig) GetLogLevel() common.LogLevel_LogLevel { |
| if m != nil { |
| return m.LogLevel |
| } |
| return common.LogLevel_DEBUG |
| } |
| |
| func (m *AdapterConfig) GetAdditionalConfig() *any.Any { |
| if m != nil { |
| return m.AdditionalConfig |
| } |
| return nil |
| } |
| |
| // Adapter (software plugin) |
| type Adapter struct { |
| // Unique name of adapter, matching the python package name under |
| // voltha/adapters. |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` |
| Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` |
| // Adapter configuration |
| Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"` |
| // Custom descriptors and custom configuration |
| AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"` |
| LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Adapter) Reset() { *m = Adapter{} } |
| func (m *Adapter) String() string { return proto.CompactTextString(m) } |
| func (*Adapter) ProtoMessage() {} |
| func (*Adapter) Descriptor() ([]byte, []int) { |
| return fileDescriptor_adapter_afe3683afb102200, []int{1} |
| } |
| func (m *Adapter) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Adapter.Unmarshal(m, b) |
| } |
| func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Adapter.Marshal(b, m, deterministic) |
| } |
| func (dst *Adapter) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Adapter.Merge(dst, src) |
| } |
| func (m *Adapter) XXX_Size() int { |
| return xxx_messageInfo_Adapter.Size(m) |
| } |
| func (m *Adapter) XXX_DiscardUnknown() { |
| xxx_messageInfo_Adapter.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Adapter proto.InternalMessageInfo |
| |
| func (m *Adapter) GetId() string { |
| if m != nil { |
| return m.Id |
| } |
| return "" |
| } |
| |
| func (m *Adapter) GetVendor() string { |
| if m != nil { |
| return m.Vendor |
| } |
| return "" |
| } |
| |
| func (m *Adapter) GetVersion() string { |
| if m != nil { |
| return m.Version |
| } |
| return "" |
| } |
| |
| func (m *Adapter) GetConfig() *AdapterConfig { |
| if m != nil { |
| return m.Config |
| } |
| return nil |
| } |
| |
| func (m *Adapter) GetAdditionalDescription() *any.Any { |
| if m != nil { |
| return m.AdditionalDescription |
| } |
| return nil |
| } |
| |
| func (m *Adapter) GetLogicalDeviceIds() []string { |
| if m != nil { |
| return m.LogicalDeviceIds |
| } |
| return nil |
| } |
| |
| type Adapters struct { |
| Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Adapters) Reset() { *m = Adapters{} } |
| func (m *Adapters) String() string { return proto.CompactTextString(m) } |
| func (*Adapters) ProtoMessage() {} |
| func (*Adapters) Descriptor() ([]byte, []int) { |
| return fileDescriptor_adapter_afe3683afb102200, []int{2} |
| } |
| func (m *Adapters) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Adapters.Unmarshal(m, b) |
| } |
| func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Adapters.Marshal(b, m, deterministic) |
| } |
| func (dst *Adapters) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Adapters.Merge(dst, src) |
| } |
| func (m *Adapters) XXX_Size() int { |
| return xxx_messageInfo_Adapters.Size(m) |
| } |
| func (m *Adapters) XXX_DiscardUnknown() { |
| xxx_messageInfo_Adapters.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Adapters proto.InternalMessageInfo |
| |
| func (m *Adapters) GetItems() []*Adapter { |
| if m != nil { |
| return m.Items |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig") |
| proto.RegisterType((*Adapter)(nil), "voltha.Adapter") |
| proto.RegisterType((*Adapters)(nil), "voltha.Adapters") |
| } |
| |
| func init() { |
| proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_adapter_afe3683afb102200) |
| } |
| |
| var fileDescriptor_adapter_afe3683afb102200 = []byte{ |
| // 378 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6a, 0xe2, 0x40, |
| 0x1c, 0xc6, 0x49, 0x5c, 0xa3, 0x8e, 0xec, 0xae, 0x3b, 0xac, 0x4b, 0x74, 0x91, 0x0d, 0xc2, 0x42, |
| 0x60, 0xd7, 0x84, 0x5a, 0xe8, 0xb9, 0x5a, 0x2f, 0x05, 0x4f, 0x39, 0xf6, 0x12, 0x62, 0x66, 0x1c, |
| 0x07, 0x26, 0xf3, 0x0f, 0x49, 0x0c, 0xf8, 0x0a, 0xbd, 0xf5, 0xc1, 0xfa, 0x1e, 0x7d, 0x82, 0x9e, |
| 0x8b, 0x33, 0x93, 0xaa, 0x3d, 0xf4, 0x36, 0xf3, 0xfd, 0xfe, 0xdf, 0x7c, 0xdf, 0x3f, 0x04, 0xfd, |
| 0xae, 0x41, 0x54, 0xbb, 0x24, 0xce, 0x0b, 0xa8, 0xa0, 0x0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