blob: e8ea3dfa0251e89d31cd55b01cec23e4ee68eec9 [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/adapter.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 (
Abhay Kumar03713392025-12-30 05:20:58 +000010 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 anypb "google.golang.org/protobuf/types/known/anypb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
William Kurkianad745652019-03-20 08:45:51 -040016)
William Kurkian1b363f42019-03-12 15:28:12 -040017
Abhay Kumar03713392025-12-30 05:20:58 +000018const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23)
William Kurkian1b363f42019-03-12 15:28:12 -040024
25type AdapterConfig struct {
Abhay Kumar03713392025-12-30 05:20:58 +000026 state protoimpl.MessageState `protogen:"open.v1"`
William Kurkian1b363f42019-03-12 15:28:12 -040027 // Custom (vendor-specific) configuration attributes
Abhay Kumar03713392025-12-30 05:20:58 +000028 AdditionalConfig *anypb.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"`
29 unknownFields protoimpl.UnknownFields
30 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -040031}
32
Abhay Kumar03713392025-12-30 05:20:58 +000033func (x *AdapterConfig) Reset() {
34 *x = AdapterConfig{}
35 mi := &file_voltha_protos_adapter_proto_msgTypes[0]
36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 ms.StoreMessageInfo(mi)
38}
39
40func (x *AdapterConfig) String() string {
41 return protoimpl.X.MessageStringOf(x)
42}
43
44func (*AdapterConfig) ProtoMessage() {}
45
46func (x *AdapterConfig) ProtoReflect() protoreflect.Message {
47 mi := &file_voltha_protos_adapter_proto_msgTypes[0]
48 if x != nil {
49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 if ms.LoadMessageInfo() == nil {
51 ms.StoreMessageInfo(mi)
52 }
53 return ms
54 }
55 return mi.MessageOf(x)
56}
57
58// Deprecated: Use AdapterConfig.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -040059func (*AdapterConfig) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +000060 return file_voltha_protos_adapter_proto_rawDescGZIP(), []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040061}
William Kurkianad745652019-03-20 08:45:51 -040062
Abhay Kumar03713392025-12-30 05:20:58 +000063func (x *AdapterConfig) GetAdditionalConfig() *anypb.Any {
64 if x != nil {
65 return x.AdditionalConfig
William Kurkian1b363f42019-03-12 15:28:12 -040066 }
67 return nil
68}
69
70// Adapter (software plugin)
71type Adapter struct {
Abhay Kumar03713392025-12-30 05:20:58 +000072 state protoimpl.MessageState `protogen:"open.v1"`
Matteo Scandolo1403e742020-04-06 11:38:40 -070073 // the adapter ID has to be unique,
74 // it will be generated as Type + CurrentReplica
William Kurkian1b363f42019-03-12 15:28:12 -040075 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
76 Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
77 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
78 // Adapter configuration
79 Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"`
80 // Custom descriptors and custom configuration
Abhay Kumar03713392025-12-30 05:20:58 +000081 AdditionalDescription *anypb.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"`
82 LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"` // Logical devices "owned"
Kent Hagerman801796c2019-12-16 15:07:50 -050083 // timestamp when the adapter last sent a message to the core
khenaidoo5fc5cea2021-08-11 17:39:16 -040084 LastCommunication int64 `protobuf:"varint,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"`
85 CurrentReplica int32 `protobuf:"varint,6,opt,name=currentReplica,proto3" json:"currentReplica,omitempty"`
86 TotalReplicas int32 `protobuf:"varint,7,opt,name=totalReplicas,proto3" json:"totalReplicas,omitempty"`
87 Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
Matteo Scandolo1403e742020-04-06 11:38:40 -070088 // all replicas of the same adapter will have the same type
89 // it is used to associate a device to an adapter
Abhay Kumar03713392025-12-30 05:20:58 +000090 Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`
91 unknownFields protoimpl.UnknownFields
92 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -040093}
94
Abhay Kumar03713392025-12-30 05:20:58 +000095func (x *Adapter) Reset() {
96 *x = Adapter{}
97 mi := &file_voltha_protos_adapter_proto_msgTypes[1]
98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
99 ms.StoreMessageInfo(mi)
100}
101
102func (x *Adapter) String() string {
103 return protoimpl.X.MessageStringOf(x)
104}
105
106func (*Adapter) ProtoMessage() {}
107
108func (x *Adapter) ProtoReflect() protoreflect.Message {
109 mi := &file_voltha_protos_adapter_proto_msgTypes[1]
110 if x != nil {
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 if ms.LoadMessageInfo() == nil {
113 ms.StoreMessageInfo(mi)
114 }
115 return ms
116 }
117 return mi.MessageOf(x)
118}
119
120// Deprecated: Use Adapter.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400121func (*Adapter) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000122 return file_voltha_protos_adapter_proto_rawDescGZIP(), []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -0400123}
William Kurkianad745652019-03-20 08:45:51 -0400124
Abhay Kumar03713392025-12-30 05:20:58 +0000125func (x *Adapter) GetId() string {
126 if x != nil {
127 return x.Id
William Kurkian1b363f42019-03-12 15:28:12 -0400128 }
129 return ""
130}
131
Abhay Kumar03713392025-12-30 05:20:58 +0000132func (x *Adapter) GetVendor() string {
133 if x != nil {
134 return x.Vendor
William Kurkian1b363f42019-03-12 15:28:12 -0400135 }
136 return ""
137}
138
Abhay Kumar03713392025-12-30 05:20:58 +0000139func (x *Adapter) GetVersion() string {
140 if x != nil {
141 return x.Version
William Kurkian1b363f42019-03-12 15:28:12 -0400142 }
143 return ""
144}
145
Abhay Kumar03713392025-12-30 05:20:58 +0000146func (x *Adapter) GetConfig() *AdapterConfig {
147 if x != nil {
148 return x.Config
William Kurkian1b363f42019-03-12 15:28:12 -0400149 }
150 return nil
151}
152
Abhay Kumar03713392025-12-30 05:20:58 +0000153func (x *Adapter) GetAdditionalDescription() *anypb.Any {
154 if x != nil {
155 return x.AdditionalDescription
William Kurkian1b363f42019-03-12 15:28:12 -0400156 }
157 return nil
158}
159
Abhay Kumar03713392025-12-30 05:20:58 +0000160func (x *Adapter) GetLogicalDeviceIds() []string {
161 if x != nil {
162 return x.LogicalDeviceIds
William Kurkian1b363f42019-03-12 15:28:12 -0400163 }
164 return nil
165}
166
Abhay Kumar03713392025-12-30 05:20:58 +0000167func (x *Adapter) GetLastCommunication() int64 {
168 if x != nil {
169 return x.LastCommunication
Kent Hagerman801796c2019-12-16 15:07:50 -0500170 }
khenaidoo5fc5cea2021-08-11 17:39:16 -0400171 return 0
Kent Hagerman801796c2019-12-16 15:07:50 -0500172}
173
Abhay Kumar03713392025-12-30 05:20:58 +0000174func (x *Adapter) GetCurrentReplica() int32 {
175 if x != nil {
176 return x.CurrentReplica
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700177 }
178 return 0
179}
180
Abhay Kumar03713392025-12-30 05:20:58 +0000181func (x *Adapter) GetTotalReplicas() int32 {
182 if x != nil {
183 return x.TotalReplicas
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700184 }
185 return 0
186}
187
Abhay Kumar03713392025-12-30 05:20:58 +0000188func (x *Adapter) GetEndpoint() string {
189 if x != nil {
190 return x.Endpoint
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700191 }
192 return ""
193}
194
Abhay Kumar03713392025-12-30 05:20:58 +0000195func (x *Adapter) GetType() string {
196 if x != nil {
197 return x.Type
Matteo Scandolo1403e742020-04-06 11:38:40 -0700198 }
199 return ""
200}
201
William Kurkian1b363f42019-03-12 15:28:12 -0400202type Adapters struct {
Abhay Kumar03713392025-12-30 05:20:58 +0000203 state protoimpl.MessageState `protogen:"open.v1"`
204 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
205 unknownFields protoimpl.UnknownFields
206 sizeCache protoimpl.SizeCache
William Kurkian1b363f42019-03-12 15:28:12 -0400207}
208
Abhay Kumar03713392025-12-30 05:20:58 +0000209func (x *Adapters) Reset() {
210 *x = Adapters{}
211 mi := &file_voltha_protos_adapter_proto_msgTypes[2]
212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
213 ms.StoreMessageInfo(mi)
214}
215
216func (x *Adapters) String() string {
217 return protoimpl.X.MessageStringOf(x)
218}
219
220func (*Adapters) ProtoMessage() {}
221
222func (x *Adapters) ProtoReflect() protoreflect.Message {
223 mi := &file_voltha_protos_adapter_proto_msgTypes[2]
224 if x != nil {
225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
226 if ms.LoadMessageInfo() == nil {
227 ms.StoreMessageInfo(mi)
228 }
229 return ms
230 }
231 return mi.MessageOf(x)
232}
233
234// Deprecated: Use Adapters.ProtoReflect.Descriptor instead.
William Kurkian1b363f42019-03-12 15:28:12 -0400235func (*Adapters) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000236 return file_voltha_protos_adapter_proto_rawDescGZIP(), []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400237}
William Kurkianad745652019-03-20 08:45:51 -0400238
Abhay Kumar03713392025-12-30 05:20:58 +0000239func (x *Adapters) GetItems() []*Adapter {
240 if x != nil {
241 return x.Items
William Kurkian1b363f42019-03-12 15:28:12 -0400242 }
243 return nil
244}
245
Abhay Kumar03713392025-12-30 05:20:58 +0000246var File_voltha_protos_adapter_proto protoreflect.FileDescriptor
247
248const file_voltha_protos_adapter_proto_rawDesc = "" +
249 "\n" +
250 "\x1bvoltha_protos/adapter.proto\x12\aadapter\x1a\x19google/protobuf/any.proto\"R\n" +
251 "\rAdapterConfig\x12A\n" +
252 "\x11additional_config\x18@ \x01(\v2\x14.google.protobuf.AnyR\x10additionalConfig\"\xa3\x03\n" +
253 "\aAdapter\x12\x0e\n" +
254 "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
255 "\x06vendor\x18\x02 \x01(\tR\x06vendor\x12\x18\n" +
256 "\aversion\x18\x03 \x01(\tR\aversion\x12.\n" +
257 "\x06config\x18\x10 \x01(\v2\x16.adapter.AdapterConfigR\x06config\x12K\n" +
258 "\x16additional_description\x18@ \x01(\v2\x14.google.protobuf.AnyR\x15additionalDescription\x12,\n" +
259 "\x12logical_device_ids\x18\x04 \x03(\tR\x10logicalDeviceIds\x12-\n" +
260 "\x12last_communication\x18\x05 \x01(\x03R\x11lastCommunication\x12&\n" +
261 "\x0ecurrentReplica\x18\x06 \x01(\x05R\x0ecurrentReplica\x12$\n" +
262 "\rtotalReplicas\x18\a \x01(\x05R\rtotalReplicas\x12\x1a\n" +
263 "\bendpoint\x18\b \x01(\tR\bendpoint\x12\x12\n" +
264 "\x04type\x18\t \x01(\tR\x04type\"2\n" +
265 "\bAdapters\x12&\n" +
266 "\x05items\x18\x01 \x03(\v2\x10.adapter.AdapterR\x05itemsB\\\n" +
267 "\x1borg.opencord.voltha.adapterB\rVolthaAdapterZ.github.com/opencord/voltha-protos/v5/go/volthab\x06proto3"
268
269var (
270 file_voltha_protos_adapter_proto_rawDescOnce sync.Once
271 file_voltha_protos_adapter_proto_rawDescData []byte
272)
273
274func file_voltha_protos_adapter_proto_rawDescGZIP() []byte {
275 file_voltha_protos_adapter_proto_rawDescOnce.Do(func() {
276 file_voltha_protos_adapter_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_adapter_proto_rawDesc), len(file_voltha_protos_adapter_proto_rawDesc)))
277 })
278 return file_voltha_protos_adapter_proto_rawDescData
William Kurkian1b363f42019-03-12 15:28:12 -0400279}
280
Abhay Kumar03713392025-12-30 05:20:58 +0000281var file_voltha_protos_adapter_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
282var file_voltha_protos_adapter_proto_goTypes = []any{
283 (*AdapterConfig)(nil), // 0: adapter.AdapterConfig
284 (*Adapter)(nil), // 1: adapter.Adapter
285 (*Adapters)(nil), // 2: adapter.Adapters
286 (*anypb.Any)(nil), // 3: google.protobuf.Any
287}
288var file_voltha_protos_adapter_proto_depIdxs = []int32{
289 3, // 0: adapter.AdapterConfig.additional_config:type_name -> google.protobuf.Any
290 0, // 1: adapter.Adapter.config:type_name -> adapter.AdapterConfig
291 3, // 2: adapter.Adapter.additional_description:type_name -> google.protobuf.Any
292 1, // 3: adapter.Adapters.items:type_name -> adapter.Adapter
293 4, // [4:4] is the sub-list for method output_type
294 4, // [4:4] is the sub-list for method input_type
295 4, // [4:4] is the sub-list for extension type_name
296 4, // [4:4] is the sub-list for extension extendee
297 0, // [0:4] is the sub-list for field type_name
298}
William Kurkian1b363f42019-03-12 15:28:12 -0400299
Abhay Kumar03713392025-12-30 05:20:58 +0000300func init() { file_voltha_protos_adapter_proto_init() }
301func file_voltha_protos_adapter_proto_init() {
302 if File_voltha_protos_adapter_proto != nil {
303 return
304 }
305 type x struct{}
306 out := protoimpl.TypeBuilder{
307 File: protoimpl.DescBuilder{
308 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
309 RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_adapter_proto_rawDesc), len(file_voltha_protos_adapter_proto_rawDesc)),
310 NumEnums: 0,
311 NumMessages: 3,
312 NumExtensions: 0,
313 NumServices: 0,
314 },
315 GoTypes: file_voltha_protos_adapter_proto_goTypes,
316 DependencyIndexes: file_voltha_protos_adapter_proto_depIdxs,
317 MessageInfos: file_voltha_protos_adapter_proto_msgTypes,
318 }.Build()
319 File_voltha_protos_adapter_proto = out.File
320 file_voltha_protos_adapter_proto_goTypes = nil
321 file_voltha_protos_adapter_proto_depIdxs = nil
William Kurkian1b363f42019-03-12 15:28:12 -0400322}