# 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 ResumeCompetition(object):
    _types = {
        "name": str,
        "desc": str,
    }

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

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


class ResumeCompetitionBuilder(object):
    def __init__(self) -> None:
        self._resume_competition = ResumeCompetition()

    def name(self, name: str) -> "ResumeCompetitionBuilder":
        self._resume_competition.name = name
        return self

    def desc(self, desc: str) -> "ResumeCompetitionBuilder":
        self._resume_competition.desc = desc
        return self

    def build(self) -> "ResumeCompetition":
        return self._resume_competition
