# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .coordinate import Coordinate


class LocationInfoEvent(object):
    _types = {
        "coord": Coordinate,
    }

    def __init__(self, d=None):
        self.coord: Optional[Coordinate] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "LocationInfoEventBuilder":
        return LocationInfoEventBuilder()


class LocationInfoEventBuilder(object):
    def __init__(self) -> None:
        self._location_info_event = LocationInfoEvent()

    def coord(self, coord: Coordinate) -> "LocationInfoEventBuilder":
        self._location_info_event.coord = coord
        return self

    def build(self) -> "LocationInfoEvent":
        return self._location_info_event
