//
//Сервис управления настройками видеоконфига

// 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_video_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 (
	VideoChannelService_EditVideoChannel_FullMethodName    = "/deviceapis.device.v1.VideoChannelService/EditVideoChannel"
	VideoChannelService_GetVideoChannelList_FullMethodName = "/deviceapis.device.v1.VideoChannelService/GetVideoChannelList"
)

// VideoChannelServiceClient is the client API for VideoChannelService 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 VideoChannelServiceClient interface {
	// Метод редактирования единичной сущности VideoChannel по ключу
	EditVideoChannel(ctx context.Context, in *EditVideoChannelRequest, opts ...grpc.CallOption) (*EditVideoChannelResponse, error)
	// Метод получения списка сущностей VideoChannel по фильтру
	GetVideoChannelList(ctx context.Context, in *GetVideoChannelListRequest, opts ...grpc.CallOption) (*GetVideoChannelListResponse, error)
}

type videoChannelServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewVideoChannelServiceClient(cc grpc.ClientConnInterface) VideoChannelServiceClient {
	return &videoChannelServiceClient{cc}
}

func (c *videoChannelServiceClient) EditVideoChannel(ctx context.Context, in *EditVideoChannelRequest, opts ...grpc.CallOption) (*EditVideoChannelResponse, error) {
	out := new(EditVideoChannelResponse)
	err := c.cc.Invoke(ctx, VideoChannelService_EditVideoChannel_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *videoChannelServiceClient) GetVideoChannelList(ctx context.Context, in *GetVideoChannelListRequest, opts ...grpc.CallOption) (*GetVideoChannelListResponse, error) {
	out := new(GetVideoChannelListResponse)
	err := c.cc.Invoke(ctx, VideoChannelService_GetVideoChannelList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// VideoChannelServiceServer is the server API for VideoChannelService service.
// All implementations should embed UnimplementedVideoChannelServiceServer
// for forward compatibility
type VideoChannelServiceServer interface {
	// Метод редактирования единичной сущности VideoChannel по ключу
	EditVideoChannel(context.Context, *EditVideoChannelRequest) (*EditVideoChannelResponse, error)
	// Метод получения списка сущностей VideoChannel по фильтру
	GetVideoChannelList(context.Context, *GetVideoChannelListRequest) (*GetVideoChannelListResponse, error)
}

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

func (UnimplementedVideoChannelServiceServer) EditVideoChannel(context.Context, *EditVideoChannelRequest) (*EditVideoChannelResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method EditVideoChannel not implemented")
}
func (UnimplementedVideoChannelServiceServer) GetVideoChannelList(context.Context, *GetVideoChannelListRequest) (*GetVideoChannelListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetVideoChannelList not implemented")
}

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

func RegisterVideoChannelServiceServer(s grpc.ServiceRegistrar, srv VideoChannelServiceServer) {
	s.RegisterService(&VideoChannelService_ServiceDesc, srv)
}

func _VideoChannelService_EditVideoChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(EditVideoChannelRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(VideoChannelServiceServer).EditVideoChannel(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: VideoChannelService_EditVideoChannel_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(VideoChannelServiceServer).EditVideoChannel(ctx, req.(*EditVideoChannelRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _VideoChannelService_GetVideoChannelList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetVideoChannelListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(VideoChannelServiceServer).GetVideoChannelList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: VideoChannelService_GetVideoChannelList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(VideoChannelServiceServer).GetVideoChannelList(ctx, req.(*GetVideoChannelListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// VideoChannelService_ServiceDesc is the grpc.ServiceDesc for VideoChannelService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var VideoChannelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "deviceapis.device.v1.VideoChannelService",
	HandlerType: (*VideoChannelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EditVideoChannel",
			Handler:    _VideoChannelService_EditVideoChannel_Handler,
		},
		{
			MethodName: "GetVideoChannelList",
			Handler:    _VideoChannelService_GetVideoChannelList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "deviceapis/device/v1/deviceapis_device_video_v1.proto",
}
