| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/onu_inter_adapter_service.proto |
| |
| package onu_inter_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" |
| health "github.com/opencord/voltha-protos/v5/go/health" |
| inter_adapter "github.com/opencord/voltha-protos/v5/go/inter_adapter" |
| 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/onu_inter_adapter_service.proto", fileDescriptor_f951f30caeee9ccd) |
| } |
| |
| var fileDescriptor_f951f30caeee9ccd = []byte{ |
| // 351 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x4b, 0xf3, 0x40, |
| 0x10, 0xc6, 0x79, 0x79, 0xc1, 0xc3, 0x4a, 0x15, 0x56, 0x29, 0x18, 0xbd, 0x14, 0x4f, 0x1e, 0xba, |
| 0x01, 0xc5, 0x93, 0xa7, 0xfe, 0x91, 0x56, 0xa8, 0xb4, 0xd0, 0x22, 0xe2, 0xa5, 0x6c, 0x37, 0xd3, |
| 0x64, 0x21, 0xd9, 0x09, 0xc9, 0xa4, 0xe2, 0xb7, 0xf0, 0xfb, 0xf9, 0x65, 0x24, 0xd9, 0x14, 0xba, |
| 0xb5, 0x25, 0xa7, 0x10, 0x9e, 0xdf, 0xfc, 0x98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2, 0x4d, 0xe6, 0x09, 0x6b, |
| 0x0d, 0x21, 0x06, 0x82, 0x11, 0x24, 0x33, 0xcc, 0xe8, 0xcf, 0xb5, 0x4e, 0xda, 0x64, 0x1b, 0xb3, |
| 0x53, 0xcb, 0x2f, 0x06, 0x68, 0x88, 0x77, 0x0e, 0xba, 0x16, 0x0a, 0x4d, 0x93, 0xa9, 0xff, 0xfd, |
| 0x8f, 0x75, 0x31, 0x0b, 0x05, 0xa6, 0x60, 0x14, 0x66, 0x81, 0xb0, 0x4d, 0x10, 0x47, 0x7b, 0xd8, |
| 0xbf, 0x79, 0xab, 0x88, 0xc3, 0x95, 0xf8, 0xe8, 0x85, 0x9a, 0xa2, 0x62, 0x55, 0xb6, 0xc0, 0xdf, |
| 0x3a, 0x7d, 0xeb, 0xec, 0xd6, 0xed, 0xda, 0x3c, 0xfa, 0x21, 0x1e, 0x7f, 0x09, 0xab, 0x93, 0x8a, |
| 0x7b, 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x10, 0x75, 0x34, 0x3b, 0x03, 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 |
| |
| // 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 *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) |
| OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| DeleteTCont(ctx context.Context, in *inter_adapter.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 *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) { |
| out := new(health.HealthStatus) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *onuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.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, *common.Connection) (*health.HealthStatus, error) |
| OnuIndication(context.Context, *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) |
| OmciIndication(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error) |
| DownloadTechProfile(context.Context, *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) |
| DeleteGemPort(context.Context, *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) |
| DeleteTCont(context.Context, *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) |
| } |
| |
| // UnimplementedOnuInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedOnuInterAdapterServiceServer struct { |
| } |
| |
| func (*UnimplementedOnuInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *common.Connection) (*health.HealthStatus, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) OnuIndication(ctx context.Context, req *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method OnuIndication not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) OmciIndication(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method OmciIndication not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DownloadTechProfile(ctx context.Context, req *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DownloadTechProfile not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DeleteGemPort(ctx context.Context, req *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method DeleteGemPort not implemented") |
| } |
| func (*UnimplementedOnuInterAdapterServiceServer) DeleteTCont(ctx context.Context, req *inter_adapter.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(common.Connection) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, req.(*common.Connection)) |
| } |
| 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_adapter.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: "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, req.(*inter_adapter.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_adapter.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: "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, req.(*inter_adapter.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_adapter.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: "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, req.(*inter_adapter.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_adapter.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: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, req.(*inter_adapter.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_adapter.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: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, req.(*inter_adapter.DeleteTcontMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OnuInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "onu_inter_adapter_service.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/onu_inter_adapter_service.proto", |
| } |