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

from protos.rome.services import fund_manager_pb2 as protos_dot_rome_dot_services_dot_fund__manager__pb2

GRPC_GENERATED_VERSION = '1.65.5'
GRPC_VERSION = grpc.__version__
EXPECTED_ERROR_RELEASE = '1.66.0'
SCHEDULED_RELEASE_DATE = 'August 6, 2024'
_version_not_supported = False

try:
    from grpc._utilities import first_version_is_lower
    _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
    _version_not_supported = True

if _version_not_supported:
    warnings.warn(
        f'The grpc package installed is at version {GRPC_VERSION},'
        + f' but the generated code in protos/rome/services/fund_manager_pb2_grpc.py depends on'
        + f' grpcio>={GRPC_GENERATED_VERSION}.'
        + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
        + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
        + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
        + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
        RuntimeWarning
    )


class FundMangerServiceStub(object):
    """The fund manager service definition.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.HealthCheck = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/HealthCheck',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckResponse.FromString,
                _registered_method=True)
        self.CreateAccount = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/CreateAccount',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountResponse.FromString,
                _registered_method=True)
        self.DepositFundsToAccount = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/DepositFundsToAccount',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountResponse.FromString,
                _registered_method=True)
        self.WithdrawFundsFromAccount = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/WithdrawFundsFromAccount',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountResponse.FromString,
                _registered_method=True)
        self.SubscribeFundsToPortfolio = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/SubscribeFundsToPortfolio',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioResponse.FromString,
                _registered_method=True)
        self.WithdrawFundsFromPortfolio = channel.unary_unary(
                '/rome.services.fund_manager.FundMangerService/WithdrawFundsFromPortfolio',
                request_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioRequest.SerializeToString,
                response_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioResponse.FromString,
                _registered_method=True)


class FundMangerServiceServicer(object):
    """The fund manager service definition.
    """

    def HealthCheck(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 CreateAccount(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 DepositFundsToAccount(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 WithdrawFundsFromAccount(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 SubscribeFundsToPortfolio(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 WithdrawFundsFromPortfolio(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_FundMangerServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'HealthCheck': grpc.unary_unary_rpc_method_handler(
                    servicer.HealthCheck,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckResponse.SerializeToString,
            ),
            'CreateAccount': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateAccount,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountResponse.SerializeToString,
            ),
            'DepositFundsToAccount': grpc.unary_unary_rpc_method_handler(
                    servicer.DepositFundsToAccount,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountResponse.SerializeToString,
            ),
            'WithdrawFundsFromAccount': grpc.unary_unary_rpc_method_handler(
                    servicer.WithdrawFundsFromAccount,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountResponse.SerializeToString,
            ),
            'SubscribeFundsToPortfolio': grpc.unary_unary_rpc_method_handler(
                    servicer.SubscribeFundsToPortfolio,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioResponse.SerializeToString,
            ),
            'WithdrawFundsFromPortfolio': grpc.unary_unary_rpc_method_handler(
                    servicer.WithdrawFundsFromPortfolio,
                    request_deserializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioRequest.FromString,
                    response_serializer=protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'rome.services.fund_manager.FundMangerService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('rome.services.fund_manager.FundMangerService', rpc_method_handlers)


 # This class is part of an EXPERIMENTAL API.
class FundMangerService(object):
    """The fund manager service definition.
    """

    @staticmethod
    def HealthCheck(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,
            '/rome.services.fund_manager.FundMangerService/HealthCheck',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.HealthCheckResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def CreateAccount(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,
            '/rome.services.fund_manager.FundMangerService/CreateAccount',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.CreateAccountResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DepositFundsToAccount(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,
            '/rome.services.fund_manager.FundMangerService/DepositFundsToAccount',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.DepositFundsToAccountResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def WithdrawFundsFromAccount(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,
            '/rome.services.fund_manager.FundMangerService/WithdrawFundsFromAccount',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromAccountResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def SubscribeFundsToPortfolio(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,
            '/rome.services.fund_manager.FundMangerService/SubscribeFundsToPortfolio',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.SubscribeFundsToPortfolioResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def WithdrawFundsFromPortfolio(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,
            '/rome.services.fund_manager.FundMangerService/WithdrawFundsFromPortfolio',
            protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioRequest.SerializeToString,
            protos_dot_rome_dot_services_dot_fund__manager__pb2.WithdrawFundsFromPortfolioResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
