from __future__ import annotations
from dataclasses import dataclass, field
from .country_ref import CountryRef
from .projection_version_structure import ProjectionVersionStructure
from .topographic_place_ref import TopographicPlaceRef
from .version_of_object_ref_structure import VersionOfObjectRefStructure

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


@dataclass(slots=True, kw_only=True)
class TopographicProjectionVersionStructure(ProjectionVersionStructure):
    class Meta:
        name = "TopographicProjection_VersionStructure"

    projected_object_ref: None | VersionOfObjectRefStructure = field(
        default=None,
        metadata={
            "name": "ProjectedObjectRef",
            "type": "Element",
            "namespace": "http://www.netex.org.uk/netex",
        }
    )
    country_ref_or_topographic_place_ref: None | CountryRef | TopographicPlaceRef = field(
        default=None,
        metadata={
            "type": "Elements",
            "choices": (
                {
                    "name": "CountryRef",
                    "type": CountryRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
                {
                    "name": "TopographicPlaceRef",
                    "type": TopographicPlaceRef,
                    "namespace": "http://www.netex.org.uk/netex",
                },
            ),
        }
    )