from __future__ import annotations
from dataclasses import dataclass, field
from .empty_type_2 import EmptyType2
from .strict_containment_aggregation_structure import StrictContainmentAggregationStructure
from .via_versioned_child_structure import ViaVersionedChildStructure

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass(slots=True, kw_only=True)
class ViasRelStructure(StrictContainmentAggregationStructure):
    class Meta:
        name = "vias_RelStructure"

    none_or_via: list[EmptyType2 | ViaVersionedChildStructure] = field(
        default_factory=list,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "None",
                    "type": EmptyType2,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "Via",
                    "type": ViaVersionedChildStructure,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )