blob: a2cf5370919de439942433f2c494b8b414fea505 [file] [log] [blame]
khenaidoo4c6543e2021-10-19 17:25:58 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/onu_inter_adapter_service.proto
3
4package onu_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"
khenaidoo5cb0d402021-12-08 14:09:16 -050011 common "github.com/opencord/voltha-protos/v5/go/common"
khenaidoo4c6543e2021-10-19 17:25:58 -040012 health "github.com/opencord/voltha-protos/v5/go/health"
13 inter_adapter "github.com/opencord/voltha-protos/v5/go/inter_adapter"
14 grpc "google.golang.org/grpc"
15 codes "google.golang.org/grpc/codes"
16 status "google.golang.org/grpc/status"
17 math "math"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24
25// This is a compile-time assertion to ensure that this generated file
26// is compatible with the proto package it is being compiled against.
27// A compilation error at this line likely means your copy of the
28// proto package needs to be updated.
29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
30
31func init() {
32 proto.RegisterFile("voltha_protos/onu_inter_adapter_service.proto", fileDescriptor_f951f30caeee9ccd)
33}
34
35var fileDescriptor_f951f30caeee9ccd = []byte{
khenaidoo5cb0d402021-12-08 14:09:16 -050036 // 351 bytes of a gzipped FileDescriptorProto
37 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x4b, 0xf3, 0x40,
38 0x10, 0xc6, 0x79, 0x79, 0xc1, 0xc3, 0x4a, 0x15, 0x56, 0x29, 0x18, 0xbd, 0x14, 0x4f, 0x1e, 0xba,
39 0x01, 0xc5, 0x93, 0xa7, 0xfe, 0x91, 0x56, 0xa8, 0xb4, 0xd0, 0x22, 0xe2, 0xa5, 0x6c, 0x37, 0xd3,
40 0x64, 0x21, 0xd9, 0x09, 0x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0x9a, 0x18, 0x65, 0xb0, 0x00, 0x15,
52 0xcd, 0x32, 0x5c, 0xeb, 0x18, 0xf8, 0xdd, 0x9e, 0x6a, 0x27, 0xdb, 0xe2, 0x4d, 0xe6, 0x09, 0x6b,
53 0x0d, 0x21, 0x06, 0x82, 0x11, 0x24, 0x33, 0xcc, 0xe8, 0xcf, 0xb5, 0x4e, 0xda, 0x64, 0x1b, 0xb3,
54 0x53, 0xcb, 0x2f, 0x06, 0x68, 0x88, 0x77, 0x0e, 0xba, 0x16, 0x0a, 0x4d, 0x93, 0xa9, 0xff, 0xfd,
55 0x8f, 0x75, 0x31, 0x0b, 0x05, 0xa6, 0x60, 0x14, 0x66, 0x81, 0xb0, 0x4d, 0x10, 0x47, 0x7b, 0xd8,
56 0xbf, 0x79, 0xab, 0x88, 0xc3, 0x95, 0xf8, 0xe8, 0x85, 0x9a, 0xa2, 0x62, 0x55, 0xb6, 0xc0, 0xdf,
57 0x3a, 0x7d, 0xeb, 0xec, 0xd6, 0xed, 0xda, 0x3c, 0xfa, 0x21, 0x1e, 0x7f, 0x09, 0xab, 0x93, 0x8a,
58 0x7b, 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x10, 0x75, 0x34, 0x3b, 0x03, 0x00, 0x00,
khenaidoo4c6543e2021-10-19 17:25:58 -040059}
60
61// Reference imports to suppress errors if they are not otherwise used.
62var _ context.Context
63var _ grpc.ClientConn
64
65// This is a compile-time assertion to ensure that this generated file
66// is compatible with the grpc package it is being compiled against.
67const _ = grpc.SupportPackageIsVersion4
68
69// OnuInterAdapterServiceClient is the client API for OnuInterAdapterService service.
70//
71// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
72type OnuInterAdapterServiceClient interface {
73 // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity
74 // to the gRPC server hosting the OnuInterAdapterService service
khenaidoo5cb0d402021-12-08 14:09:16 -050075 GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error)
khenaidoo4c6543e2021-10-19 17:25:58 -040076 OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error)
77 OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error)
78 DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error)
79 DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error)
80 DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error)
81}
82
83type onuInterAdapterServiceClient struct {
84 cc *grpc.ClientConn
85}
86
87func NewOnuInterAdapterServiceClient(cc *grpc.ClientConn) OnuInterAdapterServiceClient {
88 return &onuInterAdapterServiceClient{cc}
89}
90
khenaidoo5cb0d402021-12-08 14:09:16 -050091func (c *onuInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) {
khenaidoo4c6543e2021-10-19 17:25:58 -040092 out := new(health.HealthStatus)
93 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", in, out, opts...)
94 if err != nil {
95 return nil, err
96 }
97 return out, nil
98}
99
100func (c *onuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
101 out := new(empty.Empty)
102 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", in, out, opts...)
103 if err != nil {
104 return nil, err
105 }
106 return out, nil
107}
108
109func (c *onuInterAdapterServiceClient) OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
110 out := new(empty.Empty)
111 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", in, out, opts...)
112 if err != nil {
113 return nil, err
114 }
115 return out, nil
116}
117
118func (c *onuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
119 out := new(empty.Empty)
120 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", in, out, opts...)
121 if err != nil {
122 return nil, err
123 }
124 return out, nil
125}
126
127func (c *onuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
128 out := new(empty.Empty)
129 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", in, out, opts...)
130 if err != nil {
131 return nil, err
132 }
133 return out, nil
134}
135
136func (c *onuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
137 out := new(empty.Empty)
138 err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", in, out, opts...)
139 if err != nil {
140 return nil, err
141 }
142 return out, nil
143}
144
145// OnuInterAdapterServiceServer is the server API for OnuInterAdapterService service.
146type OnuInterAdapterServiceServer interface {
147 // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity
148 // to the gRPC server hosting the OnuInterAdapterService service
khenaidoo5cb0d402021-12-08 14:09:16 -0500149 GetHealthStatus(context.Context, *common.Connection) (*health.HealthStatus, error)
khenaidoo4c6543e2021-10-19 17:25:58 -0400150 OnuIndication(context.Context, *inter_adapter.OnuIndicationMessage) (*empty.Empty, error)
151 OmciIndication(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error)
152 DownloadTechProfile(context.Context, *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error)
153 DeleteGemPort(context.Context, *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error)
154 DeleteTCont(context.Context, *inter_adapter.DeleteTcontMessage) (*empty.Empty, error)
155}
156
157// UnimplementedOnuInterAdapterServiceServer can be embedded to have forward compatible implementations.
158type UnimplementedOnuInterAdapterServiceServer struct {
159}
160
khenaidoo5cb0d402021-12-08 14:09:16 -0500161func (*UnimplementedOnuInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *common.Connection) (*health.HealthStatus, error) {
khenaidoo4c6543e2021-10-19 17:25:58 -0400162 return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented")
163}
164func (*UnimplementedOnuInterAdapterServiceServer) OnuIndication(ctx context.Context, req *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) {
165 return nil, status.Errorf(codes.Unimplemented, "method OnuIndication not implemented")
166}
167func (*UnimplementedOnuInterAdapterServiceServer) OmciIndication(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) {
168 return nil, status.Errorf(codes.Unimplemented, "method OmciIndication not implemented")
169}
170func (*UnimplementedOnuInterAdapterServiceServer) DownloadTechProfile(ctx context.Context, req *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) {
171 return nil, status.Errorf(codes.Unimplemented, "method DownloadTechProfile not implemented")
172}
173func (*UnimplementedOnuInterAdapterServiceServer) DeleteGemPort(ctx context.Context, req *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) {
174 return nil, status.Errorf(codes.Unimplemented, "method DeleteGemPort not implemented")
175}
176func (*UnimplementedOnuInterAdapterServiceServer) DeleteTCont(ctx context.Context, req *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) {
177 return nil, status.Errorf(codes.Unimplemented, "method DeleteTCont not implemented")
178}
179
180func RegisterOnuInterAdapterServiceServer(s *grpc.Server, srv OnuInterAdapterServiceServer) {
181 s.RegisterService(&_OnuInterAdapterService_serviceDesc, srv)
182}
183
184func _OnuInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
khenaidoo5cb0d402021-12-08 14:09:16 -0500185 in := new(common.Connection)
khenaidoo4c6543e2021-10-19 17:25:58 -0400186 if err := dec(in); err != nil {
187 return nil, err
188 }
189 if interceptor == nil {
190 return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, in)
191 }
192 info := &grpc.UnaryServerInfo{
193 Server: srv,
194 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus",
195 }
196 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
khenaidoo5cb0d402021-12-08 14:09:16 -0500197 return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, req.(*common.Connection))
khenaidoo4c6543e2021-10-19 17:25:58 -0400198 }
199 return interceptor(ctx, in, info, handler)
200}
201
202func _OnuInterAdapterService_OnuIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
203 in := new(inter_adapter.OnuIndicationMessage)
204 if err := dec(in); err != nil {
205 return nil, err
206 }
207 if interceptor == nil {
208 return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, in)
209 }
210 info := &grpc.UnaryServerInfo{
211 Server: srv,
212 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication",
213 }
214 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
215 return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, req.(*inter_adapter.OnuIndicationMessage))
216 }
217 return interceptor(ctx, in, info, handler)
218}
219
220func _OnuInterAdapterService_OmciIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
221 in := new(inter_adapter.OmciMessage)
222 if err := dec(in); err != nil {
223 return nil, err
224 }
225 if interceptor == nil {
226 return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, in)
227 }
228 info := &grpc.UnaryServerInfo{
229 Server: srv,
230 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication",
231 }
232 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
233 return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, req.(*inter_adapter.OmciMessage))
234 }
235 return interceptor(ctx, in, info, handler)
236}
237
238func _OnuInterAdapterService_DownloadTechProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
239 in := new(inter_adapter.TechProfileDownloadMessage)
240 if err := dec(in); err != nil {
241 return nil, err
242 }
243 if interceptor == nil {
244 return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, in)
245 }
246 info := &grpc.UnaryServerInfo{
247 Server: srv,
248 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile",
249 }
250 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
251 return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, req.(*inter_adapter.TechProfileDownloadMessage))
252 }
253 return interceptor(ctx, in, info, handler)
254}
255
256func _OnuInterAdapterService_DeleteGemPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
257 in := new(inter_adapter.DeleteGemPortMessage)
258 if err := dec(in); err != nil {
259 return nil, err
260 }
261 if interceptor == nil {
262 return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, in)
263 }
264 info := &grpc.UnaryServerInfo{
265 Server: srv,
266 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort",
267 }
268 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
269 return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, req.(*inter_adapter.DeleteGemPortMessage))
270 }
271 return interceptor(ctx, in, info, handler)
272}
273
274func _OnuInterAdapterService_DeleteTCont_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
275 in := new(inter_adapter.DeleteTcontMessage)
276 if err := dec(in); err != nil {
277 return nil, err
278 }
279 if interceptor == nil {
280 return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, in)
281 }
282 info := &grpc.UnaryServerInfo{
283 Server: srv,
284 FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont",
285 }
286 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
287 return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, req.(*inter_adapter.DeleteTcontMessage))
288 }
289 return interceptor(ctx, in, info, handler)
290}
291
292var _OnuInterAdapterService_serviceDesc = grpc.ServiceDesc{
293 ServiceName: "onu_inter_adapter_service.OnuInterAdapterService",
294 HandlerType: (*OnuInterAdapterServiceServer)(nil),
295 Methods: []grpc.MethodDesc{
296 {
297 MethodName: "GetHealthStatus",
298 Handler: _OnuInterAdapterService_GetHealthStatus_Handler,
299 },
300 {
301 MethodName: "OnuIndication",
302 Handler: _OnuInterAdapterService_OnuIndication_Handler,
303 },
304 {
305 MethodName: "OmciIndication",
306 Handler: _OnuInterAdapterService_OmciIndication_Handler,
307 },
308 {
309 MethodName: "DownloadTechProfile",
310 Handler: _OnuInterAdapterService_DownloadTechProfile_Handler,
311 },
312 {
313 MethodName: "DeleteGemPort",
314 Handler: _OnuInterAdapterService_DeleteGemPort_Handler,
315 },
316 {
317 MethodName: "DeleteTCont",
318 Handler: _OnuInterAdapterService_DeleteTCont_Handler,
319 },
320 },
321 Streams: []grpc.StreamDesc{},
322 Metadata: "voltha_protos/onu_inter_adapter_service.proto",
323}