# 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 I18n(object):
    _types = {
        "lang": str,
        "value": str,
    }

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

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


class I18nBuilder(object):
    def __init__(self) -> None:
        self._i18n = I18n()

    def lang(self, lang: str) -> "I18nBuilder":
        self._i18n.lang = lang
        return self

    def value(self, value: str) -> "I18nBuilder":
        self._i18n.value = value
        return self

    def build(self) -> "I18n":
        return self._i18n
