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

// 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_room_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 (
	RoomService_DeleteRoom_FullMethodName     = "/deviceapis.device.v1.RoomService/DeleteRoom"
	RoomService_DeleteRoomList_FullMethodName = "/deviceapis.device.v1.RoomService/DeleteRoomList"
	RoomService_GetRoom_FullMethodName        = "/deviceapis.device.v1.RoomService/GetRoom"
	RoomService_GetRoomCount_FullMethodName   = "/deviceapis.device.v1.RoomService/GetRoomCount"
	RoomService_GetRoomList_FullMethodName    = "/deviceapis.device.v1.RoomService/GetRoomList"
	RoomService_SaveRoom_FullMethodName       = "/deviceapis.device.v1.RoomService/SaveRoom"
	RoomService_SaveRoomList_FullMethodName   = "/deviceapis.device.v1.RoomService/SaveRoomList"
)

// RoomServiceClient is the client API for RoomService 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 RoomServiceClient interface {
	// Метод удаления настроек квартиры
	DeleteRoom(ctx context.Context, in *DeleteRoomRequest, opts ...grpc.CallOption) (*DeleteRoomResponse, error)
	// Метод удаления списка настроек квартиры.
	// При отсутствующем или пустом фильтре удаляются все квартиры
	DeleteRoomList(ctx context.Context, in *DeleteRoomListRequest, opts ...grpc.CallOption) (*DeleteRoomListResponse, error)
	// Метод получения настроек квартиры
	GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*GetRoomResponse, error)
	// Метод получения количества квартир
	GetRoomCount(ctx context.Context, in *GetRoomCountRequest, opts ...grpc.CallOption) (*GetRoomCountResponse, error)
	// Метод получения списка настроек квартир
	GetRoomList(ctx context.Context, in *GetRoomListRequest, opts ...grpc.CallOption) (*GetRoomListResponse, error)
	// Метод сохранения настроек квартиры.
	// Поддерживает создание и обновление
	SaveRoom(ctx context.Context, in *SaveRoomRequest, opts ...grpc.CallOption) (*SaveRoomResponse, error)
	// Метод сохранения списка настроек квартиры
	SaveRoomList(ctx context.Context, in *SaveRoomListRequest, opts ...grpc.CallOption) (*SaveRoomListResponse, error)
}

type roomServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewRoomServiceClient(cc grpc.ClientConnInterface) RoomServiceClient {
	return &roomServiceClient{cc}
}

