// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.24.4 // source: multimodal-routing.proto package proto import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( MultimodalRouting_Search_FullMethodName = "/MultimodalRouting/Search" ) // MultimodalRoutingClient is the client API for MultimodalRouting service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MultimodalRoutingClient interface { Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) } type multimodalRoutingClient struct { cc grpc.ClientConnInterface } func NewMultimodalRoutingClient(cc grpc.ClientConnInterface) MultimodalRoutingClient { return &multimodalRoutingClient{cc} } func (c *multimodalRoutingClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) { out := new(SearchResponse) err := c.cc.Invoke(ctx, MultimodalRouting_Search_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // MultimodalRoutingServer is the server API for MultimodalRouting service. // All implementations must embed UnimplementedMultimodalRoutingServer // for forward compatibility type MultimodalRoutingServer interface { Search(context.Context, *SearchRequest) (*SearchResponse, error) mustEmbedUnimplementedMultimodalRoutingServer() } // UnimplementedMultimodalRoutingServer must be embedded to have forward compatible implementations. type UnimplementedMultimodalRoutingServer struct { } func (UnimplementedMultimodalRoutingServer) Search(context.Context, *SearchRequest) (*SearchResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Search not implemented") } func (UnimplementedMultimodalRoutingServer) mustEmbedUnimplementedMultimodalRoutingServer() {} // UnsafeMultimodalRoutingServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MultimodalRoutingServer will // result in compilation errors. type UnsafeMultimodalRoutingServer interface { mustEmbedUnimplementedMultimodalRoutingServer() } func RegisterMultimodalRoutingServer(s grpc.ServiceRegistrar, srv MultimodalRoutingServer) { s.RegisterService(&MultimodalRouting_ServiceDesc, srv) } func _MultimodalRouting_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SearchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MultimodalRoutingServer).Search(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: MultimodalRouting_Search_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MultimodalRoutingServer).Search(ctx, req.(*SearchRequest)) } return interceptor(ctx, in, info, handler) } // MultimodalRouting_ServiceDesc is the grpc.ServiceDesc for MultimodalRouting service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var MultimodalRouting_ServiceDesc = grpc.ServiceDesc{ ServiceName: "MultimodalRouting", HandlerType: (*MultimodalRoutingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Search", Handler: _MultimodalRouting_Search_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "multimodal-routing.proto", }