blob: 569dfda70015e456ed2758ff02629f886d6a6bad [file] [log] [blame]
khenaidoo9beaaf12021-10-19 17:32:01 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/olt_inter_adapter_service.proto
3
4package olt_inter_adapter_service
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 health "github.com/opencord/voltha-protos/v5/go/health"
12 inter_adapter "github.com/opencord/voltha-protos/v5/go/inter_adapter"
13 grpc "google.golang.org/grpc"
14 codes "google.golang.org/grpc/codes"
15 status "google.golang.org/grpc/status"
16 math "math"
17)
18
19// Reference imports to suppress errors if they are not otherwise used.
20var _ = proto.Marshal
21var _ = fmt.Errorf
22var _ = math.Inf
23
24// This is a compile-time assertion to ensure that this generated file
25// is compatible with the proto package it is being compiled against.
26// A compilation error at this line likely means your copy of the
27// proto package needs to be updated.
28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
29
30func init() {
31 proto.RegisterFile("voltha_protos/olt_inter_adapter_service.proto", fileDescriptor_3ddb40a5aae0f6e1)
32}
33
34var fileDescriptor_3ddb40a5aae0f6e1 = []byte{
35 // 299 bytes of a gzipped FileDescriptorProto
36 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xbd, 0x4e, 0xc3, 0x30,
37 0x10, 0xc7, 0x05, 0x03, 0x83, 0x17, 0x90, 0x85, 0x2a, 0x61, 0x58, 0x18, 0x19, 0x6a, 0x23, 0x10,
38 0x33, 0x6a, 0x05, 0x94, 0x0e, 0xa8, 0x15, 0x45, 0x0c, 0x2c, 0x95, 0xeb, 0x5e, 0x9d, 0x48, 0x6e,
39 0x2e, 0xd8, 0x97, 0x40, 0xdf, 0x82, 0x91, 0xc7, 0x45, 0x89, 0x93, 0x21, 0xa8, 0x99, 0x3c, 0xdc,
40 0xef, 0xff, 0xa1, 0x3b, 0xb3, 0x61, 0x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87, 0x1a, 0x5f, 0xbc, 0xd7, 0xc4,
52 0xfe, 0x7d, 0x7e, 0x8c, 0x6c, 0x4a, 0x49, 0xb1, 0x92, 0x06, 0xb7, 0xaa, 0xf5, 0x54, 0xd1, 0x73,
53 0xd8, 0x9c, 0xa6, 0xbc, 0x53, 0x16, 0xfb, 0xbf, 0xca, 0xea, 0xa8, 0xe6, 0x6e, 0xff, 0x02, 0x00,
54 0x00, 0xff, 0xff, 0x96, 0x1f, 0x38, 0xd3, 0x5c, 0x02, 0x00, 0x00,
55}
56
57// Reference imports to suppress errors if they are not otherwise used.
58var _ context.Context
59var _ grpc.ClientConn
60
61// This is a compile-time assertion to ensure that this generated file
62// is compatible with the grpc package it is being compiled against.
63const _ = grpc.SupportPackageIsVersion4
64
65// OltInterAdapterServiceClient is the client API for OltInterAdapterService service.
66//
67// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
68type OltInterAdapterServiceClient interface {
69 // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity
70 // to the gRPC server hosting the OltInterAdapterService service
71 GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error)
72 ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error)
73 GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error)
74}
75
76type oltInterAdapterServiceClient struct {
77 cc *grpc.ClientConn
78}
79
80func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient {
81 return &oltInterAdapterServiceClient{cc}
82}
83
84func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error) {
85 out := new(health.HealthStatus)
86 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", in, out, opts...)
87 if err != nil {
88 return nil, err
89 }
90 return out, nil
91}
92
93func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
94 out := new(empty.Empty)
95 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", in, out, opts...)
96 if err != nil {
97 return nil, err
98 }
99 return out, nil
100}
101
102func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) {
103 out := new(inter_adapter.TechProfileDownloadMessage)
104 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", in, out, opts...)
105 if err != nil {
106 return nil, err
107 }
108 return out, nil
109}
110
111// OltInterAdapterServiceServer is the server API for OltInterAdapterService service.
112type OltInterAdapterServiceServer interface {
113 // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity
114 // to the gRPC server hosting the OltInterAdapterService service
115 GetHealthStatus(context.Context, *empty.Empty) (*health.HealthStatus, error)
116 ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error)
117 GetTechProfileInstance(context.Context, *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error)
118}
119
120// UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations.
121type UnimplementedOltInterAdapterServiceServer struct {
122}
123
124func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *empty.Empty) (*health.HealthStatus, error) {
125 return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented")
126}
127func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) {
128 return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented")
129}
130func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) {
131 return nil, status.Errorf(codes.Unimplemented, "method GetTechProfileInstance not implemented")
132}
133
134func RegisterOltInterAdapterServiceServer(s *grpc.Server, srv OltInterAdapterServiceServer) {
135 s.RegisterService(&_OltInterAdapterService_serviceDesc, srv)
136}
137
138func _OltInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
139 in := new(empty.Empty)
140 if err := dec(in); err != nil {
141 return nil, err
142 }
143 if interceptor == nil {
144 return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, in)
145 }
146 info := &grpc.UnaryServerInfo{
147 Server: srv,
148 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus",
149 }
150 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
151 return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, req.(*empty.Empty))
152 }
153 return interceptor(ctx, in, info, handler)
154}
155
156func _OltInterAdapterService_ProxyOmciRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
157 in := new(inter_adapter.OmciMessage)
158 if err := dec(in); err != nil {
159 return nil, err
160 }
161 if interceptor == nil {
162 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in)
163 }
164 info := &grpc.UnaryServerInfo{
165 Server: srv,
166 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest",
167 }
168 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
169 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_adapter.OmciMessage))
170 }
171 return interceptor(ctx, in, info, handler)
172}
173
174func _OltInterAdapterService_GetTechProfileInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
175 in := new(inter_adapter.TechProfileInstanceRequestMessage)
176 if err := dec(in); err != nil {
177 return nil, err
178 }
179 if interceptor == nil {
180 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, in)
181 }
182 info := &grpc.UnaryServerInfo{
183 Server: srv,
184 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance",
185 }
186 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
187 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_adapter.TechProfileInstanceRequestMessage))
188 }
189 return interceptor(ctx, in, info, handler)
190}
191
192var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{
193 ServiceName: "olt_inter_adapter_service.OltInterAdapterService",
194 HandlerType: (*OltInterAdapterServiceServer)(nil),
195 Methods: []grpc.MethodDesc{
196 {
197 MethodName: "GetHealthStatus",
198 Handler: _OltInterAdapterService_GetHealthStatus_Handler,
199 },
200 {
201 MethodName: "ProxyOmciRequest",
202 Handler: _OltInterAdapterService_ProxyOmciRequest_Handler,
203 },
204 {
205 MethodName: "GetTechProfileInstance",
206 Handler: _OltInterAdapterService_GetTechProfileInstance_Handler,
207 },
208 },
209 Streams: []grpc.StreamDesc{},
210 Metadata: "voltha_protos/olt_inter_adapter_service.proto",
211}