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

from arista.dashboard.v1.services import gen_pb2 as arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetOne = channel.unary_unary(
                '/arista.dashboard.v1.DashboardService/GetOne',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardResponse.FromString,
                )
        self.GetAll = channel.unary_stream(
                '/arista.dashboard.v1.DashboardService/GetAll',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString,
                )
        self.Subscribe = channel.unary_stream(
                '/arista.dashboard.v1.DashboardService/Subscribe',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString,
                )


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

    def GetOne(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 GetAll(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 Subscribe(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_DashboardServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetOne': grpc.unary_unary_rpc_method_handler(
                    servicer.GetOne,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardResponse.SerializeToString,
            ),
            'GetAll': grpc.unary_stream_rpc_method_handler(
                    servicer.GetAll,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.SerializeToString,
            ),
            'Subscribe': grpc.unary_stream_rpc_method_handler(
                    servicer.Subscribe,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'arista.dashboard.v1.DashboardService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetOne(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, '/arista.dashboard.v1.DashboardService/GetOne',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetAll(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_stream(request, target, '/arista.dashboard.v1.DashboardService/GetAll',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Subscribe(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_stream(request, target, '/arista.dashboard.v1.DashboardService/Subscribe',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetOne = channel.unary_unary(
                '/arista.dashboard.v1.DashboardConfigService/GetOne',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigResponse.FromString,
                )
        self.GetAll = channel.unary_stream(
                '/arista.dashboard.v1.DashboardConfigService/GetAll',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString,
                )
        self.Subscribe = channel.unary_stream(
                '/arista.dashboard.v1.DashboardConfigService/Subscribe',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString,
                )
        self.Set = channel.unary_unary(
                '/arista.dashboard.v1.DashboardConfigService/Set',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetResponse.FromString,
                )
        self.Delete = channel.unary_unary(
                '/arista.dashboard.v1.DashboardConfigService/Delete',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteResponse.FromString,
                )


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

    def GetOne(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 GetAll(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 Subscribe(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 Set(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 add_DashboardConfigServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetOne': grpc.unary_unary_rpc_method_handler(
                    servicer.GetOne,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigResponse.SerializeToString,
            ),
            'GetAll': grpc.unary_stream_rpc_method_handler(
                    servicer.GetAll,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.SerializeToString,
            ),
            'Subscribe': grpc.unary_stream_rpc_method_handler(
                    servicer.Subscribe,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.SerializeToString,
            ),
            'Set': grpc.unary_unary_rpc_method_handler(
                    servicer.Set,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetResponse.SerializeToString,
            ),
            'Delete': grpc.unary_unary_rpc_method_handler(
                    servicer.Delete,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'arista.dashboard.v1.DashboardConfigService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetOne(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, '/arista.dashboard.v1.DashboardConfigService/GetOne',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetAll(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_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/GetAll',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Subscribe(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_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/Subscribe',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Set(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, '/arista.dashboard.v1.DashboardConfigService/Set',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetResponse.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, '/arista.dashboard.v1.DashboardConfigService/Delete',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetOne = channel.unary_unary(
                '/arista.dashboard.v1.GlobalDashboardConfigService/GetOne',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigResponse.FromString,
                )
        self.Subscribe = channel.unary_stream(
                '/arista.dashboard.v1.GlobalDashboardConfigService/Subscribe',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString,
                )
        self.Set = channel.unary_unary(
                '/arista.dashboard.v1.GlobalDashboardConfigService/Set',
                request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.SerializeToString,
                response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.FromString,
                )


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

    def GetOne(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 Subscribe(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 Set(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_GlobalDashboardConfigServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetOne': grpc.unary_unary_rpc_method_handler(
                    servicer.GetOne,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigResponse.SerializeToString,
            ),
            'Subscribe': grpc.unary_stream_rpc_method_handler(
                    servicer.Subscribe,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.SerializeToString,
            ),
            'Set': grpc.unary_unary_rpc_method_handler(
                    servicer.Set,
                    request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.FromString,
                    response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'arista.dashboard.v1.GlobalDashboardConfigService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetOne(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, '/arista.dashboard.v1.GlobalDashboardConfigService/GetOne',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Subscribe(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_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/Subscribe',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Set(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, '/arista.dashboard.v1.GlobalDashboardConfigService/Set',
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.SerializeToString,
            arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
