blob: 4b96daa47a33844ba4c3755fb92c810c73f1581f [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"
Matteo Scandolob3c08ae2020-10-14 13:15:43 -07009 _ "github.com/opencord/voltha-protos/v4/go/common"
10 openflow_13 "github.com/opencord/voltha-protos/v4/go/openflow_13"
William Kurkianad745652019-03-20 08:45:51 -040011 _ "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
Kent Hagerman66e56b42020-07-09 14:30:23 -0400203 RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId,proto3" json:"root_device_id,omitempty"`
204 XXX_NoUnkeyedLiteral struct{} `json:"-"`
205 XXX_unrecognized []byte `json:"-"`
206 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -0400207}
208
209func (m *LogicalDevice) Reset() { *m = LogicalDevice{} }
210func (m *LogicalDevice) String() string { return proto.CompactTextString(m) }
211func (*LogicalDevice) ProtoMessage() {}
212func (*LogicalDevice) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400213 return fileDescriptor_caf139ab3abc8240, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400214}
William Kurkianad745652019-03-20 08:45:51 -0400215
William Kurkian1b363f42019-03-12 15:28:12 -0400216func (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}
William Kurkianad745652019-03-20 08:45:51 -0400222func (m *LogicalDevice) XXX_Merge(src proto.Message) {
223 xxx_messageInfo_LogicalDevice.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400224}
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
William Kurkian1b363f42019-03-12 15:28:12 -0400269type LogicalDevices struct {
270 Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
271 XXX_NoUnkeyedLiteral struct{} `json:"-"`
272 XXX_unrecognized []byte `json:"-"`
273 XXX_sizecache int32 `json:"-"`
274}
275
276func (m *LogicalDevices) Reset() { *m = LogicalDevices{} }
277func (m *LogicalDevices) String() string { return proto.CompactTextString(m) }
278func (*LogicalDevices) ProtoMessage() {}
279func (*LogicalDevices) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400280 return fileDescriptor_caf139ab3abc8240, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400281}
William Kurkianad745652019-03-20 08:45:51 -0400282
William Kurkian1b363f42019-03-12 15:28:12 -0400283func (m *LogicalDevices) XXX_Unmarshal(b []byte) error {
284 return xxx_messageInfo_LogicalDevices.Unmarshal(m, b)
285}
286func (m *LogicalDevices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
287 return xxx_messageInfo_LogicalDevices.Marshal(b, m, deterministic)
288}
William Kurkianad745652019-03-20 08:45:51 -0400289func (m *LogicalDevices) XXX_Merge(src proto.Message) {
290 xxx_messageInfo_LogicalDevices.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400291}
292func (m *LogicalDevices) XXX_Size() int {
293 return xxx_messageInfo_LogicalDevices.Size(m)
294}
295func (m *LogicalDevices) XXX_DiscardUnknown() {
296 xxx_messageInfo_LogicalDevices.DiscardUnknown(m)
297}
298
299var xxx_messageInfo_LogicalDevices proto.InternalMessageInfo
300
301func (m *LogicalDevices) GetItems() []*LogicalDevice {
302 if m != nil {
303 return m.Items
304 }
305 return nil
306}
307
308func init() {
309 proto.RegisterType((*LogicalPortId)(nil), "voltha.LogicalPortId")
310 proto.RegisterType((*LogicalPort)(nil), "voltha.LogicalPort")
311 proto.RegisterType((*LogicalPorts)(nil), "voltha.LogicalPorts")
312 proto.RegisterType((*LogicalDevice)(nil), "voltha.LogicalDevice")
313 proto.RegisterType((*LogicalDevices)(nil), "voltha.LogicalDevices")
314}
315
William Kurkianad745652019-03-20 08:45:51 -0400316func init() { proto.RegisterFile("voltha_protos/logical_device.proto", fileDescriptor_caf139ab3abc8240) }
William Kurkian1b363f42019-03-12 15:28:12 -0400317
William Kurkianad745652019-03-20 08:45:51 -0400318var fileDescriptor_caf139ab3abc8240 = []byte{
Kent Hagerman66e56b42020-07-09 14:30:23 -0400319 // 456 bytes of a gzipped FileDescriptorProto
320 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x6a, 0xdb, 0x40,
321 0x10, 0x86, 0x91, 0x63, 0x3b, 0xce, 0xca, 0x51, 0x40, 0x21, 0x54, 0x24, 0x85, 0x08, 0xd1, 0x83,
Matteo Scandolob3c08ae2020-10-14 13:15:43 -0700322 0x43, 0xa9, 0xd4, 0x3a, 0x3d, 0xb4, 0x87, 0x1e, 0x1a, 0x42, 0xc0, 0x50, 0xda, 0xb2, 0x85, 0x1e,
323 0x7a, 0x11, 0x1b, 0xed, 0x5a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, 0xcd, 0xc9, 0xb7, 0xbb, 0x01, 0xfe,
346 0x2b, 0x2d, 0xa5, 0xde, 0x3c, 0xdc, 0xa7, 0x05, 0x6c, 0xb3, 0x0e, 0xce, 0x2c, 0xfc, 0xc6, 0xfd,
347 0xe4, 0xbb, 0xf7, 0x59, 0x09, 0x4e, 0xbb, 0x9f, 0xa2, 0x78, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff,
348 0xda, 0x87, 0xca, 0xb8, 0x6d, 0x03, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400349}