//
//Сервис реализует функционал взаимодействия с внешними партнёрами IoT

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc             v4.23.1
// source: keyapis/iot_connect/v1/keyapis_iot_connect_manage_v1.proto

package keyapis_iot_connect_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 (
	IotConnectManageService_PutManageUserScopeDetach_FullMethodName = "/keyapis.iot_connect.v1.IotConnectManageService/PutManageUserScopeDetach"
	IotConnectManageService_PostManageCall_FullMethodName           = "/keyapis.iot_connect.v1.IotConnectManageService/PostManageCall"
	IotConnectManageService_PostManageCallCancel_FullMethodName     = "/keyapis.iot_connect.v1.IotConnectManageService/PostManageCallCancel"
)

// IotConnectManageServiceClient is the client API for IotConnectManageService 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 IotConnectManageServiceClient interface {
	// Метод разъединения аккаунтов.
	// Метод доступен для: admin
	PutManageUserScopeDetach(ctx context.Context, in *PutManageUserScopeDetachRequest, opts ...grpc.CallOption) (*PutManageUserScopeDetachResponse, error)
	// Метод обработки события звонка с домофона.
	// Метод доступен для: service
	PostManageCall(ctx context.Context, in *PostManageCallRequest, opts ...grpc.CallOption) (*PostManageCallResponse, error)
	// Метод обработки события об окончании группового звонка с домофона.
	// Метод доступен для: service
	PostManageCallCancel(ctx context.Context, in *PostManageCallCancelRequest, opts ...grpc.CallOption) (*PostManageCallCancelResponse, error)
}

type iotConnectManageServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewIotConnectManageServiceClient(cc grpc.ClientConnInterface) IotConnectManageServiceClient {
	return &iotConnectManageServiceClient{cc}
}

func (c *iotConnectManageServiceClient) PutManageUserScopeDetach(ctx context.Context, in *PutManageUserScopeDetachRequest, opts ...grpc.CallOption) (*PutManageUserScopeDetachResponse, error) {
	out := new(PutManageUserScopeDetachResponse)
	err := c.cc.Invoke(ctx, IotConnectManageService_PutManageUserScopeDetach_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *iotConnectManageServiceClient) PostManageCall(ctx context.Context, in *PostManageCallRequest, opts ...grpc.CallOption) (*PostManageCallResponse, error) {
	out := new(PostManageCallResponse)
	err := c.cc.Invoke(ctx, IotConnectManageService_PostManageCall_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *iotConnectManageServiceClient) PostManageCallCancel(ctx context.Context, in *PostManageCallCancelRequest, opts ...grpc.CallOption) (*PostManageCallCancelResponse, error) {
	out := new(PostManageCallCancelResponse)
	err := c.cc.Invoke(ctx, IotConnectManageService_PostManageCallCancel_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// IotConnectManageServiceServer is the server API for IotConnectManageService service.
// All implementations should embed UnimplementedIotConnectManageServiceServer
// for forward compatibility
type IotConnectManageServiceServer interface {
	// Метод разъединения аккаунтов.
	// Метод доступен для: admin
	PutManageUserScopeDetach(context.Context, *PutManageUserScopeDetachRequest) (*PutManageUserScopeDetachResponse, error)
	// Метод обработки события звонка с домофона.
	// Метод доступен для: service
	PostManageCall(context.Context, *PostManageCallRequest) (*PostManageCallResponse, error)
	// Метод обработки события об окончании группового звонка с домофона.
	// Метод доступен для: service
	PostManageCallCancel(context.Context, *PostManageCallCancelRequest) (*PostManageCallCancelResponse, error)
}

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

func (UnimplementedIotConnectManageServiceServer) PutManageUserScopeDetach(context.Context, *PutManageUserScopeDetachRequest) (*PutManageUserScopeDetachResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PutManageUserScopeDetach not implemented")
}
func (UnimplementedIotConnectManageServiceServer) PostManageCall(context.Context, *PostManageCallRequest) (*PostManageCallResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PostManageCall not implemented")
}
func (UnimplementedIotConnectManageServiceServer) PostManageCallCancel(context.Context, *PostManageCallCancelRequest) (*PostManageCallCancelResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PostManageCallCancel not implemented")
}

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

func RegisterIotConnectManageServiceServer(s grpc.ServiceRegistrar, srv IotConnectManageServiceServer) {
	s.RegisterService(&IotConnectManageService_ServiceDesc, srv)
}

func _IotConnectManageService_PutManageUserScopeDetach_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PutManageUserScopeDetachRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IotConnectManageServiceServer).PutManageUserScopeDetach(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IotConnectManageService_PutManageUserScopeDetach_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IotConnectManageServiceServer).PutManageUserScopeDetach(ctx, req.(*PutManageUserScopeDetachRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IotConnectManageService_PostManageCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PostManageCallRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IotConnectManageServiceServer).PostManageCall(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IotConnectManageService_PostManageCall_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IotConnectManageServiceServer).PostManageCall(ctx, req.(*PostManageCallRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _IotConnectManageService_PostManageCallCancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PostManageCallCancelRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(IotConnectManageServiceServer).PostManageCallCancel(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: IotConnectManageService_PostManageCallCancel_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(IotConnectManageServiceServer).PostManageCallCancel(ctx, req.(*PostManageCallCancelRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// IotConnectManageService_ServiceDesc is the grpc.ServiceDesc for IotConnectManageService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var IotConnectManageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keyapis.iot_connect.v1.IotConnectManageService",
	HandlerType: (*IotConnectManageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PutManageUserScopeDetach",
			Handler:    _IotConnectManageService_PutManageUserScopeDetach_Handler,
		},
		{
			MethodName: "PostManageCall",
			Handler:    _IotConnectManageService_PostManageCall_Handler,
		},
		{
			MethodName: "PostManageCallCancel",
			Handler:    _IotConnectManageService_PostManageCallCancel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keyapis/iot_connect/v1/keyapis_iot_connect_manage_v1.proto",
}
