# 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 GlobalOptionLabel(object):
    _types = {
        "zh_cn": str,
        "en_us": str,
    }

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

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


class GlobalOptionLabelBuilder(object):
    def __init__(self) -> None:
        self._global_option_label = GlobalOptionLabel()

    def zh_cn(self, zh_cn: str) -> "GlobalOptionLabelBuilder":
        self._global_option_label.zh_cn = zh_cn
        return self

    def en_us(self, en_us: str) -> "GlobalOptionLabelBuilder":
        self._global_option_label.en_us = en_us
        return self

    def build(self) -> "GlobalOptionLabel":
        return self._global_option_label
