| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/adapter_services.proto |
| |
| package adapter_services |
| |
| 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" |
| extension "github.com/opencord/voltha-protos/v5/go/extension" |
| inter_container "github.com/opencord/voltha-protos/v5/go/inter_container" |
| _ "github.com/opencord/voltha-protos/v5/go/openolt" |
| 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_services.proto", fileDescriptor_5826bd5d7bb77df1) |
| } |
| |
| var fileDescriptor_5826bd5d7bb77df1 = []byte{ |
| // 965 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0x4b, 0x6f, 0xe3, 0x36, |
| 0x10, 0xc7, 0x81, 0x16, 0xd8, 0xc3, 0x24, 0x76, 0x12, 0xe5, 0x81, 0x85, 0xb2, 0x2d, 0xfa, 0xba, |
| 0xf4, 0xb0, 0x0a, 0x90, 0xc5, 0x3e, 0x5a, 0xa4, 0x0d, 0x1c, 0xdb, 0xeb, 0x75, 0x9b, 0xc0, 0xa9, |
| 0x95, 0xec, 0xa1, 0x97, 0x05, 0x2d, 0x8d, 0x65, 0x62, 0x29, 0x52, 0x15, 0x47, 0x79, 0x9c, 0xfb, |
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f9, 0xc5, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x62, 0xe3, 0x4e, |
| 0xd4, 0x8b, 0x0d, 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, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, 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) (*inter_container.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 *inter_container.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) |
| UpdateFlowsIncrementally(ctx context.Context, in *inter_container.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) |
| //Packets |
| SendPacketOut(ctx context.Context, in *inter_container.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) |
| // PM |
| UpdatePmConfig(ctx context.Context, in *inter_container.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 *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| GetImageDownloadStatus(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| CancelImageDownload(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| ActivateImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| RevertImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) |
| // Tests |
| StartOmciTest(ctx context.Context, in *inter_container.OMCITest, opts ...grpc.CallOption) (*voltha.TestResponse, error) |
| SimulateAlarm(ctx context.Context, in *inter_container.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 *inter_container.GetExtValueMessage, opts ...grpc.CallOption) (*common.ReturnValues, error) |
| SetExtValue(ctx context.Context, in *inter_container.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, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| out := new(voltha.HealthStatus) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/GetHealthStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, 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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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) (*inter_container.SwitchCapability, error) { |
| out := new(inter_container.SwitchCapability) |
| err := c.cc.Invoke(ctx, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.AdapterService/DisablePort", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdateFlowsBulk(ctx context.Context, in *inter_container.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/UpdateFlowsBulk", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdateFlowsIncrementally(ctx context.Context, in *inter_container.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/UpdateFlowsIncrementally", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SendPacketOut(ctx context.Context, in *inter_container.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/SendPacketOut", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) UpdatePmConfig(ctx context.Context, in *inter_container.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.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, "/voltha.AdapterService/CommitOnuImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) DownloadImage(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/DownloadImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetImageDownloadStatus(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/GetImageDownloadStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) CancelImageDownload(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/CancelImageDownload", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) ActivateImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/ActivateImageUpdate", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) RevertImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| out := new(voltha.ImageDownload) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/RevertImageUpdate", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) StartOmciTest(ctx context.Context, in *inter_container.OMCITest, opts ...grpc.CallOption) (*voltha.TestResponse, error) { |
| out := new(voltha.TestResponse) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/StartOmciTest", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SimulateAlarm(ctx context.Context, in *inter_container.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error) { |
| out := new(common.OperationResp) |
| err := c.cc.Invoke(ctx, "/voltha.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, "/voltha.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, "/voltha.AdapterService/UnSuppressEvent", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) GetExtValue(ctx context.Context, in *inter_container.GetExtValueMessage, opts ...grpc.CallOption) (*common.ReturnValues, error) { |
| out := new(common.ReturnValues) |
| err := c.cc.Invoke(ctx, "/voltha.AdapterService/GetExtValue", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *adapterServiceClient) SetExtValue(ctx context.Context, in *inter_container.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.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, "/voltha.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, "/voltha.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(context.Context, *empty.Empty) (*voltha.HealthStatus, 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) (*inter_container.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, *inter_container.BulkFlows) (*empty.Empty, error) |
| UpdateFlowsIncrementally(context.Context, *inter_container.IncrementalFlows) (*empty.Empty, error) |
| //Packets |
| SendPacketOut(context.Context, *inter_container.PacketOut) (*empty.Empty, error) |
| // PM |
| UpdatePmConfig(context.Context, *inter_container.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, *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| GetImageDownloadStatus(context.Context, *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| CancelImageDownload(context.Context, *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| ActivateImageUpdate(context.Context, *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| RevertImageUpdate(context.Context, *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) |
| // Tests |
| StartOmciTest(context.Context, *inter_container.OMCITest) (*voltha.TestResponse, error) |
| SimulateAlarm(context.Context, *inter_container.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, *inter_container.GetExtValueMessage) (*common.ReturnValues, error) |
| SetExtValue(context.Context, *inter_container.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(ctx context.Context, req *empty.Empty) (*voltha.HealthStatus, error) { |
| return nil, 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) (*inter_container.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 *inter_container.BulkFlows) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsBulk not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UpdateFlowsIncrementally(ctx context.Context, req *inter_container.IncrementalFlows) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowsIncrementally not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SendPacketOut(ctx context.Context, req *inter_container.PacketOut) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SendPacketOut not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) UpdatePmConfig(ctx context.Context, req *inter_container.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 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DownloadImage not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) GetImageDownloadStatus(ctx context.Context, req *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetImageDownloadStatus not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) CancelImageDownload(ctx context.Context, req *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CancelImageDownload not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) ActivateImageUpdate(ctx context.Context, req *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ActivateImageUpdate not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) RevertImageUpdate(ctx context.Context, req *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method RevertImageUpdate not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) StartOmciTest(ctx context.Context, req *inter_container.OMCITest) (*voltha.TestResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartOmciTest not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SimulateAlarm(ctx context.Context, req *inter_container.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 *inter_container.GetExtValueMessage) (*common.ReturnValues, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetExtValue not implemented") |
| } |
| func (*UnimplementedAdapterServiceServer) SetExtValue(ctx context.Context, req *inter_container.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{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(empty.Empty) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(AdapterServiceServer).GetHealthStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.AdapterService/GetHealthStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetHealthStatus(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| 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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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(inter_container.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: "/voltha.AdapterService/UpdateFlowsBulk", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdateFlowsBulk(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/UpdateFlowsIncrementally", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdateFlowsIncrementally(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/SendPacketOut", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SendPacketOut(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/UpdatePmConfig", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).UpdatePmConfig(ctx, req.(*inter_container.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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: "/voltha.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(inter_container.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: "/voltha.AdapterService/DownloadImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).DownloadImage(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/GetImageDownloadStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetImageDownloadStatus(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/CancelImageDownload", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).CancelImageDownload(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/ActivateImageUpdate", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).ActivateImageUpdate(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/RevertImageUpdate", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).RevertImageUpdate(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/StartOmciTest", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).StartOmciTest(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/SimulateAlarm", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SimulateAlarm(ctx, req.(*inter_container.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: "/voltha.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: "/voltha.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(inter_container.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: "/voltha.AdapterService/GetExtValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).GetExtValue(ctx, req.(*inter_container.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(inter_container.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: "/voltha.AdapterService/SetExtValue", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(AdapterServiceServer).SetExtValue(ctx, req.(*inter_container.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: "/voltha.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: "/voltha.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: "voltha.AdapterService", |
| HandlerType: (*AdapterServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetHealthStatus", |
| Handler: _AdapterService_GetHealthStatus_Handler, |
| }, |
| { |
| 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{}, |
| Metadata: "voltha_protos/adapter_services.proto", |
| } |
| |
| // OnuInterAdapterServiceClient is the client API for OnuInterAdapterService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type OnuInterAdapterServiceClient interface { |
| // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OnuInterAdapterService service |
| GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) |
| OnuIndication(ctx context.Context, in *inter_container.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| OmciIndication(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DownloadTechProfile(ctx context.Context, in *inter_container.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DeleteGemPort(ctx context.Context, in *inter_container.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DeleteTCont(ctx context.Context, in *inter_container.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| } |
| |
| type onuInterAdapterServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewOnuInterAdapterServiceClient(cc *grpc.ClientConn) OnuInterAdapterServiceClient { |
| return &onuInterAdapterServiceClient{cc} |
| } |
| |
| func (c *onuInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| out := new(voltha.HealthStatus) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/GetHealthStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_container.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/OnuIndication", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) OmciIndication(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/OmciIndication", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_container.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/DownloadTechProfile", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_container.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/DeleteGemPort", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_container.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OnuInterAdapterService/DeleteTCont", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // OnuInterAdapterServiceServer is the server API for OnuInterAdapterService service. |
| type OnuInterAdapterServiceServer interface { |
| // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OnuInterAdapterService service |
| GetHealthStatus(context.Context, *empty.Empty) (*voltha.HealthStatus, error) |
| OnuIndication(context.Context, *inter_container.OnuIndicationMessage) (*empty.Empty, error) |
| OmciIndication(context.Context, *inter_container.OmciMessage) (*empty.Empty, error) |
| DownloadTechProfile(context.Context, *inter_container.TechProfileDownloadMessage) (*empty.Empty, error) |
| DeleteGemPort(context.Context, *inter_container.DeleteGemPortMessage) (*empty.Empty, error) |
| DeleteTCont(context.Context, *inter_container.DeleteTcontMessage) (*empty.Empty, error) |
| } |
| |
| // UnimplementedOnuInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedOnuInterAdapterServiceServer struct { |
| } |
| |
| func (*UnimplementedOnuInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *empty.Empty) (*voltha.HealthStatus, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) OnuIndication(ctx context.Context, req *inter_container.OnuIndicationMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method OnuIndication not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) OmciIndication(ctx context.Context, req *inter_container.OmciMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method OmciIndication not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DownloadTechProfile(ctx context.Context, req *inter_container.TechProfileDownloadMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DownloadTechProfile not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DeleteGemPort(ctx context.Context, req *inter_container.DeleteGemPortMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteGemPort not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DeleteTCont(ctx context.Context, req *inter_container.DeleteTcontMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteTCont not implemented") |
| } |
| |
| func RegisterOnuInterAdapterServiceServer(s *grpc.Server, srv OnuInterAdapterServiceServer) { |
| s.RegisterService(&_OnuInterAdapterService_serviceDesc, srv) |
| } |
| |
| func _OnuInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(empty.Empty) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/GetHealthStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OnuInterAdapterService_OnuIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.OnuIndicationMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/OnuIndication", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, req.(*inter_container.OnuIndicationMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OnuInterAdapterService_OmciIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.OmciMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/OmciIndication", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, req.(*inter_container.OmciMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OnuInterAdapterService_DownloadTechProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.TechProfileDownloadMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/DownloadTechProfile", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, req.(*inter_container.TechProfileDownloadMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OnuInterAdapterService_DeleteGemPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.DeleteGemPortMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/DeleteGemPort", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, req.(*inter_container.DeleteGemPortMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OnuInterAdapterService_DeleteTCont_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.DeleteTcontMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OnuInterAdapterService/DeleteTCont", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, req.(*inter_container.DeleteTcontMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OnuInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "voltha.OnuInterAdapterService", |
| HandlerType: (*OnuInterAdapterServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetHealthStatus", |
| Handler: _OnuInterAdapterService_GetHealthStatus_Handler, |
| }, |
| { |
| MethodName: "OnuIndication", |
| Handler: _OnuInterAdapterService_OnuIndication_Handler, |
| }, |
| { |
| MethodName: "OmciIndication", |
| Handler: _OnuInterAdapterService_OmciIndication_Handler, |
| }, |
| { |
| MethodName: "DownloadTechProfile", |
| Handler: _OnuInterAdapterService_DownloadTechProfile_Handler, |
| }, |
| { |
| MethodName: "DeleteGemPort", |
| Handler: _OnuInterAdapterService_DeleteGemPort_Handler, |
| }, |
| { |
| MethodName: "DeleteTCont", |
| Handler: _OnuInterAdapterService_DeleteTCont_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "voltha_protos/adapter_services.proto", |
| } |
| |
| // OltInterAdapterServiceClient is the client API for OltInterAdapterService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type OltInterAdapterServiceClient interface { |
| // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) |
| ProxyOmciRequest(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| GetTechProfileInstance(ctx context.Context, in *inter_container.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_container.TechProfileDownloadMessage, error) |
| } |
| |
| type oltInterAdapterServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient { |
| return &oltInterAdapterServiceClient{cc} |
| } |
| |
| func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| out := new(voltha.HealthStatus) |
| err := c.cc.Invoke(ctx, "/voltha.OltInterAdapterService/GetHealthStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/voltha.OltInterAdapterService/ProxyOmciRequest", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_container.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_container.TechProfileDownloadMessage, error) { |
| out := new(inter_container.TechProfileDownloadMessage) |
| err := c.cc.Invoke(ctx, "/voltha.OltInterAdapterService/GetTechProfileInstance", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // OltInterAdapterServiceServer is the server API for OltInterAdapterService service. |
| type OltInterAdapterServiceServer interface { |
| // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(context.Context, *empty.Empty) (*voltha.HealthStatus, error) |
| ProxyOmciRequest(context.Context, *inter_container.OmciMessage) (*empty.Empty, error) |
| GetTechProfileInstance(context.Context, *inter_container.TechProfileInstanceRequestMessage) (*inter_container.TechProfileDownloadMessage, error) |
| } |
| |
| // UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedOltInterAdapterServiceServer struct { |
| } |
| |
| func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *empty.Empty) (*voltha.HealthStatus, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| } |
| func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_container.OmciMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented") |
| } |
| func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_container.TechProfileInstanceRequestMessage) (*inter_container.TechProfileDownloadMessage, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetTechProfileInstance not implemented") |
| } |
| |
| func RegisterOltInterAdapterServiceServer(s *grpc.Server, srv OltInterAdapterServiceServer) { |
| s.RegisterService(&_OltInterAdapterService_serviceDesc, srv) |
| } |
| |
| func _OltInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(empty.Empty) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OltInterAdapterService/GetHealthStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OltInterAdapterService_ProxyOmciRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.OmciMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OltInterAdapterService/ProxyOmciRequest", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_container.OmciMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OltInterAdapterService_GetTechProfileInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_container.TechProfileInstanceRequestMessage) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/voltha.OltInterAdapterService/GetTechProfileInstance", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_container.TechProfileInstanceRequestMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "voltha.OltInterAdapterService", |
| HandlerType: (*OltInterAdapterServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetHealthStatus", |
| Handler: _OltInterAdapterService_GetHealthStatus_Handler, |
| }, |
| { |
| MethodName: "ProxyOmciRequest", |
| Handler: _OltInterAdapterService_ProxyOmciRequest_Handler, |
| }, |
| { |
| MethodName: "GetTechProfileInstance", |
| Handler: _OltInterAdapterService_GetTechProfileInstance_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "voltha_protos/adapter_services.proto", |
| } |