| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/adapter_service.proto |
| |
| package adapter_service |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| empty "github.com/golang/protobuf/ptypes/empty" |
| common "github.com/opencord/voltha-protos/v5/go/common" |
| core_adapter "github.com/opencord/voltha-protos/v5/go/core_adapter" |
| extension "github.com/opencord/voltha-protos/v5/go/extension" |
| health "github.com/opencord/voltha-protos/v5/go/health" |
| omci "github.com/opencord/voltha-protos/v5/go/omci" |
| voltha "github.com/opencord/voltha-protos/v5/go/voltha" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| func init() { |
| proto.RegisterFile("voltha_protos/adapter_service.proto", fileDescriptor_038e6ec340f67698) |
| } |
| |
| var fileDescriptor_038e6ec340f67698 = []byte{ |
| // 853 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdf, 0x6e, 0xdb, 0x36, |
| 0x14, 0xc6, 0x91, 0x0d, 0xd8, 0xc5, 0x49, 0x6c, 0x27, 0x6c, 0x96, 0x0e, 0x0a, 0x56, 0x74, 0xed, |
| 0xcd, 0x6e, 0x2a, 0x0f, 0x2d, 0xda, 0x6e, 0x18, 0x86, 0xcd, 0xff, 0xea, 0x7a, 0x6b, 0xe1, 0xc0, |
| 0x9a, 0x8b, 0x61, 0x37, 0x01, 0x2d, 0x1d, 0xcb, 0x44, 0x29, 0x52, 0x13, 0x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x3b, 0x36, 0xcd, 0xae, 0xe6, 0x4f, 0x60, 0xbd, 0x4f, 0x62, 0xbd, |
| 0x1a, 0xb6, 0x4b, 0xf0, 0x50, 0x27, 0xa1, 0xab, 0x63, 0x54, 0xbe, 0x4e, 0x02, 0xd7, 0x3e, 0xf9, |
| 0x6a, 0x6f, 0xd9, 0xee, 0xe9, 0x9b, 0x3c, 0x5e, 0x7d, 0xc4, 0xfd, 0xfd, 0x3c, 0x14, 0xb4, 0x48, |
| 0x67, 0xd9, 0xb6, 0x68, 0x97, 0x04, 0xfb, 0x68, 0x7c, 0x54, 0x3e, 0x21, 0x9f, 0xb6, 0x43, 0x5d, |
| 0x7f, 0x31, 0xcf, 0xbe, 0xca, 0xd5, 0x27, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x54, 0xa5, |
| 0xf6, 0x59, 0x0b, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // AdapterServiceClient is the client API for AdapterService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type AdapterServiceClient interface { |
| // GetHealthStatus is used by an AdapterService client to verify connectivity |
| // to the gRPC server hosting the AdapterService service |
| GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (AdapterService_GetHealthStatusClient, error) |
| // Device |
| AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*core_adapter.SwitchCapability, error) |
| ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Ports |
| EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) |
| DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Flows |
| UpdateFlowsBulk(ctx context.Context, in *core_adapter.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) |
| UpdateFlowsIncrementally(ctx context.Context, in *core_adapter.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) |
| //Packets |
| SendPacketOut(ctx context.Context, in *core_adapter.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) |
| // PM |
| UpdatePmConfig(ctx context.Context, in *core_adapter.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Image |
| DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) |
| GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) |
| AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) |
| GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error) |
| ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) |
| CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) |
| // Deprecated Image APIs |
| DownloadImage(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| GetImageDownloadStatus(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| CancelImageDownload(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| ActivateImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| RevertImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| // Tests |
| StartOmciTest(ctx context.Context, in *core_adapter.OMCITest, opts ...grpc.CallOption) (*omci.TestResponse, error) |
| SimulateAlarm(ctx context.Context, in *core_adapter.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error) |
| // Events |
| SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) |
| UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Get/Set |
| GetExtValue(ctx context.Context, in *core_adapter.GetExtValueMessage, opts ...grpc.CallOption) (*extension.ReturnValues, error) |
| SetExtValue(ctx context.Context, in *core_adapter.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error) |
| SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error) |
| } |
| |
| type adapterServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewAdapterServiceClient(cc *grpc.ClientConn) AdapterServiceClient { |
| return &adapterServiceClient{cc} |
| } |
| |
| func (c *adapterServiceClient) GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (AdapterService_GetHealthStatusClient, error) { |
| stream, err := c.cc.NewStream(ctx, &_AdapterService_serviceDesc.Streams[0], "/adapter_service.AdapterService/GetHealthStatus", opts...) |
| if err != nil { |
| return nil, err |
| } |
| x := &adapterServiceGetHealthStatusClient{stream} |
| return x, nil |
| } |
| |
| type AdapterService_GetHealthStatusClient interface { |
| Send(*common.Connection) error |
| Recv() (*health.HealthStatus, error) |
| grpc.ClientStream |
| } |
| |
| type adapterServiceGetHealthStatusClient struct { |
| grpc.ClientStream |
| } |
| |
| func (x *adapterServiceGetHealthStatusClient) Send(m *common.Connection) error { |
| return x.ClientStream.SendMsg(m) |
| } |
| |
| func (x *adapterServiceGetHealthStatusClient) Recv() (*health.HealthStatus, error) { |
| m := new(health.HealthStatus) |
| if err := x.ClientStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func (c *adapterServiceClient) AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/AdoptDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ReconcileDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DeleteDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisableDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ReEnableDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/RebootDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SelfTestDevice", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*core_adapter.SwitchCapability, error) { |
| out := new(core_adapter.SwitchCapability) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOfpDeviceInfo", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ChildDeviceLost", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/EnablePort", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DisablePort", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdateFlowsBulk(ctx context.Context, in *core_adapter.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdateFlowsBulk", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdateFlowsIncrementally(ctx context.Context, in *core_adapter.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdateFlowsIncrementally", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SendPacketOut(ctx context.Context, in *core_adapter.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SendPacketOut", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdatePmConfig(ctx context.Context, in *core_adapter.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UpdatePmConfig", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| out := new(voltha.DeviceImageResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DownloadOnuImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| out := new(voltha.DeviceImageResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOnuImageStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| out := new(voltha.DeviceImageResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/AbortOnuImageUpgrade", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error) { |
| out := new(voltha.OnuImages) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetOnuImages", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| out := new(voltha.DeviceImageResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ActivateOnuImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| out := new(voltha.DeviceImageResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/CommitOnuImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Deprecated: Do not use. |
| func (c *adapterServiceClient) DownloadImage(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/DownloadImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Deprecated: Do not use. |
| func (c *adapterServiceClient) GetImageDownloadStatus(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetImageDownloadStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Deprecated: Do not use. |
| func (c *adapterServiceClient) CancelImageDownload(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/CancelImageDownload", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Deprecated: Do not use. |
| func (c *adapterServiceClient) ActivateImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/ActivateImageUpdate", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Deprecated: Do not use. |
| func (c *adapterServiceClient) RevertImageUpdate(ctx context.Context, in *core_adapter.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/RevertImageUpdate", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) StartOmciTest(ctx context.Context, in *core_adapter.OMCITest, opts ...grpc.CallOption) (*omci.TestResponse, error) { |
| out := new(omci.TestResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/StartOmciTest", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SimulateAlarm(ctx context.Context, in *core_adapter.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error) { |
| out := new(common.OperationResp) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SimulateAlarm", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SuppressEvent", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/UnSuppressEvent", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetExtValue(ctx context.Context, in *core_adapter.GetExtValueMessage, opts ...grpc.CallOption) (*extension.ReturnValues, error) { |
| out := new(extension.ReturnValues) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetExtValue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SetExtValue(ctx context.Context, in *core_adapter.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SetExtValue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error) { |
| out := new(extension.SingleGetValueResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/GetSingleValue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error) { |
| out := new(extension.SingleSetValueResponse) |
| err := c.cc.Invoke(ctx, "/adapter_service.AdapterService/SetSingleValue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // AdapterServiceServer is the server API for AdapterService service. |
| type AdapterServiceServer interface { |
| // GetHealthStatus is used by an AdapterService client to verify connectivity |
| // to the gRPC server hosting the AdapterService service |
| GetHealthStatus(AdapterService_GetHealthStatusServer) error |
| // Device |
| AdoptDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| ReconcileDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| DeleteDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| DisableDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| ReEnableDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| RebootDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| SelfTestDevice(context.Context, *voltha.Device) (*empty.Empty, error) |
| GetOfpDeviceInfo(context.Context, *voltha.Device) (*core_adapter.SwitchCapability, error) |
| ChildDeviceLost(context.Context, *voltha.Device) (*empty.Empty, error) |
| // Ports |
| EnablePort(context.Context, *voltha.Port) (*empty.Empty, error) |
| DisablePort(context.Context, *voltha.Port) (*empty.Empty, error) |
| // Flows |
| UpdateFlowsBulk(context.Context, *core_adapter.BulkFlows) (*empty.Empty, error) |
| UpdateFlowsIncrementally(context.Context, *core_adapter.IncrementalFlows) (*empty.Empty, error) |
| //Packets |
| SendPacketOut(context.Context, *core_adapter.PacketOut) (*empty.Empty, error) |
| // PM |
| UpdatePmConfig(context.Context, *core_adapter.PmConfigsInfo) (*empty.Empty, error) |
| // Image |
| DownloadOnuImage(context.Context, *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error) |
| GetOnuImageStatus(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) |
| AbortOnuImageUpgrade(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) |
| GetOnuImages(context.Context, *common.ID) (*voltha.OnuImages, error) |
| ActivateOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) |
| CommitOnuImage(context.Context, *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) |
| // Deprecated Image APIs |
| DownloadImage(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| GetImageDownloadStatus(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| CancelImageDownload(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| ActivateImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| RevertImageUpdate(context.Context, *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| // Tests |
| StartOmciTest(context.Context, *core_adapter.OMCITest) (*omci.TestResponse, error) |
| SimulateAlarm(context.Context, *core_adapter.SimulateAlarmMessage) (*common.OperationResp, error) |
| // Events |
| SuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error) |
| UnSuppressEvent(context.Context, *voltha.EventFilter) (*empty.Empty, error) |
| // Get/Set |
| GetExtValue(context.Context, *core_adapter.GetExtValueMessage) (*extension.ReturnValues, error) |
| SetExtValue(context.Context, *core_adapter.SetExtValueMessage) (*empty.Empty, error) |
| GetSingleValue(context.Context, *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error) |
| SetSingleValue(context.Context, *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error) |
| } |
| |
| // UnimplementedAdapterServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedAdapterServiceServer struct { |
| } |
| |
| func (*UnimplementedAdapterServiceServer) GetHealthStatus(srv AdapterService_GetHealthStatusServer) error { |
| return status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) AdoptDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method AdoptDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ReconcileDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ReconcileDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) DeleteDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) DisableDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DisableDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ReEnableDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ReEnableDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) RebootDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method RebootDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SelfTestDevice(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SelfTestDevice not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetOfpDeviceInfo(ctx context.Context, req *voltha.Device) (*core_adapter.SwitchCapability, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetOfpDeviceInfo not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ChildDeviceLost(ctx context.Context, req *voltha.Device) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ChildDeviceLost not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) EnablePort(ctx context.Context, req *voltha.Port) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method EnablePort not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) DisablePort(ctx context.Context, req *voltha.Port) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DisablePort not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UpdateFlowsBulk(ctx context.Context, req *core_adapter.BulkFlows) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsBulk not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UpdateFlowsIncrementally(ctx context.Context, req *core_adapter.IncrementalFlows) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsIncrementally not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SendPacketOut(ctx context.Context, req *core_adapter.PacketOut) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SendPacketOut not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UpdatePmConfig(ctx context.Context, req *core_adapter.PmConfigsInfo) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdatePmConfig not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) DownloadOnuImage(ctx context.Context, req *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DownloadOnuImage not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetOnuImageStatus(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetOnuImageStatus not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) AbortOnuImageUpgrade(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method AbortOnuImageUpgrade not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetOnuImages(ctx context.Context, req *common.ID) (*voltha.OnuImages, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetOnuImages not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ActivateOnuImage(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ActivateOnuImage not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) CommitOnuImage(ctx context.Context, req *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CommitOnuImage not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) DownloadImage(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DownloadImage not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetImageDownloadStatus(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetImageDownloadStatus not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) CancelImageDownload(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CancelImageDownload not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ActivateImageUpdate(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ActivateImageUpdate not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) RevertImageUpdate(ctx context.Context, req *core_adapter.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method RevertImageUpdate not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) StartOmciTest(ctx context.Context, req *core_adapter.OMCITest) (*omci.TestResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartOmciTest not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SimulateAlarm(ctx context.Context, req *core_adapter.SimulateAlarmMessage) (*common.OperationResp, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SimulateAlarm not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SuppressEvent(ctx context.Context, req *voltha.EventFilter) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SuppressEvent not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UnSuppressEvent(ctx context.Context, req *voltha.EventFilter) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UnSuppressEvent not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetExtValue(ctx context.Context, req *core_adapter.GetExtValueMessage) (*extension.ReturnValues, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetExtValue not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SetExtValue(ctx context.Context, req *core_adapter.SetExtValueMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SetExtValue not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetSingleValue(ctx context.Context, req *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetSingleValue not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SetSingleValue(ctx context.Context, req *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SetSingleValue not implemented") |
| } |
| |
| func RegisterAdapterServiceServer(s *grpc.Server, srv AdapterServiceServer) { |
| s.RegisterService(&_AdapterService_serviceDesc, srv) |
| } |
| |
| func _AdapterService_GetHealthStatus_Handler(srv interface{}, stream grpc.ServerStream) error { |
| return srv.(AdapterServiceServer).GetHealthStatus(&adapterServiceGetHealthStatusServer{stream}) |
| } |
| |
| type AdapterService_GetHealthStatusServer interface { |
| Send(*health.HealthStatus) error |
| Recv() (*common.Connection, error) |
| grpc.ServerStream |
| } |
| |
| type adapterServiceGetHealthStatusServer struct { |
| grpc.ServerStream |
| } |
| |
| func (x *adapterServiceGetHealthStatusServer) Send(m *health.HealthStatus) error { |
| return x.ServerStream.SendMsg(m) |
| } |
| |
| func (x *adapterServiceGetHealthStatusServer) Recv() (*common.Connection, error) { |
| m := new(common.Connection) |
| if err := x.ServerStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func _AdapterService_AdoptDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).AdoptDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/AdoptDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).AdoptDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_ReconcileDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).ReconcileDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/ReconcileDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ReconcileDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).DeleteDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/DeleteDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DeleteDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_DisableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).DisableDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/DisableDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DisableDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_ReEnableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).ReEnableDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/ReEnableDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ReEnableDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_RebootDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).RebootDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/RebootDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).RebootDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SelfTestDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SelfTestDevice(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SelfTestDevice", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SelfTestDevice(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetOfpDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetOfpDeviceInfo(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetOfpDeviceInfo", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetOfpDeviceInfo(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_ChildDeviceLost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Device) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).ChildDeviceLost(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/ChildDeviceLost", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ChildDeviceLost(ctx, req.(*voltha.Device)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_EnablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Port) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).EnablePort(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/EnablePort", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).EnablePort(ctx, req.(*voltha.Port)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_DisablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.Port) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).DisablePort(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/DisablePort", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DisablePort(ctx, req.(*voltha.Port)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_UpdateFlowsBulk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.BulkFlows) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).UpdateFlowsBulk(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/UpdateFlowsBulk", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdateFlowsBulk(ctx, req.(*core_adapter.BulkFlows)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_UpdateFlowsIncrementally_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.IncrementalFlows) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).UpdateFlowsIncrementally(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/UpdateFlowsIncrementally", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdateFlowsIncrementally(ctx, req.(*core_adapter.IncrementalFlows)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SendPacketOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.PacketOut) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SendPacketOut(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SendPacketOut", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SendPacketOut(ctx, req.(*core_adapter.PacketOut)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_UpdatePmConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.PmConfigsInfo) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).UpdatePmConfig(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/UpdatePmConfig", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdatePmConfig(ctx, req.(*core_adapter.PmConfigsInfo)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_DownloadOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.DeviceImageDownloadRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).DownloadOnuImage(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/DownloadOnuImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DownloadOnuImage(ctx, req.(*voltha.DeviceImageDownloadRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetOnuImageStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.DeviceImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetOnuImageStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetOnuImageStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetOnuImageStatus(ctx, req.(*voltha.DeviceImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_AbortOnuImageUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.DeviceImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).AbortOnuImageUpgrade(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/AbortOnuImageUpgrade", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).AbortOnuImageUpgrade(ctx, req.(*voltha.DeviceImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetOnuImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(common.ID) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetOnuImages(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetOnuImages", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetOnuImages(ctx, req.(*common.ID)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_ActivateOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.DeviceImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).ActivateOnuImage(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/ActivateOnuImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ActivateOnuImage(ctx, req.(*voltha.DeviceImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_CommitOnuImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.DeviceImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).CommitOnuImage(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/CommitOnuImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).CommitOnuImage(ctx, req.(*voltha.DeviceImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_DownloadImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.ImageDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).DownloadImage(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/DownloadImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DownloadImage(ctx, req.(*core_adapter.ImageDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetImageDownloadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.ImageDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetImageDownloadStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetImageDownloadStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetImageDownloadStatus(ctx, req.(*core_adapter.ImageDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_CancelImageDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.ImageDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).CancelImageDownload(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/CancelImageDownload", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).CancelImageDownload(ctx, req.(*core_adapter.ImageDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_ActivateImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.ImageDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).ActivateImageUpdate(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/ActivateImageUpdate", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ActivateImageUpdate(ctx, req.(*core_adapter.ImageDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_RevertImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.ImageDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).RevertImageUpdate(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/RevertImageUpdate", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).RevertImageUpdate(ctx, req.(*core_adapter.ImageDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_StartOmciTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.OMCITest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).StartOmciTest(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/StartOmciTest", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).StartOmciTest(ctx, req.(*core_adapter.OMCITest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SimulateAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.SimulateAlarmMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SimulateAlarm(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SimulateAlarm", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SimulateAlarm(ctx, req.(*core_adapter.SimulateAlarmMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SuppressEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.EventFilter) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SuppressEvent(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SuppressEvent", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SuppressEvent(ctx, req.(*voltha.EventFilter)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_UnSuppressEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(voltha.EventFilter) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).UnSuppressEvent(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/UnSuppressEvent", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UnSuppressEvent(ctx, req.(*voltha.EventFilter)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.GetExtValueMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetExtValue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetExtValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetExtValue(ctx, req.(*core_adapter.GetExtValueMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(core_adapter.SetExtValueMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SetExtValue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SetExtValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SetExtValue(ctx, req.(*core_adapter.SetExtValueMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_GetSingleValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(extension.SingleGetValueRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetSingleValue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/GetSingleValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetSingleValue(ctx, req.(*extension.SingleGetValueRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _AdapterService_SetSingleValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(extension.SingleSetValueRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).SetSingleValue(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/adapter_service.AdapterService/SetSingleValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SetSingleValue(ctx, req.(*extension.SingleSetValueRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _AdapterService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "adapter_service.AdapterService", |
| HandlerType: (*AdapterServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "AdoptDevice", |
| Handler: _AdapterService_AdoptDevice_Handler, |
| }, |
| { |
| MethodName: "ReconcileDevice", |
| Handler: _AdapterService_ReconcileDevice_Handler, |
| }, |
| { |
| MethodName: "DeleteDevice", |
| Handler: _AdapterService_DeleteDevice_Handler, |
| }, |
| { |
| MethodName: "DisableDevice", |
| Handler: _AdapterService_DisableDevice_Handler, |
| }, |
| { |
| MethodName: "ReEnableDevice", |
| Handler: _AdapterService_ReEnableDevice_Handler, |
| }, |
| { |
| MethodName: "RebootDevice", |
| Handler: _AdapterService_RebootDevice_Handler, |
| }, |
| { |
| MethodName: "SelfTestDevice", |
| Handler: _AdapterService_SelfTestDevice_Handler, |
| }, |
| { |
| MethodName: "GetOfpDeviceInfo", |
| Handler: _AdapterService_GetOfpDeviceInfo_Handler, |
| }, |
| { |
| MethodName: "ChildDeviceLost", |
| Handler: _AdapterService_ChildDeviceLost_Handler, |
| }, |
| { |
| MethodName: "EnablePort", |
| Handler: _AdapterService_EnablePort_Handler, |
| }, |
| { |
| MethodName: "DisablePort", |
| Handler: _AdapterService_DisablePort_Handler, |
| }, |
| { |
| MethodName: "UpdateFlowsBulk", |
| Handler: _AdapterService_UpdateFlowsBulk_Handler, |
| }, |
| { |
| MethodName: "UpdateFlowsIncrementally", |
| Handler: _AdapterService_UpdateFlowsIncrementally_Handler, |
| }, |
| { |
| MethodName: "SendPacketOut", |
| Handler: _AdapterService_SendPacketOut_Handler, |
| }, |
| { |
| MethodName: "UpdatePmConfig", |
| Handler: _AdapterService_UpdatePmConfig_Handler, |
| }, |
| { |
| MethodName: "DownloadOnuImage", |
| Handler: _AdapterService_DownloadOnuImage_Handler, |
| }, |
| { |
| MethodName: "GetOnuImageStatus", |
| Handler: _AdapterService_GetOnuImageStatus_Handler, |
| }, |
| { |
| MethodName: "AbortOnuImageUpgrade", |
| Handler: _AdapterService_AbortOnuImageUpgrade_Handler, |
| }, |
| { |
| MethodName: "GetOnuImages", |
| Handler: _AdapterService_GetOnuImages_Handler, |
| }, |
| { |
| MethodName: "ActivateOnuImage", |
| Handler: _AdapterService_ActivateOnuImage_Handler, |
| }, |
| { |
| MethodName: "CommitOnuImage", |
| Handler: _AdapterService_CommitOnuImage_Handler, |
| }, |
| { |
| MethodName: "DownloadImage", |
| Handler: _AdapterService_DownloadImage_Handler, |
| }, |
| { |
| MethodName: "GetImageDownloadStatus", |
| Handler: _AdapterService_GetImageDownloadStatus_Handler, |
| }, |
| { |
| MethodName: "CancelImageDownload", |
| Handler: _AdapterService_CancelImageDownload_Handler, |
| }, |
| { |
| MethodName: "ActivateImageUpdate", |
| Handler: _AdapterService_ActivateImageUpdate_Handler, |
| }, |
| { |
| MethodName: "RevertImageUpdate", |
| Handler: _AdapterService_RevertImageUpdate_Handler, |
| }, |
| { |
| MethodName: "StartOmciTest", |
| Handler: _AdapterService_StartOmciTest_Handler, |
| }, |
| { |
| MethodName: "SimulateAlarm", |
| Handler: _AdapterService_SimulateAlarm_Handler, |
| }, |
| { |
| MethodName: "SuppressEvent", |
| Handler: _AdapterService_SuppressEvent_Handler, |
| }, |
| { |
| MethodName: "UnSuppressEvent", |
| Handler: _AdapterService_UnSuppressEvent_Handler, |
| }, |
| { |
| MethodName: "GetExtValue", |
| Handler: _AdapterService_GetExtValue_Handler, |
| }, |
| { |
| MethodName: "SetExtValue", |
| Handler: _AdapterService_SetExtValue_Handler, |
| }, |
| { |
| MethodName: "GetSingleValue", |
| Handler: _AdapterService_GetSingleValue_Handler, |
| }, |
| { |
| MethodName: "SetSingleValue", |
| Handler: _AdapterService_SetSingleValue_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{ |
| { |
| StreamName: "GetHealthStatus", |
| Handler: _AdapterService_GetHealthStatus_Handler, |
| ServerStreams: true, |
| ClientStreams: true, |
| }, |
| }, |
| Metadata: "voltha_protos/adapter_service.proto", |
| } |