# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class InsertTableRowRequest(object):
    _types = {
        "row_index": int,
    }

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

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


class InsertTableRowRequestBuilder(object):
    def __init__(self) -> None:
        self._insert_table_row_request = InsertTableRowRequest()

    def row_index(self, row_index: int) -> "InsertTableRowRequestBuilder":
        self._insert_table_row_request.row_index = row_index
        return self

    def build(self) -> "InsertTableRowRequest":
        return self._insert_table_row_request
