Source code for ubii.proto.v1.dataStructure.vector2_pb_plus
"""
@generated by codestare-proto-plus. Do not edit manually!
"""
from builtins import (
float,
)
from proto import (
DOUBLE,
Field,
MESSAGE,
RepeatedField,
module,
)
from proto.message import (
Message,
)
from typing import (
MutableSequence,
)
__protobuf__ = module(
package="ubii.proto.v1.dataStructure",
marshal="ubii.proto.v1",
manifest={
"Vector2",
"Vector2List",
}
)
[docs]class Vector2(Message):
"""
Attributes:
x (proto.fields.Field): :obj:`~proto.fields.Field` of type
:obj:`~proto.primitives.ProtoType.DOUBLE`
y (proto.fields.Field): :obj:`~proto.fields.Field` of type
:obj:`~proto.primitives.ProtoType.DOUBLE`
"""
x: float = Field(
DOUBLE,
number=1,
)
y: float = Field(
DOUBLE,
number=2,
)
[docs]class Vector2List(Message):
"""
Attributes:
elements (proto.fields.RepeatedField): :obj:`~proto.fields.RepeatedField` of type
:obj:`~.Vector2`
"""
elements: MutableSequence[Vector2] = RepeatedField(
MESSAGE,
number=1,
message=Vector2,
)