blob: ba19ad1fc5839e1c454e135312d558021fdf59ae [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
Abhay Kumar03713392025-12-30 05:20:58 +00002// versions:
3// protoc-gen-go v1.36.11
4// protoc v4.25.8
William Kurkian1b363f42019-03-12 15:28:12 -04005// source: voltha_protos/logical_device.proto
6
William Kurkianad745652019-03-20 08:45:51 -04007package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04008
William Kurkianad745652019-03-20 08:45:51 -04009import (
khenaidoo5fc5cea2021-08-11 17:39:16 -040010 openflow_13 "github.com/opencord/voltha-protos/v5/go/openflow_13"
William Kurkianad745652019-03-20 08:45:51 -040011 _ "google.golang.org/genproto/googleapis/api/annotations"
Abhay Kumar03713392025-12-30 05:20:58 +000012 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
William Kurkianad745652019-03-20 08:45:51 -040017)
William Kurkian1b363f42019-03-12 15:28:12 -040018
Abhay Kumar03713392025-12-30 05:20:58 +000019const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24)
William Kurkian1b363f42019-03-12 15:28:12 -040025
26type LogicalPortId struct {
Abhay Kumar03713392025-12-30 05:20:58 +000027 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -040028 // unique id of logical device
29 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
30 // id of the port on the logical device
Abhay Kumar03713392025-12-30 05:20:58 +000031 PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -040034}
35
Abhay Kumar03713392025-12-30 05:20:58 +000036func (x *LogicalPortId) Reset() {
37 *x = LogicalPortId{}
38 mi := &file_voltha_protos_logical_device_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41}
42
43func (x *LogicalPortId) String() string {
44 return protoimpl.X.MessageStringOf(x)
45}
46
47func (*LogicalPortId) ProtoMessage() {}
48
49func (x *LogicalPortId) ProtoReflect() protoreflect.Message {
50 mi := &file_voltha_protos_logical_device_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59}
60
61// Deprecated: Use LogicalPortId.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -040062func (*LogicalPortId) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +000063 return file_voltha_protos_logical_device_proto_rawDescGZIP(), []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040064}
William Kurkianad745652019-03-20 08:45:51 -040065
Abhay Kumar03713392025-12-30 05:20:58 +000066func (x *LogicalPortId) GetId() string {
67 if x != nil {
68 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -040069 }
70 return ""
71}
72
Abhay Kumar03713392025-12-30 05:20:58 +000073func (x *LogicalPortId) GetPortId() string {
74 if x != nil {
75 return x.PortId
William Kurkian1b363f42019-03-12 15:28:12 -040076 }
77 return ""
78}
79
80type LogicalPort struct {
Abhay Kumar03713392025-12-30 05:20:58 +000081 state protoimpl.MessageState `protogen:"open.v1"`
82 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
83 OfpPort *openflow_13.OfpPort `protobuf:"bytes,2,opt,name=ofp_port,json=ofpPort,proto3" json:"ofp_port,omitempty"`
84 DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
85 DevicePortNo uint32 `protobuf:"varint,4,opt,name=device_port_no,json=devicePortNo,proto3" json:"device_port_no,omitempty"`
86 RootPort bool `protobuf:"varint,5,opt,name=root_port,json=rootPort,proto3" json:"root_port,omitempty"`
87 OfpPortStats *openflow_13.OfpPortStats `protobuf:"bytes,6,opt,name=ofp_port_stats,json=ofpPortStats,proto3" json:"ofp_port_stats,omitempty"`
88 unknownFields protoimpl.UnknownFields
89 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -040090}
91
Abhay Kumar03713392025-12-30 05:20:58 +000092func (x *LogicalPort) Reset() {
93 *x = LogicalPort{}
94 mi := &file_voltha_protos_logical_device_proto_msgTypes[1]
95 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
96 ms.StoreMessageInfo(mi)
97}
98
99func (x *LogicalPort) String() string {
100 return protoimpl.X.MessageStringOf(x)
101}
102
103func (*LogicalPort) ProtoMessage() {}
104
105func (x *LogicalPort) ProtoReflect() protoreflect.Message {
106 mi := &file_voltha_protos_logical_device_proto_msgTypes[1]
107 if x != nil {
108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 if ms.LoadMessageInfo() == nil {
110 ms.StoreMessageInfo(mi)
111 }
112 return ms
113 }
114 return mi.MessageOf(x)
115}
116
117// Deprecated: Use LogicalPort.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400118func (*LogicalPort) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000119 return file_voltha_protos_logical_device_proto_rawDescGZIP(), []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -0400120}
William Kurkianad745652019-03-20 08:45:51 -0400121
Abhay Kumar03713392025-12-30 05:20:58 +0000122func (x *LogicalPort) GetId() string {
123 if x != nil {
124 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -0400125 }
126 return ""
127}
128
Abhay Kumar03713392025-12-30 05:20:58 +0000129func (x *LogicalPort) GetOfpPort() *openflow_13.OfpPort {
130 if x != nil {
131 return x.OfpPort
William Kurkian1b363f42019-03-12 15:28:12 -0400132 }
133 return nil
134}
135
Abhay Kumar03713392025-12-30 05:20:58 +0000136func (x *LogicalPort) GetDeviceId() string {
137 if x != nil {
138 return x.DeviceId
William Kurkian1b363f42019-03-12 15:28:12 -0400139 }
140 return ""
141}
142
Abhay Kumar03713392025-12-30 05:20:58 +0000143func (x *LogicalPort) GetDevicePortNo() uint32 {
144 if x != nil {
145 return x.DevicePortNo
William Kurkian1b363f42019-03-12 15:28:12 -0400146 }
147 return 0
148}
149
Abhay Kumar03713392025-12-30 05:20:58 +0000150func (x *LogicalPort) GetRootPort() bool {
151 if x != nil {
152 return x.RootPort
William Kurkian1b363f42019-03-12 15:28:12 -0400153 }
154 return false
155}
156
Abhay Kumar03713392025-12-30 05:20:58 +0000157func (x *LogicalPort) GetOfpPortStats() *openflow_13.OfpPortStats {
158 if x != nil {
159 return x.OfpPortStats
Matt Jeanneret4604c422019-03-14 19:04:43 -0400160 }
161 return nil
162}
163
William Kurkian1b363f42019-03-12 15:28:12 -0400164type LogicalPorts struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000165 state protoimpl.MessageState `protogen:"open.v1"`
166 Items []*LogicalPort `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
167 unknownFields protoimpl.UnknownFields
168 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400169}
170
Abhay Kumar03713392025-12-30 05:20:58 +0000171func (x *LogicalPorts) Reset() {
172 *x = LogicalPorts{}
173 mi := &file_voltha_protos_logical_device_proto_msgTypes[2]
174 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
175 ms.StoreMessageInfo(mi)
176}
177
178func (x *LogicalPorts) String() string {
179 return protoimpl.X.MessageStringOf(x)
180}
181
182func (*LogicalPorts) ProtoMessage() {}
183
184func (x *LogicalPorts) ProtoReflect() protoreflect.Message {
185 mi := &file_voltha_protos_logical_device_proto_msgTypes[2]
186 if x != nil {
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 if ms.LoadMessageInfo() == nil {
189 ms.StoreMessageInfo(mi)
190 }
191 return ms
192 }
193 return mi.MessageOf(x)
194}
195
196// Deprecated: Use LogicalPorts.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400197func (*LogicalPorts) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000198 return file_voltha_protos_logical_device_proto_rawDescGZIP(), []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400199}
William Kurkianad745652019-03-20 08:45:51 -0400200
Abhay Kumar03713392025-12-30 05:20:58 +0000201func (x *LogicalPorts) GetItems() []*LogicalPort {
202 if x != nil {
203 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -0400204 }
205 return nil
206}
207
208type LogicalDevice struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000209 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -0400210 // unique id of logical device
211 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
212 // unique datapath id for the logical device (used by the SDN controller)
213 DatapathId uint64 `protobuf:"varint,2,opt,name=datapath_id,json=datapathId,proto3" json:"datapath_id,omitempty"`
214 // device description
215 Desc *openflow_13.OfpDesc `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
216 // device features
217 SwitchFeatures *openflow_13.OfpSwitchFeatures `protobuf:"bytes,4,opt,name=switch_features,json=switchFeatures,proto3" json:"switch_features,omitempty"`
218 // name of the root device anchoring logical device
Abhay Kumar03713392025-12-30 05:20:58 +0000219 RootDeviceId string `protobuf:"bytes,5,opt,name=root_device_id,json=rootDeviceId,proto3" json:"root_device_id,omitempty"`
220 unknownFields protoimpl.UnknownFields
221 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400222}
223
Abhay Kumar03713392025-12-30 05:20:58 +0000224func (x *LogicalDevice) Reset() {
225 *x = LogicalDevice{}
226 mi := &file_voltha_protos_logical_device_proto_msgTypes[3]
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 ms.StoreMessageInfo(mi)
229}
230
231func (x *LogicalDevice) String() string {
232 return protoimpl.X.MessageStringOf(x)
233}
234
235func (*LogicalDevice) ProtoMessage() {}
236
237func (x *LogicalDevice) ProtoReflect() protoreflect.Message {
238 mi := &file_voltha_protos_logical_device_proto_msgTypes[3]
239 if x != nil {
240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
241 if ms.LoadMessageInfo() == nil {
242 ms.StoreMessageInfo(mi)
243 }
244 return ms
245 }
246 return mi.MessageOf(x)
247}
248
249// Deprecated: Use LogicalDevice.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400250func (*LogicalDevice) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000251 return file_voltha_protos_logical_device_proto_rawDescGZIP(), []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400252}
William Kurkianad745652019-03-20 08:45:51 -0400253
Abhay Kumar03713392025-12-30 05:20:58 +0000254func (x *LogicalDevice) GetId() string {
255 if x != nil {
256 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -0400257 }
258 return ""
259}
260
Abhay Kumar03713392025-12-30 05:20:58 +0000261func (x *LogicalDevice) GetDatapathId() uint64 {
262 if x != nil {
263 return x.DatapathId
William Kurkian1b363f42019-03-12 15:28:12 -0400264 }
265 return 0
266}
267
Abhay Kumar03713392025-12-30 05:20:58 +0000268func (x *LogicalDevice) GetDesc() *openflow_13.OfpDesc {
269 if x != nil {
270 return x.Desc
William Kurkian1b363f42019-03-12 15:28:12 -0400271 }
272 return nil
273}
274
Abhay Kumar03713392025-12-30 05:20:58 +0000275func (x *LogicalDevice) GetSwitchFeatures() *openflow_13.OfpSwitchFeatures {
276 if x != nil {
277 return x.SwitchFeatures
William Kurkian1b363f42019-03-12 15:28:12 -0400278 }
279 return nil
280}
281
Abhay Kumar03713392025-12-30 05:20:58 +0000282func (x *LogicalDevice) GetRootDeviceId() string {
283 if x != nil {
284 return x.RootDeviceId
William Kurkian1b363f42019-03-12 15:28:12 -0400285 }
286 return ""
287}
288
William Kurkian1b363f42019-03-12 15:28:12 -0400289type LogicalDevices struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000290 state protoimpl.MessageState `protogen:"open.v1"`
291 Items []*LogicalDevice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
292 unknownFields protoimpl.UnknownFields
293 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400294}
295
Abhay Kumar03713392025-12-30 05:20:58 +0000296func (x *LogicalDevices) Reset() {
297 *x = LogicalDevices{}
298 mi := &file_voltha_protos_logical_device_proto_msgTypes[4]
299 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
300 ms.StoreMessageInfo(mi)
301}
302
303func (x *LogicalDevices) String() string {
304 return protoimpl.X.MessageStringOf(x)
305}
306
307func (*LogicalDevices) ProtoMessage() {}
308
309func (x *LogicalDevices) ProtoReflect() protoreflect.Message {
310 mi := &file_voltha_protos_logical_device_proto_msgTypes[4]
311 if x != nil {
312 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
313 if ms.LoadMessageInfo() == nil {
314 ms.StoreMessageInfo(mi)
315 }
316 return ms
317 }
318 return mi.MessageOf(x)
319}
320
321// Deprecated: Use LogicalDevices.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400322func (*LogicalDevices) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000323 return file_voltha_protos_logical_device_proto_rawDescGZIP(), []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400324}
William Kurkianad745652019-03-20 08:45:51 -0400325
Abhay Kumar03713392025-12-30 05:20:58 +0000326func (x *LogicalDevices) GetItems() []*LogicalDevice {
327 if x != nil {
328 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -0400329 }
330 return nil
331}
332
Abhay Kumar03713392025-12-30 05:20:58 +0000333var File_voltha_protos_logical_device_proto protoreflect.FileDescriptor
334
335const file_voltha_protos_logical_device_proto_rawDesc = "" +
336 "\n" +
337 "\"voltha_protos/logical_device.proto\x12\x0elogical_device\x1a\x1cgoogle/api/annotations.proto\x1a\x1fvoltha_protos/openflow_13.proto\"8\n" +
338 "\rLogicalPortId\x12\x0e\n" +
339 "\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
340 "\aport_id\x18\x02 \x01(\tR\x06portId\"\xf2\x01\n" +
341 "\vLogicalPort\x12\x0e\n" +
342 "\x02id\x18\x01 \x01(\tR\x02id\x120\n" +
343 "\bofp_port\x18\x02 \x01(\v2\x15.openflow_13.ofp_portR\aofpPort\x12\x1b\n" +
344 "\tdevice_id\x18\x03 \x01(\tR\bdeviceId\x12$\n" +
345 "\x0edevice_port_no\x18\x04 \x01(\rR\fdevicePortNo\x12\x1b\n" +
346 "\troot_port\x18\x05 \x01(\bR\brootPort\x12A\n" +
347 "\x0eofp_port_stats\x18\x06 \x01(\v2\x1b.openflow_13.ofp_port_statsR\fofpPortStats\"A\n" +
348 "\fLogicalPorts\x121\n" +
349 "\x05items\x18\x01 \x03(\v2\x1b.logical_device.LogicalPortR\x05items\"\xdc\x01\n" +
350 "\rLogicalDevice\x12\x0e\n" +
351 "\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
352 "\vdatapath_id\x18\x02 \x01(\x04R\n" +
353 "datapathId\x12)\n" +
354 "\x04desc\x18\x03 \x01(\v2\x15.openflow_13.ofp_descR\x04desc\x12I\n" +
355 "\x0fswitch_features\x18\x04 \x01(\v2 .openflow_13.ofp_switch_featuresR\x0eswitchFeatures\x12$\n" +
356 "\x0eroot_device_id\x18\x05 \x01(\tR\frootDeviceId\"E\n" +
357 "\x0eLogicalDevices\x123\n" +
358 "\x05items\x18\x01 \x03(\v2\x1d.logical_device.LogicalDeviceR\x05itemsBe\n" +
359 "\"org.opencord.voltha.logical_deviceB\x0fOFLogicalDeviceZ.github.com/opencord/voltha-protos/v5/go/volthab\x06proto3"
360
361var (
362 file_voltha_protos_logical_device_proto_rawDescOnce sync.Once
363 file_voltha_protos_logical_device_proto_rawDescData []byte
364)
365
366func file_voltha_protos_logical_device_proto_rawDescGZIP() []byte {
367 file_voltha_protos_logical_device_proto_rawDescOnce.Do(func() {
368 file_voltha_protos_logical_device_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_logical_device_proto_rawDesc), len(file_voltha_protos_logical_device_proto_rawDesc)))
369 })
370 return file_voltha_protos_logical_device_proto_rawDescData
William Kurkian1b363f42019-03-12 15:28:12 -0400371}
372
Abhay Kumar03713392025-12-30 05:20:58 +0000373var file_voltha_protos_logical_device_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
374var file_voltha_protos_logical_device_proto_goTypes = []any{
375 (*LogicalPortId)(nil), // 0: logical_device.LogicalPortId
376 (*LogicalPort)(nil), // 1: logical_device.LogicalPort
377 (*LogicalPorts)(nil), // 2: logical_device.LogicalPorts
378 (*LogicalDevice)(nil), // 3: logical_device.LogicalDevice
379 (*LogicalDevices)(nil), // 4: logical_device.LogicalDevices
380 (*openflow_13.OfpPort)(nil), // 5: openflow_13.ofp_port
381 (*openflow_13.OfpPortStats)(nil), // 6: openflow_13.ofp_port_stats
382 (*openflow_13.OfpDesc)(nil), // 7: openflow_13.ofp_desc
383 (*openflow_13.OfpSwitchFeatures)(nil), // 8: openflow_13.ofp_switch_features
384}
385var file_voltha_protos_logical_device_proto_depIdxs = []int32{
386 5, // 0: logical_device.LogicalPort.ofp_port:type_name -> openflow_13.ofp_port
387 6, // 1: logical_device.LogicalPort.ofp_port_stats:type_name -> openflow_13.ofp_port_stats
388 1, // 2: logical_device.LogicalPorts.items:type_name -> logical_device.LogicalPort
389 7, // 3: logical_device.LogicalDevice.desc:type_name -> openflow_13.ofp_desc
390 8, // 4: logical_device.LogicalDevice.switch_features:type_name -> openflow_13.ofp_switch_features
391 3, // 5: logical_device.LogicalDevices.items:type_name -> logical_device.LogicalDevice
392 6, // [6:6] is the sub-list for method output_type
393 6, // [6:6] is the sub-list for method input_type
394 6, // [6:6] is the sub-list for extension type_name
395 6, // [6:6] is the sub-list for extension extendee
396 0, // [0:6] is the sub-list for field type_name
David K. Bainbridgec4bf5382021-04-08 16:06:54 +0000397}
William Kurkian1b363f42019-03-12 15:28:12 -0400398
Abhay Kumar03713392025-12-30 05:20:58 +0000399func init() { file_voltha_protos_logical_device_proto_init() }
400func file_voltha_protos_logical_device_proto_init() {
401 if File_voltha_protos_logical_device_proto != nil {
402 return
403 }
404 type x struct{}
405 out := protoimpl.TypeBuilder{
406 File: protoimpl.DescBuilder{
407 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
408 RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_logical_device_proto_rawDesc), len(file_voltha_protos_logical_device_proto_rawDesc)),
409 NumEnums: 0,
410 NumMessages: 5,
411 NumExtensions: 0,
412 NumServices: 0,
413 },
414 GoTypes: file_voltha_protos_logical_device_proto_goTypes,
415 DependencyIndexes: file_voltha_protos_logical_device_proto_depIdxs,
416 MessageInfos: file_voltha_protos_logical_device_proto_msgTypes,
417 }.Build()
418 File_voltha_protos_logical_device_proto = out.File
419 file_voltha_protos_logical_device_proto_goTypes = nil
420 file_voltha_protos_logical_device_proto_depIdxs = nil
William Kurkian1b363f42019-03-12 15:28:12 -0400421}