blob: 680fc4bb46e4257010b128c9d9798d1c7eaae499 [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/adapter.proto
3
4package voltha // import "github.com/opencord/voltha-protos/go/voltha"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import any "github.com/golang/protobuf/ptypes/any"
10import common "github.com/opencord/voltha-protos/go/common"
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
22
23type AdapterConfig struct {
24 // Common adapter config attributes here
25 LogLevel common.LogLevel_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=voltha.LogLevel_LogLevel" json:"log_level,omitempty"`
26 // Custom (vendor-specific) configuration attributes
27 AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"`
28 XXX_NoUnkeyedLiteral struct{} `json:"-"`
29 XXX_unrecognized []byte `json:"-"`
30 XXX_sizecache int32 `json:"-"`
31}
32
33func (m *AdapterConfig) Reset() { *m = AdapterConfig{} }
34func (m *AdapterConfig) String() string { return proto.CompactTextString(m) }
35func (*AdapterConfig) ProtoMessage() {}
36func (*AdapterConfig) Descriptor() ([]byte, []int) {
37 return fileDescriptor_adapter_afe3683afb102200, []int{0}
38}
39func (m *AdapterConfig) XXX_Unmarshal(b []byte) error {
40 return xxx_messageInfo_AdapterConfig.Unmarshal(m, b)
41}
42func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
43 return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic)
44}
45func (dst *AdapterConfig) XXX_Merge(src proto.Message) {
46 xxx_messageInfo_AdapterConfig.Merge(dst, src)
47}
48func (m *AdapterConfig) XXX_Size() int {
49 return xxx_messageInfo_AdapterConfig.Size(m)
50}
51func (m *AdapterConfig) XXX_DiscardUnknown() {
52 xxx_messageInfo_AdapterConfig.DiscardUnknown(m)
53}
54
55var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo
56
57func (m *AdapterConfig) GetLogLevel() common.LogLevel_LogLevel {
58 if m != nil {
59 return m.LogLevel
60 }
61 return common.LogLevel_DEBUG
62}
63
64func (m *AdapterConfig) GetAdditionalConfig() *any.Any {
65 if m != nil {
66 return m.AdditionalConfig
67 }
68 return nil
69}
70
71// Adapter (software plugin)
72type Adapter struct {
73 // Unique name of adapter, matching the python package name under
74 // voltha/adapters.
75 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
76 Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
77 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
78 // Adapter configuration
79 Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"`
80 // Custom descriptors and custom configuration
81 AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"`
82 LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"`
83 XXX_NoUnkeyedLiteral struct{} `json:"-"`
84 XXX_unrecognized []byte `json:"-"`
85 XXX_sizecache int32 `json:"-"`
86}
87
88func (m *Adapter) Reset() { *m = Adapter{} }
89func (m *Adapter) String() string { return proto.CompactTextString(m) }
90func (*Adapter) ProtoMessage() {}
91func (*Adapter) Descriptor() ([]byte, []int) {
92 return fileDescriptor_adapter_afe3683afb102200, []int{1}
93}
94func (m *Adapter) XXX_Unmarshal(b []byte) error {
95 return xxx_messageInfo_Adapter.Unmarshal(m, b)
96}
97func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98 return xxx_messageInfo_Adapter.Marshal(b, m, deterministic)
99}
100func (dst *Adapter) XXX_Merge(src proto.Message) {
101 xxx_messageInfo_Adapter.Merge(dst, src)
102}
103func (m *Adapter) XXX_Size() int {
104 return xxx_messageInfo_Adapter.Size(m)
105}
106func (m *Adapter) XXX_DiscardUnknown() {
107 xxx_messageInfo_Adapter.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_Adapter proto.InternalMessageInfo
111
112func (m *Adapter) GetId() string {
113 if m != nil {
114 return m.Id
115 }
116 return ""
117}
118
119func (m *Adapter) GetVendor() string {
120 if m != nil {
121 return m.Vendor
122 }
123 return ""
124}
125
126func (m *Adapter) GetVersion() string {
127 if m != nil {
128 return m.Version
129 }
130 return ""
131}
132
133func (m *Adapter) GetConfig() *AdapterConfig {
134 if m != nil {
135 return m.Config
136 }
137 return nil
138}
139
140func (m *Adapter) GetAdditionalDescription() *any.Any {
141 if m != nil {
142 return m.AdditionalDescription
143 }
144 return nil
145}
146
147func (m *Adapter) GetLogicalDeviceIds() []string {
148 if m != nil {
149 return m.LogicalDeviceIds
150 }
151 return nil
152}
153
154type Adapters struct {
155 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
156 XXX_NoUnkeyedLiteral struct{} `json:"-"`
157 XXX_unrecognized []byte `json:"-"`
158 XXX_sizecache int32 `json:"-"`
159}
160
161func (m *Adapters) Reset() { *m = Adapters{} }
162func (m *Adapters) String() string { return proto.CompactTextString(m) }
163func (*Adapters) ProtoMessage() {}
164func (*Adapters) Descriptor() ([]byte, []int) {
165 return fileDescriptor_adapter_afe3683afb102200, []int{2}
166}
167func (m *Adapters) XXX_Unmarshal(b []byte) error {
168 return xxx_messageInfo_Adapters.Unmarshal(m, b)
169}
170func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
171 return xxx_messageInfo_Adapters.Marshal(b, m, deterministic)
172}
173func (dst *Adapters) XXX_Merge(src proto.Message) {
174 xxx_messageInfo_Adapters.Merge(dst, src)
175}
176func (m *Adapters) XXX_Size() int {
177 return xxx_messageInfo_Adapters.Size(m)
178}
179func (m *Adapters) XXX_DiscardUnknown() {
180 xxx_messageInfo_Adapters.DiscardUnknown(m)
181}
182
183var xxx_messageInfo_Adapters proto.InternalMessageInfo
184
185func (m *Adapters) GetItems() []*Adapter {
186 if m != nil {
187 return m.Items
188 }
189 return nil
190}
191
192func init() {
193 proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig")
194 proto.RegisterType((*Adapter)(nil), "voltha.Adapter")
195 proto.RegisterType((*Adapters)(nil), "voltha.Adapters")
196}
197
198func init() {
199 proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_adapter_afe3683afb102200)
200}
201
202var fileDescriptor_adapter_afe3683afb102200 = []byte{
203 // 378 bytes of a gzipped FileDescriptorProto
204 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6a, 0xe2, 0x40,
205 0x1c, 0xc6, 0x49, 0x5c, 0xa3, 0x8e, 0xec, 0xae, 0x3b, 0xac, 0x4b, 0x74, 0x91, 0x0d, 0xc2, 0x42,
206 0x60, 0xd7, 0x84, 0x5a, 0xe8, 0xb9, 0x5a, 0x2f, 0x05, 0x4f, 0x39, 0xf6, 0x12, 0x62, 0x66, 0x1c,
207 0x07, 0x26, 0xf3, 0x0f, 0x49, 0x0c, 0xf8, 0x0a, 0xbd, 0xf5, 0xc1, 0xfa, 0x1e, 0x7d, 0x82, 0x9e,
208 0x8b, 0x33, 0x93, 0xaa, 0x3d, 0xf4, 0x36, 0xf3, 0xfd, 0xfe, 0xdf, 0x7c, 0xdf, 0x3f, 0x04, 0xfd,
209 0xae, 0x41, 0x54, 0xbb, 0x24, 0xce, 0x0b, 0xa8, 0xa0, 0x0c, 0x13, 0x92, 0xe4, 0x15, 0x2d, 0x02,
210 0x75, 0xc5, 0x8e, 0x86, 0xe3, 0x11, 0x03, 0x60, 0x82, 0x86, 0x4a, 0xdd, 0xec, 0xb7, 0x61, 0x22,
211 0x0f, 0x7a, 0x64, 0x3c, 0xbe, 0xf4, 0xa7, 0x90, 0x65, 0x20, 0x0d, 0x73, 0x2f, 0x59, 0x46, 0xab,
212 0x44, 0x93, 0xe9, 0xa3, 0x85, 0xbe, 0x2e, 0x74, 0xd4, 0x1d, 0xc8, 0x2d, 0x67, 0xf8, 0x06, 0xf5,
213 0x04, 0xb0, 0x58, 0xd0, 0x9a, 0x0a, 0xd7, 0xf2, 0x2c, 0xff, 0xdb, 0x7c, 0x14, 0x68, 0x7f, 0xb0,
214 0x06, 0xb6, 0x3e, 0xea, 0xef, 0x87, 0xa8, 0x2b, 0xcc, 0x09, 0x2f, 0xd0, 0x8f, 0x84, 0x10, 0x5e,
215 0x71, 0x90, 0x89, 0x88, 0x53, 0xf5, 0x98, 0x7b, 0xeb, 0x59, 0x7e, 0x7f, 0xfe, 0x33, 0xd0, 0xb5,
216 0x83, 0xa6, 0x76, 0xb0, 0x90, 0x87, 0x68, 0x70, 0x1a, 0xd7, 0xd1, 0xd3, 0x27, 0x1b, 0x75, 0x4c,
217 0x19, 0x3c, 0x44, 0x36, 0x27, 0x2a, 0xbf, 0xb7, 0x6c, 0xbf, 0xbc, 0x3e, 0x4f, 0xac, 0xc8, 0xe6,
218 0x04, 0x4f, 0x90, 0x53, 0x53, 0x49, 0xa0, 0x70, 0xed, 0x73, 0x64, 0x44, 0xfc, 0x07, 0x75, 0x6a,
219 0x5a, 0x94, 0x1c, 0xa4, 0xdb, 0x3a, 0xe7, 0x8d, 0x8a, 0x67, 0xc8, 0x31, 0xd5, 0x06, 0xaa, 0xda,
220 0xb0, 0x59, 0xed, 0xe2, 0x23, 0x44, 0x66, 0x08, 0x47, 0xe8, 0xd7, 0xd9, 0x52, 0x84, 0x96, 0x69,
221 0xc1, 0xf3, 0xe3, 0xed, 0xb3, 0xcd, 0x9a, 0xd0, 0xe1, 0xc9, 0xba, 0x3a, 0x39, 0xf1, 0x7f, 0x84,
222 0x05, 0x30, 0x9e, 0xaa, 0x07, 0x6b, 0x9e, 0xd2, 0x98, 0x93, 0xd2, 0xfd, 0xe2, 0xb5, 0xfc, 0x5e,
223 0x34, 0x30, 0x64, 0xa5, 0xc0, 0x3d, 0x29, 0xa7, 0x57, 0xa8, 0x6b, 0xaa, 0x95, 0xf8, 0x2f, 0x6a,
224 0xf3, 0x8a, 0x66, 0xa5, 0x6b, 0x79, 0x2d, 0xbf, 0x3f, 0xff, 0xfe, 0xa1, 0x7b, 0xa4, 0xe9, 0x72,
225 0xf6, 0xf0, 0x8f, 0xf1, 0x6a, 0xb7, 0xdf, 0x04, 0x29, 0x64, 0x21, 0xe4, 0x54, 0xa6, 0x50, 0x90,
226 0x50, 0x0f, 0xcf, 0xcc, 0x3f, 0xc0, 0xc0, 0x08, 0x1b, 0x47, 0x29, 0xd7, 0x6f, 0x01, 0x00, 0x00,
227 0xff, 0xff, 0xe1, 0x62, 0xad, 0x46, 0x81, 0x02, 0x00, 0x00,
228}