blob: 356a51d32817a5d952676dadc7ddf5844798d95d [file] [log] [blame]
khenaidoo4c6543e2021-10-19 17:25:58 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/adapter_service.proto
3
4package adapter_service
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 common "github.com/opencord/voltha-protos/v5/go/common"
12 core_adapter "github.com/opencord/voltha-protos/v5/go/core_adapter"
13 extension "github.com/opencord/voltha-protos/v5/go/extension"
14 health "github.com/opencord/voltha-protos/v5/go/health"
15 omci "github.com/opencord/voltha-protos/v5/go/omci"
16 voltha "github.com/opencord/voltha-protos/v5/go/voltha"
17 grpc "google.golang.org/grpc"
18 codes "google.golang.org/grpc/codes"
19 status "google.golang.org/grpc/status"
20 math "math"
21)
22
23// Reference imports to suppress errors if they are not otherwise used.
24var _ = proto.Marshal
25var _ = fmt.Errorf
26var _ = math.Inf
27
28// This is a compile-time assertion to ensure that this generated file
29// is compatible with the proto package it is being compiled against.
30// A compilation error at this line likely means your copy of the
31// proto package needs to be updated.
32const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
33
34func init() {
35 proto.RegisterFile("voltha_protos/adapter_service.proto", fileDescriptor_038e6ec340f67698)
36}
37
38var fileDescriptor_038e6ec340f67698 = []byte{
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +053039 // 905 bytes of a gzipped FileDescriptorProto
40 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0xdb, 0x6e, 0x1b, 0x37,
41 0x13, 0xc7, 0xe1, 0xef, 0x03, 0x7a, 0x31, 0xb6, 0x25, 0x9b, 0xb5, 0x9d, 0x62, 0x8d, 0xa6, 0x69,
42 0x72, 0xd3, 0x9b, 0xac, 0x8a, 0x04, 0x49, 0x7a, 0x40, 0xd1, 0xea, 0x14, 0x45, 0xad, 0xd3, 0x55,
43 0xb5,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55,
88 0x7e, 0x96, 0x5f, 0x7f, 0x60, 0x46, 0xd1, 0xb1, 0x51, 0x7a, 0x35, 0x7f, 0x04, 0xeb, 0x7f, 0x14,
89 0xeb, 0xaf, 0x63, 0x7f, 0x80, 0xa3, 0xe2, 0x12, 0xf4, 0x54, 0xb2, 0xfb, 0x5b, 0x2a, 0xbf, 0x74,
90 0x77, 0x77, 0xfd, 0x03, 0xce, 0x96, 0x61, 0x7d, 0x34, 0x82, 0xcb, 0xdf, 0x93, 0x68, 0x8c, 0x86,
91 0x7d, 0xb5, 0x72, 0x5e, 0xae, 0x0a, 0x9e, 0xf2, 0x2e, 0x5e, 0x0d, 0xb4, 0xda, 0x8a, 0x1c, 0xc0,
92 0xe9, 0x22, 0x9b, 0x5b, 0x21, 0xb6, 0x08, 0x1e, 0x68, 0x13, 0xba, 0x3a, 0x46, 0x15, 0x68, 0x33,
93 0x71, 0x8b, 0xe7, 0xf0, 0xda, 0x3b, 0xbf, 0x75, 0xf2, 0x3a, 0xb3, 0x57, 0x1f, 0xb8, 0x7f, 0x3d,
94 0x0b, 0x05, 0xcd, 0x92, 0x71, 0xfa, 0xc9, 0x34, 0x4a, 0x42, 0xf1, 0xa0, 0x7e, 0x58, 0x3e, 0xaf,
95 0x9f, 0x34, 0x42, 0xbd, 0xfe, 0x6f, 0x62, 0xfc, 0x59, 0xa6, 0x3e, 0xfe, 0x2f, 0x00, 0x00, 0xff,
96 0xff, 0xab, 0x79, 0xdb, 0x21, 0x75, 0x0c, 0x00, 0x00,
khenaidoo4c6543e2021-10-19 17:25:58 -040097}
98
99// Reference imports to suppress errors if they are not otherwise used.
100var _ context.Context
101var _ grpc.ClientConn
102
103// This is a compile-time assertion to ensure that this generated file
104// is compatible with the grpc package it is being compiled against.
105const _ = grpc.SupportPackageIsVersion4
106
107// AdapterServiceClient is the client API for AdapterService service.
108//
109// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
110type AdapterServiceClient interface {
111 // GetHealthStatus is used by an AdapterService client to verify connectivity
112 // to the gRPC server hosting the AdapterService service
khenaidoo257f3192021-12-15 16:46:37 -0500113 GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (AdapterService_GetHealthStatusClient, error)
khenaidoo4c6543e2021-10-19 17:25:58 -0400114 // Device
115 AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
116 ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
117 DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
118 DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
119 ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
120 RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
121 SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
122 GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*core_adapter.SwitchCapability, error)
123 ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
124 // Ports
125 EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error)
126 DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error)
127 // Flows
128 UpdateFlowsBulk(ctx context.Context, in *core_adapter.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error)
129 UpdateFlowsIncrementally(ctx context.Context, in *core_adapter.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error)
130 //Packets
131 SendPacketOut(ctx context.Context, in *core_adapter.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error)
132 // PM
133 UpdatePmConfig(ctx context.Context, in *core_adapter.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error)
134 // Image
135 DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
136 GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
137 AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
138 GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error)
139 ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
140 CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error)
141 // Deprecated Image APIs
142 DownloadImage(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
143 GetImageDownloadStatus(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
144 CancelImageDownload(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
145 ActivateImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
146 RevertImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error)
147 // Tests
148 StartOmciTest(ctx context.Context, in *core_adapter.OMCITest, opts ...grpc.CallOption) (*omci.TestResponse, error)
149 SimulateAlarm(ctx context.Context, in *core_adapter.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error)
150 // Events
151 SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error)
152 UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error)
153 // Get/Set
154 GetExtValue(ctx context.Context, in *core_adapter.GetExtValueMessage, opts ...grpc.CallOption) (*extension.ReturnValues, error)
155 SetExtValue(ctx context.Context, in *core_adapter.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error)
156 GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error)
157 SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error)
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +0530158 DisableOnuDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
159 EnableOnuDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error)
160 DisableOnuSerialNumber(ctx context.Context, in *voltha.OnuSerialNumberOnOLTPon, opts ...grpc.CallOption) (*empty.Empty, error)
161 EnableOnuSerialNumber(ctx context.Context, in *voltha.OnuSerialNumberOnOLTPon, opts ...grpc.CallOption) (*empty.Empty, error)
khenaidoo4c6543e2021-10-19 17:25:58 -0400162}
163
164type adapterServiceClient struct {
165 cc *grpc.ClientConn
166}
167
168func NewAdapterServiceClient(cc *grpc.ClientConn) AdapterServiceClient {
169 return &adapterServiceClient{cc}
170}
171
khenaidoo257f3192021-12-15 16:46:37 -0500172func (c *adapterServiceClient) GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (AdapterService_GetHealthStatusClient, error) {
173 stream, err := c.cc.NewStream(ctx, &_AdapterService_serviceDesc.Streams[0], "/adapter_service.AdapterService/GetHealthStatus", opts...)
khenaidoo4c6543e2021-10-19 17:25:58 -0400174 if err != nil {
175 return nil, err
176 }
khenaidoo257f3192021-12-15 16:46:37 -0500177 x := &adapterServiceGetHealthStatusClient{stream}
178 return x, nil
179}
180
181type AdapterService_GetHealthStatusClient interface {
182 Send(*common.Connection) error
183 Recv() (*health.HealthStatus, error)
184 grpc.ClientStream
185}
186
187type adapterServiceGetHealthStatusClient struct {
188 grpc.ClientStream
189}
190
191func (x *adapterServiceGetHealthStatusClient) Send(m *common.Connection) error {
192 return x.ClientStream.SendMsg(m)
193}
194
195func (x *adapterServiceGetHealthStatusClient) Recv() (*health.HealthStatus, error) {
196 m := new(health.HealthStatus)
197 if err := x.ClientStream.RecvMsg(m); err != nil {
198 return nil, err
199 }
200 return m, nil
khenaidoo4c6543e2021-10-19 17:25:58 -0400201}
202
203func (c *adapterServiceClient) AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
204 out := new(empty.Empty)
205 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/AdoptDevice", in, out, opts...)
206 if err != nil {
207 return nil, err
208 }
209 return out, nil
210}
211
212func (c *adapterServiceClient) ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
213 out := new(empty.Empty)
214 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ReconcileDevice", in, out, opts...)
215 if err != nil {
216 return nil, err
217 }
218 return out, nil
219}
220
221func (c *adapterServiceClient) DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
222 out := new(empty.Empty)
223 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DeleteDevice", in, out, opts...)
224 if err != nil {
225 return nil, err
226 }
227 return out, nil
228}
229
230func (c *adapterServiceClient) DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
231 out := new(empty.Empty)
232 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisableDevice", in, out, opts...)
233 if err != nil {
234 return nil, err
235 }
236 return out, nil
237}
238
239func (c *adapterServiceClient) ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
240 out := new(empty.Empty)
241 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ReEnableDevice", in, out, opts...)
242 if err != nil {
243 return nil, err
244 }
245 return out, nil
246}
247
248func (c *adapterServiceClient) RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
249 out := new(empty.Empty)
250 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/RebootDevice", in, out, opts...)
251 if err != nil {
252 return nil, err
253 }
254 return out, nil
255}
256
257func (c *adapterServiceClient) SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
258 out := new(empty.Empty)
259 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SelfTestDevice", in, out, opts...)
260 if err != nil {
261 return nil, err
262 }
263 return out, nil
264}
265
266func (c *adapterServiceClient) GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*core_adapter.SwitchCapability, error) {
267 out := new(core_adapter.SwitchCapability)
268 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOfpDeviceInfo", in, out, opts...)
269 if err != nil {
270 return nil, err
271 }
272 return out, nil
273}
274
275func (c *adapterServiceClient) ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
276 out := new(empty.Empty)
277 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ChildDeviceLost", in, out, opts...)
278 if err != nil {
279 return nil, err
280 }
281 return out, nil
282}
283
284func (c *adapterServiceClient) EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) {
285 out := new(empty.Empty)
286 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/EnablePort", in, out, opts...)
287 if err != nil {
288 return nil, err
289 }
290 return out, nil
291}
292
293func (c *adapterServiceClient) DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) {
294 out := new(empty.Empty)
295 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisablePort", in, out, opts...)
296 if err != nil {
297 return nil, err
298 }
299 return out, nil
300}
301
302func (c *adapterServiceClient) UpdateFlowsBulk(ctx context.Context, in *core_adapter.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) {
303 out := new(empty.Empty)
304 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdateFlowsBulk", in, out, opts...)
305 if err != nil {
306 return nil, err
307 }
308 return out, nil
309}
310
311func (c *adapterServiceClient) UpdateFlowsIncrementally(ctx context.Context, in *core_adapter.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) {
312 out := new(empty.Empty)
313 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdateFlowsIncrementally", in, out, opts...)
314 if err != nil {
315 return nil, err
316 }
317 return out, nil
318}
319
320func (c *adapterServiceClient) SendPacketOut(ctx context.Context, in *core_adapter.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) {
321 out := new(empty.Empty)
322 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SendPacketOut", in, out, opts...)
323 if err != nil {
324 return nil, err
325 }
326 return out, nil
327}
328
329func (c *adapterServiceClient) UpdatePmConfig(ctx context.Context, in *core_adapter.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error) {
330 out := new(empty.Empty)
331 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdatePmConfig", in, out, opts...)
332 if err != nil {
333 return nil, err
334 }
335 return out, nil
336}
337
338func (c *adapterServiceClient) DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) {
339 out := new(voltha.DeviceImageResponse)
340 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DownloadOnuImage", in, out, opts...)
341 if err != nil {
342 return nil, err
343 }
344 return out, nil
345}
346
347func (c *adapterServiceClient) GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) {
348 out := new(voltha.DeviceImageResponse)
349 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOnuImageStatus", in, out, opts...)
350 if err != nil {
351 return nil, err
352 }
353 return out, nil
354}
355
356func (c *adapterServiceClient) AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) {
357 out := new(voltha.DeviceImageResponse)
358 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/AbortOnuImageUpgrade", in, out, opts...)
359 if err != nil {
360 return nil, err
361 }
362 return out, nil
363}
364
365func (c *adapterServiceClient) GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error) {
366 out := new(voltha.OnuImages)
367 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOnuImages", in, out, opts...)
368 if err != nil {
369 return nil, err
370 }
371 return out, nil
372}
373
374func (c *adapterServiceClient) ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) {
375 out := new(voltha.DeviceImageResponse)
376 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ActivateOnuImage", in, out, opts...)
377 if err != nil {
378 return nil, err
379 }
380 return out, nil
381}
382
383func (c *adapterServiceClient) CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) {
384 out := new(voltha.DeviceImageResponse)
385 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/CommitOnuImage", in, out, opts...)
386 if err != nil {
387 return nil, err
388 }
389 return out, nil
390}
391
392// Deprecated: Do not use.
393func (c *adapterServiceClient) DownloadImage(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) {
394 out := new(voltha.ImageDownload)
395 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DownloadImage", in, out, opts...)
396 if err != nil {
397 return nil, err
398 }
399 return out, nil
400}
401
402// Deprecated: Do not use.
403func (c *adapterServiceClient) GetImageDownloadStatus(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) {
404 out := new(voltha.ImageDownload)
405 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetImageDownloadStatus", in, out, opts...)
406 if err != nil {
407 return nil, err
408 }
409 return out, nil
410}
411
412// Deprecated: Do not use.
413func (c *adapterServiceClient) CancelImageDownload(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) {
414 out := new(voltha.ImageDownload)
415 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/CancelImageDownload", in, out, opts...)
416 if err != nil {
417 return nil, err
418 }
419 return out, nil
420}
421
422// Deprecated: Do not use.
423func (c *adapterServiceClient) ActivateImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) {
424 out := new(voltha.ImageDownload)
425 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ActivateImageUpdate", in, out, opts...)
426 if err != nil {
427 return nil, err
428 }
429 return out, nil
430}
431
432// Deprecated: Do not use.
433func (c *adapterServiceClient) RevertImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) {
434 out := new(voltha.ImageDownload)
435 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/RevertImageUpdate", in, out, opts...)
436 if err != nil {
437 return nil, err
438 }
439 return out, nil
440}
441
442func (c *adapterServiceClient) StartOmciTest(ctx context.Context, in *core_adapter.OMCITest, opts ...grpc.CallOption) (*omci.TestResponse, error) {
443 out := new(omci.TestResponse)
444 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/StartOmciTest", in, out, opts...)
445 if err != nil {
446 return nil, err
447 }
448 return out, nil
449}
450
451func (c *adapterServiceClient) SimulateAlarm(ctx context.Context, in *core_adapter.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error) {
452 out := new(common.OperationResp)
453 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SimulateAlarm", in, out, opts...)
454 if err != nil {
455 return nil, err
456 }
457 return out, nil
458}
459
460func (c *adapterServiceClient) SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) {
461 out := new(empty.Empty)
462 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SuppressEvent", in, out, opts...)
463 if err != nil {
464 return nil, err
465 }
466 return out, nil
467}
468
469func (c *adapterServiceClient) UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) {
470 out := new(empty.Empty)
471 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UnSuppressEvent", in, out, opts...)
472 if err != nil {
473 return nil, err
474 }
475 return out, nil
476}
477
478func (c *adapterServiceClient) GetExtValue(ctx context.Context, in *core_adapter.GetExtValueMessage, opts ...grpc.CallOption) (*extension.ReturnValues, error) {
479 out := new(extension.ReturnValues)
480 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetExtValue", in, out, opts...)
481 if err != nil {
482 return nil, err
483 }
484 return out, nil
485}
486
487func (c *adapterServiceClient) SetExtValue(ctx context.Context, in *core_adapter.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
488 out := new(empty.Empty)
489 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SetExtValue", in, out, opts...)
490 if err != nil {
491 return nil, err
492 }
493 return out, nil
494}
495
496func (c *adapterServiceClient) GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error) {
497 out := new(extension.SingleGetValueResponse)
498 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetSingleValue", in, out, opts...)
499 if err != nil {
500 return nil, err
501 }
502 return out, nil
503}
504
505func (c *adapterServiceClient) SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error) {
506 out := new(extension.SingleSetValueResponse)
507 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SetSingleValue", in, out, opts...)
508 if err != nil {
509 return nil, err
510 }
511 return out, nil
512}
513
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +0530514func (c *adapterServiceClient) DisableOnuDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
515 out := new(empty.Empty)
516 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisableOnuDevice", in, out, opts...)
517 if err != nil {
518 return nil, err
519 }
520 return out, nil
521}
522
523func (c *adapterServiceClient) EnableOnuDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) {
524 out := new(empty.Empty)
525 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/EnableOnuDevice", in, out, opts...)
526 if err != nil {
527 return nil, err
528 }
529 return out, nil
530}
531
532func (c *adapterServiceClient) DisableOnuSerialNumber(ctx context.Context, in *voltha.OnuSerialNumberOnOLTPon, opts ...grpc.CallOption) (*empty.Empty, error) {
533 out := new(empty.Empty)
534 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisableOnuSerialNumber", in, out, opts...)
535 if err != nil {
536 return nil, err
537 }
538 return out, nil
539}
540
541func (c *adapterServiceClient) EnableOnuSerialNumber(ctx context.Context, in *voltha.OnuSerialNumberOnOLTPon, opts ...grpc.CallOption) (*empty.Empty, error) {
542 out := new(empty.Empty)
543 err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/EnableOnuSerialNumber", in, out, opts...)
544 if err != nil {
545 return nil, err
546 }
547 return out, nil
548}
549
khenaidoo4c6543e2021-10-19 17:25:58 -0400550// AdapterServiceServer is the server API for AdapterService service.
551type AdapterServiceServer interface {
552 // GetHealthStatus is used by an AdapterService client to verify connectivity
553 // to the gRPC server hosting the AdapterService service
khenaidoo257f3192021-12-15 16:46:37 -0500554 GetHealthStatus(AdapterService_GetHealthStatusServer) error
khenaidoo4c6543e2021-10-19 17:25:58 -0400555 // Device
556 AdoptDevice(context.Context, *voltha.Device) (*empty.Empty, error)
557 ReconcileDevice(context.Context, *voltha.Device) (*empty.Empty, error)
558 DeleteDevice(context.Context, *voltha.Device) (*empty.Empty, error)
559 DisableDevice(context.Context, *voltha.Device) (*empty.Empty, error)
560 ReEnableDevice(context.Context, *voltha.Device) (*empty.Empty, error)
561 RebootDevice(context.Context, *voltha.Device) (*empty.Empty, error)
562 SelfTestDevice(context.Context, *voltha.Device) (*empty.Empty, error)
563 GetOfpDeviceInfo(context.Context, *voltha.Device) (*core_adapter.SwitchCapability, error)
564 ChildDeviceLost(context.Context, *voltha.Device) (*empty.Empty, error)
565 // Ports
566 EnablePort(context.Context, *voltha.Port) (*empty.Empty, error)
567 DisablePort(context.Context, *voltha.Port) (*empty.Empty, error)
568 // Flows
569 UpdateFlowsBulk(context.Context, *core_adapter.BulkFlows) (*empty.Empty, error)
570 UpdateFlowsIncrementally(context.Context, *core_adapter.IncrementalFlows) (*empty.Empty, error)
571 //Packets
572 SendPacketOut(context.Context, *core_adapter.PacketOut) (*empty.Empty, error)
573 // PM
574 UpdatePmConfig(context.Context, *core_adapter.PmConfigsInfo) (*empty.Empty, error)
575 // Image
576 DownloadOnuImage(context.Context, *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error)
577 GetOnuImageStatus(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
578 AbortOnuImageUpgrade(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
579 GetOnuImages(context.Context, *common.ID) (*voltha.OnuImages, error)
580 ActivateOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
581 CommitOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error)
582 // Deprecated Image APIs
583 DownloadImage(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
584 GetImageDownloadStatus(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
585 CancelImageDownload(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
586 ActivateImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
587 RevertImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error)
588 // Tests
589 StartOmciTest(context.Context, *core_adapter.OMCITest) (*omci.TestResponse, error)
590 SimulateAlarm(context.Context, *core_adapter.SimulateAlarmMessage) (*common.OperationResp, error)
591 // Events
592 SuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error)
593 UnSuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error)
594 // Get/Set
595 GetExtValue(context.Context, *core_adapter.GetExtValueMessage) (*extension.ReturnValues, error)
596 SetExtValue(context.Context, *core_adapter.SetExtValueMessage) (*empty.Empty, error)
597 GetSingleValue(context.Context, *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error)
598 SetSingleValue(context.Context, *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error)
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +0530599 DisableOnuDevice(context.Context, *voltha.Device) (*empty.Empty, error)
600 EnableOnuDevice(context.Context, *voltha.Device) (*empty.Empty, error)
601 DisableOnuSerialNumber(context.Context, *voltha.OnuSerialNumberOnOLTPon) (*empty.Empty, error)
602 EnableOnuSerialNumber(context.Context, *voltha.OnuSerialNumberOnOLTPon) (*empty.Empty, error)
khenaidoo4c6543e2021-10-19 17:25:58 -0400603}
604
605// UnimplementedAdapterServiceServer can be embedded to have forward compatible implementations.
606type UnimplementedAdapterServiceServer struct {
607}
608
khenaidoo257f3192021-12-15 16:46:37 -0500609func (*UnimplementedAdapterServiceServer) GetHealthStatus(srv AdapterService_GetHealthStatusServer) error {
610 return status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented")
khenaidoo4c6543e2021-10-19 17:25:58 -0400611}
612func (*UnimplementedAdapterServiceServer) AdoptDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
613 return nil, status.Errorf(codes.Unimplemented, "method AdoptDevice not implemented")
614}
615func (*UnimplementedAdapterServiceServer) ReconcileDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
616 return nil, status.Errorf(codes.Unimplemented, "method ReconcileDevice not implemented")
617}
618func (*UnimplementedAdapterServiceServer) DeleteDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
619 return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented")
620}
621func (*UnimplementedAdapterServiceServer) DisableDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
622 return nil, status.Errorf(codes.Unimplemented, "method DisableDevice not implemented")
623}
624func (*UnimplementedAdapterServiceServer) ReEnableDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
625 return nil, status.Errorf(codes.Unimplemented, "method ReEnableDevice not implemented")
626}
627func (*UnimplementedAdapterServiceServer) RebootDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
628 return nil, status.Errorf(codes.Unimplemented, "method RebootDevice not implemented")
629}
630func (*UnimplementedAdapterServiceServer) SelfTestDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
631 return nil, status.Errorf(codes.Unimplemented, "method SelfTestDevice not implemented")
632}
633func (*UnimplementedAdapterServiceServer) GetOfpDeviceInfo(ctx context.Context, req *voltha.Device) (*core_adapter.SwitchCapability, error) {
634 return nil, status.Errorf(codes.Unimplemented, "method GetOfpDeviceInfo not implemented")
635}
636func (*UnimplementedAdapterServiceServer) ChildDeviceLost(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
637 return nil, status.Errorf(codes.Unimplemented, "method ChildDeviceLost not implemented")
638}
639func (*UnimplementedAdapterServiceServer) EnablePort(ctx context.Context, req *voltha.Port) (*empty.Empty, error) {
640 return nil, status.Errorf(codes.Unimplemented, "method EnablePort not implemented")
641}
642func (*UnimplementedAdapterServiceServer) DisablePort(ctx context.Context, req *voltha.Port) (*empty.Empty, error) {
643 return nil, status.Errorf(codes.Unimplemented, "method DisablePort not implemented")
644}
645func (*UnimplementedAdapterServiceServer) UpdateFlowsBulk(ctx context.Context, req *core_adapter.BulkFlows) (*empty.Empty, error) {
646 return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsBulk not implemented")
647}
648func (*UnimplementedAdapterServiceServer) UpdateFlowsIncrementally(ctx context.Context, req *core_adapter.IncrementalFlows) (*empty.Empty, error) {
649 return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsIncrementally not implemented")
650}
651func (*UnimplementedAdapterServiceServer) SendPacketOut(ctx context.Context, req *core_adapter.PacketOut) (*empty.Empty, error) {
652 return nil, status.Errorf(codes.Unimplemented, "method SendPacketOut not implemented")
653}
654func (*UnimplementedAdapterServiceServer) UpdatePmConfig(ctx context.Context, req *core_adapter.PmConfigsInfo) (*empty.Empty, error) {
655 return nil, status.Errorf(codes.Unimplemented, "method UpdatePmConfig not implemented")
656}
657func (*UnimplementedAdapterServiceServer) DownloadOnuImage(ctx context.Context, req *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error) {
658 return nil, status.Errorf(codes.Unimplemented, "method DownloadOnuImage not implemented")
659}
660func (*UnimplementedAdapterServiceServer) GetOnuImageStatus(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) {
661 return nil, status.Errorf(codes.Unimplemented, "method GetOnuImageStatus not implemented")
662}
663func (*UnimplementedAdapterServiceServer) AbortOnuImageUpgrade(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) {
664 return nil, status.Errorf(codes.Unimplemented, "method AbortOnuImageUpgrade not implemented")
665}
666func (*UnimplementedAdapterServiceServer) GetOnuImages(ctx context.Context, req *common.ID) (*voltha.OnuImages, error) {
667 return nil, status.Errorf(codes.Unimplemented, "method GetOnuImages not implemented")
668}
669func (*UnimplementedAdapterServiceServer) ActivateOnuImage(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) {
670 return nil, status.Errorf(codes.Unimplemented, "method ActivateOnuImage not implemented")
671}
672func (*UnimplementedAdapterServiceServer) CommitOnuImage(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) {
673 return nil, status.Errorf(codes.Unimplemented, "method CommitOnuImage not implemented")
674}
675func (*UnimplementedAdapterServiceServer) DownloadImage(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) {
676 return nil, status.Errorf(codes.Unimplemented, "method DownloadImage not implemented")
677}
678func (*UnimplementedAdapterServiceServer) GetImageDownloadStatus(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) {
679 return nil, status.Errorf(codes.Unimplemented, "method GetImageDownloadStatus not implemented")
680}
681func (*UnimplementedAdapterServiceServer) CancelImageDownload(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) {
682 return nil, status.Errorf(codes.Unimplemented, "method CancelImageDownload not implemented")
683}
684func (*UnimplementedAdapterServiceServer) ActivateImageUpdate(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) {
685 return nil, status.Errorf(codes.Unimplemented, "method ActivateImageUpdate not implemented")
686}
687func (*UnimplementedAdapterServiceServer) RevertImageUpdate(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) {
688 return nil, status.Errorf(codes.Unimplemented, "method RevertImageUpdate not implemented")
689}
690func (*UnimplementedAdapterServiceServer) StartOmciTest(ctx context.Context, req *core_adapter.OMCITest) (*omci.TestResponse, error) {
691 return nil, status.Errorf(codes.Unimplemented, "method StartOmciTest not implemented")
692}
693func (*UnimplementedAdapterServiceServer) SimulateAlarm(ctx context.Context, req *core_adapter.SimulateAlarmMessage) (*common.OperationResp, error) {
694 return nil, status.Errorf(codes.Unimplemented, "method SimulateAlarm not implemented")
695}
696func (*UnimplementedAdapterServiceServer) SuppressEvent(ctx context.Context, req *voltha.EventFilter) (*empty.Empty, error) {
697 return nil, status.Errorf(codes.Unimplemented, "method SuppressEvent not implemented")
698}
699func (*UnimplementedAdapterServiceServer) UnSuppressEvent(ctx context.Context, req *voltha.EventFilter) (*empty.Empty, error) {
700 return nil, status.Errorf(codes.Unimplemented, "method UnSuppressEvent not implemented")
701}
702func (*UnimplementedAdapterServiceServer) GetExtValue(ctx context.Context, req *core_adapter.GetExtValueMessage) (*extension.ReturnValues, error) {
703 return nil, status.Errorf(codes.Unimplemented, "method GetExtValue not implemented")
704}
705func (*UnimplementedAdapterServiceServer) SetExtValue(ctx context.Context, req *core_adapter.SetExtValueMessage) (*empty.Empty, error) {
706 return nil, status.Errorf(codes.Unimplemented, "method SetExtValue not implemented")
707}
708func (*UnimplementedAdapterServiceServer) GetSingleValue(ctx context.Context, req *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error) {
709 return nil, status.Errorf(codes.Unimplemented, "method GetSingleValue not implemented")
710}
711func (*UnimplementedAdapterServiceServer) SetSingleValue(ctx context.Context, req *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error) {
712 return nil, status.Errorf(codes.Unimplemented, "method SetSingleValue not implemented")
713}
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +0530714func (*UnimplementedAdapterServiceServer) DisableOnuDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
715 return nil, status.Errorf(codes.Unimplemented, "method DisableOnuDevice not implemented")
716}
717func (*UnimplementedAdapterServiceServer) EnableOnuDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) {
718 return nil, status.Errorf(codes.Unimplemented, "method EnableOnuDevice not implemented")
719}
720func (*UnimplementedAdapterServiceServer) DisableOnuSerialNumber(ctx context.Context, req *voltha.OnuSerialNumberOnOLTPon) (*empty.Empty, error) {
721 return nil, status.Errorf(codes.Unimplemented, "method DisableOnuSerialNumber not implemented")
722}
723func (*UnimplementedAdapterServiceServer) EnableOnuSerialNumber(ctx context.Context, req *voltha.OnuSerialNumberOnOLTPon) (*empty.Empty, error) {
724 return nil, status.Errorf(codes.Unimplemented, "method EnableOnuSerialNumber not implemented")
725}
khenaidoo4c6543e2021-10-19 17:25:58 -0400726
727func RegisterAdapterServiceServer(s *grpc.Server, srv AdapterServiceServer) {
728 s.RegisterService(&_AdapterService_serviceDesc, srv)
729}
730
khenaidoo257f3192021-12-15 16:46:37 -0500731func _AdapterService_GetHealthStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
732 return srv.(AdapterServiceServer).GetHealthStatus(&adapterServiceGetHealthStatusServer{stream})
733}
734
735type AdapterService_GetHealthStatusServer interface {
736 Send(*health.HealthStatus) error
737 Recv() (*common.Connection, error)
738 grpc.ServerStream
739}
740
741type adapterServiceGetHealthStatusServer struct {
742 grpc.ServerStream
743}
744
745func (x *adapterServiceGetHealthStatusServer) Send(m *health.HealthStatus) error {
746 return x.ServerStream.SendMsg(m)
747}
748
749func (x *adapterServiceGetHealthStatusServer) Recv() (*common.Connection, error) {
750 m := new(common.Connection)
751 if err := x.ServerStream.RecvMsg(m); err != nil {
khenaidoo4c6543e2021-10-19 17:25:58 -0400752 return nil, err
753 }
khenaidoo257f3192021-12-15 16:46:37 -0500754 return m, nil
khenaidoo4c6543e2021-10-19 17:25:58 -0400755}
756
757func _AdapterService_AdoptDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
758 in := new(voltha.Device)
759 if err := dec(in); err != nil {
760 return nil, err
761 }
762 if interceptor == nil {
763 return srv.(AdapterServiceServer).AdoptDevice(ctx, in)
764 }
765 info := &grpc.UnaryServerInfo{
766 Server: srv,
767 FullMethod: "/adapter_service.AdapterService/AdoptDevice",
768 }
769 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
770 return srv.(AdapterServiceServer).AdoptDevice(ctx, req.(*voltha.Device))
771 }
772 return interceptor(ctx, in, info, handler)
773}
774
775func _AdapterService_ReconcileDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
776 in := new(voltha.Device)
777 if err := dec(in); err != nil {
778 return nil, err
779 }
780 if interceptor == nil {
781 return srv.(AdapterServiceServer).ReconcileDevice(ctx, in)
782 }
783 info := &grpc.UnaryServerInfo{
784 Server: srv,
785 FullMethod: "/adapter_service.AdapterService/ReconcileDevice",
786 }
787 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
788 return srv.(AdapterServiceServer).ReconcileDevice(ctx, req.(*voltha.Device))
789 }
790 return interceptor(ctx, in, info, handler)
791}
792
793func _AdapterService_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
794 in := new(voltha.Device)
795 if err := dec(in); err != nil {
796 return nil, err
797 }
798 if interceptor == nil {
799 return srv.(AdapterServiceServer).DeleteDevice(ctx, in)
800 }
801 info := &grpc.UnaryServerInfo{
802 Server: srv,
803 FullMethod: "/adapter_service.AdapterService/DeleteDevice",
804 }
805 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
806 return srv.(AdapterServiceServer).DeleteDevice(ctx, req.(*voltha.Device))
807 }
808 return interceptor(ctx, in, info, handler)
809}
810
811func _AdapterService_DisableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
812 in := new(voltha.Device)
813 if err := dec(in); err != nil {
814 return nil, err
815 }
816 if interceptor == nil {
817 return srv.(AdapterServiceServer).DisableDevice(ctx, in)
818 }
819 info := &grpc.UnaryServerInfo{
820 Server: srv,
821 FullMethod: "/adapter_service.AdapterService/DisableDevice",
822 }
823 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
824 return srv.(AdapterServiceServer).DisableDevice(ctx, req.(*voltha.Device))
825 }
826 return interceptor(ctx, in, info, handler)
827}
828
829func _AdapterService_ReEnableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
830 in := new(voltha.Device)
831 if err := dec(in); err != nil {
832 return nil, err
833 }
834 if interceptor == nil {
835 return srv.(AdapterServiceServer).ReEnableDevice(ctx, in)
836 }
837 info := &grpc.UnaryServerInfo{
838 Server: srv,
839 FullMethod: "/adapter_service.AdapterService/ReEnableDevice",
840 }
841 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
842 return srv.(AdapterServiceServer).ReEnableDevice(ctx, req.(*voltha.Device))
843 }
844 return interceptor(ctx, in, info, handler)
845}
846
847func _AdapterService_RebootDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
848 in := new(voltha.Device)
849 if err := dec(in); err != nil {
850 return nil, err
851 }
852 if interceptor == nil {
853 return srv.(AdapterServiceServer).RebootDevice(ctx, in)
854 }
855 info := &grpc.UnaryServerInfo{
856 Server: srv,
857 FullMethod: "/adapter_service.AdapterService/RebootDevice",
858 }
859 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
860 return srv.(AdapterServiceServer).RebootDevice(ctx, req.(*voltha.Device))
861 }
862 return interceptor(ctx, in, info, handler)
863}
864
865func _AdapterService_SelfTestDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
866 in := new(voltha.Device)
867 if err := dec(in); err != nil {
868 return nil, err
869 }
870 if interceptor == nil {
871 return srv.(AdapterServiceServer).SelfTestDevice(ctx, in)
872 }
873 info := &grpc.UnaryServerInfo{
874 Server: srv,
875 FullMethod: "/adapter_service.AdapterService/SelfTestDevice",
876 }
877 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
878 return srv.(AdapterServiceServer).SelfTestDevice(ctx, req.(*voltha.Device))
879 }
880 return interceptor(ctx, in, info, handler)
881}
882
883func _AdapterService_GetOfpDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
884 in := new(voltha.Device)
885 if err := dec(in); err != nil {
886 return nil, err
887 }
888 if interceptor == nil {
889 return srv.(AdapterServiceServer).GetOfpDeviceInfo(ctx, in)
890 }
891 info := &grpc.UnaryServerInfo{
892 Server: srv,
893 FullMethod: "/adapter_service.AdapterService/GetOfpDeviceInfo",
894 }
895 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
896 return srv.(AdapterServiceServer).GetOfpDeviceInfo(ctx, req.(*voltha.Device))
897 }
898 return interceptor(ctx, in, info, handler)
899}
900
901func _AdapterService_ChildDeviceLost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
902 in := new(voltha.Device)
903 if err := dec(in); err != nil {
904 return nil, err
905 }
906 if interceptor == nil {
907 return srv.(AdapterServiceServer).ChildDeviceLost(ctx, in)
908 }
909 info := &grpc.UnaryServerInfo{
910 Server: srv,
911 FullMethod: "/adapter_service.AdapterService/ChildDeviceLost",
912 }
913 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
914 return srv.(AdapterServiceServer).ChildDeviceLost(ctx, req.(*voltha.Device))
915 }
916 return interceptor(ctx, in, info, handler)
917}
918
919func _AdapterService_EnablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
920 in := new(voltha.Port)
921 if err := dec(in); err != nil {
922 return nil, err
923 }
924 if interceptor == nil {
925 return srv.(AdapterServiceServer).EnablePort(ctx, in)
926 }
927 info := &grpc.UnaryServerInfo{
928 Server: srv,
929 FullMethod: "/adapter_service.AdapterService/EnablePort",
930 }
931 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
932 return srv.(AdapterServiceServer).EnablePort(ctx, req.(*voltha.Port))
933 }
934 return interceptor(ctx, in, info, handler)
935}
936
937func _AdapterService_DisablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
938 in := new(voltha.Port)
939 if err := dec(in); err != nil {
940 return nil, err
941 }
942 if interceptor == nil {
943 return srv.(AdapterServiceServer).DisablePort(ctx, in)
944 }
945 info := &grpc.UnaryServerInfo{
946 Server: srv,
947 FullMethod: "/adapter_service.AdapterService/DisablePort",
948 }
949 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
950 return srv.(AdapterServiceServer).DisablePort(ctx, req.(*voltha.Port))
951 }
952 return interceptor(ctx, in, info, handler)
953}
954
955func _AdapterService_UpdateFlowsBulk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
956 in := new(core_adapter.BulkFlows)
957 if err := dec(in); err != nil {
958 return nil, err
959 }
960 if interceptor == nil {
961 return srv.(AdapterServiceServer).UpdateFlowsBulk(ctx, in)
962 }
963 info := &grpc.UnaryServerInfo{
964 Server: srv,
965 FullMethod: "/adapter_service.AdapterService/UpdateFlowsBulk",
966 }
967 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
968 return srv.(AdapterServiceServer).UpdateFlowsBulk(ctx, req.(*core_adapter.BulkFlows))
969 }
970 return interceptor(ctx, in, info, handler)
971}
972
973func _AdapterService_UpdateFlowsIncrementally_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
974 in := new(core_adapter.IncrementalFlows)
975 if err := dec(in); err != nil {
976 return nil, err
977 }
978 if interceptor == nil {
979 return srv.(AdapterServiceServer).UpdateFlowsIncrementally(ctx, in)
980 }
981 info := &grpc.UnaryServerInfo{
982 Server: srv,
983 FullMethod: "/adapter_service.AdapterService/UpdateFlowsIncrementally",
984 }
985 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
986 return srv.(AdapterServiceServer).UpdateFlowsIncrementally(ctx, req.(*core_adapter.IncrementalFlows))
987 }
988 return interceptor(ctx, in, info, handler)
989}
990
991func _AdapterService_SendPacketOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
992 in := new(core_adapter.PacketOut)
993 if err := dec(in); err != nil {
994 return nil, err
995 }
996 if interceptor == nil {
997 return srv.(AdapterServiceServer).SendPacketOut(ctx, in)
998 }
999 info := &grpc.UnaryServerInfo{
1000 Server: srv,
1001 FullMethod: "/adapter_service.AdapterService/SendPacketOut",
1002 }
1003 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1004 return srv.(AdapterServiceServer).SendPacketOut(ctx, req.(*core_adapter.PacketOut))
1005 }
1006 return interceptor(ctx, in, info, handler)
1007}
1008
1009func _AdapterService_UpdatePmConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1010 in := new(core_adapter.PmConfigsInfo)
1011 if err := dec(in); err != nil {
1012 return nil, err
1013 }
1014 if interceptor == nil {
1015 return srv.(AdapterServiceServer).UpdatePmConfig(ctx, in)
1016 }
1017 info := &grpc.UnaryServerInfo{
1018 Server: srv,
1019 FullMethod: "/adapter_service.AdapterService/UpdatePmConfig",
1020 }
1021 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1022 return srv.(AdapterServiceServer).UpdatePmConfig(ctx, req.(*core_adapter.PmConfigsInfo))
1023 }
1024 return interceptor(ctx, in, info, handler)
1025}
1026
1027func _AdapterService_DownloadOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1028 in := new(voltha.DeviceImageDownloadRequest)
1029 if err := dec(in); err != nil {
1030 return nil, err
1031 }
1032 if interceptor == nil {
1033 return srv.(AdapterServiceServer).DownloadOnuImage(ctx, in)
1034 }
1035 info := &grpc.UnaryServerInfo{
1036 Server: srv,
1037 FullMethod: "/adapter_service.AdapterService/DownloadOnuImage",
1038 }
1039 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1040 return srv.(AdapterServiceServer).DownloadOnuImage(ctx, req.(*voltha.DeviceImageDownloadRequest))
1041 }
1042 return interceptor(ctx, in, info, handler)
1043}
1044
1045func _AdapterService_GetOnuImageStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1046 in := new(voltha.DeviceImageRequest)
1047 if err := dec(in); err != nil {
1048 return nil, err
1049 }
1050 if interceptor == nil {
1051 return srv.(AdapterServiceServer).GetOnuImageStatus(ctx, in)
1052 }
1053 info := &grpc.UnaryServerInfo{
1054 Server: srv,
1055 FullMethod: "/adapter_service.AdapterService/GetOnuImageStatus",
1056 }
1057 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1058 return srv.(AdapterServiceServer).GetOnuImageStatus(ctx, req.(*voltha.DeviceImageRequest))
1059 }
1060 return interceptor(ctx, in, info, handler)
1061}
1062
1063func _AdapterService_AbortOnuImageUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1064 in := new(voltha.DeviceImageRequest)
1065 if err := dec(in); err != nil {
1066 return nil, err
1067 }
1068 if interceptor == nil {
1069 return srv.(AdapterServiceServer).AbortOnuImageUpgrade(ctx, in)
1070 }
1071 info := &grpc.UnaryServerInfo{
1072 Server: srv,
1073 FullMethod: "/adapter_service.AdapterService/AbortOnuImageUpgrade",
1074 }
1075 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1076 return srv.(AdapterServiceServer).AbortOnuImageUpgrade(ctx, req.(*voltha.DeviceImageRequest))
1077 }
1078 return interceptor(ctx, in, info, handler)
1079}
1080
1081func _AdapterService_GetOnuImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1082 in := new(common.ID)
1083 if err := dec(in); err != nil {
1084 return nil, err
1085 }
1086 if interceptor == nil {
1087 return srv.(AdapterServiceServer).GetOnuImages(ctx, in)
1088 }
1089 info := &grpc.UnaryServerInfo{
1090 Server: srv,
1091 FullMethod: "/adapter_service.AdapterService/GetOnuImages",
1092 }
1093 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1094 return srv.(AdapterServiceServer).GetOnuImages(ctx, req.(*common.ID))
1095 }
1096 return interceptor(ctx, in, info, handler)
1097}
1098
1099func _AdapterService_ActivateOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1100 in := new(voltha.DeviceImageRequest)
1101 if err := dec(in); err != nil {
1102 return nil, err
1103 }
1104 if interceptor == nil {
1105 return srv.(AdapterServiceServer).ActivateOnuImage(ctx, in)
1106 }
1107 info := &grpc.UnaryServerInfo{
1108 Server: srv,
1109 FullMethod: "/adapter_service.AdapterService/ActivateOnuImage",
1110 }
1111 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1112 return srv.(AdapterServiceServer).ActivateOnuImage(ctx, req.(*voltha.DeviceImageRequest))
1113 }
1114 return interceptor(ctx, in, info, handler)
1115}
1116
1117func _AdapterService_CommitOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1118 in := new(voltha.DeviceImageRequest)
1119 if err := dec(in); err != nil {
1120 return nil, err
1121 }
1122 if interceptor == nil {
1123 return srv.(AdapterServiceServer).CommitOnuImage(ctx, in)
1124 }
1125 info := &grpc.UnaryServerInfo{
1126 Server: srv,
1127 FullMethod: "/adapter_service.AdapterService/CommitOnuImage",
1128 }
1129 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1130 return srv.(AdapterServiceServer).CommitOnuImage(ctx, req.(*voltha.DeviceImageRequest))
1131 }
1132 return interceptor(ctx, in, info, handler)
1133}
1134
1135func _AdapterService_DownloadImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1136 in := new(core_adapter.ImageDownloadMessage)
1137 if err := dec(in); err != nil {
1138 return nil, err
1139 }
1140 if interceptor == nil {
1141 return srv.(AdapterServiceServer).DownloadImage(ctx, in)
1142 }
1143 info := &grpc.UnaryServerInfo{
1144 Server: srv,
1145 FullMethod: "/adapter_service.AdapterService/DownloadImage",
1146 }
1147 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1148 return srv.(AdapterServiceServer).DownloadImage(ctx, req.(*core_adapter.ImageDownloadMessage))
1149 }
1150 return interceptor(ctx, in, info, handler)
1151}
1152
1153func _AdapterService_GetImageDownloadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1154 in := new(core_adapter.ImageDownloadMessage)
1155 if err := dec(in); err != nil {
1156 return nil, err
1157 }
1158 if interceptor == nil {
1159 return srv.(AdapterServiceServer).GetImageDownloadStatus(ctx, in)
1160 }
1161 info := &grpc.UnaryServerInfo{
1162 Server: srv,
1163 FullMethod: "/adapter_service.AdapterService/GetImageDownloadStatus",
1164 }
1165 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1166 return srv.(AdapterServiceServer).GetImageDownloadStatus(ctx, req.(*core_adapter.ImageDownloadMessage))
1167 }
1168 return interceptor(ctx, in, info, handler)
1169}
1170
1171func _AdapterService_CancelImageDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1172 in := new(core_adapter.ImageDownloadMessage)
1173 if err := dec(in); err != nil {
1174 return nil, err
1175 }
1176 if interceptor == nil {
1177 return srv.(AdapterServiceServer).CancelImageDownload(ctx, in)
1178 }
1179 info := &grpc.UnaryServerInfo{
1180 Server: srv,
1181 FullMethod: "/adapter_service.AdapterService/CancelImageDownload",
1182 }
1183 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1184 return srv.(AdapterServiceServer).CancelImageDownload(ctx, req.(*core_adapter.ImageDownloadMessage))
1185 }
1186 return interceptor(ctx, in, info, handler)
1187}
1188
1189func _AdapterService_ActivateImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1190 in := new(core_adapter.ImageDownloadMessage)
1191 if err := dec(in); err != nil {
1192 return nil, err
1193 }
1194 if interceptor == nil {
1195 return srv.(AdapterServiceServer).ActivateImageUpdate(ctx, in)
1196 }
1197 info := &grpc.UnaryServerInfo{
1198 Server: srv,
1199 FullMethod: "/adapter_service.AdapterService/ActivateImageUpdate",
1200 }
1201 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1202 return srv.(AdapterServiceServer).ActivateImageUpdate(ctx, req.(*core_adapter.ImageDownloadMessage))
1203 }
1204 return interceptor(ctx, in, info, handler)
1205}
1206
1207func _AdapterService_RevertImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1208 in := new(core_adapter.ImageDownloadMessage)
1209 if err := dec(in); err != nil {
1210 return nil, err
1211 }
1212 if interceptor == nil {
1213 return srv.(AdapterServiceServer).RevertImageUpdate(ctx, in)
1214 }
1215 info := &grpc.UnaryServerInfo{
1216 Server: srv,
1217 FullMethod: "/adapter_service.AdapterService/RevertImageUpdate",
1218 }
1219 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1220 return srv.(AdapterServiceServer).RevertImageUpdate(ctx, req.(*core_adapter.ImageDownloadMessage))
1221 }
1222 return interceptor(ctx, in, info, handler)
1223}
1224
1225func _AdapterService_StartOmciTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1226 in := new(core_adapter.OMCITest)
1227 if err := dec(in); err != nil {
1228 return nil, err
1229 }
1230 if interceptor == nil {
1231 return srv.(AdapterServiceServer).StartOmciTest(ctx, in)
1232 }
1233 info := &grpc.UnaryServerInfo{
1234 Server: srv,
1235 FullMethod: "/adapter_service.AdapterService/StartOmciTest",
1236 }
1237 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1238 return srv.(AdapterServiceServer).StartOmciTest(ctx, req.(*core_adapter.OMCITest))
1239 }
1240 return interceptor(ctx, in, info, handler)
1241}
1242
1243func _AdapterService_SimulateAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1244 in := new(core_adapter.SimulateAlarmMessage)
1245 if err := dec(in); err != nil {
1246 return nil, err
1247 }
1248 if interceptor == nil {
1249 return srv.(AdapterServiceServer).SimulateAlarm(ctx, in)
1250 }
1251 info := &grpc.UnaryServerInfo{
1252 Server: srv,
1253 FullMethod: "/adapter_service.AdapterService/SimulateAlarm",
1254 }
1255 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1256 return srv.(AdapterServiceServer).SimulateAlarm(ctx, req.(*core_adapter.SimulateAlarmMessage))
1257 }
1258 return interceptor(ctx, in, info, handler)
1259}
1260
1261func _AdapterService_SuppressEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1262 in := new(voltha.EventFilter)
1263 if err := dec(in); err != nil {
1264 return nil, err
1265 }
1266 if interceptor == nil {
1267 return srv.(AdapterServiceServer).SuppressEvent(ctx, in)
1268 }
1269 info := &grpc.UnaryServerInfo{
1270 Server: srv,
1271 FullMethod: "/adapter_service.AdapterService/SuppressEvent",
1272 }
1273 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1274 return srv.(AdapterServiceServer).SuppressEvent(ctx, req.(*voltha.EventFilter))
1275 }
1276 return interceptor(ctx, in, info, handler)
1277}
1278
1279func _AdapterService_UnSuppressEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1280 in := new(voltha.EventFilter)
1281 if err := dec(in); err != nil {
1282 return nil, err
1283 }
1284 if interceptor == nil {
1285 return srv.(AdapterServiceServer).UnSuppressEvent(ctx, in)
1286 }
1287 info := &grpc.UnaryServerInfo{
1288 Server: srv,
1289 FullMethod: "/adapter_service.AdapterService/UnSuppressEvent",
1290 }
1291 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1292 return srv.(AdapterServiceServer).UnSuppressEvent(ctx, req.(*voltha.EventFilter))
1293 }
1294 return interceptor(ctx, in, info, handler)
1295}
1296
1297func _AdapterService_GetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1298 in := new(core_adapter.GetExtValueMessage)
1299 if err := dec(in); err != nil {
1300 return nil, err
1301 }
1302 if interceptor == nil {
1303 return srv.(AdapterServiceServer).GetExtValue(ctx, in)
1304 }
1305 info := &grpc.UnaryServerInfo{
1306 Server: srv,
1307 FullMethod: "/adapter_service.AdapterService/GetExtValue",
1308 }
1309 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1310 return srv.(AdapterServiceServer).GetExtValue(ctx, req.(*core_adapter.GetExtValueMessage))
1311 }
1312 return interceptor(ctx, in, info, handler)
1313}
1314
1315func _AdapterService_SetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1316 in := new(core_adapter.SetExtValueMessage)
1317 if err := dec(in); err != nil {
1318 return nil, err
1319 }
1320 if interceptor == nil {
1321 return srv.(AdapterServiceServer).SetExtValue(ctx, in)
1322 }
1323 info := &grpc.UnaryServerInfo{
1324 Server: srv,
1325 FullMethod: "/adapter_service.AdapterService/SetExtValue",
1326 }
1327 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1328 return srv.(AdapterServiceServer).SetExtValue(ctx, req.(*core_adapter.SetExtValueMessage))
1329 }
1330 return interceptor(ctx, in, info, handler)
1331}
1332
1333func _AdapterService_GetSingleValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1334 in := new(extension.SingleGetValueRequest)
1335 if err := dec(in); err != nil {
1336 return nil, err
1337 }
1338 if interceptor == nil {
1339 return srv.(AdapterServiceServer).GetSingleValue(ctx, in)
1340 }
1341 info := &grpc.UnaryServerInfo{
1342 Server: srv,
1343 FullMethod: "/adapter_service.AdapterService/GetSingleValue",
1344 }
1345 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1346 return srv.(AdapterServiceServer).GetSingleValue(ctx, req.(*extension.SingleGetValueRequest))
1347 }
1348 return interceptor(ctx, in, info, handler)
1349}
1350
1351func _AdapterService_SetSingleValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1352 in := new(extension.SingleSetValueRequest)
1353 if err := dec(in); err != nil {
1354 return nil, err
1355 }
1356 if interceptor == nil {
1357 return srv.(AdapterServiceServer).SetSingleValue(ctx, in)
1358 }
1359 info := &grpc.UnaryServerInfo{
1360 Server: srv,
1361 FullMethod: "/adapter_service.AdapterService/SetSingleValue",
1362 }
1363 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1364 return srv.(AdapterServiceServer).SetSingleValue(ctx, req.(*extension.SingleSetValueRequest))
1365 }
1366 return interceptor(ctx, in, info, handler)
1367}
1368
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05301369func _AdapterService_DisableOnuDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1370 in := new(voltha.Device)
1371 if err := dec(in); err != nil {
1372 return nil, err
1373 }
1374 if interceptor == nil {
1375 return srv.(AdapterServiceServer).DisableOnuDevice(ctx, in)
1376 }
1377 info := &grpc.UnaryServerInfo{
1378 Server: srv,
1379 FullMethod: "/adapter_service.AdapterService/DisableOnuDevice",
1380 }
1381 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1382 return srv.(AdapterServiceServer).DisableOnuDevice(ctx, req.(*voltha.Device))
1383 }
1384 return interceptor(ctx, in, info, handler)
1385}
1386
1387func _AdapterService_EnableOnuDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1388 in := new(voltha.Device)
1389 if err := dec(in); err != nil {
1390 return nil, err
1391 }
1392 if interceptor == nil {
1393 return srv.(AdapterServiceServer).EnableOnuDevice(ctx, in)
1394 }
1395 info := &grpc.UnaryServerInfo{
1396 Server: srv,
1397 FullMethod: "/adapter_service.AdapterService/EnableOnuDevice",
1398 }
1399 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1400 return srv.(AdapterServiceServer).EnableOnuDevice(ctx, req.(*voltha.Device))
1401 }
1402 return interceptor(ctx, in, info, handler)
1403}
1404
1405func _AdapterService_DisableOnuSerialNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1406 in := new(voltha.OnuSerialNumberOnOLTPon)
1407 if err := dec(in); err != nil {
1408 return nil, err
1409 }
1410 if interceptor == nil {
1411 return srv.(AdapterServiceServer).DisableOnuSerialNumber(ctx, in)
1412 }
1413 info := &grpc.UnaryServerInfo{
1414 Server: srv,
1415 FullMethod: "/adapter_service.AdapterService/DisableOnuSerialNumber",
1416 }
1417 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1418 return srv.(AdapterServiceServer).DisableOnuSerialNumber(ctx, req.(*voltha.OnuSerialNumberOnOLTPon))
1419 }
1420 return interceptor(ctx, in, info, handler)
1421}
1422
1423func _AdapterService_EnableOnuSerialNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1424 in := new(voltha.OnuSerialNumberOnOLTPon)
1425 if err := dec(in); err != nil {
1426 return nil, err
1427 }
1428 if interceptor == nil {
1429 return srv.(AdapterServiceServer).EnableOnuSerialNumber(ctx, in)
1430 }
1431 info := &grpc.UnaryServerInfo{
1432 Server: srv,
1433 FullMethod: "/adapter_service.AdapterService/EnableOnuSerialNumber",
1434 }
1435 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1436 return srv.(AdapterServiceServer).EnableOnuSerialNumber(ctx, req.(*voltha.OnuSerialNumberOnOLTPon))
1437 }
1438 return interceptor(ctx, in, info, handler)
1439}
1440
khenaidoo4c6543e2021-10-19 17:25:58 -04001441var _AdapterService_serviceDesc = grpc.ServiceDesc{
1442 ServiceName: "adapter_service.AdapterService",
1443 HandlerType: (*AdapterServiceServer)(nil),
1444 Methods: []grpc.MethodDesc{
1445 {
khenaidoo4c6543e2021-10-19 17:25:58 -04001446 MethodName: "AdoptDevice",
1447 Handler: _AdapterService_AdoptDevice_Handler,
1448 },
1449 {
1450 MethodName: "ReconcileDevice",
1451 Handler: _AdapterService_ReconcileDevice_Handler,
1452 },
1453 {
1454 MethodName: "DeleteDevice",
1455 Handler: _AdapterService_DeleteDevice_Handler,
1456 },
1457 {
1458 MethodName: "DisableDevice",
1459 Handler: _AdapterService_DisableDevice_Handler,
1460 },
1461 {
1462 MethodName: "ReEnableDevice",
1463 Handler: _AdapterService_ReEnableDevice_Handler,
1464 },
1465 {
1466 MethodName: "RebootDevice",
1467 Handler: _AdapterService_RebootDevice_Handler,
1468 },
1469 {
1470 MethodName: "SelfTestDevice",
1471 Handler: _AdapterService_SelfTestDevice_Handler,
1472 },
1473 {
1474 MethodName: "GetOfpDeviceInfo",
1475 Handler: _AdapterService_GetOfpDeviceInfo_Handler,
1476 },
1477 {
1478 MethodName: "ChildDeviceLost",
1479 Handler: _AdapterService_ChildDeviceLost_Handler,
1480 },
1481 {
1482 MethodName: "EnablePort",
1483 Handler: _AdapterService_EnablePort_Handler,
1484 },
1485 {
1486 MethodName: "DisablePort",
1487 Handler: _AdapterService_DisablePort_Handler,
1488 },
1489 {
1490 MethodName: "UpdateFlowsBulk",
1491 Handler: _AdapterService_UpdateFlowsBulk_Handler,
1492 },
1493 {
1494 MethodName: "UpdateFlowsIncrementally",
1495 Handler: _AdapterService_UpdateFlowsIncrementally_Handler,
1496 },
1497 {
1498 MethodName: "SendPacketOut",
1499 Handler: _AdapterService_SendPacketOut_Handler,
1500 },
1501 {
1502 MethodName: "UpdatePmConfig",
1503 Handler: _AdapterService_UpdatePmConfig_Handler,
1504 },
1505 {
1506 MethodName: "DownloadOnuImage",
1507 Handler: _AdapterService_DownloadOnuImage_Handler,
1508 },
1509 {
1510 MethodName: "GetOnuImageStatus",
1511 Handler: _AdapterService_GetOnuImageStatus_Handler,
1512 },
1513 {
1514 MethodName: "AbortOnuImageUpgrade",
1515 Handler: _AdapterService_AbortOnuImageUpgrade_Handler,
1516 },
1517 {
1518 MethodName: "GetOnuImages",
1519 Handler: _AdapterService_GetOnuImages_Handler,
1520 },
1521 {
1522 MethodName: "ActivateOnuImage",
1523 Handler: _AdapterService_ActivateOnuImage_Handler,
1524 },
1525 {
1526 MethodName: "CommitOnuImage",
1527 Handler: _AdapterService_CommitOnuImage_Handler,
1528 },
1529 {
1530 MethodName: "DownloadImage",
1531 Handler: _AdapterService_DownloadImage_Handler,
1532 },
1533 {
1534 MethodName: "GetImageDownloadStatus",
1535 Handler: _AdapterService_GetImageDownloadStatus_Handler,
1536 },
1537 {
1538 MethodName: "CancelImageDownload",
1539 Handler: _AdapterService_CancelImageDownload_Handler,
1540 },
1541 {
1542 MethodName: "ActivateImageUpdate",
1543 Handler: _AdapterService_ActivateImageUpdate_Handler,
1544 },
1545 {
1546 MethodName: "RevertImageUpdate",
1547 Handler: _AdapterService_RevertImageUpdate_Handler,
1548 },
1549 {
1550 MethodName: "StartOmciTest",
1551 Handler: _AdapterService_StartOmciTest_Handler,
1552 },
1553 {
1554 MethodName: "SimulateAlarm",
1555 Handler: _AdapterService_SimulateAlarm_Handler,
1556 },
1557 {
1558 MethodName: "SuppressEvent",
1559 Handler: _AdapterService_SuppressEvent_Handler,
1560 },
1561 {
1562 MethodName: "UnSuppressEvent",
1563 Handler: _AdapterService_UnSuppressEvent_Handler,
1564 },
1565 {
1566 MethodName: "GetExtValue",
1567 Handler: _AdapterService_GetExtValue_Handler,
1568 },
1569 {
1570 MethodName: "SetExtValue",
1571 Handler: _AdapterService_SetExtValue_Handler,
1572 },
1573 {
1574 MethodName: "GetSingleValue",
1575 Handler: _AdapterService_GetSingleValue_Handler,
1576 },
1577 {
1578 MethodName: "SetSingleValue",
1579 Handler: _AdapterService_SetSingleValue_Handler,
1580 },
Abhilash laxmeshware46f98e2025-06-23 20:33:29 +05301581 {
1582 MethodName: "DisableOnuDevice",
1583 Handler: _AdapterService_DisableOnuDevice_Handler,
1584 },
1585 {
1586 MethodName: "EnableOnuDevice",
1587 Handler: _AdapterService_EnableOnuDevice_Handler,
1588 },
1589 {
1590 MethodName: "DisableOnuSerialNumber",
1591 Handler: _AdapterService_DisableOnuSerialNumber_Handler,
1592 },
1593 {
1594 MethodName: "EnableOnuSerialNumber",
1595 Handler: _AdapterService_EnableOnuSerialNumber_Handler,
1596 },
khenaidoo4c6543e2021-10-19 17:25:58 -04001597 },
khenaidoo257f3192021-12-15 16:46:37 -05001598 Streams: []grpc.StreamDesc{
1599 {
1600 StreamName: "GetHealthStatus",
1601 Handler: _AdapterService_GetHealthStatus_Handler,
1602 ServerStreams: true,
1603 ClientStreams: true,
1604 },
1605 },
khenaidoo4c6543e2021-10-19 17:25:58 -04001606 Metadata: "voltha_protos/adapter_service.proto",
1607}