# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from fsai_grpc_api.protos import user_api_pb2 as fsai__grpc__api_dot_protos_dot_user__api__pb2


class UserApiStub(object):
    """Missing associated documentation comment in .proto file."""

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.CreateUser = channel.unary_unary(
                '/UserApi/CreateUser',
                request_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserResponse.FromString,
                )
        self.FindUserByEmail = channel.unary_unary(
                '/UserApi/FindUserByEmail',
                request_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailResponse.FromString,
                )
        self.AuthenticateUser = channel.unary_unary(
                '/UserApi/AuthenticateUser',
                request_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserRequest.SerializeToString,
                response_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserResponse.FromString,
                )


class UserApiServicer(object):
    """Missing associated documentation comment in .proto file."""

    def CreateUser(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def FindUserByEmail(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def AuthenticateUser(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_UserApiServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'CreateUser': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateUser,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserResponse.SerializeToString,
            ),
            'FindUserByEmail': grpc.unary_unary_rpc_method_handler(
                    servicer.FindUserByEmail,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailResponse.SerializeToString,
            ),
            'AuthenticateUser': grpc.unary_unary_rpc_method_handler(
                    servicer.AuthenticateUser,
                    request_deserializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserRequest.FromString,
                    response_serializer=fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'UserApi', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class UserApi(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def CreateUser(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/UserApi/CreateUser',
            fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_user__api__pb2.CreateUserResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def FindUserByEmail(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/UserApi/FindUserByEmail',
            fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_user__api__pb2.FindUserByEmailResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def AuthenticateUser(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/UserApi/AuthenticateUser',
            fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserRequest.SerializeToString,
            fsai__grpc__api_dot_protos_dot_user__api__pb2.AuthenticateUserResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
