//
//Сервис предоставляет возможность действий с пользователями

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

package keyapis_identity_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 (
	UserService_PostUserSsoMigration_FullMethodName = "/keyapis.identity.v1.UserService/PostUserSsoMigration"
)

// UserServiceClient is the client API for UserService 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 UserServiceClient interface {
	// Метод переноса кабинета ключа в другой кабинет SSO.
	// Метод доступен для: admin, service, ltp_first
	PostUserSsoMigration(ctx context.Context, in *PostUserSsoMigrationRequest, opts ...grpc.CallOption) (*PostUserSsoMigrationResponse, error)
}

type userServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient {
	return &userServiceClient{cc}
}

func (c *userServiceClient) PostUserSsoMigration(ctx context.Context, in *PostUserSsoMigrationRequest, opts ...grpc.CallOption) (*PostUserSsoMigrationResponse, error) {
	out := new(PostUserSsoMigrationResponse)
	err := c.cc.Invoke(ctx, UserService_PostUserSsoMigration_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// UserServiceServer is the server API for UserService service.
// All implementations should embed UnimplementedUserServiceServer
// for forward compatibility
type UserServiceServer interface {
	// Метод переноса кабинета ключа в другой кабинет SSO.
	// Метод доступен для: admin, service, ltp_first
	PostUserSsoMigration(context.Context, *PostUserSsoMigrationRequest) (*PostUserSsoMigrationResponse, error)
}

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

func (UnimplementedUserServiceServer) PostUserSsoMigration(context.Context, *PostUserSsoMigrationRequest) (*PostUserSsoMigrationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PostUserSsoMigration not implemented")
}

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

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) {
	s.RegisterService(&UserService_ServiceDesc, srv)
}

func _UserService_PostUserSsoMigration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PostUserSsoMigrationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(UserServiceServer).PostUserSsoMigration(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: UserService_PostUserSsoMigration_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(UserServiceServer).PostUserSsoMigration(ctx, req.(*PostUserSsoMigrationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// UserService_ServiceDesc is the grpc.ServiceDesc for UserService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keyapis.identity.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PostUserSsoMigration",
			Handler:    _UserService_PostUserSsoMigration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keyapis/identity/v1/keyapis_identity_user_v1.proto",
}
