Source code for ubii.proto.v1.dataStructure.object2d_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.dataStructure.pose2d_pb_plus import (
    Pose2D,
)

from ubii.proto.v1.dataStructure.vector2_pb_plus import (
    Vector2,
)


__protobuf__ = module(
    package="ubii.proto.v1.dataStructure",
    marshal="ubii.proto.v1",
    manifest={
        "Object2D",
        "Object2DList",
    }
)


[docs]class Object2D(Message): """ Attributes: id (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` pose (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~ubii.proto.v1.dataStructure.pose2d_pb_plus.Pose2D` size (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~ubii.proto.v1.dataStructure.vector2_pb_plus.Vector2` user_data_json (proto.fields.Field): :obj:`~proto.fields.Field` of type :obj:`~proto.primitives.ProtoType.STRING` """ id: str = Field( STRING, number=1, ) pose: Pose2D = Field( MESSAGE, number=2, message=Pose2D, ) size: Vector2 = Field( MESSAGE, number=3, message=Vector2, ) user_data_json: str = Field( STRING, number=4, )
[docs]class Object2DList(Message): """ Attributes: elements (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type :obj:`~.Object2D` """ elements: MutableSequence[Object2D] = RepeatedField( MESSAGE, number=1, message=Object2D, )