Source code for ubii.proto.v1.sessions.ioMappings_pb_plus

"""
@generated by codestare-proto-plus.  Do not edit manually!
"""
from builtins import (
    str,
)

from proto import (
    Field,
    MESSAGE,
    RepeatedField,
    STRING,
    module,
)

from proto.message import (
    Message,
)

from typing import (
    MutableSequence,
)

from ubii.proto.v1.devices.topicDemux_pb_plus import (
    TopicDemux,
)

from ubii.proto.v1.devices.topicMux_pb_plus import (
    TopicMux,
)


__protobuf__ = module(
    package="ubii.proto.v1.sessions",
    marshal="ubii.proto.v1",
    manifest={
        "TopicInputMapping",
        "TopicInputMappingList",
        "TopicOutputMapping",
        "TopicOutputMappingList",
        "IOMapping",
        "IOMappingList",
    }
)


[docs]class TopicInputMapping(Message): """ .. admonition:: One Ofs This message defines the following *oneof* group[s] .. attribute:: topic_source - :attr:`.topic` - :attr:`.topic_mux` Attributes: input_name (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` topic (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` -- *oneof* :attr:`.topic_source` topic_mux (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~ubii.proto.v1.devices.topicMux_pb_plus.TopicMux` -- *oneof* :attr:`.topic_source` """ input_name: str = Field( STRING, number=1, ) topic: str = Field( STRING, number=2, oneof='topic_source', ) topic_mux: TopicMux = Field( MESSAGE, number=3, message=TopicMux, oneof='topic_source', )
[docs]class TopicInputMappingList(Message): """ Attributes: elements (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.TopicInputMapping` """ elements: MutableSequence[TopicInputMapping] = RepeatedField( MESSAGE, number=1, message=TopicInputMapping, )
[docs]class TopicOutputMapping(Message): """ .. admonition:: One Ofs This message defines the following *oneof* group[s] .. attribute:: topic_destination - :attr:`.topic` - :attr:`.topic_demux` Attributes: output_name (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` topic (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` -- *oneof* :attr:`.topic_destination` topic_demux (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~ubii.proto.v1.devices.topicDemux_pb_plus.TopicDemux` -- *oneof* :attr:`.topic_destination` """ output_name: str = Field( STRING, number=1, ) topic: str = Field( STRING, number=2, oneof='topic_destination', ) topic_demux: TopicDemux = Field( MESSAGE, number=3, message=TopicDemux, oneof='topic_destination', )
[docs]class TopicOutputMappingList(Message): """ Attributes: elements (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.TopicOutputMapping` """ elements: MutableSequence[TopicOutputMapping] = RepeatedField( MESSAGE, number=1, message=TopicOutputMapping, )
[docs]class IOMapping(Message): """ Attributes: processing_module_id (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` input_mappings (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.TopicInputMapping` output_mappings (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.TopicOutputMapping` processing_module_name (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` """ processing_module_id: str = Field( STRING, number=1, ) input_mappings: MutableSequence[TopicInputMapping] = RepeatedField( MESSAGE, number=2, message=TopicInputMapping, ) output_mappings: MutableSequence[TopicOutputMapping] = RepeatedField( MESSAGE, number=3, message=TopicOutputMapping, ) processing_module_name: str = Field( STRING, number=4, )
[docs]class IOMappingList(Message): """ Attributes: elements (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.IOMapping` """ elements: MutableSequence[IOMapping] = RepeatedField( MESSAGE, number=1, message=IOMapping, )