Skip to content
Snippets Groups Projects
context_pb2_grpc.py 36.9 KiB
Newer Older
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
from . import context_pb2 as context__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetContextIds = channel.unary_unary(
                '/context.ContextService/GetContextIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.ContextIdList.FromString,
                )
        self.GetContexts = channel.unary_unary(
                '/context.ContextService/GetContexts',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.ContextList.FromString,
                )
        self.GetContext = channel.unary_unary(
                '/context.ContextService/GetContext',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.Context.FromString,
                )
        self.SetContext = channel.unary_unary(
                '/context.ContextService/SetContext',
                request_serializer=context__pb2.Context.SerializeToString,
                response_deserializer=context__pb2.ContextId.FromString,
                )
        self.DeleteContext = channel.unary_unary(
                '/context.ContextService/DeleteContext',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetTopologyIds = channel.unary_unary(
                '/context.ContextService/GetTopologyIds',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.TopologyIdList.FromString,
                )
        self.GetTopologies = channel.unary_unary(
                '/context.ContextService/GetTopologies',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.TopologyList.FromString,
                )
        self.GetTopology = channel.unary_unary(
                '/context.ContextService/GetTopology',
                request_serializer=context__pb2.TopologyId.SerializeToString,
                response_deserializer=context__pb2.Topology.FromString,
                )
        self.SetTopology = channel.unary_unary(
                '/context.ContextService/SetTopology',
                request_serializer=context__pb2.Topology.SerializeToString,
                response_deserializer=context__pb2.TopologyId.FromString,
                )
        self.DeleteTopology = channel.unary_unary(
                '/context.ContextService/DeleteTopology',
                request_serializer=context__pb2.TopologyId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetDeviceIds = channel.unary_unary(
                '/context.ContextService/GetDeviceIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.DeviceIdList.FromString,
                )
        self.GetDevices = channel.unary_unary(
                '/context.ContextService/GetDevices',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.DeviceList.FromString,
                )
        self.GetDevice = channel.unary_unary(
                '/context.ContextService/GetDevice',
                request_serializer=context__pb2.DeviceId.SerializeToString,
                response_deserializer=context__pb2.Device.FromString,
                )
        self.SetDevice = channel.unary_unary(
                '/context.ContextService/SetDevice',
                request_serializer=context__pb2.Device.SerializeToString,
                response_deserializer=context__pb2.DeviceId.FromString,
                )
        self.RemoveDevice = channel.unary_unary(
                '/context.ContextService/RemoveDevice',
                request_serializer=context__pb2.DeviceId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetLinkIds = channel.unary_unary(
                '/context.ContextService/GetLinkIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.LinkIdList.FromString,
                )
        self.GetLinks = channel.unary_unary(
                '/context.ContextService/GetLinks',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.LinkList.FromString,
                )
        self.GetLink = channel.unary_unary(
                '/context.ContextService/GetLink',
                request_serializer=context__pb2.LinkId.SerializeToString,
                response_deserializer=context__pb2.Link.FromString,
                )
        self.SetLink = channel.unary_unary(
                '/context.ContextService/SetLink',
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
                request_serializer=context__pb2.Link.SerializeToString,
                response_deserializer=context__pb2.LinkId.FromString,
                )
        self.DeleteLink = channel.unary_unary(
                '/context.ContextService/DeleteLink',
                request_serializer=context__pb2.LinkId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
        self.GetServiceIds = channel.unary_unary(
                '/context.ContextService/GetServiceIds',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.ServiceIdList.FromString,
                )
        self.GetServices = channel.unary_unary(
                '/context.ContextService/GetServices',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.ServiceList.FromString,
                )
        self.GetService = channel.unary_unary(
                '/context.ContextService/GetService',
                request_serializer=context__pb2.ServiceId.SerializeToString,
                response_deserializer=context__pb2.Service.FromString,
                )
        self.SetService = channel.unary_unary(
                '/context.ContextService/SetService',
                request_serializer=context__pb2.Service.SerializeToString,
                response_deserializer=context__pb2.ServiceId.FromString,
                )
        self.DeleteService = channel.unary_unary(
                '/context.ContextService/DeleteService',
                request_serializer=context__pb2.ServiceId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )


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

    def GetContextIds(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 GetContexts(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 GetContext(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 SetContext(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 DeleteContext(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 GetTopologyIds(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 GetTopologies(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 GetTopology(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 SetTopology(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 DeleteTopology(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 GetDeviceIds(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 GetDevices(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 GetDevice(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 SetDevice(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 RemoveDevice(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 GetLinkIds(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 GetLinks(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 GetLink(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 SetLink(self, request, context):
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        """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 DeleteLink(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 GetServiceIds(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 GetServices(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 GetService(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 SetService(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 DeleteService(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_ContextServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetContextIds': grpc.unary_unary_rpc_method_handler(
                    servicer.GetContextIds,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.ContextIdList.SerializeToString,
            ),
            'GetContexts': grpc.unary_unary_rpc_method_handler(
                    servicer.GetContexts,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.ContextList.SerializeToString,
            ),
            'GetContext': grpc.unary_unary_rpc_method_handler(
                    servicer.GetContext,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.Context.SerializeToString,
            ),
            'SetContext': grpc.unary_unary_rpc_method_handler(
                    servicer.SetContext,
                    request_deserializer=context__pb2.Context.FromString,
                    response_serializer=context__pb2.ContextId.SerializeToString,
            ),
            'DeleteContext': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteContext,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetTopologyIds': grpc.unary_unary_rpc_method_handler(
                    servicer.GetTopologyIds,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.TopologyIdList.SerializeToString,
            ),
            'GetTopologies': grpc.unary_unary_rpc_method_handler(
                    servicer.GetTopologies,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.TopologyList.SerializeToString,
            ),
            'GetTopology': grpc.unary_unary_rpc_method_handler(
                    servicer.GetTopology,
                    request_deserializer=context__pb2.TopologyId.FromString,
                    response_serializer=context__pb2.Topology.SerializeToString,
            ),
            'SetTopology': grpc.unary_unary_rpc_method_handler(
                    servicer.SetTopology,
                    request_deserializer=context__pb2.Topology.FromString,
                    response_serializer=context__pb2.TopologyId.SerializeToString,
            ),
            'DeleteTopology': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteTopology,
                    request_deserializer=context__pb2.TopologyId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetDeviceIds': grpc.unary_unary_rpc_method_handler(
                    servicer.GetDeviceIds,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.DeviceIdList.SerializeToString,
            ),
            'GetDevices': grpc.unary_unary_rpc_method_handler(
                    servicer.GetDevices,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.DeviceList.SerializeToString,
            ),
            'GetDevice': grpc.unary_unary_rpc_method_handler(
                    servicer.GetDevice,
                    request_deserializer=context__pb2.DeviceId.FromString,
                    response_serializer=context__pb2.Device.SerializeToString,
            ),
            'SetDevice': grpc.unary_unary_rpc_method_handler(
                    servicer.SetDevice,
                    request_deserializer=context__pb2.Device.FromString,
                    response_serializer=context__pb2.DeviceId.SerializeToString,
            ),
            'RemoveDevice': grpc.unary_unary_rpc_method_handler(
                    servicer.RemoveDevice,
                    request_deserializer=context__pb2.DeviceId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetLinkIds': grpc.unary_unary_rpc_method_handler(
                    servicer.GetLinkIds,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.LinkIdList.SerializeToString,
            ),
            'GetLinks': grpc.unary_unary_rpc_method_handler(
                    servicer.GetLinks,
                    request_deserializer=context__pb2.Empty.FromString,
                    response_serializer=context__pb2.LinkList.SerializeToString,
            ),
            'GetLink': grpc.unary_unary_rpc_method_handler(
                    servicer.GetLink,
                    request_deserializer=context__pb2.LinkId.FromString,
                    response_serializer=context__pb2.Link.SerializeToString,
            ),
            'SetLink': grpc.unary_unary_rpc_method_handler(
                    servicer.SetLink,
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
                    request_deserializer=context__pb2.Link.FromString,
                    response_serializer=context__pb2.LinkId.SerializeToString,
            ),
            'DeleteLink': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteLink,
                    request_deserializer=context__pb2.LinkId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
            'GetServiceIds': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServiceIds,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.ServiceIdList.SerializeToString,
            ),
            'GetServices': grpc.unary_unary_rpc_method_handler(
                    servicer.GetServices,
                    request_deserializer=context__pb2.ContextId.FromString,
                    response_serializer=context__pb2.ServiceList.SerializeToString,
            ),
            'GetService': grpc.unary_unary_rpc_method_handler(
                    servicer.GetService,
                    request_deserializer=context__pb2.ServiceId.FromString,
                    response_serializer=context__pb2.Service.SerializeToString,
            ),
            'SetService': grpc.unary_unary_rpc_method_handler(
                    servicer.SetService,
                    request_deserializer=context__pb2.Service.FromString,
                    response_serializer=context__pb2.ServiceId.SerializeToString,
            ),
            'DeleteService': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteService,
                    request_deserializer=context__pb2.ServiceId.FromString,
                    response_serializer=context__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'context.ContextService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def GetContextIds(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, '/context.ContextService/GetContextIds',
            context__pb2.Empty.SerializeToString,
            context__pb2.ContextIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetContexts(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, '/context.ContextService/GetContexts',
            context__pb2.Empty.SerializeToString,
            context__pb2.ContextList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetContext(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, '/context.ContextService/GetContext',
            context__pb2.ContextId.SerializeToString,
            context__pb2.Context.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetContext(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, '/context.ContextService/SetContext',
            context__pb2.Context.SerializeToString,
            context__pb2.ContextId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteContext(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, '/context.ContextService/DeleteContext',
            context__pb2.ContextId.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetTopologyIds(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, '/context.ContextService/GetTopologyIds',
            context__pb2.ContextId.SerializeToString,
            context__pb2.TopologyIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetTopologies(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, '/context.ContextService/GetTopologies',
            context__pb2.ContextId.SerializeToString,
            context__pb2.TopologyList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetTopology(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, '/context.ContextService/GetTopology',
            context__pb2.TopologyId.SerializeToString,
            context__pb2.Topology.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed

    @staticmethod
    def SetTopology(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, '/context.ContextService/SetTopology',
            context__pb2.Topology.SerializeToString,
            context__pb2.TopologyId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteTopology(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, '/context.ContextService/DeleteTopology',
            context__pb2.TopologyId.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetDeviceIds(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, '/context.ContextService/GetDeviceIds',
            context__pb2.Empty.SerializeToString,
            context__pb2.DeviceIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetDevices(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, '/context.ContextService/GetDevices',
            context__pb2.Empty.SerializeToString,
            context__pb2.DeviceList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetDevice(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, '/context.ContextService/GetDevice',
            context__pb2.DeviceId.SerializeToString,
            context__pb2.Device.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetDevice(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, '/context.ContextService/SetDevice',
            context__pb2.Device.SerializeToString,
            context__pb2.DeviceId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RemoveDevice(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, '/context.ContextService/RemoveDevice',
            context__pb2.DeviceId.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetLinkIds(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, '/context.ContextService/GetLinkIds',
            context__pb2.Empty.SerializeToString,
            context__pb2.LinkIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetLinks(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, '/context.ContextService/GetLinks',
            context__pb2.Empty.SerializeToString,
            context__pb2.LinkList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetLink(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, '/context.ContextService/GetLink',
            context__pb2.LinkId.SerializeToString,
            context__pb2.Link.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetLink(request,
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
            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, '/context.ContextService/SetLink',
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
            context__pb2.Link.SerializeToString,
            context__pb2.LinkId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteLink(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, '/context.ContextService/DeleteLink',
            context__pb2.LinkId.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetServiceIds(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, '/context.ContextService/GetServiceIds',
            context__pb2.ContextId.SerializeToString,
            context__pb2.ServiceIdList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetServices(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, '/context.ContextService/GetServices',
            context__pb2.ContextId.SerializeToString,
            context__pb2.ServiceList.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetService(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, '/context.ContextService/GetService',
            context__pb2.ServiceId.SerializeToString,
            context__pb2.Service.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def SetService(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, '/context.ContextService/SetService',
            context__pb2.Service.SerializeToString,
            context__pb2.ServiceId.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteService(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, '/context.ContextService/DeleteService',
            context__pb2.ServiceId.SerializeToString,
            context__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)