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

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

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


class DocTextBuilder(object):
    def __init__(self) -> None:
        self._doc_text = DocText()

    def text(self, text: str) -> "DocTextBuilder":
        self._doc_text.text = text
        return self

    def build(self) -> "DocText":
        return self._doc_text
