# 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 .object_field_data import ObjectFieldData


class EducationInfoForUpdate(object):
    _types = {
        "school_name": str,
        "education": str,
        "start_time": str,
        "end_time": str,
        "field_of_study": str,
        "custom_fields": List[ObjectFieldData],
    }

    def __init__(self, d=None):
        self.school_name: Optional[str] = None
        self.education: Optional[str] = None
        self.start_time: Optional[str] = None
        self.end_time: Optional[str] = None
        self.field_of_study: Optional[str] = None
        self.custom_fields: Optional[List[ObjectFieldData]] = None
        init(self, d, self._types)

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


class EducationInfoForUpdateBuilder(object):
    def __init__(self) -> None:
        self._education_info_for_update = EducationInfoForUpdate()

    def school_name(self, school_name: str) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.school_name = school_name
        return self

    def education(self, education: str) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.education = education
        return self

    def start_time(self, start_time: str) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.start_time = start_time
        return self

    def end_time(self, end_time: str) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.end_time = end_time
        return self

    def field_of_study(self, field_of_study: str) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.field_of_study = field_of_study
        return self

    def custom_fields(self, custom_fields: List[ObjectFieldData]) -> "EducationInfoForUpdateBuilder":
        self._education_info_for_update.custom_fields = custom_fields
        return self

    def build(self) -> "EducationInfoForUpdate":
        return self._education_info_for_update
