# 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_text import I18nText
from .i18n_text import I18nText
from .wu_kong_enum import WuKongEnum
from .wu_kong_enum import WuKongEnum


class Education(object):
    _types = {
        "id": str,
        "school": I18nText,
        "level_of_education": str,
        "start_date": str,
        "end_date": str,
        "expected_end_date": str,
        "field_of_study": I18nText,
        "degree": str,
        "country_region_id": str,
        "education_id": str,
        "school_enum": WuKongEnum,
        "field_of_study_enum": WuKongEnum,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.school: Optional[I18nText] = None
        self.level_of_education: Optional[str] = None
        self.start_date: Optional[str] = None
        self.end_date: Optional[str] = None
        self.expected_end_date: Optional[str] = None
        self.field_of_study: Optional[I18nText] = None
        self.degree: Optional[str] = None
        self.country_region_id: Optional[str] = None
        self.education_id: Optional[str] = None
        self.school_enum: Optional[WuKongEnum] = None
        self.field_of_study_enum: Optional[WuKongEnum] = None
        init(self, d, self._types)

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


class EducationBuilder(object):
    def __init__(self) -> None:
        self._education = Education()

    def id(self, id: str) -> "EducationBuilder":
        self._education.id = id
        return self

    def school(self, school: I18nText) -> "EducationBuilder":
        self._education.school = school
        return self

    def level_of_education(self, level_of_education: str) -> "EducationBuilder":
        self._education.level_of_education = level_of_education
        return self

    def start_date(self, start_date: str) -> "EducationBuilder":
        self._education.start_date = start_date
        return self

    def end_date(self, end_date: str) -> "EducationBuilder":
        self._education.end_date = end_date
        return self

    def expected_end_date(self, expected_end_date: str) -> "EducationBuilder":
        self._education.expected_end_date = expected_end_date
        return self

    def field_of_study(self, field_of_study: I18nText) -> "EducationBuilder":
        self._education.field_of_study = field_of_study
        return self

    def degree(self, degree: str) -> "EducationBuilder":
        self._education.degree = degree
        return self

    def country_region_id(self, country_region_id: str) -> "EducationBuilder":
        self._education.country_region_id = country_region_id
        return self

    def education_id(self, education_id: str) -> "EducationBuilder":
        self._education.education_id = education_id
        return self

    def school_enum(self, school_enum: WuKongEnum) -> "EducationBuilder":
        self._education.school_enum = school_enum
        return self

    def field_of_study_enum(self, field_of_study_enum: WuKongEnum) -> "EducationBuilder":
        self._education.field_of_study_enum = field_of_study_enum
        return self

    def build(self) -> "Education":
        return self._education
