blob: bd435c52e25798d5892e05cc2f76241a576ddd41 [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/logical_device.proto
3
William Kurkianad745652019-03-20 08:45:51 -04004package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04005
William Kurkianad745652019-03-20 08:45:51 -04006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 _ "github.com/opencord/voltha-protos/go/common"
10 openflow_13 "github.com/opencord/voltha-protos/go/openflow_13"
11 _ "google.golang.org/genproto/googleapis/api/annotations"
12 math "math"
13)
William Kurkian1b363f42019-03-12 15:28:12 -040014
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.
William Kurkianad745652019-03-20 08:45:51 -040024const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
William Kurkian1b363f42019-03-12 15:28:12 -040025
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) {
William Kurkianad745652019-03-20 08:45:51 -040040 return fileDescriptor_caf139ab3abc8240, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040041}
William Kurkianad745652019-03-20 08:45:51 -040042
William Kurkian1b363f42019-03-12 15:28:12 -040043func (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}
William Kurkianad745652019-03-20 08:45:51 -040049func (m *LogicalPortId) XXX_Merge(src proto.Message) {
50 xxx_messageInfo_LogicalPortId.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -040051}
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 {
Matt Jeanneret4604c422019-03-14 19:04:43 -040076 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:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -040085}
86
87func (m *LogicalPort) Reset() { *m = LogicalPort{} }
88func (m *LogicalPort) String() string { return proto.CompactTextString(m) }
89func (*LogicalPort) ProtoMessage() {}
90func (*LogicalPort) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040091 return fileDescriptor_caf139ab3abc8240, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040092}
William Kurkianad745652019-03-20 08:45:51 -040093
William Kurkian1b363f42019-03-12 15:28:12 -040094func (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}
William Kurkianad745652019-03-20 08:45:51 -0400100func (m *LogicalPort) XXX_Merge(src proto.Message) {
101 xxx_messageInfo_LogicalPort.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400102}
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
Matt Jeanneret4604c422019-03-14 19:04:43 -0400147func (m *LogicalPort) GetOfpPortStats() *openflow_13.OfpPortStats {
148 if m != nil {
149 return m.OfpPortStats
150 }
151 return nil
152}
153
William Kurkian1b363f42019-03-12 15:28:12 -0400154type 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) {
William Kurkianad745652019-03-20 08:45:51 -0400165 return fileDescriptor_caf139ab3abc8240, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400166}
William Kurkianad745652019-03-20 08:45:51 -0400167
William Kurkian1b363f42019-03-12 15:28:12 -0400168func (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}
William Kurkianad745652019-03-20 08:45:51 -0400174func (m *LogicalPorts) XXX_Merge(src proto.Message) {
175 xxx_messageInfo_LogicalPorts.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400176}
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 XXX_NoUnkeyedLiteral struct{} `json:"-"`
211 XXX_unrecognized []byte `json:"-"`
212 XXX_sizecache int32 `json:"-"`
213}
214
215func (m *LogicalDevice) Reset() { *m = LogicalDevice{} }
216func (m *LogicalDevice) String() string { return proto.CompactTextString(m) }
217func (*LogicalDevice) ProtoMessage() {}
218func (*LogicalDevice) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400219 return fileDescriptor_caf139ab3abc8240, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400220}
William Kurkianad745652019-03-20 08:45:51 -0400221
William Kurkian1b363f42019-03-12 15:28:12 -0400222func (m *LogicalDevice) XXX_Unmarshal(b []byte) error {
223 return xxx_messageInfo_LogicalDevice.Unmarshal(m, b)
224}
225func (m *LogicalDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
226 return xxx_messageInfo_LogicalDevice.Marshal(b, m, deterministic)
227}
William Kurkianad745652019-03-20 08:45:51 -0400228func (m *LogicalDevice) XXX_Merge(src proto.Message) {
229 xxx_messageInfo_LogicalDevice.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400230}
231func (m *LogicalDevice) XXX_Size() int {
232 return xxx_messageInfo_LogicalDevice.Size(m)
233}
234func (m *LogicalDevice) XXX_DiscardUnknown() {
235 xxx_messageInfo_LogicalDevice.DiscardUnknown(m)
236}
237
238var xxx_messageInfo_LogicalDevice proto.InternalMessageInfo
239
240func (m *LogicalDevice) GetId() string {
241 if m != nil {
242 return m.Id
243 }
244 return ""
245}
246
247func (m *LogicalDevice) GetDatapathId() uint64 {
248 if m != nil {
249 return m.DatapathId
250 }
251 return 0
252}
253
254func (m *LogicalDevice) GetDesc() *openflow_13.OfpDesc {
255 if m != nil {
256 return m.Desc
257 }
258 return nil
259}
260
261func (m *LogicalDevice) GetSwitchFeatures() *openflow_13.OfpSwitchFeatures {
262 if m != nil {
263 return m.SwitchFeatures
264 }
265 return nil
266}
267
268func (m *LogicalDevice) GetRootDeviceId() string {
269 if m != nil {
270 return m.RootDeviceId
271 }
272 return ""
273}
274
275func (m *LogicalDevice) GetPorts() []*LogicalPort {
276 if m != nil {
277 return m.Ports
278 }
279 return nil
280}
281
282func (m *LogicalDevice) GetFlows() *openflow_13.Flows {
283 if m != nil {
284 return m.Flows
285 }
286 return nil
287}
288
289func (m *LogicalDevice) GetFlowGroups() *openflow_13.FlowGroups {
290 if m != nil {
291 return m.FlowGroups
292 }
293 return nil
294}
295
296type LogicalDevices struct {
297 Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
298 XXX_NoUnkeyedLiteral struct{} `json:"-"`
299 XXX_unrecognized []byte `json:"-"`
300 XXX_sizecache int32 `json:"-"`
301}
302
303func (m *LogicalDevices) Reset() { *m = LogicalDevices{} }
304func (m *LogicalDevices) String() string { return proto.CompactTextString(m) }
305func (*LogicalDevices) ProtoMessage() {}
306func (*LogicalDevices) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400307 return fileDescriptor_caf139ab3abc8240, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400308}
William Kurkianad745652019-03-20 08:45:51 -0400309
William Kurkian1b363f42019-03-12 15:28:12 -0400310func (m *LogicalDevices) XXX_Unmarshal(b []byte) error {
311 return xxx_messageInfo_LogicalDevices.Unmarshal(m, b)
312}
313func (m *LogicalDevices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
314 return xxx_messageInfo_LogicalDevices.Marshal(b, m, deterministic)
315}
William Kurkianad745652019-03-20 08:45:51 -0400316func (m *LogicalDevices) XXX_Merge(src proto.Message) {
317 xxx_messageInfo_LogicalDevices.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400318}
319func (m *LogicalDevices) XXX_Size() int {
320 return xxx_messageInfo_LogicalDevices.Size(m)
321}
322func (m *LogicalDevices) XXX_DiscardUnknown() {
323 xxx_messageInfo_LogicalDevices.DiscardUnknown(m)
324}
325
326var xxx_messageInfo_LogicalDevices proto.InternalMessageInfo
327
328func (m *LogicalDevices) GetItems() []*LogicalDevice {
329 if m != nil {
330 return m.Items
331 }
332 return nil
333}
334
335func init() {
336 proto.RegisterType((*LogicalPortId)(nil), "voltha.LogicalPortId")
337 proto.RegisterType((*LogicalPort)(nil), "voltha.LogicalPort")
338 proto.RegisterType((*LogicalPorts)(nil), "voltha.LogicalPorts")
339 proto.RegisterType((*LogicalDevice)(nil), "voltha.LogicalDevice")
340 proto.RegisterType((*LogicalDevices)(nil), "voltha.LogicalDevices")
341}
342
William Kurkianad745652019-03-20 08:45:51 -0400343func init() { proto.RegisterFile("voltha_protos/logical_device.proto", fileDescriptor_caf139ab3abc8240) }
William Kurkian1b363f42019-03-12 15:28:12 -0400344
William Kurkianad745652019-03-20 08:45:51 -0400345var fileDescriptor_caf139ab3abc8240 = []byte{
Matt Jeanneret4604c422019-03-14 19:04:43 -0400346 // 512 bytes of a gzipped FileDescriptorProto
347 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4f, 0x6b, 0x13, 0x41,
348 0x14, 0x77, 0x9b, 0x6c, 0x9a, 0xbc, 0x4d, 0x23, 0x8c, 0x94, 0x2e, 0xad, 0xd2, 0xb0, 0x78, 0x48,
349 0x29, 0x4d, 0x6a, 0x8a, 0xa0, 0x07, 0x41, 0x43, 0xa9, 0x04, 0x44, 0x64, 0xbc, 0x79, 0x59, 0xa6,
350 0x3b, 0x9b, 0xcd, 0x40, 0x92, 0xb7, 0xec, 0x4c, 0xda, 0xab, 0x7a, 0xf1, 0xd3, 0xf9, 0x25, 0xfc,
351 0x08, 0x1e, 0x3c, 0xcb, 0xbc, 0xd9, 0xad, 0xd9, 0xa6, 0x1e, 0xf7, 0xf7, 0xe7, 0xbd, 0xdf, 0xfc,
352 0x1e, 0x0b, 0xd1, 0x0d, 0x2e, 0xcc, 0x5c, 0xc4, 0x79, 0x81, 0x06, 0xf5, 0x68, 0x81, 0x99, 0x4a,
353 0xc4, 0x22, 0x96, 0xe9, 0x8d, 0x4a, 0xd2, 0x21, 0xa1, 0xac, 0xe5, 0x34, 0x87, 0x4f, 0x33, 0xc4,
354 0x6c, 0x91, 0x8e, 0x44, 0xae, 0x46, 0x62, 0xb5, 0x42, 0x23, 0x8c, 0xc2, 0x95, 0x76, 0xaa, 0xc3,
355 0xb0, 0x3e, 0x69, 0x99, 0x1a, 0x51, 0x32, 0xc7, 0x75, 0x06, 0xf3, 0x74, 0x35, 0x5b, 0xe0, 0x6d,
356 0xfc, 0xe2, 0xc2, 0x09, 0xa2, 0x57, 0xb0, 0xf7, 0xc1, 0x2d, 0xfe, 0x84, 0x85, 0x99, 0x4a, 0xd6,
357 0x83, 0x1d, 0x25, 0x43, 0xaf, 0xef, 0x0d, 0x3a, 0x7c, 0x47, 0x49, 0x76, 0x00, 0xbb, 0x39, 0x16,
358 0x26, 0x56, 0x32, 0xdc, 0x21, 0xb0, 0x95, 0x93, 0x30, 0xfa, 0xed, 0x41, 0xb0, 0x61,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x8e, 0xf7, 0x1c, 0x70, 0x55, 0x7e, 0xdb, 0xe6, 0xa9, 0xd3, 0x7f, 0xb7, 0xf1, 0x29, 0x72, 0xd7,
371 0xa2, 0x97, 0xd5, 0x7d, 0x5e, 0x82, 0x6f, 0x5b, 0xd3, 0xe1, 0xd7, 0xff, 0x57, 0x31, 0xe9, 0xfc,
372 0xfa, 0xf3, 0xf3, 0x59, 0xd3, 0x3e, 0x9b, 0x3b, 0x35, 0x3b, 0x07, 0xdf, 0x66, 0xd1, 0xe1, 0x37,
373 0x8f, 0xe2, 0xb1, 0x5a, 0xbc, 0x2b, 0x4b, 0x4d, 0x7c, 0xeb, 0x7a, 0xc4, 0x9d, 0x90, 0xbd, 0x85,
374 0x80, 0xe8, 0xac, 0xc0, 0x75, 0xae, 0xc3, 0xef, 0xce, 0x77, 0xb0, 0xe5, 0x7b, 0x4f, 0x7c, 0x65,
375 0x86, 0xd9, 0x1d, 0x14, 0xbd, 0x81, 0x5e, 0xed, 0x10, 0x9a, 0x9d, 0xd6, 0xcf, 0xb8, 0x7f, 0x2f,
376 0xbb, 0x93, 0x95, 0x87, 0x9c, 0x9c, 0x7d, 0x39, 0xcd, 0x94, 0x99, 0xaf, 0xaf, 0x87, 0x09, 0x2e,
377 0xe9, 0x97, 0x4a, 0xb0, 0x90, 0x23, 0x67, 0x39, 0x2b, 0xff, 0xb4, 0x0c, 0x4b, 0xe0, 0xba, 0x45,
378 0xc8, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x23, 0x92, 0xcd, 0x9e, 0xef, 0x03, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400379}