//
//Сервис управления настройками Face Recognition

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc             v4.23.1
// source: deviceapis/device/v1/deviceapis_device_fr_v1.proto

package deviceapis_device_v1

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 (
	FacerecService_EditFacerec_FullMethodName = "/deviceapis.device.v1.FacerecService/EditFacerec"
	FacerecService_GetFacerec_FullMethodName  = "/deviceapis.device.v1.FacerecService/GetFacerec"
)

// FacerecServiceClient is the client API for FacerecService 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 FacerecServiceClient interface {
	// Метод редактирования настроек Face Recognition
	EditFacerec(ctx context.Context, in *EditFacerecRequest, opts ...grpc.CallOption) (*EditFacerecResponse, error)
	// Метод получения настроек Face Recognition
	GetFacerec(ctx context.Context, in *GetFacerecRequest, opts ...grpc.CallOption) (*GetFacerecResponse, error)
}

type facerecServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewFacerecServiceClient(cc grpc.ClientConnInterface) FacerecServiceClient {
	return &facerecServiceClient{cc}
}

func (c *facerecServiceClient) EditFacerec(ctx context.Context, in *EditFacerecRequest, opts ...grpc.CallOption) (*EditFacerecResponse, error) {
	out := new(EditFacerecResponse)
	err := c.cc.Invoke(ctx, FacerecService_EditFacerec_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *facerecServiceClient) GetFacerec(ctx context.Context, in *GetFacerecRequest, opts ...grpc.CallOption) (*GetFacerecResponse, error) {
	out := new(GetFacerecResponse)
	err := c.cc.Invoke(ctx, FacerecService_GetFacerec_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// FacerecServiceServer is the server API for FacerecService service.
// All implementations should embed UnimplementedFacerecServiceServer
// for forward compatibility
type FacerecServiceServer interface {
	// Метод редактирования настроек Face Recognition
	EditFacerec(context.Context, *EditFacerecRequest) (*EditFacerecResponse, error)
	// Метод получения настроек Face Recognition
	GetFacerec(context.Context, *GetFacerecRequest) (*GetFacerecResponse, error)
}

// UnimplementedFacerecServiceServer should be embedded to have forward compatible implementations.
type UnimplementedFacerecServiceServer struct {
}

func (UnimplementedFacerecServiceServer) EditFacerec(context.Context, *EditFacerecRequest) (*EditFacerecResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method EditFacerec not implemented")
}
func (UnimplementedFacerecServiceServer) GetFacerec(context.Context, *GetFacerecRequest) (*GetFacerecResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetFacerec not implemented")
}

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

func RegisterFacerecServiceServer(s grpc.ServiceRegistrar, srv FacerecServiceServer) {
	s.RegisterService(&FacerecService_ServiceDesc, srv)
}

func _FacerecService_EditFacerec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(EditFacerecRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FacerecServiceServer).EditFacerec(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: FacerecService_EditFacerec_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FacerecServiceServer).EditFacerec(ctx, req.(*EditFacerecRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _FacerecService_GetFacerec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetFacerecRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FacerecServiceServer).GetFacerec(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: FacerecService_GetFacerec_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FacerecServiceServer).GetFacerec(ctx, req.(*GetFacerecRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// FacerecService_ServiceDesc is the grpc.ServiceDesc for FacerecService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var FacerecService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "deviceapis.device.v1.FacerecService",
	HandlerType: (*FacerecServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EditFacerec",
			Handler:    _FacerecService_EditFacerec_Handler,
		},
		{
			MethodName: "GetFacerec",
			Handler:    _FacerecService_GetFacerec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "deviceapis/device/v1/deviceapis_device_fr_v1.proto",
}
