# 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 .user_stats_view import UserStatsView


class QueryUserStatsViewResponseBody(object):
    _types = {
        "view": UserStatsView,
    }

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

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


class QueryUserStatsViewResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_user_stats_view_response_body = QueryUserStatsViewResponseBody()

    def view(self, view: UserStatsView) -> "QueryUserStatsViewResponseBodyBuilder":
        self._query_user_stats_view_response_body.view = view
        return self

    def build(self) -> "QueryUserStatsViewResponseBody":
        return self._query_user_stats_view_response_body
