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

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

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


class RepoBuilder(object):
    def __init__(self) -> None:
        self._repo = Repo()

    def id(self, id: int) -> "RepoBuilder":
        self._repo.id = id
        return self

    def name(self, name: str) -> "RepoBuilder":
        self._repo.name = name
        return self

    def build(self) -> "Repo":
        return self._repo
