# 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 RequestDoc(object):
    _types = {
        "doc_token": str,
        "doc_type": str,
    }

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

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


class RequestDocBuilder(object):
    def __init__(self) -> None:
        self._request_doc = RequestDoc()

    def doc_token(self, doc_token: str) -> "RequestDocBuilder":
        self._request_doc.doc_token = doc_token
        return self

    def doc_type(self, doc_type: str) -> "RequestDocBuilder":
        self._request_doc.doc_type = doc_type
        return self

    def build(self) -> "RequestDoc":
        return self._request_doc
