blob: 088d55c677b371bc8a2df7e95ce99b3f3eb1a486 [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
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 _ "github.com/opencord/voltha-protos/go/common"
10import openflow_13 "github.com/opencord/voltha-protos/go/openflow_13"
11import _ "google.golang.org/genproto/googleapis/api/annotations"
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
23
24type LogicalPortId struct {
25 // unique id of logical device
26 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
27 // id of the port on the logical device
28 PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
29 XXX_NoUnkeyedLiteral struct{} `json:"-"`
30 XXX_unrecognized []byte `json:"-"`
31 XXX_sizecache int32 `json:"-"`
32}
33
34func (m *LogicalPortId) Reset() { *m = LogicalPortId{} }
35func (m *LogicalPortId) String() string { return proto.CompactTextString(m) }
36func (*LogicalPortId) ProtoMessage() {}
37func (*LogicalPortId) Descriptor() ([]byte, []int) {
Matt Jeanneret4604c422019-03-14 19:04:43 -040038 return fileDescriptor_logical_device_eab9968d916b9ed2, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040039}
40func (m *LogicalPortId) XXX_Unmarshal(b []byte) error {
41 return xxx_messageInfo_LogicalPortId.Unmarshal(m, b)
42}
43func (m *LogicalPortId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
44 return xxx_messageInfo_LogicalPortId.Marshal(b, m, deterministic)
45}
46func (dst *LogicalPortId) XXX_Merge(src proto.Message) {
47 xxx_messageInfo_LogicalPortId.Merge(dst, src)
48}
49func (m *LogicalPortId) XXX_Size() int {
50 return xxx_messageInfo_LogicalPortId.Size(m)
51}
52func (m *LogicalPortId) XXX_DiscardUnknown() {
53 xxx_messageInfo_LogicalPortId.DiscardUnknown(m)
54}
55
56var xxx_messageInfo_LogicalPortId proto.InternalMessageInfo
57
58func (m *LogicalPortId) GetId() string {
59 if m != nil {
60 return m.Id
61 }
62 return ""
63}
64
65func (m *LogicalPortId) GetPortId() string {
66 if m != nil {
67 return m.PortId
68 }
69 return ""
70}
71
72type LogicalPort struct {
Matt Jeanneret4604c422019-03-14 19:04:43 -040073 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
74 OfpPort *openflow_13.OfpPort `protobuf:"bytes,2,opt,name=ofp_port,json=ofpPort,proto3" json:"ofp_port,omitempty"`
75 DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
76 DevicePortNo uint32 `protobuf:"varint,4,opt,name=device_port_no,json=devicePortNo,proto3" json:"device_port_no,omitempty"`
77 RootPort bool `protobuf:"varint,5,opt,name=root_port,json=rootPort,proto3" json:"root_port,omitempty"`
78 OfpPortStats *openflow_13.OfpPortStats `protobuf:"bytes,6,opt,name=ofp_port_stats,json=ofpPortStats,proto3" json:"ofp_port_stats,omitempty"`
79 XXX_NoUnkeyedLiteral struct{} `json:"-"`
80 XXX_unrecognized []byte `json:"-"`
81 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -040082}
83
84func (m *LogicalPort) Reset() { *m = LogicalPort{} }
85func (m *LogicalPort) String() string { return proto.CompactTextString(m) }
86func (*LogicalPort) ProtoMessage() {}
87func (*LogicalPort) Descriptor() ([]byte, []int) {
Matt Jeanneret4604c422019-03-14 19:04:43 -040088 return fileDescriptor_logical_device_eab9968d916b9ed2, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040089}
90func (m *LogicalPort) XXX_Unmarshal(b []byte) error {
91 return xxx_messageInfo_LogicalPort.Unmarshal(m, b)
92}
93func (m *LogicalPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
94 return xxx_messageInfo_LogicalPort.Marshal(b, m, deterministic)
95}
96func (dst *LogicalPort) XXX_Merge(src proto.Message) {
97 xxx_messageInfo_LogicalPort.Merge(dst, src)
98}
99func (m *LogicalPort) XXX_Size() int {
100 return xxx_messageInfo_LogicalPort.Size(m)
101}
102func (m *LogicalPort) XXX_DiscardUnknown() {
103 xxx_messageInfo_LogicalPort.DiscardUnknown(m)
104}
105
106var xxx_messageInfo_LogicalPort proto.InternalMessageInfo
107
108func (m *LogicalPort) GetId() string {
109 if m != nil {
110 return m.Id
111 }
112 return ""
113}
114
115func (m *LogicalPort) GetOfpPort() *openflow_13.OfpPort {
116 if m != nil {
117 return m.OfpPort
118 }
119 return nil
120}
121
122func (m *LogicalPort) GetDeviceId() string {
123 if m != nil {
124 return m.DeviceId
125 }
126 return ""
127}
128
129func (m *LogicalPort) GetDevicePortNo() uint32 {
130 if m != nil {
131 return m.DevicePortNo
132 }
133 return 0
134}
135
136func (m *LogicalPort) GetRootPort() bool {
137 if m != nil {
138 return m.RootPort
139 }
140 return false
141}
142
Matt Jeanneret4604c422019-03-14 19:04:43 -0400143func (m *LogicalPort) GetOfpPortStats() *openflow_13.OfpPortStats {
144 if m != nil {
145 return m.OfpPortStats
146 }
147 return nil
148}
149
William Kurkian1b363f42019-03-12 15:28:12 -0400150type LogicalPorts struct {
151 Items []*LogicalPort `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
152 XXX_NoUnkeyedLiteral struct{} `json:"-"`
153 XXX_unrecognized []byte `json:"-"`
154 XXX_sizecache int32 `json:"-"`
155}
156
157func (m *LogicalPorts) Reset() { *m = LogicalPorts{} }
158func (m *LogicalPorts) String() string { return proto.CompactTextString(m) }
159func (*LogicalPorts) ProtoMessage() {}
160func (*LogicalPorts) Descriptor() ([]byte, []int) {
Matt Jeanneret4604c422019-03-14 19:04:43 -0400161 return fileDescriptor_logical_device_eab9968d916b9ed2, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400162}
163func (m *LogicalPorts) XXX_Unmarshal(b []byte) error {
164 return xxx_messageInfo_LogicalPorts.Unmarshal(m, b)
165}
166func (m *LogicalPorts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
167 return xxx_messageInfo_LogicalPorts.Marshal(b, m, deterministic)
168}
169func (dst *LogicalPorts) XXX_Merge(src proto.Message) {
170 xxx_messageInfo_LogicalPorts.Merge(dst, src)
171}
172func (m *LogicalPorts) XXX_Size() int {
173 return xxx_messageInfo_LogicalPorts.Size(m)
174}
175func (m *LogicalPorts) XXX_DiscardUnknown() {
176 xxx_messageInfo_LogicalPorts.DiscardUnknown(m)
177}
178
179var xxx_messageInfo_LogicalPorts proto.InternalMessageInfo
180
181func (m *LogicalPorts) GetItems() []*LogicalPort {
182 if m != nil {
183 return m.Items
184 }
185 return nil
186}
187
188type LogicalDevice struct {
189 // unique id of logical device
190 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
191 // unique datapath id for the logical device (used by the SDN controller)
192 DatapathId uint64 `protobuf:"varint,2,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"`
193 // device description
194 Desc *openflow_13.OfpDesc `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
195 // device features
196 SwitchFeatures *openflow_13.OfpSwitchFeatures `protobuf:"bytes,4,opt,name=switch_features,json=switchFeatures,proto3" json:"switch_features,omitempty"`
197 // name of the root device anchoring logical device
198 RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId,proto3" json:"root_device_id,omitempty"`
199 // logical device ports
200 Ports []*LogicalPort `protobuf:"bytes,128,rep,name=ports,proto3" json:"ports,omitempty"`
201 // flows configured on the logical device
202 Flows *openflow_13.Flows `protobuf:"bytes,129,opt,name=flows,proto3" json:"flows,omitempty"`
203 // flow groups configured on the logical device
204 FlowGroups *openflow_13.FlowGroups `protobuf:"bytes,130,opt,name=flow_groups,json=flowGroups,proto3" json:"flow_groups,omitempty"`
205 XXX_NoUnkeyedLiteral struct{} `json:"-"`
206 XXX_unrecognized []byte `json:"-"`
207 XXX_sizecache int32 `json:"-"`
208}
209
210func (m *LogicalDevice) Reset() { *m = LogicalDevice{} }
211func (m *LogicalDevice) String() string { return proto.CompactTextString(m) }
212func (*LogicalDevice) ProtoMessage() {}
213func (*LogicalDevice) Descriptor() ([]byte, []int) {
Matt Jeanneret4604c422019-03-14 19:04:43 -0400214 return fileDescriptor_logical_device_eab9968d916b9ed2, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400215}
216func (m *LogicalDevice) XXX_Unmarshal(b []byte) error {
217 return xxx_messageInfo_LogicalDevice.Unmarshal(m, b)
218}
219func (m *LogicalDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
220 return xxx_messageInfo_LogicalDevice.Marshal(b, m, deterministic)
221}
222func (dst *LogicalDevice) XXX_Merge(src proto.Message) {
223 xxx_messageInfo_LogicalDevice.Merge(dst, src)
224}
225func (m *LogicalDevice) XXX_Size() int {
226 return xxx_messageInfo_LogicalDevice.Size(m)
227}
228func (m *LogicalDevice) XXX_DiscardUnknown() {
229 xxx_messageInfo_LogicalDevice.DiscardUnknown(m)
230}
231
232var xxx_messageInfo_LogicalDevice proto.InternalMessageInfo
233
234func (m *LogicalDevice) GetId() string {
235 if m != nil {
236 return m.Id
237 }
238 return ""
239}
240
241func (m *LogicalDevice) GetDatapathId() uint64 {
242 if m != nil {
243 return m.DatapathId
244 }
245 return 0
246}
247
248func (m *LogicalDevice) GetDesc() *openflow_13.OfpDesc {
249 if m != nil {
250 return m.Desc
251 }
252 return nil
253}
254
255func (m *LogicalDevice) GetSwitchFeatures() *openflow_13.OfpSwitchFeatures {
256 if m != nil {
257 return m.SwitchFeatures
258 }
259 return nil
260}
261
262func (m *LogicalDevice) GetRootDeviceId() string {
263 if m != nil {
264 return m.RootDeviceId
265 }
266 return ""
267}
268
269func (m *LogicalDevice) GetPorts() []*LogicalPort {
270 if m != nil {
271 return m.Ports
272 }
273 return nil
274}
275
276func (m *LogicalDevice) GetFlows() *openflow_13.Flows {
277 if m != nil {
278 return m.Flows
279 }
280 return nil
281}
282
283func (m *LogicalDevice) GetFlowGroups() *openflow_13.FlowGroups {
284 if m != nil {
285 return m.FlowGroups
286 }
287 return nil
288}
289
290type LogicalDevices struct {
291 Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
292 XXX_NoUnkeyedLiteral struct{} `json:"-"`
293 XXX_unrecognized []byte `json:"-"`
294 XXX_sizecache int32 `json:"-"`
295}
296
297func (m *LogicalDevices) Reset() { *m = LogicalDevices{} }
298func (m *LogicalDevices) String() string { return proto.CompactTextString(m) }
299func (*LogicalDevices) ProtoMessage() {}
300func (*LogicalDevices) Descriptor() ([]byte, []int) {
Matt Jeanneret4604c422019-03-14 19:04:43 -0400301 return fileDescriptor_logical_device_eab9968d916b9ed2, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400302}
303func (m *LogicalDevices) XXX_Unmarshal(b []byte) error {
304 return xxx_messageInfo_LogicalDevices.Unmarshal(m, b)
305}
306func (m *LogicalDevices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
307 return xxx_messageInfo_LogicalDevices.Marshal(b, m, deterministic)
308}
309func (dst *LogicalDevices) XXX_Merge(src proto.Message) {
310 xxx_messageInfo_LogicalDevices.Merge(dst, src)
311}
312func (m *LogicalDevices) XXX_Size() int {
313 return xxx_messageInfo_LogicalDevices.Size(m)
314}
315func (m *LogicalDevices) XXX_DiscardUnknown() {
316 xxx_messageInfo_LogicalDevices.DiscardUnknown(m)
317}
318
319var xxx_messageInfo_LogicalDevices proto.InternalMessageInfo
320
321func (m *LogicalDevices) GetItems() []*LogicalDevice {
322 if m != nil {
323 return m.Items
324 }
325 return nil
326}
327
328func init() {
329 proto.RegisterType((*LogicalPortId)(nil), "voltha.LogicalPortId")
330 proto.RegisterType((*LogicalPort)(nil), "voltha.LogicalPort")
331 proto.RegisterType((*LogicalPorts)(nil), "voltha.LogicalPorts")
332 proto.RegisterType((*LogicalDevice)(nil), "voltha.LogicalDevice")
333 proto.RegisterType((*LogicalDevices)(nil), "voltha.LogicalDevices")
334}
335
336func init() {
Matt Jeanneret4604c422019-03-14 19:04:43 -0400337 proto.RegisterFile("voltha_protos/logical_device.proto", fileDescriptor_logical_device_eab9968d916b9ed2)
William Kurkian1b363f42019-03-12 15:28:12 -0400338}
339
Matt Jeanneret4604c422019-03-14 19:04:43 -0400340var fileDescriptor_logical_device_eab9968d916b9ed2 = []byte{
341 // 512 bytes of a gzipped FileDescriptorProto
342 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4f, 0x6b, 0x13, 0x41,
343 0x14, 0x77, 0x9b, 0x6c, 0x9a, 0xbc, 0x4d, 0x23, 0x8c, 0x94, 0x2e, 0xad, 0xd2, 0xb0, 0x78, 0x48,
344 0x29, 0x4d, 0x6a, 0x8a, 0xa0, 0x07, 0x41, 0x43, 0xa9, 0x04, 0x44, 0x64, 0xbc, 0x79, 0x59, 0xa6,
345 0x3b, 0x9b, 0xcd, 0x40, 0x92, 0xb7, 0xec, 0x4c, 0xda, 0xab, 0x7a, 0xf1, 0xd3, 0xf9, 0x25, 0xfc,
346 0x08, 0x1e, 0x3c, 0xcb, 0xbc, 0xd9, 0xad, 0xd9, 0xa6, 0x1e, 0xf7, 0xf7, 0xe7, 0xbd, 0xdf, 0xfc,
347 0x1e, 0x0b, 0xd1, 0x0d, 0x2e, 0xcc, 0x5c, 0xc4, 0x79, 0x81, 0x06, 0xf5, 0x68, 0x81, 0x99, 0x4a,
348 0xc4, 0x22, 0x96, 0xe9, 0x8d, 0x4a, 0xd2, 0x21, 0xa1, 0xac, 0xe5, 0x34, 0x87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x95, 0x87, 0x9c, 0x9c, 0x7d, 0x39, 0xcd, 0x94, 0x99, 0xaf, 0xaf, 0x87, 0x09, 0x2e,
372 0xe9, 0x97, 0x4a, 0xb0, 0x90, 0x23, 0x67, 0x39, 0x2b, 0xff, 0xb4, 0x0c, 0x4b, 0xe0, 0xba, 0x45,
373 0xc8, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x23, 0x92, 0xcd, 0x9e, 0xef, 0x03, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400374}