blob: e8aa01caa31e6df00e3714ea97bc10cad11bd547 [file] [log] [blame]
// 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{
// 846 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x6f, 0x6f, 0xdb, 0x36,
0x10, 0xc6, 0xb1, 0x0d, 0xd8, 0x8b, 0x4b, 0x6c, 0x27, 0x6c, 0x96, 0x0e, 0x0a, 0x56, 0x74, 0xed,
0xeb, 0xca, 0x40, 0x8b, 0xb6, 0x1b, 0x8a, 0x01, 0xf3, 0xbf, 0xba, 0xde, 0x5a, 0x38, 0xb0, 0xe6,
0x62, 0xd8, 0x9b, 0x80, 0x96, 0xcf, 0x32, 0x51, 0x8a, 0xd4, 0xc8, 0x93, 0xd3, 0x7e, 0x83, 0x7d,
0x80, 0x7d, 0xe0, 0x42, 0x12, 0xe5, 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5a, 0xa6, 0xb3, 0x6c, 0x5b, 0xb4, 0x4b, 0x82, 0x7b,
0x30, 0x3e, 0x2a, 0x9f, 0x8f, 0x4f, 0xdb, 0x91, 0xae, 0xbf, 0x96, 0x67, 0xdf, 0xe7, 0xea, 0x93,
0x8f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x51, 0x44, 0xf1, 0x55, 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, in *common.Connection, opts ...grpc.CallOption) (*health.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) (*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, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) {
out := new(health.HealthStatus)
err := c.cc.Invoke(ctx, "/adapter_service.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, "/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(context.Context, *common.Connection) (*health.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) (*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(ctx context.Context, req *common.Connection) (*health.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) (*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{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Connection)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdapterServiceServer).GetHealthStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/adapter_service.AdapterService/GetHealthStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdapterServiceServer).GetHealthStatus(ctx, req.(*common.Connection))
}
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: "/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: "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_service.proto",
}