blob: 1e5c21cfa378b343fadac80a2e3230c39d614567 [file] [log] [blame]
khenaidoodc2116e2021-10-19 17:33:19 -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"
khenaidoo27e7ac92021-12-08 14:43:09 -050011 common "github.com/opencord/voltha-protos/v5/go/common"
khenaidoodc2116e2021-10-19 17:33:19 -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/olt_inter_adapter_service.proto", fileDescriptor_3ddb40a5aae0f6e1)
33}
34
35var fileDescriptor_3ddb40a5aae0f6e1 = []byte{
khenaidooefff76e2021-12-15 16:51:30 -050036 // 337 bytes of a gzipped FileDescriptorProto
37 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x4e, 0xe3, 0x30,
38 0x10, 0x87, 0xd5, 0x3d, 0xec, 0xc1, 0x97, 0xdd, 0xb5, 0x56, 0x95, 0x48, 0xb9, 0x70, 0x83, 0x43,
39 0x9d, 0x0a, 0xc4, 0x19, 0xb5, 0xfc, 0x69, 0x7b, 0x40, 0xad, 0x28, 0xe2, 0xc0, 0xa5, 0x72, 0xdd,
40 0x69, 0x12, 0xc9, 0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x6b, 0x17, 0xb9, 0x56, 0x53, 0xc9, 0xba, 0x63, 0xa0,
52 0x67, 0x50, 0xe9, 0xdc, 0xe2, 0x26, 0xd3, 0x30, 0x35, 0x8e, 0xa4, 0x51, 0xc0, 0x07, 0x07, 0xba,
53 0x23, 0x4c, 0x78, 0x7a, 0xdf, 0xed, 0x45, 0x7b, 0xe2, 0x0e, 0xdf, 0x8d, 0x46, 0xb9, 0x0e, 0xe8,
54 0xe8, 0xb3, 0xc3, 0xfa, 0x68, 0x13, 0x81, 0x05, 0x18, 0x85, 0x76, 0x2d, 0xfc, 0x42, 0x44, 0xeb,
55 0x39, 0x8c, 0x4e, 0x5f, 0x6a, 0xe2, 0xf8, 0x66, 0x5e, 0x87, 0x49, 0x46, 0x69, 0xb9, 0xaa, 0x96,
56 0x11, 0xef, 0x9d, 0xb1, 0x77, 0xf6, 0xc3, 0x92, 0xb7, 0xd7, 0x71, 0x82, 0xed, 0x07, 0xb9, 0xfa,
57 0x5d, 0x73, 0x57, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x9f, 0xd5, 0x8e, 0xc2, 0x02, 0x00,
58 0x00,
khenaidoodc2116e2021-10-19 17:33:19 -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// OltInterAdapterServiceClient is the client API for OltInterAdapterService 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 OltInterAdapterServiceClient interface {
khenaidooefff76e2021-12-15 16:51:30 -050073 // GetHealthStatus is used by a OltInterAdapterService client to detect a connection
74 // lost with the gRPC server hosting the OltInterAdapterService service
75 GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OltInterAdapterService_GetHealthStatusClient, error)
khenaidoodc2116e2021-10-19 17:33:19 -040076 ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error)
kesavandb9f54fd2021-11-25 20:08:04 +053077 ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error)
khenaidoodc2116e2021-10-19 17:33:19 -040078 GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error)
79}
80
81type oltInterAdapterServiceClient struct {
82 cc *grpc.ClientConn
83}
84
85func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient {
86 return &oltInterAdapterServiceClient{cc}
87}
88
khenaidooefff76e2021-12-15 16:51:30 -050089func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OltInterAdapterService_GetHealthStatusClient, error) {
90 stream, err := c.cc.NewStream(ctx, &_OltInterAdapterService_serviceDesc.Streams[0], "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", opts...)
khenaidoodc2116e2021-10-19 17:33:19 -040091 if err != nil {
92 return nil, err
93 }
khenaidooefff76e2021-12-15 16:51:30 -050094 x := &oltInterAdapterServiceGetHealthStatusClient{stream}
95 return x, nil
96}
97
98type OltInterAdapterService_GetHealthStatusClient interface {
99 Send(*common.Connection) error
100 Recv() (*health.HealthStatus, error)
101 grpc.ClientStream
102}
103
104type oltInterAdapterServiceGetHealthStatusClient struct {
105 grpc.ClientStream
106}
107
108func (x *oltInterAdapterServiceGetHealthStatusClient) Send(m *common.Connection) error {
109 return x.ClientStream.SendMsg(m)
110}
111
112func (x *oltInterAdapterServiceGetHealthStatusClient) Recv() (*health.HealthStatus, error) {
113 m := new(health.HealthStatus)
114 if err := x.ClientStream.RecvMsg(m); err != nil {
115 return nil, err
116 }
117 return m, nil
khenaidoodc2116e2021-10-19 17:33:19 -0400118}
119
120func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
121 out := new(empty.Empty)
122 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", in, out, opts...)
123 if err != nil {
124 return nil, err
125 }
126 return out, nil
127}
128
kesavandb9f54fd2021-11-25 20:08:04 +0530129func (c *oltInterAdapterServiceClient) ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error) {
130 out := new(empty.Empty)
131 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests", in, out, opts...)
132 if err != nil {
133 return nil, err
134 }
135 return out, nil
136}
137
khenaidoodc2116e2021-10-19 17:33:19 -0400138func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) {
139 out := new(inter_adapter.TechProfileDownloadMessage)
140 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", in, out, opts...)
141 if err != nil {
142 return nil, err
143 }
144 return out, nil
145}
146
147// OltInterAdapterServiceServer is the server API for OltInterAdapterService service.
148type OltInterAdapterServiceServer interface {
khenaidooefff76e2021-12-15 16:51:30 -0500149 // GetHealthStatus is used by a OltInterAdapterService client to detect a connection
150 // lost with the gRPC server hosting the OltInterAdapterService service
151 GetHealthStatus(OltInterAdapterService_GetHealthStatusServer) error
khenaidoodc2116e2021-10-19 17:33:19 -0400152 ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error)
kesavandb9f54fd2021-11-25 20:08:04 +0530153 ProxyOmciRequests(context.Context, *inter_adapter.OmciMessages) (*empty.Empty, error)
khenaidoodc2116e2021-10-19 17:33:19 -0400154 GetTechProfileInstance(context.Context, *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error)
155}
156
157// UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations.
158type UnimplementedOltInterAdapterServiceServer struct {
159}
160
khenaidooefff76e2021-12-15 16:51:30 -0500161func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(srv OltInterAdapterService_GetHealthStatusServer) error {
162 return status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented")
khenaidoodc2116e2021-10-19 17:33:19 -0400163}
164func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) {
165 return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented")
166}
kesavandb9f54fd2021-11-25 20:08:04 +0530167func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequests(ctx context.Context, req *inter_adapter.OmciMessages) (*empty.Empty, error) {
168 return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequests not implemented")
169}
khenaidoodc2116e2021-10-19 17:33:19 -0400170func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) {
171 return nil, status.Errorf(codes.Unimplemented, "method GetTechProfileInstance not implemented")
172}
173
174func RegisterOltInterAdapterServiceServer(s *grpc.Server, srv OltInterAdapterServiceServer) {
175 s.RegisterService(&_OltInterAdapterService_serviceDesc, srv)
176}
177
khenaidooefff76e2021-12-15 16:51:30 -0500178func _OltInterAdapterService_GetHealthStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
179 return srv.(OltInterAdapterServiceServer).GetHealthStatus(&oltInterAdapterServiceGetHealthStatusServer{stream})
180}
181
182type OltInterAdapterService_GetHealthStatusServer interface {
183 Send(*health.HealthStatus) error
184 Recv() (*common.Connection, error)
185 grpc.ServerStream
186}
187
188type oltInterAdapterServiceGetHealthStatusServer struct {
189 grpc.ServerStream
190}
191
192func (x *oltInterAdapterServiceGetHealthStatusServer) Send(m *health.HealthStatus) error {
193 return x.ServerStream.SendMsg(m)
194}
195
196func (x *oltInterAdapterServiceGetHealthStatusServer) Recv() (*common.Connection, error) {
197 m := new(common.Connection)
198 if err := x.ServerStream.RecvMsg(m); err != nil {
khenaidoodc2116e2021-10-19 17:33:19 -0400199 return nil, err
200 }
khenaidooefff76e2021-12-15 16:51:30 -0500201 return m, nil
khenaidoodc2116e2021-10-19 17:33:19 -0400202}
203
204func _OltInterAdapterService_ProxyOmciRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
205 in := new(inter_adapter.OmciMessage)
206 if err := dec(in); err != nil {
207 return nil, err
208 }
209 if interceptor == nil {
210 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in)
211 }
212 info := &grpc.UnaryServerInfo{
213 Server: srv,
214 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest",
215 }
216 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
217 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_adapter.OmciMessage))
218 }
219 return interceptor(ctx, in, info, handler)
220}
221
kesavandb9f54fd2021-11-25 20:08:04 +0530222func _OltInterAdapterService_ProxyOmciRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
223 in := new(inter_adapter.OmciMessages)
224 if err := dec(in); err != nil {
225 return nil, err
226 }
227 if interceptor == nil {
228 return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, in)
229 }
230 info := &grpc.UnaryServerInfo{
231 Server: srv,
232 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests",
233 }
234 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
235 return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, req.(*inter_adapter.OmciMessages))
236 }
237 return interceptor(ctx, in, info, handler)
238}
239
khenaidoodc2116e2021-10-19 17:33:19 -0400240func _OltInterAdapterService_GetTechProfileInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
241 in := new(inter_adapter.TechProfileInstanceRequestMessage)
242 if err := dec(in); err != nil {
243 return nil, err
244 }
245 if interceptor == nil {
246 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, in)
247 }
248 info := &grpc.UnaryServerInfo{
249 Server: srv,
250 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance",
251 }
252 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
253 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_adapter.TechProfileInstanceRequestMessage))
254 }
255 return interceptor(ctx, in, info, handler)
256}
257
258var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{
259 ServiceName: "olt_inter_adapter_service.OltInterAdapterService",
260 HandlerType: (*OltInterAdapterServiceServer)(nil),
261 Methods: []grpc.MethodDesc{
262 {
khenaidoodc2116e2021-10-19 17:33:19 -0400263 MethodName: "ProxyOmciRequest",
264 Handler: _OltInterAdapterService_ProxyOmciRequest_Handler,
265 },
266 {
kesavandb9f54fd2021-11-25 20:08:04 +0530267 MethodName: "ProxyOmciRequests",
268 Handler: _OltInterAdapterService_ProxyOmciRequests_Handler,
269 },
270 {
khenaidoodc2116e2021-10-19 17:33:19 -0400271 MethodName: "GetTechProfileInstance",
272 Handler: _OltInterAdapterService_GetTechProfileInstance_Handler,
273 },
274 },
khenaidooefff76e2021-12-15 16:51:30 -0500275 Streams: []grpc.StreamDesc{
276 {
277 StreamName: "GetHealthStatus",
278 Handler: _OltInterAdapterService_GetHealthStatus_Handler,
279 ServerStreams: true,
280 ClientStreams: true,
281 },
282 },
khenaidoodc2116e2021-10-19 17:33:19 -0400283 Metadata: "voltha_protos/olt_inter_adapter_service.proto",
284}