khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -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" |
khenaidoo | 25057da | 2021-12-08 14:40:45 -0500 | [diff] [blame] | 11 | common "github.com/opencord/voltha-protos/v5/go/common" |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 12 | 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. |
| 21 | var _ = proto.Marshal |
| 22 | var _ = fmt.Errorf |
| 23 | var _ = 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. |
| 29 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 30 | |
| 31 | func init() { |
| 32 | proto.RegisterFile("voltha_protos/onu_inter_adapter_service.proto", fileDescriptor_f951f30caeee9ccd) |
| 33 | } |
| 34 | |
| 35 | var fileDescriptor_f951f30caeee9ccd = []byte{ |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 36 | // 354 bytes of a gzipped FileDescriptorProto |
| 37 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x4a, 0xc3, 0x40, |
| 38 | 0x10, 0xc6, 0x29, 0x82, 0x87, 0x95, 0x2a, 0xac, 0x52, 0x30, 0x7a, 0x29, 0x5e, 0xf4, 0xd0, 0x8d, |
| 39 | 0x28, 0x9e, 0xa5, 0x7f, 0xa4, 0x15, 0x2a, 0x2d, 0xb4, 0x88, 0x78, 0x29, 0xdb, 0xcd, 0x34, 0x59, |
| 40 | 0x48, 0x76, 0x42, 0x32, 0xa9, 0xf8, 0x16, 0xbe, 0xa1, 0xaf, 0x22, 0xc9, 0xa6, 0xd0, 0xd4, 0x96, |
| 41 | 0x9c, 0x42, 0xf8, 0x7e, 0xf3, 0x63, 0x06, 0xbe, 0x65, 0x9d, 0x35, 0x86, 0x14, 0xc8, 0x45, 0x9c, |
| 42 | 0x20, 0x61, 0xea, 0xa2, 0xc9, 0x16, 0xda, 0x10, 0x24, 0x0b, 0xe9, 0xc9, 0x38, 0xff, 0xa6, 0x90, |
| 43 | 0xac, 0xb5, 0x02, 0x51, 0x00, 0xfc, 0xf2, 0x20, 0xe0, 0x38, 0x55, 0x93, 0xc2, 0x28, 0x42, 0x63, |
| 44 | 0xc7, 0x9c, 0x2b, 0x1f, 0xd1, 0x0f, 0xc1, 0x2d, 0xfe, 0x96, 0xd9, 0xca, 0x85, 0x28, 0xa6, 0xef, |
| 45 | 0x32, 0x6c, 0x57, 0x07, 0x2b, 0xf6, 0x12, 0xd9, 0x71, 0x07, 0x20, 0x43, 0x0a, 0x6c, 0xf6, 0xf0, |
| 46 | 0x7b, 0xc4, 0x5a, 0x13, 0x93, 0xbd, 0xe6, 0x63, 0x5d, 0x3b, 0x35, 0xb3, 0x2b, 0xf1, 0x67, 0x76, |
| 47 | 0x36, 0x04, 0x1a, 0x15, 0xf4, 0x8c, 0x24, 0x65, 0x29, 0xe7, 0xa2, 0x5c, 0xac, 0x8f, 0xc6, 0x80, |
| 48 | 0x22, 0x8d, 0xc6, 0xb9, 0x10, 0xa5, 0x70, 0x9b, 0xbc, 0x6d, 0xdc, 0x37, 0xf8, 0x98, 0x35, 0x0b, |
| 49 | 0xb5, 0xa7, 0x95, 0xcc, 0x51, 0x7e, 0x23, 0xaa, 0xeb, 0x55, 0xd2, 0x37, 0x48, 0x53, 0xe9, 0x83, |
| 50 | 0xd3, 0x12, 0xf6, 0x5c, 0xb1, 0x39, 0x57, 0xbc, 0xe4, 0xe7, 0xf2, 0x01, 0x3b, 0x9d, 0x44, 0x4a, |
| 51 | 0x6f, 0xe9, 0x9c, 0x5d, 0x5d, 0xa4, 0x74, 0x9d, 0xe5, 0x83, 0x9d, 0x0f, 0xf0, 0xcb, 0x84, 0x28, |
| 52 | 0xbd, 0x39, 0xa8, 0x60, 0x9a, 0xe0, 0x4a, 0x87, 0xc0, 0xef, 0x76, 0x54, 0x5b, 0xd9, 0x06, 0xaf, |
| 53 | 0x33, 0x8f, 0x59, 0x73, 0x00, 0x21, 0x10, 0x0c, 0x21, 0x9a, 0x62, 0x42, 0xff, 0xae, 0xad, 0xa4, |
| 54 | 0x75, 0xb6, 0x11, 0x3b, 0xb1, 0xfc, 0xbc, 0x8f, 0x86, 0x78, 0x7b, 0xaf, 0x6b, 0xae, 0xd0, 0xd4, |
| 55 | 0x99, 0x7a, 0x3f, 0x0d, 0xd6, 0xc1, 0xc4, 0x17, 0x18, 0x83, 0x51, 0x98, 0x78, 0xc2, 0xb6, 0x41, |
| 56 | 0x1c, 0xec, 0x62, 0xef, 0xfa, 0xbd, 0x20, 0xf6, 0xd7, 0xe2, 0xb3, 0xeb, 0x6b, 0x0a, 0xb2, 0x65, |
| 57 | 0xde, 0x04, 0x77, 0xe3, 0x74, 0xad, 0xb3, 0x53, 0x36, 0x6c, 0xfd, 0xe4, 0xfa, 0x78, 0xf8, 0x35, |
| 58 | 0x2c, 0x8f, 0x0b, 0xee, 0xf1, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x5f, 0x8c, 0x88, 0x3f, 0x03, |
| 59 | 0x00, 0x00, |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | // Reference imports to suppress errors if they are not otherwise used. |
| 63 | var _ context.Context |
| 64 | var _ grpc.ClientConn |
| 65 | |
| 66 | // This is a compile-time assertion to ensure that this generated file |
| 67 | // is compatible with the grpc package it is being compiled against. |
| 68 | const _ = grpc.SupportPackageIsVersion4 |
| 69 | |
| 70 | // OnuInterAdapterServiceClient is the client API for OnuInterAdapterService service. |
| 71 | // |
| 72 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 73 | type OnuInterAdapterServiceClient interface { |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 74 | // GetHealthStatus is used by a OnuInterAdapterService client to detect a connection |
| 75 | // lost with the gRPC server hosting the OnuInterAdapterService service |
| 76 | GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OnuInterAdapterService_GetHealthStatusClient, error) |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 77 | OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 78 | OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 79 | DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 80 | DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 81 | DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 82 | } |
| 83 | |
| 84 | type onuInterAdapterServiceClient struct { |
| 85 | cc *grpc.ClientConn |
| 86 | } |
| 87 | |
| 88 | func NewOnuInterAdapterServiceClient(cc *grpc.ClientConn) OnuInterAdapterServiceClient { |
| 89 | return &onuInterAdapterServiceClient{cc} |
| 90 | } |
| 91 | |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 92 | func (c *onuInterAdapterServiceClient) GetHealthStatus(ctx context.Context, opts ...grpc.CallOption) (OnuInterAdapterService_GetHealthStatusClient, error) { |
| 93 | stream, err := c.cc.NewStream(ctx, &_OnuInterAdapterService_serviceDesc.Streams[0], "/onu_inter_adapter_service.OnuInterAdapterService/GetHealthStatus", opts...) |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 94 | if err != nil { |
| 95 | return nil, err |
| 96 | } |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 97 | x := &onuInterAdapterServiceGetHealthStatusClient{stream} |
| 98 | return x, nil |
| 99 | } |
| 100 | |
| 101 | type OnuInterAdapterService_GetHealthStatusClient interface { |
| 102 | Send(*common.Connection) error |
| 103 | Recv() (*health.HealthStatus, error) |
| 104 | grpc.ClientStream |
| 105 | } |
| 106 | |
| 107 | type onuInterAdapterServiceGetHealthStatusClient struct { |
| 108 | grpc.ClientStream |
| 109 | } |
| 110 | |
| 111 | func (x *onuInterAdapterServiceGetHealthStatusClient) Send(m *common.Connection) error { |
| 112 | return x.ClientStream.SendMsg(m) |
| 113 | } |
| 114 | |
| 115 | func (x *onuInterAdapterServiceGetHealthStatusClient) Recv() (*health.HealthStatus, error) { |
| 116 | m := new(health.HealthStatus) |
| 117 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 118 | return nil, err |
| 119 | } |
| 120 | return m, nil |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | func (c *onuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_adapter.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 124 | out := new(empty.Empty) |
| 125 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", in, out, opts...) |
| 126 | if err != nil { |
| 127 | return nil, err |
| 128 | } |
| 129 | return out, nil |
| 130 | } |
| 131 | |
| 132 | func (c *onuInterAdapterServiceClient) OmciIndication(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 133 | out := new(empty.Empty) |
| 134 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", in, out, opts...) |
| 135 | if err != nil { |
| 136 | return nil, err |
| 137 | } |
| 138 | return out, nil |
| 139 | } |
| 140 | |
| 141 | func (c *onuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_adapter.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 142 | out := new(empty.Empty) |
| 143 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", in, out, opts...) |
| 144 | if err != nil { |
| 145 | return nil, err |
| 146 | } |
| 147 | return out, nil |
| 148 | } |
| 149 | |
| 150 | func (c *onuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_adapter.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 151 | out := new(empty.Empty) |
| 152 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", in, out, opts...) |
| 153 | if err != nil { |
| 154 | return nil, err |
| 155 | } |
| 156 | return out, nil |
| 157 | } |
| 158 | |
| 159 | func (c *onuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_adapter.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 160 | out := new(empty.Empty) |
| 161 | err := c.cc.Invoke(ctx, "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", in, out, opts...) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | return out, nil |
| 166 | } |
| 167 | |
| 168 | // OnuInterAdapterServiceServer is the server API for OnuInterAdapterService service. |
| 169 | type OnuInterAdapterServiceServer interface { |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 170 | // GetHealthStatus is used by a OnuInterAdapterService client to detect a connection |
| 171 | // lost with the gRPC server hosting the OnuInterAdapterService service |
| 172 | GetHealthStatus(OnuInterAdapterService_GetHealthStatusServer) error |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 173 | OnuIndication(context.Context, *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) |
| 174 | OmciIndication(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error) |
| 175 | DownloadTechProfile(context.Context, *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) |
| 176 | DeleteGemPort(context.Context, *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) |
| 177 | DeleteTCont(context.Context, *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) |
| 178 | } |
| 179 | |
| 180 | // UnimplementedOnuInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| 181 | type UnimplementedOnuInterAdapterServiceServer struct { |
| 182 | } |
| 183 | |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 184 | func (*UnimplementedOnuInterAdapterServiceServer) GetHealthStatus(srv OnuInterAdapterService_GetHealthStatusServer) error { |
| 185 | return status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 186 | } |
| 187 | func (*UnimplementedOnuInterAdapterServiceServer) OnuIndication(ctx context.Context, req *inter_adapter.OnuIndicationMessage) (*empty.Empty, error) { |
| 188 | return nil, status.Errorf(codes.Unimplemented, "method OnuIndication not implemented") |
| 189 | } |
| 190 | func (*UnimplementedOnuInterAdapterServiceServer) OmciIndication(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) { |
| 191 | return nil, status.Errorf(codes.Unimplemented, "method OmciIndication not implemented") |
| 192 | } |
| 193 | func (*UnimplementedOnuInterAdapterServiceServer) DownloadTechProfile(ctx context.Context, req *inter_adapter.TechProfileDownloadMessage) (*empty.Empty, error) { |
| 194 | return nil, status.Errorf(codes.Unimplemented, "method DownloadTechProfile not implemented") |
| 195 | } |
| 196 | func (*UnimplementedOnuInterAdapterServiceServer) DeleteGemPort(ctx context.Context, req *inter_adapter.DeleteGemPortMessage) (*empty.Empty, error) { |
| 197 | return nil, status.Errorf(codes.Unimplemented, "method DeleteGemPort not implemented") |
| 198 | } |
| 199 | func (*UnimplementedOnuInterAdapterServiceServer) DeleteTCont(ctx context.Context, req *inter_adapter.DeleteTcontMessage) (*empty.Empty, error) { |
| 200 | return nil, status.Errorf(codes.Unimplemented, "method DeleteTCont not implemented") |
| 201 | } |
| 202 | |
| 203 | func RegisterOnuInterAdapterServiceServer(s *grpc.Server, srv OnuInterAdapterServiceServer) { |
| 204 | s.RegisterService(&_OnuInterAdapterService_serviceDesc, srv) |
| 205 | } |
| 206 | |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 207 | func _OnuInterAdapterService_GetHealthStatus_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 208 | return srv.(OnuInterAdapterServiceServer).GetHealthStatus(&onuInterAdapterServiceGetHealthStatusServer{stream}) |
| 209 | } |
| 210 | |
| 211 | type OnuInterAdapterService_GetHealthStatusServer interface { |
| 212 | Send(*health.HealthStatus) error |
| 213 | Recv() (*common.Connection, error) |
| 214 | grpc.ServerStream |
| 215 | } |
| 216 | |
| 217 | type onuInterAdapterServiceGetHealthStatusServer struct { |
| 218 | grpc.ServerStream |
| 219 | } |
| 220 | |
| 221 | func (x *onuInterAdapterServiceGetHealthStatusServer) Send(m *health.HealthStatus) error { |
| 222 | return x.ServerStream.SendMsg(m) |
| 223 | } |
| 224 | |
| 225 | func (x *onuInterAdapterServiceGetHealthStatusServer) Recv() (*common.Connection, error) { |
| 226 | m := new(common.Connection) |
| 227 | if err := x.ServerStream.RecvMsg(m); err != nil { |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 228 | return nil, err |
| 229 | } |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 230 | return m, nil |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 231 | } |
| 232 | |
| 233 | func _OnuInterAdapterService_OnuIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 234 | in := new(inter_adapter.OnuIndicationMessage) |
| 235 | if err := dec(in); err != nil { |
| 236 | return nil, err |
| 237 | } |
| 238 | if interceptor == nil { |
| 239 | return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, in) |
| 240 | } |
| 241 | info := &grpc.UnaryServerInfo{ |
| 242 | Server: srv, |
| 243 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OnuIndication", |
| 244 | } |
| 245 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 246 | return srv.(OnuInterAdapterServiceServer).OnuIndication(ctx, req.(*inter_adapter.OnuIndicationMessage)) |
| 247 | } |
| 248 | return interceptor(ctx, in, info, handler) |
| 249 | } |
| 250 | |
| 251 | func _OnuInterAdapterService_OmciIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 252 | in := new(inter_adapter.OmciMessage) |
| 253 | if err := dec(in); err != nil { |
| 254 | return nil, err |
| 255 | } |
| 256 | if interceptor == nil { |
| 257 | return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, in) |
| 258 | } |
| 259 | info := &grpc.UnaryServerInfo{ |
| 260 | Server: srv, |
| 261 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/OmciIndication", |
| 262 | } |
| 263 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 264 | return srv.(OnuInterAdapterServiceServer).OmciIndication(ctx, req.(*inter_adapter.OmciMessage)) |
| 265 | } |
| 266 | return interceptor(ctx, in, info, handler) |
| 267 | } |
| 268 | |
| 269 | func _OnuInterAdapterService_DownloadTechProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 270 | in := new(inter_adapter.TechProfileDownloadMessage) |
| 271 | if err := dec(in); err != nil { |
| 272 | return nil, err |
| 273 | } |
| 274 | if interceptor == nil { |
| 275 | return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, in) |
| 276 | } |
| 277 | info := &grpc.UnaryServerInfo{ |
| 278 | Server: srv, |
| 279 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DownloadTechProfile", |
| 280 | } |
| 281 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 282 | return srv.(OnuInterAdapterServiceServer).DownloadTechProfile(ctx, req.(*inter_adapter.TechProfileDownloadMessage)) |
| 283 | } |
| 284 | return interceptor(ctx, in, info, handler) |
| 285 | } |
| 286 | |
| 287 | func _OnuInterAdapterService_DeleteGemPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 288 | in := new(inter_adapter.DeleteGemPortMessage) |
| 289 | if err := dec(in); err != nil { |
| 290 | return nil, err |
| 291 | } |
| 292 | if interceptor == nil { |
| 293 | return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, in) |
| 294 | } |
| 295 | info := &grpc.UnaryServerInfo{ |
| 296 | Server: srv, |
| 297 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteGemPort", |
| 298 | } |
| 299 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 300 | return srv.(OnuInterAdapterServiceServer).DeleteGemPort(ctx, req.(*inter_adapter.DeleteGemPortMessage)) |
| 301 | } |
| 302 | return interceptor(ctx, in, info, handler) |
| 303 | } |
| 304 | |
| 305 | func _OnuInterAdapterService_DeleteTCont_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 306 | in := new(inter_adapter.DeleteTcontMessage) |
| 307 | if err := dec(in); err != nil { |
| 308 | return nil, err |
| 309 | } |
| 310 | if interceptor == nil { |
| 311 | return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, in) |
| 312 | } |
| 313 | info := &grpc.UnaryServerInfo{ |
| 314 | Server: srv, |
| 315 | FullMethod: "/onu_inter_adapter_service.OnuInterAdapterService/DeleteTCont", |
| 316 | } |
| 317 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 318 | return srv.(OnuInterAdapterServiceServer).DeleteTCont(ctx, req.(*inter_adapter.DeleteTcontMessage)) |
| 319 | } |
| 320 | return interceptor(ctx, in, info, handler) |
| 321 | } |
| 322 | |
| 323 | var _OnuInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| 324 | ServiceName: "onu_inter_adapter_service.OnuInterAdapterService", |
| 325 | HandlerType: (*OnuInterAdapterServiceServer)(nil), |
| 326 | Methods: []grpc.MethodDesc{ |
| 327 | { |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 328 | MethodName: "OnuIndication", |
| 329 | Handler: _OnuInterAdapterService_OnuIndication_Handler, |
| 330 | }, |
| 331 | { |
| 332 | MethodName: "OmciIndication", |
| 333 | Handler: _OnuInterAdapterService_OmciIndication_Handler, |
| 334 | }, |
| 335 | { |
| 336 | MethodName: "DownloadTechProfile", |
| 337 | Handler: _OnuInterAdapterService_DownloadTechProfile_Handler, |
| 338 | }, |
| 339 | { |
| 340 | MethodName: "DeleteGemPort", |
| 341 | Handler: _OnuInterAdapterService_DeleteGemPort_Handler, |
| 342 | }, |
| 343 | { |
| 344 | MethodName: "DeleteTCont", |
| 345 | Handler: _OnuInterAdapterService_DeleteTCont_Handler, |
| 346 | }, |
| 347 | }, |
khenaidoo | a46458b | 2021-12-15 16:50:44 -0500 | [diff] [blame] | 348 | Streams: []grpc.StreamDesc{ |
| 349 | { |
| 350 | StreamName: "GetHealthStatus", |
| 351 | Handler: _OnuInterAdapterService_GetHealthStatus_Handler, |
| 352 | ServerStreams: true, |
| 353 | ClientStreams: true, |
| 354 | }, |
| 355 | }, |
khenaidoo | 9beaaf1 | 2021-10-19 17:32:01 -0400 | [diff] [blame] | 356 | Metadata: "voltha_protos/onu_inter_adapter_service.proto", |
| 357 | } |