Newer
Older
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
class ContextServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.ListContextIds = channel.unary_unary(
'/context.ContextService/ListContextIds',
request_serializer=context__pb2.Empty.SerializeToString,
response_deserializer=context__pb2.ContextIdList.FromString,
)
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,
)
self.RemoveContext = channel.unary_unary(
'/context.ContextService/RemoveContext',
request_serializer=context__pb2.ContextId.SerializeToString,
response_deserializer=context__pb2.Empty.FromString,
)
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,
)
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,
)
self.RemoveTopology = channel.unary_unary(
'/context.ContextService/RemoveTopology',
request_serializer=context__pb2.TopologyId.SerializeToString,
response_deserializer=context__pb2.Empty.FromString,
)
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,
)
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,
)
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,
)
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',
request_serializer=context__pb2.Link.SerializeToString,
response_deserializer=context__pb2.LinkId.FromString,
)
self.RemoveLink = channel.unary_unary(
'/context.ContextService/RemoveLink',
request_serializer=context__pb2.LinkId.SerializeToString,
response_deserializer=context__pb2.Empty.FromString,
)
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,
)
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,
)
self.RemoveService = channel.unary_unary(
'/context.ContextService/RemoveService',
request_serializer=context__pb2.ServiceId.SerializeToString,
response_deserializer=context__pb2.Empty.FromString,
)
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."""
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
"""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 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…