Skip to content
context_pb2_grpc.py 44.3 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.
        """
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListContextIds = channel.unary_unary(
                '/context.ContextService/ListContextIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.ContextIdList.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListContexts = channel.unary_unary(
                '/context.ContextService/ListContexts',
                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,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.RemoveContext = channel.unary_unary(
                '/context.ContextService/RemoveContext',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.GetContextEvents = channel.unary_stream(
                '/context.ContextService/GetContextEvents',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.ContextEvent.FromString,
                )
        self.ListTopologyIds = channel.unary_unary(
                '/context.ContextService/ListTopologyIds',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.TopologyIdList.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListTopologies = channel.unary_unary(
                '/context.ContextService/ListTopologies',
                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,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.RemoveTopology = channel.unary_unary(
                '/context.ContextService/RemoveTopology',
                request_serializer=context__pb2.TopologyId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.GetTopologyEvents = channel.unary_stream(
                '/context.ContextService/GetTopologyEvents',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.TopologyEvent.FromString,
                )
        self.ListDeviceIds = channel.unary_unary(
                '/context.ContextService/ListDeviceIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.DeviceIdList.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListDevices = channel.unary_unary(
                '/context.ContextService/ListDevices',
                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,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.GetDeviceEvents = channel.unary_stream(
                '/context.ContextService/GetDeviceEvents',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.DeviceEvent.FromString,
                )
        self.ListLinkIds = channel.unary_unary(
                '/context.ContextService/ListLinkIds',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.LinkIdList.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListLinks = channel.unary_unary(
                '/context.ContextService/ListLinks',
                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,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.RemoveLink = channel.unary_unary(
                '/context.ContextService/RemoveLink',
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
                request_serializer=context__pb2.LinkId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.GetLinkEvents = channel.unary_stream(
                '/context.ContextService/GetLinkEvents',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.LinkEvent.FromString,
                )
        self.ListServiceIds = channel.unary_unary(
                '/context.ContextService/ListServiceIds',
                request_serializer=context__pb2.ContextId.SerializeToString,
                response_deserializer=context__pb2.ServiceIdList.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.ListServices = channel.unary_unary(
                '/context.ContextService/ListServices',
                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,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.RemoveService = channel.unary_unary(
                '/context.ContextService/RemoveService',
                request_serializer=context__pb2.ServiceId.SerializeToString,
                response_deserializer=context__pb2.Empty.FromString,
                )
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
        self.GetServiceEvents = channel.unary_stream(
                '/context.ContextService/GetServiceEvents',
                request_serializer=context__pb2.Empty.SerializeToString,
                response_deserializer=context__pb2.ServiceEvent.FromString,
                )


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

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
    def ListContextIds(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!')

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
    def ListContexts(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!')

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
    def RemoveContext(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!')
Loading
Loading full blame…