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