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

from dmac.protos.asset import asset_pb2 as dmac_dot_protos_dot_asset_dot_asset__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.retrieve = channel.unary_unary(
                '/assets.Assets/retrieve',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.RetrieveRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
                )
        self.create = channel.unary_unary(
                '/assets.Assets/create',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.CreateRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
                )
        self.update = channel.unary_unary(
                '/assets.Assets/update',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.UpdateRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
                )
        self.delete = channel.unary_unary(
                '/assets.Assets/delete',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.DeleteRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.FromString,
                )
        self.list = channel.unary_unary(
                '/assets.Assets/list',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ListRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ListResponse.FromString,
                )
        self.validate = channel.unary_unary(
                '/assets.Assets/validate',
                request_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ValidateRequest.SerializeToString,
                response_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.FromString,
                )


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

    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 create(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 update(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 delete(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 validate(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_AssetsServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'retrieve': grpc.unary_unary_rpc_method_handler(
                    servicer.retrieve,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.RetrieveRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.SerializeToString,
            ),
            'create': grpc.unary_unary_rpc_method_handler(
                    servicer.create,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.CreateRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.SerializeToString,
            ),
            'update': grpc.unary_unary_rpc_method_handler(
                    servicer.update,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.UpdateRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.Response.SerializeToString,
            ),
            'delete': grpc.unary_unary_rpc_method_handler(
                    servicer.delete,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.DeleteRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.SerializeToString,
            ),
            'list': grpc.unary_unary_rpc_method_handler(
                    servicer.list,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ListRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ListResponse.SerializeToString,
            ),
            'validate': grpc.unary_unary_rpc_method_handler(
                    servicer.validate,
                    request_deserializer=dmac_dot_protos_dot_asset_dot_asset__pb2.ValidateRequest.FromString,
                    response_serializer=dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'assets.Assets', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @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, '/assets.Assets/retrieve',
            dmac_dot_protos_dot_asset_dot_asset__pb2.RetrieveRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def create(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, '/assets.Assets/create',
            dmac_dot_protos_dot_asset_dot_asset__pb2.CreateRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def update(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, '/assets.Assets/update',
            dmac_dot_protos_dot_asset_dot_asset__pb2.UpdateRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.Response.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def delete(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, '/assets.Assets/delete',
            dmac_dot_protos_dot_asset_dot_asset__pb2.DeleteRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.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, '/assets.Assets/list',
            dmac_dot_protos_dot_asset_dot_asset__pb2.ListRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.ListResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def validate(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, '/assets.Assets/validate',
            dmac_dot_protos_dot_asset_dot_asset__pb2.ValidateRequest.SerializeToString,
            dmac_dot_protos_dot_asset_dot_asset__pb2.EmptyResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
