blob: 93bf21b7bfc798ed19178d06e771bdc4be507642 [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/adapter.proto
3
4package voltha
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 any "github.com/golang/protobuf/ptypes/any"
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -080010 common "github.com/opencord/voltha-protos/v3/go/common"
Don Newton98fd8812019-09-23 15:15:02 -040011 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25type AdapterConfig struct {
26 // Common adapter config attributes here
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -080027 LogLevel common.LogLevel_Types `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=common.LogLevel_Types" json:"log_level,omitempty"`
Don Newton98fd8812019-09-23 15:15:02 -040028 // Custom (vendor-specific) configuration attributes
29 AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"`
30 XXX_NoUnkeyedLiteral struct{} `json:"-"`
31 XXX_unrecognized []byte `json:"-"`
32 XXX_sizecache int32 `json:"-"`
33}
34
35func (m *AdapterConfig) Reset() { *m = AdapterConfig{} }
36func (m *AdapterConfig) String() string { return proto.CompactTextString(m) }
37func (*AdapterConfig) ProtoMessage() {}
38func (*AdapterConfig) Descriptor() ([]byte, []int) {
39 return fileDescriptor_7e998ce153307274, []int{0}
40}
41
42func (m *AdapterConfig) XXX_Unmarshal(b []byte) error {
43 return xxx_messageInfo_AdapterConfig.Unmarshal(m, b)
44}
45func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
46 return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic)
47}
48func (m *AdapterConfig) XXX_Merge(src proto.Message) {
49 xxx_messageInfo_AdapterConfig.Merge(m, src)
50}
51func (m *AdapterConfig) XXX_Size() int {
52 return xxx_messageInfo_AdapterConfig.Size(m)
53}
54func (m *AdapterConfig) XXX_DiscardUnknown() {
55 xxx_messageInfo_AdapterConfig.DiscardUnknown(m)
56}
57
58var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo
59
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -080060func (m *AdapterConfig) GetLogLevel() common.LogLevel_Types {
Don Newton98fd8812019-09-23 15:15:02 -040061 if m != nil {
62 return m.LogLevel
63 }
64 return common.LogLevel_DEBUG
65}
66
67func (m *AdapterConfig) GetAdditionalConfig() *any.Any {
68 if m != nil {
69 return m.AdditionalConfig
70 }
71 return nil
72}
73
74// Adapter (software plugin)
75type Adapter struct {
76 // Unique name of adapter, matching the python package name under
77 // voltha/adapters.
78 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
79 Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
80 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
81 // Adapter configuration
82 Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"`
83 // Custom descriptors and custom configuration
84 AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"`
85 LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"`
86 XXX_NoUnkeyedLiteral struct{} `json:"-"`
87 XXX_unrecognized []byte `json:"-"`
88 XXX_sizecache int32 `json:"-"`
89}
90
91func (m *Adapter) Reset() { *m = Adapter{} }
92func (m *Adapter) String() string { return proto.CompactTextString(m) }
93func (*Adapter) ProtoMessage() {}
94func (*Adapter) Descriptor() ([]byte, []int) {
95 return fileDescriptor_7e998ce153307274, []int{1}
96}
97
98func (m *Adapter) XXX_Unmarshal(b []byte) error {
99 return xxx_messageInfo_Adapter.Unmarshal(m, b)
100}
101func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
102 return xxx_messageInfo_Adapter.Marshal(b, m, deterministic)
103}
104func (m *Adapter) XXX_Merge(src proto.Message) {
105 xxx_messageInfo_Adapter.Merge(m, src)
106}
107func (m *Adapter) XXX_Size() int {
108 return xxx_messageInfo_Adapter.Size(m)
109}
110func (m *Adapter) XXX_DiscardUnknown() {
111 xxx_messageInfo_Adapter.DiscardUnknown(m)
112}
113
114var xxx_messageInfo_Adapter proto.InternalMessageInfo
115
116func (m *Adapter) GetId() string {
117 if m != nil {
118 return m.Id
119 }
120 return ""
121}
122
123func (m *Adapter) GetVendor() string {
124 if m != nil {
125 return m.Vendor
126 }
127 return ""
128}
129
130func (m *Adapter) GetVersion() string {
131 if m != nil {
132 return m.Version
133 }
134 return ""
135}
136
137func (m *Adapter) GetConfig() *AdapterConfig {
138 if m != nil {
139 return m.Config
140 }
141 return nil
142}
143
144func (m *Adapter) GetAdditionalDescription() *any.Any {
145 if m != nil {
146 return m.AdditionalDescription
147 }
148 return nil
149}
150
151func (m *Adapter) GetLogicalDeviceIds() []string {
152 if m != nil {
153 return m.LogicalDeviceIds
154 }
155 return nil
156}
157
158type Adapters struct {
159 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
160 XXX_NoUnkeyedLiteral struct{} `json:"-"`
161 XXX_unrecognized []byte `json:"-"`
162 XXX_sizecache int32 `json:"-"`
163}
164
165func (m *Adapters) Reset() { *m = Adapters{} }
166func (m *Adapters) String() string { return proto.CompactTextString(m) }
167func (*Adapters) ProtoMessage() {}
168func (*Adapters) Descriptor() ([]byte, []int) {
169 return fileDescriptor_7e998ce153307274, []int{2}
170}
171
172func (m *Adapters) XXX_Unmarshal(b []byte) error {
173 return xxx_messageInfo_Adapters.Unmarshal(m, b)
174}
175func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
176 return xxx_messageInfo_Adapters.Marshal(b, m, deterministic)
177}
178func (m *Adapters) XXX_Merge(src proto.Message) {
179 xxx_messageInfo_Adapters.Merge(m, src)
180}
181func (m *Adapters) XXX_Size() int {
182 return xxx_messageInfo_Adapters.Size(m)
183}
184func (m *Adapters) XXX_DiscardUnknown() {
185 xxx_messageInfo_Adapters.DiscardUnknown(m)
186}
187
188var xxx_messageInfo_Adapters proto.InternalMessageInfo
189
190func (m *Adapters) GetItems() []*Adapter {
191 if m != nil {
192 return m.Items
193 }
194 return nil
195}
196
197func init() {
198 proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig")
199 proto.RegisterType((*Adapter)(nil), "voltha.Adapter")
200 proto.RegisterType((*Adapters)(nil), "voltha.Adapters")
201}
202
203func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) }
204
205var fileDescriptor_7e998ce153307274 = []byte{
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -0800206 // 397 bytes of a gzipped FileDescriptorProto
207 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0x8e, 0xda, 0x30,
208 0x14, 0x86, 0x95, 0xd0, 0xc9, 0x0c, 0x1e, 0x4d, 0x4b, 0xdd, 0x82, 0x52, 0x2a, 0xd4, 0x08, 0xa9,
209 0x52, 0x16, 0xc5, 0x51, 0xe1, 0x02, 0x85, 0xb2, 0xa9, 0xc4, 0x2a, 0x42, 0x5d, 0x74, 0x13, 0x85,
210 0xd8, 0x18, 0x4b, 0x8e, 0x5f, 0x14, 0x87, 0x48, 0x9c, 0xa0, 0xeb, 0x1e, 0xac, 0xf7, 0xe8, 0x09,
211 0xba, 0xae, 0xb0, 0x1d, 0x01, 0x5d, 0xcc, 0x2a, 0x7a, 0xff, 0xf7, 0xbf, 0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0x45,
223 0x1b, 0x98, 0x68, 0x43, 0x62, 0xef, 0x85, 0xdc, 0xdc, 0x40, 0xea, 0x4c, 0x38, 0x45, 0xa3, 0xab,
224 0x43, 0x51, 0xa6, 0x8b, 0x5a, 0x54, 0xe7, 0xea, 0xb9, 0x93, 0x75, 0x4b, 0x87, 0x97, 0xd6, 0xf5,
225 0xa5, 0x13, 0x7f, 0x42, 0x58, 0x02, 0x17, 0x85, 0x19, 0xd8, 0x8a, 0x82, 0x65, 0x82, 0xea, 0xf0,
226 0x45, 0xd4, 0x8b, 0xfb, 0xe9, 0xc0, 0x91, 0xb5, 0x01, 0xdf, 0xa8, 0x9e, 0x7e, 0x46, 0x0f, 0x2e,
227 0x9a, 0xc6, 0x1f, 0xd1, 0x9d, 0x68, 0x58, 0xa9, 0x43, 0x2f, 0xea, 0xc5, 0x8f, 0xf3, 0x57, 0xff,
228 0x65, 0x4f, 0x2d, 0x5d, 0x6d, 0xd1, 0x1b, 0xa8, 0x39, 0x81, 0x8a, 0xa9, 0x02, 0x6a, 0xea, 0x5c,
229 0xab, 0xa7, 0xef, 0xe6, 0xeb, 0xcc, 0x3f, 0x08, 0x17, 0xcd, 0xe1, 0xb8, 0x3b, 0xff, 0xd7, 0xa4,
230 0xb3, 0x26, 0xd6, 0x3a, 0x73, 0x8f, 0xa4, 0x5d, 0x24, 0x1c, 0x9c, 0xb6, 0x0b, 0x8c, 0xb8, 0xf8,
231 0x17, 0x00, 0x00, 0xff, 0xff, 0x41, 0x59, 0x44, 0x43, 0xa5, 0x02, 0x00, 0x00,
Don Newton98fd8812019-09-23 15:15:02 -0400232}