# 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 ObjectiveName(object):
    _types = {
        "zh": str,
        "en": str,
    }

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

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


class ObjectiveNameBuilder(object):
    def __init__(self) -> None:
        self._objective_name = ObjectiveName()

    def zh(self, zh: str) -> "ObjectiveNameBuilder":
        self._objective_name.zh = zh
        return self

    def en(self, en: str) -> "ObjectiveNameBuilder":
        self._objective_name.en = en
        return self

    def build(self) -> "ObjectiveName":
        return self._objective_name
