# Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: ozonmp/rcn_production_facade/v1/rcn_production_facade.proto
# plugin: grpclib.plugin.main
import abc
import typing

import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
    import grpclib.server

import validate.validate_pb2
import google.api.annotations_pb2
import google.protobuf.timestamp_pb2
import ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2


class RcnProductionFacadeServiceBase(abc.ABC):

    @abc.abstractmethod
    async def GetProductionV1(self, stream: 'grpclib.server.Stream[ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Request, ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Response]') -> None:
        pass

    @abc.abstractmethod
    async def ListProductionV1(self, stream: 'grpclib.server.Stream[ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Request, ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Response]') -> None:
        pass

    def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
        return {
            '/ozonmp.rcn_production_facade.v1.RcnProductionFacadeService/GetProductionV1': grpclib.const.Handler(
                self.GetProductionV1,
                grpclib.const.Cardinality.UNARY_UNARY,
                ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Request,
                ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Response,
            ),
            '/ozonmp.rcn_production_facade.v1.RcnProductionFacadeService/ListProductionV1': grpclib.const.Handler(
                self.ListProductionV1,
                grpclib.const.Cardinality.UNARY_UNARY,
                ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Request,
                ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Response,
            ),
        }


class RcnProductionFacadeServiceStub:

    def __init__(self, channel: grpclib.client.Channel) -> None:
        self.GetProductionV1 = grpclib.client.UnaryUnaryMethod(
            channel,
            '/ozonmp.rcn_production_facade.v1.RcnProductionFacadeService/GetProductionV1',
            ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Request,
            ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.GetProductionV1Response,
        )
        self.ListProductionV1 = grpclib.client.UnaryUnaryMethod(
            channel,
            '/ozonmp.rcn_production_facade.v1.RcnProductionFacadeService/ListProductionV1',
            ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Request,
            ozonmp.rcn_production_facade.v1.rcn_production_facade_pb2.ListProductionV1Response,
        )
