blob: 93dade6ee6199450b562944b72be268422a229e8 [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{
kesavandb9f54fd2021-11-25 20:08:04 +053036 // 330 bytes of a gzipped FileDescriptorProto
37 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x3f, 0x4f, 0xf3, 0x30,
38 0x10, 0x87, 0xf5, 0xbe, 0x03, 0x83, 0x17, 0xc0, 0x42, 0x95, 0x48, 0x59, 0x18, 0x19, 0xea, 0x20,
39 0x10, 0x13, 0x53, 0xcb, 0x9f, 0xb6, 0x03, 0x6a, 0x45, 0x11, 0x03, 0x4b, 0xe5, 0xba, 0xd7, 0x24,
40 0x92, 0xe3, 0x0b, 0xf6, 0xa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, 0x1b, 0xa8, 0x74, 0x6e, 0x71, 0x93, 0x69,
52 0x98, 0x1a, 0x47, 0xd2, 0x28, 0xe0, 0xd7, 0x2d, 0xdd, 0x01, 0x26, 0x3c, 0xbd, 0xef, 0xf6, 0xaa,
53 0x3b, 0xf1, 0x88, 0x5f, 0x46, 0xa3, 0x5c, 0x07, 0x74, 0xf4, 0xf3, 0x8f, 0x0d, 0xd0, 0x26, 0x02,
54 0x0b, 0x30, 0x0a, 0xed, 0x5a, 0xf8, 0x65, 0x88, 0xce, 0x53, 0x18, 0x5d, 0xbc, 0xd7, 0xc4, 0xe1,
55 0xad, 0x7c, 0x0c, 0x93, 0x8c, 0xd2, 0x72, 0x55, 0x2d, 0x22, 0xde, 0x3b, 0x63, 0xef, 0x1c, 0x84,
56 0x05, 0x6f, 0xef, 0xe2, 0x04, 0xbb, 0x8f, 0x71, 0x75, 0x54, 0x73, 0xb7, 0x7f, 0x01, 0x00, 0x00,
57 0xff, 0xff, 0xac, 0x65, 0xa9, 0x8b, 0xbe, 0x02, 0x00, 0x00,
khenaidoodc2116e2021-10-19 17:33:19 -040058}
59
60// Reference imports to suppress errors if they are not otherwise used.
61var _ context.Context
62var _ grpc.ClientConn
63
64// This is a compile-time assertion to ensure that this generated file
65// is compatible with the grpc package it is being compiled against.
66const _ = grpc.SupportPackageIsVersion4
67
68// OltInterAdapterServiceClient is the client API for OltInterAdapterService service.
69//
70// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
71type OltInterAdapterServiceClient interface {
72 // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity
73 // to the gRPC server hosting the OltInterAdapterService service
khenaidoo27e7ac92021-12-08 14:43:09 -050074 GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error)
khenaidoodc2116e2021-10-19 17:33:19 -040075 ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error)
kesavandb9f54fd2021-11-25 20:08:04 +053076 ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error)
khenaidoodc2116e2021-10-19 17:33:19 -040077 GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error)
78}
79
80type oltInterAdapterServiceClient struct {
81 cc *grpc.ClientConn
82}
83
84func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient {
85 return &oltInterAdapterServiceClient{cc}
86}
87
khenaidoo27e7ac92021-12-08 14:43:09 -050088func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) {
khenaidoodc2116e2021-10-19 17:33:19 -040089 out := new(health.HealthStatus)
90 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", in, out, opts...)
91 if err != nil {
92 return nil, err
93 }
94 return out, nil
95}
96
97func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) {
98 out := new(empty.Empty)
99 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", in, out, opts...)
100 if err != nil {
101 return nil, err
102 }
103 return out, nil
104}
105
kesavandb9f54fd2021-11-25 20:08:04 +0530106func (c *oltInterAdapterServiceClient) ProxyOmciRequests(ctx context.Context, in *inter_adapter.OmciMessages, opts ...grpc.CallOption) (*empty.Empty, error) {
107 out := new(empty.Empty)
108 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests", in, out, opts...)
109 if err != nil {
110 return nil, err
111 }
112 return out, nil
113}
114
khenaidoodc2116e2021-10-19 17:33:19 -0400115func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) {
116 out := new(inter_adapter.TechProfileDownloadMessage)
117 err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", in, out, opts...)
118 if err != nil {
119 return nil, err
120 }
121 return out, nil
122}
123
124// OltInterAdapterServiceServer is the server API for OltInterAdapterService service.
125type OltInterAdapterServiceServer interface {
126 // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity
127 // to the gRPC server hosting the OltInterAdapterService service
khenaidoo27e7ac92021-12-08 14:43:09 -0500128 GetHealthStatus(context.Context, *common.Connection) (*health.HealthStatus, error)
khenaidoodc2116e2021-10-19 17:33:19 -0400129 ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error)
kesavandb9f54fd2021-11-25 20:08:04 +0530130 ProxyOmciRequests(context.Context, *inter_adapter.OmciMessages) (*empty.Empty, error)
khenaidoodc2116e2021-10-19 17:33:19 -0400131 GetTechProfileInstance(context.Context, *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error)
132}
133
134// UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations.
135type UnimplementedOltInterAdapterServiceServer struct {
136}
137
khenaidoo27e7ac92021-12-08 14:43:09 -0500138func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *common.Connection) (*health.HealthStatus, error) {
khenaidoodc2116e2021-10-19 17:33:19 -0400139 return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented")
140}
141func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) {
142 return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented")
143}
kesavandb9f54fd2021-11-25 20:08:04 +0530144func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequests(ctx context.Context, req *inter_adapter.OmciMessages) (*empty.Empty, error) {
145 return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequests not implemented")
146}
khenaidoodc2116e2021-10-19 17:33:19 -0400147func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) {
148 return nil, status.Errorf(codes.Unimplemented, "method GetTechProfileInstance not implemented")
149}
150
151func RegisterOltInterAdapterServiceServer(s *grpc.Server, srv OltInterAdapterServiceServer) {
152 s.RegisterService(&_OltInterAdapterService_serviceDesc, srv)
153}
154
155func _OltInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
khenaidoo27e7ac92021-12-08 14:43:09 -0500156 in := new(common.Connection)
khenaidoodc2116e2021-10-19 17:33:19 -0400157 if err := dec(in); err != nil {
158 return nil, err
159 }
160 if interceptor == nil {
161 return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, in)
162 }
163 info := &grpc.UnaryServerInfo{
164 Server: srv,
165 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus",
166 }
167 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
khenaidoo27e7ac92021-12-08 14:43:09 -0500168 return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, req.(*common.Connection))
khenaidoodc2116e2021-10-19 17:33:19 -0400169 }
170 return interceptor(ctx, in, info, handler)
171}
172
173func _OltInterAdapterService_ProxyOmciRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
174 in := new(inter_adapter.OmciMessage)
175 if err := dec(in); err != nil {
176 return nil, err
177 }
178 if interceptor == nil {
179 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in)
180 }
181 info := &grpc.UnaryServerInfo{
182 Server: srv,
183 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest",
184 }
185 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
186 return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_adapter.OmciMessage))
187 }
188 return interceptor(ctx, in, info, handler)
189}
190
kesavandb9f54fd2021-11-25 20:08:04 +0530191func _OltInterAdapterService_ProxyOmciRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
192 in := new(inter_adapter.OmciMessages)
193 if err := dec(in); err != nil {
194 return nil, err
195 }
196 if interceptor == nil {
197 return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, in)
198 }
199 info := &grpc.UnaryServerInfo{
200 Server: srv,
201 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequests",
202 }
203 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
204 return srv.(OltInterAdapterServiceServer).ProxyOmciRequests(ctx, req.(*inter_adapter.OmciMessages))
205 }
206 return interceptor(ctx, in, info, handler)
207}
208
khenaidoodc2116e2021-10-19 17:33:19 -0400209func _OltInterAdapterService_GetTechProfileInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
210 in := new(inter_adapter.TechProfileInstanceRequestMessage)
211 if err := dec(in); err != nil {
212 return nil, err
213 }
214 if interceptor == nil {
215 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, in)
216 }
217 info := &grpc.UnaryServerInfo{
218 Server: srv,
219 FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance",
220 }
221 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
222 return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_adapter.TechProfileInstanceRequestMessage))
223 }
224 return interceptor(ctx, in, info, handler)
225}
226
227var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{
228 ServiceName: "olt_inter_adapter_service.OltInterAdapterService",
229 HandlerType: (*OltInterAdapterServiceServer)(nil),
230 Methods: []grpc.MethodDesc{
231 {
232 MethodName: "GetHealthStatus",
233 Handler: _OltInterAdapterService_GetHealthStatus_Handler,
234 },
235 {
236 MethodName: "ProxyOmciRequest",
237 Handler: _OltInterAdapterService_ProxyOmciRequest_Handler,
238 },
239 {
kesavandb9f54fd2021-11-25 20:08:04 +0530240 MethodName: "ProxyOmciRequests",
241 Handler: _OltInterAdapterService_ProxyOmciRequests_Handler,
242 },
243 {
khenaidoodc2116e2021-10-19 17:33:19 -0400244 MethodName: "GetTechProfileInstance",
245 Handler: _OltInterAdapterService_GetTechProfileInstance_Handler,
246 },
247 },
248 Streams: []grpc.StreamDesc{},
249 Metadata: "voltha_protos/olt_inter_adapter_service.proto",
250}