// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.12.4
// source: named-entity-recognition.proto

package protobuf

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

// NamedEntityRecognizerClient is the client API for NamedEntityRecognizer 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 NamedEntityRecognizerClient interface {
	RecognizeEntities(ctx context.Context, in *RecognizeEntitiesRequest, opts ...grpc.CallOption) (*RecognizeEntitiesResponse, error)
}

type namedEntityRecognizerClient struct {
	cc grpc.ClientConnInterface
}

func NewNamedEntityRecognizerClient(cc grpc.ClientConnInterface) NamedEntityRecognizerClient {
	return &namedEntityRecognizerClient{cc}
}

func (c *namedEntityRecognizerClient) RecognizeEntities(ctx context.Context, in *RecognizeEntitiesRequest, opts ...grpc.CallOption) (*RecognizeEntitiesResponse, error) {
	out := new(RecognizeEntitiesResponse)
	err := c.cc.Invoke(ctx, "/namedentityrecognition.NamedEntityRecognizer/RecognizeEntities", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// NamedEntityRecognizerServer is the server API for NamedEntityRecognizer service.
// All implementations must embed UnimplementedNamedEntityRecognizerServer
// for forward compatibility
type NamedEntityRecognizerServer interface {
	RecognizeEntities(context.Context, *RecognizeEntitiesRequest) (*RecognizeEntitiesResponse, error)
	mustEmbedUnimplementedNamedEntityRecognizerServer()
}

// UnimplementedNamedEntityRecognizerServer must be embedded to have forward compatible implementations.
type UnimplementedNamedEntityRecognizerServer struct {
}

func (UnimplementedNamedEntityRecognizerServer) RecognizeEntities(context.Context, *RecognizeEntitiesRequest) (*RecognizeEntitiesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RecognizeEntities not implemented")
}
func (UnimplementedNamedEntityRecognizerServer) mustEmbedUnimplementedNamedEntityRecognizerServer() {}

// UnsafeNamedEntityRecognizerServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to NamedEntityRecognizerServer will
// result in compilation errors.
type UnsafeNamedEntityRecognizerServer interface {
	mustEmbedUnimplementedNamedEntityRecognizerServer()
}

func RegisterNamedEntityRecognizerServer(s grpc.ServiceRegistrar, srv NamedEntityRecognizerServer) {
	s.RegisterService(&NamedEntityRecognizer_ServiceDesc, srv)
}

func _NamedEntityRecognizer_RecognizeEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RecognizeEntitiesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(NamedEntityRecognizerServer).RecognizeEntities(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/namedentityrecognition.NamedEntityRecognizer/RecognizeEntities",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(NamedEntityRecognizerServer).RecognizeEntities(ctx, req.(*RecognizeEntitiesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// NamedEntityRecognizer_ServiceDesc is the grpc.ServiceDesc for NamedEntityRecognizer service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NamedEntityRecognizer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "namedentityrecognition.NamedEntityRecognizer",
	HandlerType: (*NamedEntityRecognizerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RecognizeEntities",
			Handler:    _NamedEntityRecognizer_RecognizeEntities_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "named-entity-recognition.proto",
}
