# 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 EnterpriseKnowledgeSourceLingoParam(object):
    _types = {
        "searchable": bool,
    }

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

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


class EnterpriseKnowledgeSourceLingoParamBuilder(object):
    def __init__(self) -> None:
        self._enterprise_knowledge_source_lingo_param = EnterpriseKnowledgeSourceLingoParam()

    def searchable(self, searchable: bool) -> "EnterpriseKnowledgeSourceLingoParamBuilder":
        self._enterprise_knowledge_source_lingo_param.searchable = searchable
        return self

    def build(self) -> "EnterpriseKnowledgeSourceLingoParam":
        return self._enterprise_knowledge_source_lingo_param
