# 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 ApplicationTalentProjectInfo(object):
    _types = {
        "id": str,
        "name": str,
        "role": str,
        "link": str,
        "desc": str,
        "start_time": int,
        "end_time": int,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.name: Optional[str] = None
        self.role: Optional[str] = None
        self.link: Optional[str] = None
        self.desc: Optional[str] = None
        self.start_time: Optional[int] = None
        self.end_time: Optional[int] = None
        init(self, d, self._types)

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


class ApplicationTalentProjectInfoBuilder(object):
    def __init__(self) -> None:
        self._application_talent_project_info = ApplicationTalentProjectInfo()

    def id(self, id: str) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.id = id
        return self

    def name(self, name: str) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.name = name
        return self

    def role(self, role: str) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.role = role
        return self

    def link(self, link: str) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.link = link
        return self

    def desc(self, desc: str) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.desc = desc
        return self

    def start_time(self, start_time: int) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.start_time = start_time
        return self

    def end_time(self, end_time: int) -> "ApplicationTalentProjectInfoBuilder":
        self._application_talent_project_info.end_time = end_time
        return self

    def build(self) -> "ApplicationTalentProjectInfo":
        return self._application_talent_project_info
