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