| // 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" |
| 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{ |
| // 299 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xbd, 0x4e, 0xc3, 0x30, |
| 0x10, 0xc7, 0x05, 0x03, 0x83, 0x17, 0x90, 0x85, 0x2a, 0x61, 0x58, 0x18, 0x19, 0x6a, 0x23, 0x10, |
| 0x33, 0x6a, 0x05, 0x94, 0x0e, 0xa8, 0x15, 0x45, 0x0c, 0x2c, 0x95, 0xeb, 0x5e, 0x9d, 0x48, 0x6e, |
| 0x2e, 0xd8, 0x97, 0x40, 0xdf, 0x82, 0x91, 0xc7, 0x45, 0x89, 0x93, 0x21, 0xa8, 0x99, 0x3c, 0xdc, |
| 0xef, 0xff, 0xa1, 0x3b, 0xb3, 0x61, 0x89, 0x8e, 0x12, 0xbd, 0xcc, 0x3d, 0x12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7, 0xc4, |
| 0xfe, 0x7d, 0x7e, 0x8c, 0x6c, 0x4a, 0x49, 0xb1, 0x92, 0x06, 0xb7, 0xaa, 0xf5, 0x54, 0xd1, 0x73, |
| 0xd8, 0x9c, 0xa6, 0xbc, 0x53, 0x16, 0xfb, 0xbf, 0xca, 0xea, 0xa8, 0xe6, 0x6e, 0xff, 0x02, 0x00, |
| 0x00, 0xff, 0xff, 0x96, 0x1f, 0x38, 0xd3, 0x5c, 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 an OltInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error) |
| ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, 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, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error) { |
| out := new(health.HealthStatus) |
| err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, 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) 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 an OltInterAdapterService client to verify connectivity |
| // to the gRPC server hosting the OltInterAdapterService service |
| GetHealthStatus(context.Context, *empty.Empty) (*health.HealthStatus, error) |
| ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*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(ctx context.Context, req *empty.Empty) (*health.HealthStatus, error) { |
| return nil, 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) 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{}, 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: "/olt_inter_adapter_service.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_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_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: "GetHealthStatus", |
| Handler: _OltInterAdapterService_GetHealthStatus_Handler, |
| }, |
| { |
| MethodName: "ProxyOmciRequest", |
| Handler: _OltInterAdapterService_ProxyOmciRequest_Handler, |
| }, |
| { |
| MethodName: "GetTechProfileInstance", |
| Handler: _OltInterAdapterService_GetTechProfileInstance_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "voltha_protos/olt_inter_adapter_service.proto", |
| } |