# Code generated by Lark OpenAPI.

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


class DimensionOption(object):
    _types = {
        "id": str,
        "name": I18n,
        "score_val": int,
    }

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

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


class DimensionOptionBuilder(object):
    def __init__(self) -> None:
        self._dimension_option = DimensionOption()

    def id(self, id: str) -> "DimensionOptionBuilder":
        self._dimension_option.id = id
        return self

    def name(self, name: I18n) -> "DimensionOptionBuilder":
        self._dimension_option.name = name
        return self

    def score_val(self, score_val: int) -> "DimensionOptionBuilder":
        self._dimension_option.score_val = score_val
        return self

    def build(self) -> "DimensionOption":
        return self._dimension_option
