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

from . import blog_pb2 as blog_dot_grpc_dot_blog__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Comment = channel.unary_unary(
                '/darsman.blog.BlogController/Comment',
                request_serializer=blog_dot_grpc_dot_blog__pb2.AddCommentRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.AddCommentResponse.FromString,
                )
        self.FetchAuthorBlogs = channel.unary_unary(
                '/darsman.blog.BlogController/FetchAuthorBlogs',
                request_serializer=blog_dot_grpc_dot_blog__pb2.AuthorBlogsRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
                )
        self.List = channel.unary_unary(
                '/darsman.blog.BlogController/List',
                request_serializer=blog_dot_grpc_dot_blog__pb2.BlogListRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
                )
        self.Rate = channel.unary_unary(
                '/darsman.blog.BlogController/Rate',
                request_serializer=blog_dot_grpc_dot_blog__pb2.RateRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.RateResponse.FromString,
                )
        self.Retrieve = channel.unary_unary(
                '/darsman.blog.BlogController/Retrieve',
                request_serializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
                )
        self.RetrieveComments = channel.unary_unary(
                '/darsman.blog.BlogController/RetrieveComments',
                request_serializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveCommentsRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
                )
        self.RetrieveRates = channel.unary_unary(
                '/darsman.blog.BlogController/RetrieveRates',
                request_serializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveRatesRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
                )


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

    def Comment(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 FetchAuthorBlogs(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 List(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 Rate(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 Retrieve(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 RetrieveComments(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 RetrieveRates(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_BlogControllerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Comment': grpc.unary_unary_rpc_method_handler(
                    servicer.Comment,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.AddCommentRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.AddCommentResponse.SerializeToString,
            ),
            'FetchAuthorBlogs': grpc.unary_unary_rpc_method_handler(
                    servicer.FetchAuthorBlogs,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.AuthorBlogsRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.SerializeToString,
            ),
            'List': grpc.unary_unary_rpc_method_handler(
                    servicer.List,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.BlogListRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.SerializeToString,
            ),
            'Rate': grpc.unary_unary_rpc_method_handler(
                    servicer.Rate,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.RateRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.RateResponse.SerializeToString,
            ),
            'Retrieve': grpc.unary_unary_rpc_method_handler(
                    servicer.Retrieve,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.SerializeToString,
            ),
            'RetrieveComments': grpc.unary_unary_rpc_method_handler(
                    servicer.RetrieveComments,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveCommentsRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.SerializeToString,
            ),
            'RetrieveRates': grpc.unary_unary_rpc_method_handler(
                    servicer.RetrieveRates,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.BlogRetrieveRatesRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.BlogResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'darsman.blog.BlogController', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Comment(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, '/darsman.blog.BlogController/Comment',
            blog_dot_grpc_dot_blog__pb2.AddCommentRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.AddCommentResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def FetchAuthorBlogs(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, '/darsman.blog.BlogController/FetchAuthorBlogs',
            blog_dot_grpc_dot_blog__pb2.AuthorBlogsRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def List(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, '/darsman.blog.BlogController/List',
            blog_dot_grpc_dot_blog__pb2.BlogListRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Rate(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, '/darsman.blog.BlogController/Rate',
            blog_dot_grpc_dot_blog__pb2.RateRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.RateResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Retrieve(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, '/darsman.blog.BlogController/Retrieve',
            blog_dot_grpc_dot_blog__pb2.BlogRetrieveRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RetrieveComments(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, '/darsman.blog.BlogController/RetrieveComments',
            blog_dot_grpc_dot_blog__pb2.BlogRetrieveCommentsRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RetrieveRates(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, '/darsman.blog.BlogController/RetrieveRates',
            blog_dot_grpc_dot_blog__pb2.BlogRetrieveRatesRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.BlogResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.List = channel.unary_unary(
                '/darsman.blog.CategoryController/List',
                request_serializer=blog_dot_grpc_dot_blog__pb2.CategoryListRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.CategoryResponse.FromString,
                )
        self.Retrieve = channel.unary_unary(
                '/darsman.blog.CategoryController/Retrieve',
                request_serializer=blog_dot_grpc_dot_blog__pb2.CategoryRetrieveRequest.SerializeToString,
                response_deserializer=blog_dot_grpc_dot_blog__pb2.CategoryResponse.FromString,
                )


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

    def List(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 Retrieve(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_CategoryControllerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'List': grpc.unary_unary_rpc_method_handler(
                    servicer.List,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.CategoryListRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.CategoryResponse.SerializeToString,
            ),
            'Retrieve': grpc.unary_unary_rpc_method_handler(
                    servicer.Retrieve,
                    request_deserializer=blog_dot_grpc_dot_blog__pb2.CategoryRetrieveRequest.FromString,
                    response_serializer=blog_dot_grpc_dot_blog__pb2.CategoryResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'darsman.blog.CategoryController', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def List(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, '/darsman.blog.CategoryController/List',
            blog_dot_grpc_dot_blog__pb2.CategoryListRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.CategoryResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Retrieve(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, '/darsman.blog.CategoryController/Retrieve',
            blog_dot_grpc_dot_blog__pb2.CategoryRetrieveRequest.SerializeToString,
            blog_dot_grpc_dot_blog__pb2.CategoryResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
