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

from common.v1 import mfa_pb2 as common_dot_v1_dot_mfa__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.InitiateSmsVerification = channel.unary_unary(
                '/common.v1.MFAService/InitiateSmsVerification',
                request_serializer=common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationRequest.SerializeToString,
                response_deserializer=common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationResponse.FromString,
                _registered_method=True)
        self.ResendSmsVerification = channel.unary_unary(
                '/common.v1.MFAService/ResendSmsVerification',
                request_serializer=common_dot_v1_dot_mfa__pb2.ResendSmsVerificationRequest.SerializeToString,
                response_deserializer=common_dot_v1_dot_mfa__pb2.ResendSmsVerificationResponse.FromString,
                _registered_method=True)
        self.VerifySmsOtp = channel.unary_unary(
                '/common.v1.MFAService/VerifySmsOtp',
                request_serializer=common_dot_v1_dot_mfa__pb2.VerifySmsOtpRequest.SerializeToString,
                response_deserializer=common_dot_v1_dot_mfa__pb2.VerifySmsOtpResponse.FromString,
                _registered_method=True)


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

    def InitiateSmsVerification(self, request, context):
        """Send an OTP to session
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def ResendSmsVerification(self, request, context):
        """Resend OTP to session
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def VerifySmsOtp(self, request, context):
        """Verify OTP against session
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_MFAServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'InitiateSmsVerification': grpc.unary_unary_rpc_method_handler(
                    servicer.InitiateSmsVerification,
                    request_deserializer=common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationRequest.FromString,
                    response_serializer=common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationResponse.SerializeToString,
            ),
            'ResendSmsVerification': grpc.unary_unary_rpc_method_handler(
                    servicer.ResendSmsVerification,
                    request_deserializer=common_dot_v1_dot_mfa__pb2.ResendSmsVerificationRequest.FromString,
                    response_serializer=common_dot_v1_dot_mfa__pb2.ResendSmsVerificationResponse.SerializeToString,
            ),
            'VerifySmsOtp': grpc.unary_unary_rpc_method_handler(
                    servicer.VerifySmsOtp,
                    request_deserializer=common_dot_v1_dot_mfa__pb2.VerifySmsOtpRequest.FromString,
                    response_serializer=common_dot_v1_dot_mfa__pb2.VerifySmsOtpResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'common.v1.MFAService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('common.v1.MFAService', rpc_method_handlers)


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

    @staticmethod
    def InitiateSmsVerification(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,
            '/common.v1.MFAService/InitiateSmsVerification',
            common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationRequest.SerializeToString,
            common_dot_v1_dot_mfa__pb2.InitiateSmsVerificationResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def ResendSmsVerification(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,
            '/common.v1.MFAService/ResendSmsVerification',
            common_dot_v1_dot_mfa__pb2.ResendSmsVerificationRequest.SerializeToString,
            common_dot_v1_dot_mfa__pb2.ResendSmsVerificationResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def VerifySmsOtp(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,
            '/common.v1.MFAService/VerifySmsOtp',
            common_dot_v1_dot_mfa__pb2.VerifySmsOtpRequest.SerializeToString,
            common_dot_v1_dot_mfa__pb2.VerifySmsOtpResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