func (c *roomServiceClient) DeleteRoom(ctx context.Context, in *DeleteRoomRequest, opts ...grpc.CallOption) (*DeleteRoomResponse, error) {
	out := new(DeleteRoomResponse)
	err := c.cc.Invoke(ctx, RoomService_DeleteRoom_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) DeleteRoomList(ctx context.Context, in *DeleteRoomListRequest, opts ...grpc.CallOption) (*DeleteRoomListResponse, error) {
	out := new(DeleteRoomListResponse)
	err := c.cc.Invoke(ctx, RoomService_DeleteRoomList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) GetRoom(ctx context.Context, in *GetRoomRequest, opts ...grpc.CallOption) (*GetRoomResponse, error) {
	out := new(GetRoomResponse)
	err := c.cc.Invoke(ctx, RoomService_GetRoom_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) GetRoomCount(ctx context.Context, in *GetRoomCountRequest, opts ...grpc.CallOption) (*GetRoomCountResponse, error) {
	out := new(GetRoomCountResponse)
	err := c.cc.Invoke(ctx, RoomService_GetRoomCount_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) GetRoomList(ctx context.Context, in *GetRoomListRequest, opts ...grpc.CallOption) (*GetRoomListResponse, error) {
	out := new(GetRoomListResponse)
	err := c.cc.Invoke(ctx, RoomService_GetRoomList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) SaveRoom(ctx context.Context, in *SaveRoomRequest, opts ...grpc.CallOption) (*SaveRoomResponse, error) {
	out := new(SaveRoomResponse)
	err := c.cc.Invoke(ctx, RoomService_SaveRoom_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *roomServiceClient) SaveRoomList(ctx context.Context, in *SaveRoomListRequest, opts ...grpc.CallOption) (*SaveRoomListResponse, error) {
	out := new(SaveRoomListResponse)
	err := c.cc.Invoke(ctx, RoomService_SaveRoomList_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// RoomServiceServer is the server API for RoomService service.
// All implementations should embed UnimplementedRoomServiceServer
// for forward compatibility
type RoomServiceServer interface {
	// Метод удаления настроек квартиры
	DeleteRoom(context.Context, *DeleteRoomRequest) (*DeleteRoomResponse, error)
	// Метод удаления списка настроек квартиры.
	// При отсутствующем или пустом фильтре удаляются все квартиры
	DeleteRoomList(context.Context, *DeleteRoomListRequest) (*DeleteRoomListResponse, error)
	// Метод получения настроек квартиры
	GetRoom(context.Context, *GetRoomRequest) (*GetRoomResponse, error)
	// Метод получения количества квартир
	GetRoomCount(context.Context, *GetRoomCountRequest) (*GetRoomCountResponse, error)
	// Метод получения списка настроек квартир
	GetRoomList(context.Context, *GetRoomListRequest) (*GetRoomListResponse, error)
	// Метод сохранения настроек квартиры.
	// Поддерживает создание и обновление
	SaveRoom(context.Context, *SaveRoomRequest) (*SaveRoomResponse, error)
	// Метод сохранения списка настроек квартиры
	SaveRoomList(context.Context, *SaveRoomListRequest) (*SaveRoomListResponse, error)
}

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

func (UnimplementedRoomServiceServer) DeleteRoom(context.Context, *DeleteRoomRequest) (*DeleteRoomResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteRoom not implemented")
}
func (UnimplementedRoomServiceServer) DeleteRoomList(context.Context, *DeleteRoomListRequest) (*DeleteRoomListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteRoomList not implemented")
}
func (UnimplementedRoomServiceServer) GetRoom(context.Context, *GetRoomRequest) (*GetRoomResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoom not implemented")
}
func (UnimplementedRoomServiceServer) GetRoomCount(context.Context, *GetRoomCountRequest) (*GetRoomCountResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoomCount not implemented")
}
func (UnimplementedRoomServiceServer) GetRoomList(context.Context, *GetRoomListRequest) (*GetRoomListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetRoomList not implemented")
}
func (UnimplementedRoomServiceServer) SaveRoom(context.Context, *SaveRoomRequest) (*SaveRoomResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SaveRoom not implemented")
}
func (UnimplementedRoomServiceServer) SaveRoomList(context.Context, *SaveRoomListRequest) (*SaveRoomListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SaveRoomList not implemented")
}

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

func RegisterRoomServiceServer(s grpc.ServiceRegistrar, srv RoomServiceServer) {
	s.RegisterService(&RoomService_ServiceDesc, srv)
}

func _RoomService_DeleteRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteRoomRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).DeleteRoom(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_DeleteRoom_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).DeleteRoom(ctx, req.(*DeleteRoomRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_DeleteRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteRoomListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).DeleteRoomList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_DeleteRoomList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).DeleteRoomList(ctx, req.(*DeleteRoomListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_GetRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRoomRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).GetRoom(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_GetRoom_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).GetRoom(ctx, req.(*GetRoomRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_GetRoomCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRoomCountRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).GetRoomCount(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_GetRoomCount_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).GetRoomCount(ctx, req.(*GetRoomCountRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_GetRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetRoomListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).GetRoomList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_GetRoomList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).GetRoomList(ctx, req.(*GetRoomListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_SaveRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SaveRoomRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).SaveRoom(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_SaveRoom_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).SaveRoom(ctx, req.(*SaveRoomRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _RoomService_SaveRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SaveRoomListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(RoomServiceServer).SaveRoomList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: RoomService_SaveRoomList_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(RoomServiceServer).SaveRoomList(ctx, req.(*SaveRoomListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// RoomService_ServiceDesc is the grpc.ServiceDesc for RoomService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RoomService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "deviceapis.device.v1.RoomService",
	HandlerType: (*RoomServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "DeleteRoom",
			Handler:    _RoomService_DeleteRoom_Handler,
		},
		{
			MethodName: "DeleteRoomList",
			Handler:    _RoomService_DeleteRoomList_Handler,
		},
		{
			MethodName: "GetRoom",
			Handler:    _RoomService_GetRoom_Handler,
		},
		{
			MethodName: "GetRoomCount",
			Handler:    _RoomService_GetRoomCount_Handler,
		},
		{
			MethodName: "GetRoomList",
			Handler:    _RoomService_GetRoomList_Handler,
		},
		{
			MethodName: "SaveRoom",
			Handler:    _RoomService_SaveRoom_Handler,
		},
		{
			MethodName: "SaveRoomList",
			Handler:    _RoomService_SaveRoomList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "deviceapis/device/v1/deviceapis_device_room_v1.proto",
}
