khenaidoo | 42dcdfd | 2021-10-19 17:34:12 -0400 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/onu_inter_adapter_service.proto |
| 3 | |
| 4 | package onu_inter_adapter_service |
| 5 | |
| 6 | import ( |
| 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. |
| 20 | var _ = proto.Marshal |
| 21 | var _ = fmt.Errorf |
| 22 | var _ = 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. |
| 28 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 29 | |
| 30 | func init() { |
| 31 | proto.RegisterFile("voltha_protos/onu_inter_adapter_service.proto", fileDescriptor_f951f30caeee9ccd) |
| 32 | } |
| 33 | |
| 34 | var fileDescriptor_f951f30caeee9ccd = []byte{ |
| 35 | // 337 bytes of a gzipped FileDescriptorProto |
| 36 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xeb, 0x40, |
| 37 | 0x14, 0x86, 0xb9, 0x5c, 0xb8, 0x8b, 0xb9, 0x54, 0x61, 0x94, 0x82, 0xd1, 0x4d, 0x71, 0xe5, 0xa2, |
| 38 | 0x13, 0x50, 0x5c, 0x4b, 0x6b, 0xa5, 0x15, 0x2a, 0x2d, 0xb4, 0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xa5, 0x9b, 0x2c, 0x6f, 0xec, 0x6c, 0x80, 0x1f, 0x26, 0x45, 0x19, 0xcd, |
| 50 | 0x41, 0x25, 0x53, 0x8b, 0x2b, 0x9d, 0x02, 0xbf, 0x39, 0x50, 0xed, 0xcd, 0x76, 0x78, 0x93, 0x79, |
| 51 | 0xcc, 0x5a, 0x03, 0x48, 0x81, 0x60, 0x08, 0xd9, 0x14, 0x2d, 0xfd, 0xfa, 0xad, 0x37, 0x6d, 0xb2, |
| 52 | 0x8d, 0xd8, 0x7f, 0xc7, 0xcf, 0x1f, 0xd1, 0x10, 0xef, 0x1c, 0x75, 0xcd, 0x15, 0x9a, 0x26, 0x53, |
| 53 | 0xff, 0xeb, 0x0f, 0xeb, 0xa2, 0x8d, 0x05, 0xe6, 0x60, 0x14, 0xda, 0x48, 0xb8, 0x36, 0x88, 0xda, |
| 54 | 0xbe, 0xf5, 0xaf, 0x5e, 0x2b, 0xe2, 0x78, 0x2d, 0xde, 0x7b, 0xb1, 0xa6, 0xa4, 0x5c, 0x0a, 0x85, |
| 55 | 0x59, 0xb8, 0x73, 0x86, 0xce, 0xd9, 0xdd, 0x36, 0x6c, 0x7d, 0x1f, 0xc6, 0x58, 0xdf, 0xf8, 0xe5, |
| 56 | 0xbf, 0x8a, 0xbb, 0xfb, 0x09, 0x00, 0x00, 0xff, 0xff, 0x75, 0x2b, 0xd4, 0xd6, 0x23, 0x03, 0x00, |
| 57 | 0x00, |
| 58 | } |
| 59 | |
| 60 | // Reference imports to suppress errors if they are not otherwise used. |
| 61 | var _ context.Context |
| 62 | var _ 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. |
| 66 | const _ = grpc.SupportPackageIsVersion4 |
| 67 | |
| 68 | // OnuInterAdapterServiceClient is the client API for OnuInterAdapterService 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. |
| 71 | type OnuInterAdapterServiceClient interface { |
| 72 | // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity |
| 73 | // to the gRPC server hosting the OnuInterAdapterService service |
| 74 | GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error) |
| 75 | OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 76 | OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 77 | DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 78 | DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 79 | DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 80 | } |
| 81 | |
| 82 | type onuInterAdapterServiceClient struct { |
| 83 | cc *grpc.ClientConn |
| 84 | } |
| 85 | |
| 86 | func NewOnuInterAdapterServiceClient(cc *grpc.ClientConn) OnuInterAdapterServiceClient { |
| 87 | return &onuInterAdapterServiceClient{cc} |
| 88 | } |
| 89 | |
| 90 | func (c *onuInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*health.HealthStatus, error) { |
| 91 | out := new(health.HealthStatus) |
| 92 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", in, out, opts...) |
| 93 | if err != nil { |
| 94 | return nil, err |
| 95 | } |
| 96 | return out, nil |
| 97 | } |
| 98 | |
| 99 | func (c *onuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 100 | out := new(empty.Empty) |
| 101 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", in, out, opts...) |
| 102 | if err != nil { |
| 103 | return nil, err |
| 104 | } |
| 105 | return out, nil |
| 106 | } |
| 107 | |
| 108 | func (c *onuInterAdapterServiceClient) OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 109 | out := new(empty.Empty) |
| 110 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", in, out, opts...) |
| 111 | if err != nil { |
| 112 | return nil, err |
| 113 | } |
| 114 | return out, nil |
| 115 | } |
| 116 | |
| 117 | func (c *onuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 118 | out := new(empty.Empty) |
| 119 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", in, out, opts...) |
| 120 | if err != nil { |
| 121 | return nil, err |
| 122 | } |
| 123 | return out, nil |
| 124 | } |
| 125 | |
| 126 | func (c *onuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 127 | out := new(empty.Empty) |
| 128 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", in, out, opts...) |
| 129 | if err != nil { |
| 130 | return nil, err |
| 131 | } |
| 132 | return out, nil |
| 133 | } |
| 134 | |
| 135 | func (c *onuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 136 | out := new(empty.Empty) |
| 137 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", in, out, opts...) |
| 138 | if err != nil { |
| 139 | return nil, err |
| 140 | } |
| 141 | return out, nil |
| 142 | } |
| 143 | |
| 144 | // OnuInterAdapterServiceServer is the server API for OnuInterAdapterService service. |
| 145 | type OnuInterAdapterServiceServer interface { |
| 146 | // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity |
| 147 | // to the gRPC server hosting the OnuInterAdapterService service |
| 148 | GetHealthStatus(context.Context, *empty.Empty) (*health.HealthStatus, error) |
| 149 | OnuIndication(context.Context, *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) |
| 150 | OmciIndication(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error) |
| 151 | DownloadTechProfile(context.Context, *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) |
| 152 | DeleteGemPort(context.Context, *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) |
| 153 | DeleteTCont(context.Context, *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) |
| 154 | } |
| 155 | |
| 156 | // UnimplementedOnuInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| 157 | type UnimplementedOnuInterAdapterServiceServer struct { |
| 158 | } |
| 159 | |
| 160 | func (*UnimplementedOnuInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *empty.Empty) (*health.HealthStatus, error) { |
| 161 | return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| 162 | } |
| 163 | func (*UnimplementedOnuInterAdapterServiceServer) OnuIndication(ctx context.Context, req *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) { |
| 164 | return nil, status.Errorf(codes.Unimplemented, "method OnuIndication not implemented") |
| 165 | } |
| 166 | func (*UnimplementedOnuInterAdapterServiceServer) OmciIndication(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) { |
| 167 | return nil, status.Errorf(codes.Unimplemented, "method OmciIndication not implemented") |
| 168 | } |
| 169 | func (*UnimplementedOnuInterAdapterServiceServer) DownloadTechProfile(ctx context.Context, req *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) { |
| 170 | return nil, status.Errorf(codes.Unimplemented, "method DownloadTechProfile not implemented") |
| 171 | } |
| 172 | func (*UnimplementedOnuInterAdapterServiceServer) DeleteGemPort(ctx context.Context, req *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) { |
| 173 | return nil, status.Errorf(codes.Unimplemented, "method DeleteGemPort not implemented") |
| 174 | } |
| 175 | func (*UnimplementedOnuInterAdapterServiceServer) DeleteTCont(ctx context.Context, req *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) { |
| 176 | return nil, status.Errorf(codes.Unimplemented, "method DeleteTCont not implemented") |
| 177 | } |
| 178 | |
| 179 | func RegisterOnuInterAdapterServiceServer(s *grpc.Server, srv OnuInterAdapterServiceServer) { |
| 180 | s.RegisterService(&_OnuInterAdapterService_serviceDesc, srv) |
| 181 | } |
| 182 | |
| 183 | func _OnuInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 184 | in := new(empty.Empty) |
| 185 | if err := dec(in); err != nil { |
| 186 | return nil, err |
| 187 | } |
| 188 | if interceptor == nil { |
| 189 | return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, in) |
| 190 | } |
| 191 | info := &grpc.UnaryServerInfo{ |
| 192 | Server: srv, |
| 193 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", |
| 194 | } |
| 195 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 196 | return srv.(OnuInterAdapterServiceServer).GetHealthStatus(ctx, req.(*empty.Empty)) |
| 197 | } |
| 198 | return interceptor(ctx, in, info, handler) |
| 199 | } |
| 200 | |
| 201 | func _OnuInterAdapterService_OnuIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 202 | in := new(inter_adapter.OnuIndicationMessage) |
| 203 | if err := dec(in); err != nil { |
| 204 | return nil, err |
| 205 | } |
| 206 | if interceptor == nil { |
| 207 | return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, in) |
| 208 | } |
| 209 | info := &grpc.UnaryServerInfo{ |
| 210 | Server: srv, |
| 211 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", |
| 212 | } |
| 213 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 214 | return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, req.(*inter_adapter.OnuIndicationMessage)) |
| 215 | } |
| 216 | return interceptor(ctx, in, info, handler) |
| 217 | } |
| 218 | |
| 219 | func _OnuInterAdapterService_OmciIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 220 | in := new(inter_adapter.OmciMessage) |
| 221 | if err := dec(in); err != nil { |
| 222 | return nil, err |
| 223 | } |
| 224 | if interceptor == nil { |
| 225 | return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, in) |
| 226 | } |
| 227 | info := &grpc.UnaryServerInfo{ |
| 228 | Server: srv, |
| 229 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", |
| 230 | } |
| 231 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 232 | return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, req.(*inter_adapter.OmciMessage)) |
| 233 | } |
| 234 | return interceptor(ctx, in, info, handler) |
| 235 | } |
| 236 | |
| 237 | func _OnuInterAdapterService_DownloadTechProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 238 | in := new(inter_adapter.TechProfileDownloadMessage) |
| 239 | if err := dec(in); err != nil { |
| 240 | return nil, err |
| 241 | } |
| 242 | if interceptor == nil { |
| 243 | return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, in) |
| 244 | } |
| 245 | info := &grpc.UnaryServerInfo{ |
| 246 | Server: srv, |
| 247 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", |
| 248 | } |
| 249 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 250 | return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, req.(*inter_adapter.TechProfileDownloadMessage)) |
| 251 | } |
| 252 | return interceptor(ctx, in, info, handler) |
| 253 | } |
| 254 | |
| 255 | func _OnuInterAdapterService_DeleteGemPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 256 | in := new(inter_adapter.DeleteGemPortMessage) |
| 257 | if err := dec(in); err != nil { |
| 258 | return nil, err |
| 259 | } |
| 260 | if interceptor == nil { |
| 261 | return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, in) |
| 262 | } |
| 263 | info := &grpc.UnaryServerInfo{ |
| 264 | Server: srv, |
| 265 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", |
| 266 | } |
| 267 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 268 | return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, req.(*inter_adapter.DeleteGemPortMessage)) |
| 269 | } |
| 270 | return interceptor(ctx, in, info, handler) |
| 271 | } |
| 272 | |
| 273 | func _OnuInterAdapterService_DeleteTCont_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 274 | in := new(inter_adapter.DeleteTcontMessage) |
| 275 | if err := dec(in); err != nil { |
| 276 | return nil, err |
| 277 | } |
| 278 | if interceptor == nil { |
| 279 | return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, in) |
| 280 | } |
| 281 | info := &grpc.UnaryServerInfo{ |
| 282 | Server: srv, |
| 283 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", |
| 284 | } |
| 285 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 286 | return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, req.(*inter_adapter.DeleteTcontMessage)) |
| 287 | } |
| 288 | return interceptor(ctx, in, info, handler) |
| 289 | } |
| 290 | |
| 291 | var _OnuInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| 292 | ServiceName: "onu_inter_adapter_service.OnuInterAdapterService", |
| 293 | HandlerType: (*OnuInterAdapterServiceServer)(nil), |
| 294 | Methods: []grpc.MethodDesc{ |
| 295 | { |
| 296 | MethodName: "GetHealthStatus", |
| 297 | Handler: _OnuInterAdapterService_GetHealthStatus_Handler, |
| 298 | }, |
| 299 | { |
| 300 | MethodName: "OnuIndication", |
| 301 | Handler: _OnuInterAdapterService_OnuIndication_Handler, |
| 302 | }, |
| 303 | { |
| 304 | MethodName: "OmciIndication", |
| 305 | Handler: _OnuInterAdapterService_OmciIndication_Handler, |
| 306 | }, |
| 307 | { |
| 308 | MethodName: "DownloadTechProfile", |
| 309 | Handler: _OnuInterAdapterService_DownloadTechProfile_Handler, |
| 310 | }, |
| 311 | { |
| 312 | MethodName: "DeleteGemPort", |
| 313 | Handler: _OnuInterAdapterService_DeleteGemPort_Handler, |
| 314 | }, |
| 315 | { |
| 316 | MethodName: "DeleteTCont", |
| 317 | Handler: _OnuInterAdapterService_DeleteTCont_Handler, |
| 318 | }, |
| 319 | }, |
| 320 | Streams: []grpc.StreamDesc{}, |
| 321 | Metadata: "voltha_protos/onu_inter_adapter_service.proto", |
| 322 | } |