# 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 BotDisplayInfo(object):
    _types = {
        "id": str,
        "name": str,
        "avatar_url": str,
        "tenant_id": str,
        "i18n_names": Dict[str, str],
        "i18n_descriptions": Dict[str, str],
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.name: Optional[str] = None
        self.avatar_url: Optional[str] = None
        self.tenant_id: Optional[str] = None
        self.i18n_names: Optional[Dict[str, str]] = None
        self.i18n_descriptions: Optional[Dict[str, str]] = None
        init(self, d, self._types)

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


class BotDisplayInfoBuilder(object):
    def __init__(self) -> None:
        self._bot_display_info = BotDisplayInfo()

    def id(self, id: str) -> "BotDisplayInfoBuilder":
        self._bot_display_info.id = id
        return self

    def name(self, name: str) -> "BotDisplayInfoBuilder":
        self._bot_display_info.name = name
        return self

    def avatar_url(self, avatar_url: str) -> "BotDisplayInfoBuilder":
        self._bot_display_info.avatar_url = avatar_url
        return self

    def tenant_id(self, tenant_id: str) -> "BotDisplayInfoBuilder":
        self._bot_display_info.tenant_id = tenant_id
        return self

    def i18n_names(self, i18n_names: Dict[str, str]) -> "BotDisplayInfoBuilder":
        self._bot_display_info.i18n_names = i18n_names
        return self

    def i18n_descriptions(self, i18n_descriptions: Dict[str, str]) -> "BotDisplayInfoBuilder":
        self._bot_display_info.i18n_descriptions = i18n_descriptions
        return self

    def build(self) -> "BotDisplayInfo":
        return self._bot_display_info
