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

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

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


class AppTableFieldDescriptionBuilder(object):
    def __init__(self) -> None:
        self._app_table_field_description = AppTableFieldDescription()

    def disable_sync(self, disable_sync: bool) -> "AppTableFieldDescriptionBuilder":
        self._app_table_field_description.disable_sync = disable_sync
        return self

    def text(self, text: str) -> "AppTableFieldDescriptionBuilder":
        self._app_table_field_description.text = text
        return self

    def build(self) -> "AppTableFieldDescription":
        return self._app_table_field_description
