blob: 8ebaa02f8d0cd91594fe70278a4c1b9c5b15a26b [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/logical_device.proto
3
4package voltha
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -08009 _ "github.com/opencord/voltha-protos/v3/go/common"
10 openflow_13 "github.com/opencord/voltha-protos/v3/go/openflow_13"
Don Newton98fd8812019-09-23 15:15:02 -040011 _ "google.golang.org/genproto/googleapis/api/annotations"
12 math "math"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26type LogicalPortId struct {
27 // unique id of logical device
28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
29 // id of the port on the logical device
30 PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
31 XXX_NoUnkeyedLiteral struct{} `json:"-"`
32 XXX_unrecognized []byte `json:"-"`
33 XXX_sizecache int32 `json:"-"`
34}
35
36func (m *LogicalPortId) Reset() { *m = LogicalPortId{} }
37func (m *LogicalPortId) String() string { return proto.CompactTextString(m) }
38func (*LogicalPortId) ProtoMessage() {}
39func (*LogicalPortId) Descriptor() ([]byte, []int) {
40 return fileDescriptor_caf139ab3abc8240, []int{0}
41}
42
43func (m *LogicalPortId) XXX_Unmarshal(b []byte) error {
44 return xxx_messageInfo_LogicalPortId.Unmarshal(m, b)
45}
46func (m *LogicalPortId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
47 return xxx_messageInfo_LogicalPortId.Marshal(b, m, deterministic)
48}
49func (m *LogicalPortId) XXX_Merge(src proto.Message) {
50 xxx_messageInfo_LogicalPortId.Merge(m, src)
51}
52func (m *LogicalPortId) XXX_Size() int {
53 return xxx_messageInfo_LogicalPortId.Size(m)
54}
55func (m *LogicalPortId) XXX_DiscardUnknown() {
56 xxx_messageInfo_LogicalPortId.DiscardUnknown(m)
57}
58
59var xxx_messageInfo_LogicalPortId proto.InternalMessageInfo
60
61func (m *LogicalPortId) GetId() string {
62 if m != nil {
63 return m.Id
64 }
65 return ""
66}
67
68func (m *LogicalPortId) GetPortId() string {
69 if m != nil {
70 return m.PortId
71 }
72 return ""
73}
74
75type LogicalPort struct {
76 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
77 OfpPort *openflow_13.OfpPort `protobuf:"bytes,2,opt,name=ofp_port,json=ofpPort,proto3" json:"ofp_port,omitempty"`
78 DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
79 DevicePortNo uint32 `protobuf:"varint,4,opt,name=device_port_no,json=devicePortNo,proto3" json:"device_port_no,omitempty"`
80 RootPort bool `protobuf:"varint,5,opt,name=root_port,json=rootPort,proto3" json:"root_port,omitempty"`
81 OfpPortStats *openflow_13.OfpPortStats `protobuf:"bytes,6,opt,name=ofp_port_stats,json=ofpPortStats,proto3" json:"ofp_port_stats,omitempty"`
82 XXX_NoUnkeyedLiteral struct{} `json:"-"`
83 XXX_unrecognized []byte `json:"-"`
84 XXX_sizecache int32 `json:"-"`
85}
86
87func (m *LogicalPort) Reset() { *m = LogicalPort{} }
88func (m *LogicalPort) String() string { return proto.CompactTextString(m) }
89func (*LogicalPort) ProtoMessage() {}
90func (*LogicalPort) Descriptor() ([]byte, []int) {
91 return fileDescriptor_caf139ab3abc8240, []int{1}
92}
93
94func (m *LogicalPort) XXX_Unmarshal(b []byte) error {
95 return xxx_messageInfo_LogicalPort.Unmarshal(m, b)
96}
97func (m *LogicalPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98 return xxx_messageInfo_LogicalPort.Marshal(b, m, deterministic)
99}
100func (m *LogicalPort) XXX_Merge(src proto.Message) {
101 xxx_messageInfo_LogicalPort.Merge(m, src)
102}
103func (m *LogicalPort) XXX_Size() int {
104 return xxx_messageInfo_LogicalPort.Size(m)
105}
106func (m *LogicalPort) XXX_DiscardUnknown() {
107 xxx_messageInfo_LogicalPort.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_LogicalPort proto.InternalMessageInfo
111
112func (m *LogicalPort) GetId() string {
113 if m != nil {
114 return m.Id
115 }
116 return ""
117}
118
119func (m *LogicalPort) GetOfpPort() *openflow_13.OfpPort {
120 if m != nil {
121 return m.OfpPort
122 }
123 return nil
124}
125
126func (m *LogicalPort) GetDeviceId() string {
127 if m != nil {
128 return m.DeviceId
129 }
130 return ""
131}
132
133func (m *LogicalPort) GetDevicePortNo() uint32 {
134 if m != nil {
135 return m.DevicePortNo
136 }
137 return 0
138}
139
140func (m *LogicalPort) GetRootPort() bool {
141 if m != nil {
142 return m.RootPort
143 }
144 return false
145}
146
147func (m *LogicalPort) GetOfpPortStats() *openflow_13.OfpPortStats {
148 if m != nil {
149 return m.OfpPortStats
150 }
151 return nil
152}
153
154type LogicalPorts struct {
155 Items []*LogicalPort `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 *LogicalPorts) Reset() { *m = LogicalPorts{} }
162func (m *LogicalPorts) String() string { return proto.CompactTextString(m) }
163func (*LogicalPorts) ProtoMessage() {}
164func (*LogicalPorts) Descriptor() ([]byte, []int) {
165 return fileDescriptor_caf139ab3abc8240, []int{2}
166}
167
168func (m *LogicalPorts) XXX_Unmarshal(b []byte) error {
169 return xxx_messageInfo_LogicalPorts.Unmarshal(m, b)
170}
171func (m *LogicalPorts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
172 return xxx_messageInfo_LogicalPorts.Marshal(b, m, deterministic)
173}
174func (m *LogicalPorts) XXX_Merge(src proto.Message) {
175 xxx_messageInfo_LogicalPorts.Merge(m, src)
176}
177func (m *LogicalPorts) XXX_Size() int {
178 return xxx_messageInfo_LogicalPorts.Size(m)
179}
180func (m *LogicalPorts) XXX_DiscardUnknown() {
181 xxx_messageInfo_LogicalPorts.DiscardUnknown(m)
182}
183
184var xxx_messageInfo_LogicalPorts proto.InternalMessageInfo
185
186func (m *LogicalPorts) GetItems() []*LogicalPort {
187 if m != nil {
188 return m.Items
189 }
190 return nil
191}
192
193type LogicalDevice struct {
194 // unique id of logical device
195 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
196 // unique datapath id for the logical device (used by the SDN controller)
197 DatapathId uint64 `protobuf:"varint,2,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"`
198 // device description
199 Desc *openflow_13.OfpDesc `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
200 // device features
201 SwitchFeatures *openflow_13.OfpSwitchFeatures `protobuf:"bytes,4,opt,name=switch_features,json=switchFeatures,proto3" json:"switch_features,omitempty"`
202 // name of the root device anchoring logical device
203 RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId,proto3" json:"root_device_id,omitempty"`
204 // logical device ports
205 Ports []*LogicalPort `protobuf:"bytes,128,rep,name=ports,proto3" json:"ports,omitempty"`
206 // flows configured on the logical device
207 Flows *openflow_13.Flows `protobuf:"bytes,129,opt,name=flows,proto3" json:"flows,omitempty"`
208 // flow groups configured on the logical device
209 FlowGroups *openflow_13.FlowGroups `protobuf:"bytes,130,opt,name=flow_groups,json=flowGroups,proto3" json:"flow_groups,omitempty"`
210 // meters configured on the logical device
211 Meters *openflow_13.Meters `protobuf:"bytes,131,opt,name=meters,proto3" json:"meters,omitempty"`
212 XXX_NoUnkeyedLiteral struct{} `json:"-"`
213 XXX_unrecognized []byte `json:"-"`
214 XXX_sizecache int32 `json:"-"`
215}
216
217func (m *LogicalDevice) Reset() { *m = LogicalDevice{} }
218func (m *LogicalDevice) String() string { return proto.CompactTextString(m) }
219func (*LogicalDevice) ProtoMessage() {}
220func (*LogicalDevice) Descriptor() ([]byte, []int) {
221 return fileDescriptor_caf139ab3abc8240, []int{3}
222}
223
224func (m *LogicalDevice) XXX_Unmarshal(b []byte) error {
225 return xxx_messageInfo_LogicalDevice.Unmarshal(m, b)
226}
227func (m *LogicalDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
228 return xxx_messageInfo_LogicalDevice.Marshal(b, m, deterministic)
229}
230func (m *LogicalDevice) XXX_Merge(src proto.Message) {
231 xxx_messageInfo_LogicalDevice.Merge(m, src)
232}
233func (m *LogicalDevice) XXX_Size() int {
234 return xxx_messageInfo_LogicalDevice.Size(m)
235}
236func (m *LogicalDevice) XXX_DiscardUnknown() {
237 xxx_messageInfo_LogicalDevice.DiscardUnknown(m)
238}
239
240var xxx_messageInfo_LogicalDevice proto.InternalMessageInfo
241
242func (m *LogicalDevice) GetId() string {
243 if m != nil {
244 return m.Id
245 }
246 return ""
247}
248
249func (m *LogicalDevice) GetDatapathId() uint64 {
250 if m != nil {
251 return m.DatapathId
252 }
253 return 0
254}
255
256func (m *LogicalDevice) GetDesc() *openflow_13.OfpDesc {
257 if m != nil {
258 return m.Desc
259 }
260 return nil
261}
262
263func (m *LogicalDevice) GetSwitchFeatures() *openflow_13.OfpSwitchFeatures {
264 if m != nil {
265 return m.SwitchFeatures
266 }
267 return nil
268}
269
270func (m *LogicalDevice) GetRootDeviceId() string {
271 if m != nil {
272 return m.RootDeviceId
273 }
274 return ""
275}
276
277func (m *LogicalDevice) GetPorts() []*LogicalPort {
278 if m != nil {
279 return m.Ports
280 }
281 return nil
282}
283
284func (m *LogicalDevice) GetFlows() *openflow_13.Flows {
285 if m != nil {
286 return m.Flows
287 }
288 return nil
289}
290
291func (m *LogicalDevice) GetFlowGroups() *openflow_13.FlowGroups {
292 if m != nil {
293 return m.FlowGroups
294 }
295 return nil
296}
297
298func (m *LogicalDevice) GetMeters() *openflow_13.Meters {
299 if m != nil {
300 return m.Meters
301 }
302 return nil
303}
304
305type LogicalDevices struct {
306 Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
307 XXX_NoUnkeyedLiteral struct{} `json:"-"`
308 XXX_unrecognized []byte `json:"-"`
309 XXX_sizecache int32 `json:"-"`
310}
311
312func (m *LogicalDevices) Reset() { *m = LogicalDevices{} }
313func (m *LogicalDevices) String() string { return proto.CompactTextString(m) }
314func (*LogicalDevices) ProtoMessage() {}
315func (*LogicalDevices) Descriptor() ([]byte, []int) {
316 return fileDescriptor_caf139ab3abc8240, []int{4}
317}
318
319func (m *LogicalDevices) XXX_Unmarshal(b []byte) error {
320 return xxx_messageInfo_LogicalDevices.Unmarshal(m, b)
321}
322func (m *LogicalDevices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
323 return xxx_messageInfo_LogicalDevices.Marshal(b, m, deterministic)
324}
325func (m *LogicalDevices) XXX_Merge(src proto.Message) {
326 xxx_messageInfo_LogicalDevices.Merge(m, src)
327}
328func (m *LogicalDevices) XXX_Size() int {
329 return xxx_messageInfo_LogicalDevices.Size(m)
330}
331func (m *LogicalDevices) XXX_DiscardUnknown() {
332 xxx_messageInfo_LogicalDevices.DiscardUnknown(m)
333}
334
335var xxx_messageInfo_LogicalDevices proto.InternalMessageInfo
336
337func (m *LogicalDevices) GetItems() []*LogicalDevice {
338 if m != nil {
339 return m.Items
340 }
341 return nil
342}
343
344func init() {
345 proto.RegisterType((*LogicalPortId)(nil), "voltha.LogicalPortId")
346 proto.RegisterType((*LogicalPort)(nil), "voltha.LogicalPort")
347 proto.RegisterType((*LogicalPorts)(nil), "voltha.LogicalPorts")
348 proto.RegisterType((*LogicalDevice)(nil), "voltha.LogicalDevice")
349 proto.RegisterType((*LogicalDevices)(nil), "voltha.LogicalDevices")
350}
351
352func init() { proto.RegisterFile("voltha_protos/logical_device.proto", fileDescriptor_caf139ab3abc8240) }
353
354var fileDescriptor_caf139ab3abc8240 = []byte{
David K. Bainbridgeaea73cd2020-01-27 10:44:50 -0800355 // 550 bytes of a gzipped FileDescriptorProto
356 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x6a, 0xdb, 0x40,
357 0x10, 0xc6, 0xab, 0xd8, 0x72, 0xec, 0x91, 0xe3, 0xc0, 0x9a, 0x10, 0x91, 0xb4, 0xc4, 0x88, 0x1e,
358 0x1c, 0x4a, 0xa5, 0xd4, 0xa6, 0xd0, 0x1e, 0x0a, 0xad, 0x09, 0x2e, 0x86, 0xfe, 0x63, 0x0b, 0x3d,
359 0xf4, 0x22, 0x36, 0xd2, 0x5a, 0x16, 0xd8, 0x1a, 0xa1, 0x5d, 0x3b, 0xd7, 0xfe, 0x79, 0xad, 0xbe,
360 0x42, 0x5f, 0xa2, 0x8f, 0xd0, 0x43, 0xcf, 0x65, 0x77, 0xa5, 0xd4, 0x8a, 0xd3, 0xa3, 0xbe, 0xf9,
361 0x7d, 0x33, 0xb3, 0xdf, 0x20, 0xf0, 0x36, 0xb8, 0x94, 0x0b, 0x16, 0xe6, 0x05, 0x4a, 0x14, 0xc1,
362 0x12, 0x93, 0x34, 0x62, 0xcb, 0x30, 0xe6, 0x9b, 0x34, 0xe2, 0xbe, 0x56, 0x49, 0xcb, 0x30, 0x27,
363 0xf7, 0x13, 0xc4, 0x64, 0xc9, 0x03, 0x96, 0xa7, 0x01, 0xcb, 0x32, 0x94, 0x4c, 0xa6, 0x98, 0x09,
364 0x43, 0x9d, 0xb8, 0xf5, 0x4e, 0x2b, 0x2e, 0x59, 0x59, 0x39, 0xab, 0x57, 0x30, 0xe7, 0xd9, 0x7c,
365 0x89, 0xd7, 0xe1, 0x93, 0xb1, 0x01, 0xbc, 0x67, 0x70, 0xf0, 0xc6, 0x0c, 0xfe, 0x80, 0x85, 0x9c,
366 0xc5, 0xa4, 0x07, 0x7b, 0x69, 0xec, 0x5a, 0x03, 0x6b, 0xd8, 0xa1, 0x7b, 0x69, 0x4c, 0x8e, 0x61,
367 0x3f, 0xc7, 0x42, 0x86, 0x69, 0xec, 0xee, 0x69, 0xb1, 0x95, 0x6b, 0xd0, 0xfb, 0x6d, 0x81, 0xb3,
368 0x65, 0xdd, 0x31, 0x5e, 0x40, 0x1b, 0xe7, 0x79, 0xa8, 0x68, 0xed, 0x74, 0x46, 0x47, 0xfe, 0xf6,
369 0xfc, 0xaa, 0x48, 0xf7, 0x71, 0x9e, 0xeb, 0x0e, 0xa7, 0xd0, 0x31, 0x8f, 0x57, 0xc3, 0x1a, 0xba,
370 0x51, 0xdb, 0x08, 0xb3, 0x98, 0x3c, 0x84, 0x5e, 0x59, 0xd4, 0xeb, 0x64, 0xe8, 0x36, 0x07, 0xd6,
371 0xf0, 0x80, 0x76, 0x8d, 0xaa, 0x1a, 0xbc, 0x43, 0xd5, 0xa2, 0x40, 0x94, 0x66, 0xaa, 0x3d, 0xb0,
372 0x86, 0x6d, 0xda, 0x56, 0x82, 0xee, 0xff, 0x0a, 0x7a, 0xd5, 0xd0, 0x50, 0x48, 0x26, 0x85, 0xdb,
373 0xd2, 0x7b, 0x9d, 0xde, 0xb9, 0x97, 0x41, 0x68, 0xb7, 0xdc, 0xee, 0xa3, 0xfa, 0xf2, 0x9e, 0x43,
374 0x77, 0xeb, 0xcd, 0x82, 0x9c, 0x83, 0x9d, 0x4a, 0xbe, 0x12, 0xae, 0x35, 0x68, 0x0c, 0x9d, 0x51,
375 0xdf, 0x37, 0x79, 0xfb, 0x5b, 0x10, 0x35, 0x84, 0xf7, 0xa3, 0x71, 0x13, 0xf5, 0xa5, 0x5e, 0x79,
376 0x27, 0xb1, 0x33, 0x70, 0x62, 0x26, 0x59, 0xce, 0xe4, 0xa2, 0x8a, 0xbb, 0x49, 0xa1, 0x92, 0x66,
377 0x31, 0x39, 0x87, 0x66, 0xcc, 0x45, 0xa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0x81, 0x81, 0x1f, 0x97, 0x3f, 0xf1, 0x66,
389 0x1c, 0x24, 0x58, 0x6a, 0x57, 0x2d, 0x2d, 0x8e, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xdd, 0xad,
390 0x36, 0xdf, 0x4d, 0x04, 0x00, 0x00,
Don Newton98fd8812019-09-23 15:15:02 -0400391}