blob: 9c1f8e42ea62c2523c327ed1c740894f55250a58 [file] [log] [blame]
// Code generated by protoc-gen-go.
// source: adapter.proto
// DO NOT EDIT!
/*
Package voltha is a generated protocol buffer package.
It is generated from these files:
adapter.proto
It has these top-level messages:
AdapterConfig
Adapter
Adapters
*/
package adapter
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/any"
import voltha2 "github.com/opencord/voltha/netconf/translator/voltha/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 voltha2.LogLevel_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,enum=voltha.LogLevel_LogLevel" json:"log_level,omitempty"`
// Custom (vendor-specific) configuration attributes
AdditionalConfig *google_protobuf.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig" json:"additional_config,omitempty"`
}
func (m *AdapterConfig) Reset() { *m = AdapterConfig{} }
func (m *AdapterConfig) String() string { return proto.CompactTextString(m) }
func (*AdapterConfig) ProtoMessage() {}
func (*AdapterConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AdapterConfig) GetLogLevel() voltha2.LogLevel_LogLevel {
if m != nil {
return m.LogLevel
}
return voltha2.LogLevel_DEBUG
}
func (m *AdapterConfig) GetAdditionalConfig() *google_protobuf.Any {
if m != nil {
return m.AdditionalConfig
}
return nil
}
// Adapter (software plugin)
type Adapter struct {
// Unique name of adapter, matching the python packate name under
// voltha/adapters.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Vendor string `protobuf:"bytes,2,opt,name=vendor" json:"vendor,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
// Adapter configuration
Config *AdapterConfig `protobuf:"bytes,16,opt,name=config" json:"config,omitempty"`
// Custom descriptors and custom configuration
AdditionalDescription *google_protobuf.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription" json:"additional_description,omitempty"`
LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds" json:"logical_device_ids,omitempty"`
}
func (m *Adapter) Reset() { *m = Adapter{} }
func (m *Adapter) String() string { return proto.CompactTextString(m) }
func (*Adapter) ProtoMessage() {}
func (*Adapter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
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() *google_protobuf.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" json:"items,omitempty"`
}
func (m *Adapters) Reset() { *m = Adapters{} }
func (m *Adapters) String() string { return proto.CompactTextString(m) }
func (*Adapters) ProtoMessage() {}
func (*Adapters) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
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("adapter.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 340 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 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