khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/olt_inter_adapter_service.proto |
| 3 | |
| 4 | package olt_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 | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 11 | common "github.com/opencord/voltha-protos/v5/go/common" |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -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/olt_inter_adapter_service.proto", fileDescriptor_3ddb40a5aae0f6e1) |
| 33 | } |
| 34 | |
| 35 | var fileDescriptor_3ddb40a5aae0f6e1 = []byte{ |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 36 | // 316 bytes of a gzipped FileDescriptorProto |
| 37 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xbf, 0x4e, 0xc3, 0x30, |
| 38 | 0x10, 0x87, 0x05, 0x03, 0x43, 0x16, 0x90, 0x85, 0x2a, 0x11, 0x58, 0x18, 0x19, 0xea, 0x20, 0x10, |
| 39 | 0x13, 0x53, 0xcb, 0x9f, 0xd2, 0x01, 0xb5, 0xa2, 0x88, 0x81, 0xa5, 0x72, 0xdd, 0xab, 0x63, 0xc9, |
| 40 | 0xf1, 0x05, 0xfb, 0x52, 0xe8, 0x5b, 0x30, 0xf0, 0xc0, 0x28, 0xb1, 0x3b, 0xa4, 0x6a, 0xa6, 0x28, |
| 41 | 0xba, 0xef, 0xf7, 0xf9, 0xee, 0xec, 0xa4, 0xbf, 0x46, 0x43, 0xb9, 0x98, 0x97, 0x0e, 0x09, 0x7d, |
| 42 | 0x86, 0x86, 0xe6, 0xda, 0x12, 0xb8, 0xb9, 0x58, 0x8a, 0xb2, 0xfe, 0x7a, 0x70, 0x6b, 0x2d, 0x81, |
| 43 | 0x37, 0x00, 0x3b, 0xeb, 0x04, 0xd2, 0xb4, 0x6d, 0x92, 0x58, 0x14, 0x68, 0x43, 0x2c, 0x3d, 0x57, |
| 44 | 0x88, 0xca, 0x40, 0xd6, 0xfc, 0x2d, 0xaa, 0x55, 0x06, 0x45, 0x49, 0x9b, 0x58, 0xbc, 0x6c, 0x07, |
| 45 | 0x5b, 0xf6, 0x88, 0xec, 0xb8, 0x73, 0x10, 0x86, 0xf2, 0x50, 0xbb, 0xf9, 0x3b, 0x4c, 0x7a, 0x13, |
| 46 | 0x43, 0xe3, 0x3a, 0x36, 0x08, 0xa9, 0x59, 0x68, 0x89, 0xdd, 0x27, 0xc7, 0x23, 0xa0, 0x97, 0x86, |
| 47 | 0x9e, 0x91, 0xa0, 0xca, 0x33, 0xc6, 0x63, 0x63, 0x0f, 0x68, 0x2d, 0x48, 0xd2, 0x68, 0xd3, 0x53, |
| 48 | 0x1e, 0x85, 0x2d, 0xf2, 0x39, 0x39, 0x99, 0x3a, 0xfc, 0xd9, 0x4c, 0x0a, 0xa9, 0xdf, 0xe0, 0xab, |
| 49 | 0x02, 0x4f, 0x2c, 0xe5, 0xed, 0xee, 0xea, 0xda, 0x2b, 0x78, 0x2f, 0x14, 0xa4, 0x3d, 0x1e, 0x86, |
| 50 | 0xe4, 0xdb, 0x21, 0xf9, 0x53, 0x3d, 0x24, 0xab, 0x92, 0xde, 0x08, 0xe8, 0x1d, 0x64, 0x3e, 0x75, |
| 51 | 0xb8, 0xd2, 0x06, 0xc6, 0xd6, 0x93, 0xb0, 0x12, 0xd8, 0xf5, 0x8e, 0x6d, 0x0f, 0x13, 0x0f, 0xde, |
| 52 | 0x9e, 0x71, 0xd5, 0x9d, 0x78, 0xc4, 0x6f, 0x6b, 0x50, 0x2c, 0x23, 0x3a, 0xfc, 0x3d, 0x48, 0xfa, |
| 53 | 0xe8, 0x14, 0xc7, 0x12, 0xac, 0x44, 0xb7, 0xe4, 0x61, 0x85, 0xbc, 0xf3, 0x02, 0x87, 0x17, 0x1f, |
| 54 | 0x0d, 0xb1, 0x7f, 0x97, 0x9f, 0x03, 0xa5, 0x29, 0xaf, 0x16, 0xf5, 0xfa, 0xb2, 0xad, 0x33, 0x0b, |
| 55 | 0xce, 0x7e, 0xbc, 0x96, 0xf5, 0x5d, 0xa6, 0xb0, 0xfb, 0x09, 0x2d, 0x8e, 0x1a, 0xee, 0xf6, 0x3f, |
| 56 | 0x00, 0x00, 0xff, 0xff, 0x7c, 0x06, 0x94, 0x70, 0x74, 0x02, 0x00, 0x00, |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | // Reference imports to suppress errors if they are not otherwise used. |
| 60 | var _ context.Context |
| 61 | var _ grpc.ClientConn |
| 62 | |
| 63 | // This is a compile-time assertion to ensure that this generated file |
| 64 | // is compatible with the grpc package it is being compiled against. |
| 65 | const _ = grpc.SupportPackageIsVersion4 |
| 66 | |
| 67 | // OltInterAdapterServiceClient is the client API for OltInterAdapterService service. |
| 68 | // |
| 69 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 70 | type OltInterAdapterServiceClient interface { |
| 71 | // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity |
| 72 | // to the gRPC server hosting the OltInterAdapterService service |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 73 | GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 74 | ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) |
| 75 | GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) |
| 76 | } |
| 77 | |
| 78 | type oltInterAdapterServiceClient struct { |
| 79 | cc *grpc.ClientConn |
| 80 | } |
| 81 | |
| 82 | func NewOltInterAdapterServiceClient(cc *grpc.ClientConn) OltInterAdapterServiceClient { |
| 83 | return &oltInterAdapterServiceClient{cc} |
| 84 | } |
| 85 | |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 86 | func (c *oltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *common.Connection, opts ...grpc.CallOption) (*health.HealthStatus, error) { |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 87 | out := new(health.HealthStatus) |
| 88 | err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", in, out, opts...) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | return out, nil |
| 93 | } |
| 94 | |
| 95 | func (c *oltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_adapter.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 96 | out := new(empty.Empty) |
| 97 | err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", in, out, opts...) |
| 98 | if err != nil { |
| 99 | return nil, err |
| 100 | } |
| 101 | return out, nil |
| 102 | } |
| 103 | |
| 104 | func (c *oltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_adapter.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_adapter.TechProfileDownloadMessage, error) { |
| 105 | out := new(inter_adapter.TechProfileDownloadMessage) |
| 106 | err := c.cc.Invoke(ctx, "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", in, out, opts...) |
| 107 | if err != nil { |
| 108 | return nil, err |
| 109 | } |
| 110 | return out, nil |
| 111 | } |
| 112 | |
| 113 | // OltInterAdapterServiceServer is the server API for OltInterAdapterService service. |
| 114 | type OltInterAdapterServiceServer interface { |
| 115 | // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity |
| 116 | // to the gRPC server hosting the OltInterAdapterService service |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 117 | GetHealthStatus(context.Context, *common.Connection) (*health.HealthStatus, error) |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 118 | ProxyOmciRequest(context.Context, *inter_adapter.OmciMessage) (*empty.Empty, error) |
| 119 | GetTechProfileInstance(context.Context, *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) |
| 120 | } |
| 121 | |
| 122 | // UnimplementedOltInterAdapterServiceServer can be embedded to have forward compatible implementations. |
| 123 | type UnimplementedOltInterAdapterServiceServer struct { |
| 124 | } |
| 125 | |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 126 | func (*UnimplementedOltInterAdapterServiceServer) GetHealthStatus(ctx context.Context, req *common.Connection) (*health.HealthStatus, error) { |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 127 | return nil, status.Errorf(codes.Unimplemented, "method GetHealthStatus not implemented") |
| 128 | } |
| 129 | func (*UnimplementedOltInterAdapterServiceServer) ProxyOmciRequest(ctx context.Context, req *inter_adapter.OmciMessage) (*empty.Empty, error) { |
| 130 | return nil, status.Errorf(codes.Unimplemented, "method ProxyOmciRequest not implemented") |
| 131 | } |
| 132 | func (*UnimplementedOltInterAdapterServiceServer) GetTechProfileInstance(ctx context.Context, req *inter_adapter.TechProfileInstanceRequestMessage) (*inter_adapter.TechProfileDownloadMessage, error) { |
| 133 | return nil, status.Errorf(codes.Unimplemented, "method GetTechProfileInstance not implemented") |
| 134 | } |
| 135 | |
| 136 | func RegisterOltInterAdapterServiceServer(s *grpc.Server, srv OltInterAdapterServiceServer) { |
| 137 | s.RegisterService(&_OltInterAdapterService_serviceDesc, srv) |
| 138 | } |
| 139 | |
| 140 | func _OltInterAdapterService_GetHealthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 141 | in := new(common.Connection) |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 142 | if err := dec(in); err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | if interceptor == nil { |
| 146 | return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, in) |
| 147 | } |
| 148 | info := &grpc.UnaryServerInfo{ |
| 149 | Server: srv, |
| 150 | FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetHealthStatus", |
| 151 | } |
| 152 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
khenaidoo | 27e7ac9 | 2021-12-08 14:43:09 -0500 | [diff] [blame] | 153 | return srv.(OltInterAdapterServiceServer).GetHealthStatus(ctx, req.(*common.Connection)) |
khenaidoo | dc2116e | 2021-10-19 17:33:19 -0400 | [diff] [blame] | 154 | } |
| 155 | return interceptor(ctx, in, info, handler) |
| 156 | } |
| 157 | |
| 158 | func _OltInterAdapterService_ProxyOmciRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 159 | in := new(inter_adapter.OmciMessage) |
| 160 | if err := dec(in); err != nil { |
| 161 | return nil, err |
| 162 | } |
| 163 | if interceptor == nil { |
| 164 | return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, in) |
| 165 | } |
| 166 | info := &grpc.UnaryServerInfo{ |
| 167 | Server: srv, |
| 168 | FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/ProxyOmciRequest", |
| 169 | } |
| 170 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 171 | return srv.(OltInterAdapterServiceServer).ProxyOmciRequest(ctx, req.(*inter_adapter.OmciMessage)) |
| 172 | } |
| 173 | return interceptor(ctx, in, info, handler) |
| 174 | } |
| 175 | |
| 176 | func _OltInterAdapterService_GetTechProfileInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 177 | in := new(inter_adapter.TechProfileInstanceRequestMessage) |
| 178 | if err := dec(in); err != nil { |
| 179 | return nil, err |
| 180 | } |
| 181 | if interceptor == nil { |
| 182 | return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, in) |
| 183 | } |
| 184 | info := &grpc.UnaryServerInfo{ |
| 185 | Server: srv, |
| 186 | FullMethod: "/olt_inter_adapter_service.OltInterAdapterService/GetTechProfileInstance", |
| 187 | } |
| 188 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 189 | return srv.(OltInterAdapterServiceServer).GetTechProfileInstance(ctx, req.(*inter_adapter.TechProfileInstanceRequestMessage)) |
| 190 | } |
| 191 | return interceptor(ctx, in, info, handler) |
| 192 | } |
| 193 | |
| 194 | var _OltInterAdapterService_serviceDesc = grpc.ServiceDesc{ |
| 195 | ServiceName: "olt_inter_adapter_service.OltInterAdapterService", |
| 196 | HandlerType: (*OltInterAdapterServiceServer)(nil), |
| 197 | Methods: []grpc.MethodDesc{ |
| 198 | { |
| 199 | MethodName: "GetHealthStatus", |
| 200 | Handler: _OltInterAdapterService_GetHealthStatus_Handler, |
| 201 | }, |
| 202 | { |
| 203 | MethodName: "ProxyOmciRequest", |
| 204 | Handler: _OltInterAdapterService_ProxyOmciRequest_Handler, |
| 205 | }, |
| 206 | { |
| 207 | MethodName: "GetTechProfileInstance", |
| 208 | Handler: _OltInterAdapterService_GetTechProfileInstance_Handler, |
| 209 | }, |
| 210 | }, |
| 211 | Streams: []grpc.StreamDesc{}, |
| 212 | Metadata: "voltha_protos/olt_inter_adapter_service.proto", |
| 213 | } |