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

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

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


class SchemaPredefineEnumStructBuilder(object):
    def __init__(self) -> None:
        self._schema_predefine_enum_struct = SchemaPredefineEnumStruct()

    def name(self, name: str) -> "SchemaPredefineEnumStructBuilder":
        self._schema_predefine_enum_struct.name = name
        return self

    def text(self, text: str) -> "SchemaPredefineEnumStructBuilder":
        self._schema_predefine_enum_struct.text = text
        return self

    def build(self) -> "SchemaPredefineEnumStruct":
        return self._schema_predefine_enum_struct
