# 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 BasicRecognizeImageResponseBody(object):
    _types = {
        "text_list": List[str],
    }

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

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


class BasicRecognizeImageResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._basic_recognize_image_response_body = BasicRecognizeImageResponseBody()

    def text_list(self, text_list: List[str]) -> "BasicRecognizeImageResponseBodyBuilder":
        self._basic_recognize_image_response_body.text_list = text_list
        return self

    def build(self) -> "BasicRecognizeImageResponseBody":
        return self._basic_recognize_image_response_body
