# 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 ResumeCertificate(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() -> "ResumeCertificateBuilder":
        return ResumeCertificateBuilder()


class ResumeCertificateBuilder(object):
    def __init__(self) -> None:
        self._resume_certificate = ResumeCertificate()

    def name(self, name: str) -> "ResumeCertificateBuilder":
        self._resume_certificate.name = name
        return self

    def desc(self, desc: str) -> "ResumeCertificateBuilder":
        self._resume_certificate.desc = desc
        return self

    def build(self) -> "ResumeCertificate":
        return self._resume_certificate
