| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/olt_inter_adapter_service.proto |
| |
| package olt_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/olt_inter_adapter_service.proto", fileDescriptor_3ddb40a5aae0f6e1) |
| } |
| |
| var fileDescriptor_3ddb40a5aae0f6e1 = []byte{ |
| // 337 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x4e, 0xe3, 0x30, |
| 0x10, 0x87, 0xd5, 0x3d, 0xec, 0xc1, 0x97, 0xdd, 0xb5, 0x56, 0x95, 0x48, 0xb9, 0x70, 0x83, 0x43, |
| 0x9d, 0x0a, 0xc4, 0x19, 0xb5, 0xfc, 0x69, 0x7b, 0x40, 0xad, 0x28, 0xe2, 0xc0, 0xa5, 0x72, 0xdd, |
| 0x69, 0x12, 0xc9, 0xf1, 0x04, 0x7b, 0x52, 0xe8, 0x5b, 0xf0, 0x8c, 0x3c, 0x09, 0x4a, 0xec, 0x4a, |
| 0xa4, 0x6a, 0x4e, 0x51, 0x34, 0xdf, 0x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x8e, 0xa4, 0x51, 0xc0, 0x07, 0x07, 0xba, |
| 0x23, 0x4c, 0x78, 0x7a, 0xdf, 0xed, 0x45, 0x7b, 0xe2, 0x0e, 0xdf, 0x8d, 0x46, 0xb9, 0x0e, 0xe8, |
| 0xe8, 0xb3, 0xc3, 0xfa, 0x68, 0x13, 0x81, 0x05, 0x18, 0x85, 0x76, 0x2d, 0xfc, 0x42, 0x44, 0xeb, |
| 0x39, 0x8c, 0x4e, 0x5f, 0x6a, 0xe2, 0xf8, 0x66, 0x5e, 0x87, 0x49, 0x46, 0x69, 0xb9, 0xaa, 0x96, |
| 0x11, 0xef, 0x9d, 0xb1, 0x77, 0xf6, 0xc3, 0x92, 0xb7, 0xd7, 0x71, 0x82, 0xed, 0x07, 0xb9, 0xfa, |
| 0x5d, 0x73, 0x57, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x9f, 0xd5, 0x8e, 0xc2, 0x02, 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 |
| |
| // 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 a OltInterAdapterService client to detect a connection |
| // lost with the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OltInterAdapterService_GetHealthStatusClient, error) |
| ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error) |
| GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) |
| } |
| |
| type oltInterAdapterServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient { |
| return &oltInterAdapterServiceClient{cc} |
| } |
| |
| func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OltInterAdapterService_GetHealthStatusClient, error) { |
| stream, err := c.cc.NewStream(ctx, &_OltInterAdapterService_serviceDesc.Streams[0], "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", opts...) |
| if err != nil { |
| return nil, err |
| } |
| x := &oltInterAdapterServiceGetHealthStatusClient{stream} |
| return x, nil |
| } |
| |
| type OltInterAdapterService_GetHealthStatusClient interface { |
| Send(*common.Connection) error |
| Recv() (*health.HealthStatus, error) |
| grpc.ClientStream |
| } |
| |
| type oltInterAdapterServiceGetHealthStatusClient struct { |
| grpc.ClientStream |
| } |
| |
| func (x *oltInterAdapterServiceGetHealthStatusClient) Send(m *common.Connection) error { |
| return x.ClientStream.SendMsg(m) |
| } |
| |
| func (x *oltInterAdapterServiceGetHealthStatusClient) Recv() (*health.HealthStatus, error) { |
| m := new(health.HealthStatus) |
| if err := x.ClientStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *oltInterAdapterServiceClient) ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) { |
| out := new(inter_adapter.TechProfileDownloadMessage) |
| err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.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 a OltInterAdapterService client to detect a connection |
| // lost with the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(OltInterAdapterService_GetHealthStatusServer) error |
| ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error) |
| ProxyOmciRequests(context.Context, *inter_adapter.OmciMessages) (*empty.Empty, error) |
| GetTechProfileInstance(context.Context, *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) |
| } |
| |
| // UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedOltInterAdapterServiceServer struct { |
| } |
| |
| func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(srv OltInterAdapterService_GetHealthStatusServer) error { |
| return status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| } |
| func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented") |
| } |
| func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequests(ctx context.Context, req *inter_adapter.OmciMessages) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequests not implemented") |
| } |
| func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.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{}, stream grpc.ServerStream) error { |
| return srv.(OltInterAdapterServiceServer).GetHealthStatus(&oltInterAdapterServiceGetHealthStatusServer{stream}) |
| } |
| |
| type OltInterAdapterService_GetHealthStatusServer interface { |
| Send(*health.HealthStatus) error |
| Recv() (*common.Connection, error) |
| grpc.ServerStream |
| } |
| |
| type oltInterAdapterServiceGetHealthStatusServer struct { |
| grpc.ServerStream |
| } |
| |
| func (x *oltInterAdapterServiceGetHealthStatusServer) Send(m *health.HealthStatus) error { |
| return x.ServerStream.SendMsg(m) |
| } |
| |
| func (x *oltInterAdapterServiceGetHealthStatusServer) Recv() (*common.Connection, error) { |
| m := new(common.Connection) |
| if err := x.ServerStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func _OltInterAdapterService_ProxyOmciRequest_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.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_adapter.OmciMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _OltInterAdapterService_ProxyOmciRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(inter_adapter.OmciMessages) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, req.(*inter_adapter.OmciMessages)) |
| } |
| 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_adapter.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: "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_adapter.TechProfileInstanceRequestMessage)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "olt_inter_adapter_service.OltInterAdapterService", |
| HandlerType: (*OltInterAdapterServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "ProxyOmciRequest", |
| Handler: _OltInterAdapterService_ProxyOmciRequest_Handler, |
| }, |
| { |
| MethodName: "ProxyOmciRequests", |
| Handler: _OltInterAdapterService_ProxyOmciRequests_Handler, |
| }, |
| { |
| MethodName: "GetTechProfileInstance", |
| Handler: _OltInterAdapterService_GetTechProfileInstance_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{ |
| { |
| StreamName: "GetHealthStatus", |
| Handler: _OltInterAdapterService_GetHealthStatus_Handler, |
| ServerStreams: true, |
| ClientStreams: true, |
| }, |
| }, |
| Metadata: "voltha_protos/olt_inter_adapter_service.proto", |
| } |