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

from prodvana.proto.prodvana.recipe import manager_pb2 as prodvana_dot_recipe_dot_manager__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.ConfigureRecipe = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/ConfigureRecipe',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeResp.FromString,
                )
        self.ValidateConfigureRecipe = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/ValidateConfigureRecipe',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.ValidateConfigureRecipeResp.FromString,
                )
        self.ListRecipes = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/ListRecipes',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.ListRecipesReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.ListRecipesResp.FromString,
                )
        self.GetRecipe = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/GetRecipe',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeResp.FromString,
                )
        self.GetRecipeConfig = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/GetRecipeConfig',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigResp.FromString,
                )
        self.ApplyRecipeParameters = channel.unary_unary(
                '/prodvana.recipe.RecipeManager/ApplyRecipeParameters',
                request_serializer=prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersReq.SerializeToString,
                response_deserializer=prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersResp.FromString,
                )


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

    def ConfigureRecipe(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 ValidateConfigureRecipe(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 ListRecipes(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 GetRecipe(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 GetRecipeConfig(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 ApplyRecipeParameters(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_RecipeManagerServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ConfigureRecipe': grpc.unary_unary_rpc_method_handler(
                    servicer.ConfigureRecipe,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeResp.SerializeToString,
            ),
            'ValidateConfigureRecipe': grpc.unary_unary_rpc_method_handler(
                    servicer.ValidateConfigureRecipe,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.ValidateConfigureRecipeResp.SerializeToString,
            ),
            'ListRecipes': grpc.unary_unary_rpc_method_handler(
                    servicer.ListRecipes,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.ListRecipesReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.ListRecipesResp.SerializeToString,
            ),
            'GetRecipe': grpc.unary_unary_rpc_method_handler(
                    servicer.GetRecipe,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeResp.SerializeToString,
            ),
            'GetRecipeConfig': grpc.unary_unary_rpc_method_handler(
                    servicer.GetRecipeConfig,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigResp.SerializeToString,
            ),
            'ApplyRecipeParameters': grpc.unary_unary_rpc_method_handler(
                    servicer.ApplyRecipeParameters,
                    request_deserializer=prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersReq.FromString,
                    response_serializer=prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersResp.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'prodvana.recipe.RecipeManager', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def ConfigureRecipe(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, '/prodvana.recipe.RecipeManager/ConfigureRecipe',
            prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ValidateConfigureRecipe(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, '/prodvana.recipe.RecipeManager/ValidateConfigureRecipe',
            prodvana_dot_recipe_dot_manager__pb2.ConfigureRecipeReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.ValidateConfigureRecipeResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ListRecipes(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, '/prodvana.recipe.RecipeManager/ListRecipes',
            prodvana_dot_recipe_dot_manager__pb2.ListRecipesReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.ListRecipesResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetRecipe(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, '/prodvana.recipe.RecipeManager/GetRecipe',
            prodvana_dot_recipe_dot_manager__pb2.GetRecipeReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.GetRecipeResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetRecipeConfig(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, '/prodvana.recipe.RecipeManager/GetRecipeConfig',
            prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.GetRecipeConfigResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ApplyRecipeParameters(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, '/prodvana.recipe.RecipeManager/ApplyRecipeParameters',
            prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersReq.SerializeToString,
            prodvana_dot_recipe_dot_manager__pb2.ApplyRecipeParametersResp.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
