# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class MessageActionI18nInfo(object):
    _types = {
        "i18n_key": str,
        "name": str,
    }

    def __init__(self, d=None):
        self.i18n_key: Optional[str] = None
        self.name: Optional[str] = None
        init(self, d, self._types)

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


class MessageActionI18nInfoBuilder(object):
    def __init__(self) -> None:
        self._message_action_i18n_info = MessageActionI18nInfo()

    def i18n_key(self, i18n_key: str) -> "MessageActionI18nInfoBuilder":
        self._message_action_i18n_info.i18n_key = i18n_key
        return self

    def name(self, name: str) -> "MessageActionI18nInfoBuilder":
        self._message_action_i18n_info.name = name
        return self

    def build(self) -> "MessageActionI18nInfo":
        return self._message_action_i18n_info
