# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .file_comment_reply import FileCommentReply


class ReplyList(object):
    _types = {
        "replies": List[FileCommentReply],
    }

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

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


class ReplyListBuilder(object):
    def __init__(self) -> None:
        self._reply_list = ReplyList()

    def replies(self, replies: List[FileCommentReply]) -> "ReplyListBuilder":
        self._reply_list.replies = replies
        return self

    def build(self) -> "ReplyList":
        return self._reply_list
