# Code generated by Lark OpenAPI.

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


class EntityInfo(object):
    _types = {
        "id": str,
        "entity_type": int,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.entity_type: Optional[int] = None
        init(self, d, self._types)

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


class EntityInfoBuilder(object):
    def __init__(self) -> None:
        self._entity_info = EntityInfo()

    def id(self, id: str) -> "EntityInfoBuilder":
        self._entity_info.id = id
        return self

    def entity_type(self, entity_type: int) -> "EntityInfoBuilder":
        self._entity_info.entity_type = entity_type
        return self

    def build(self) -> "EntityInfo":
        return self._entity_info
