# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class QueryUserStatsViewRequestBody(object):
    _types = {
        "locale": str,
        "stats_type": str,
        "user_id": str,
    }

    def __init__(self, d=None):
        self.locale: Optional[str] = None
        self.stats_type: Optional[str] = None
        self.user_id: Optional[str] = None
        init(self, d, self._types)

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


class QueryUserStatsViewRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._query_user_stats_view_request_body = QueryUserStatsViewRequestBody()

    def locale(self, locale: str) -> "QueryUserStatsViewRequestBodyBuilder":
        self._query_user_stats_view_request_body.locale = locale
        return self

    def stats_type(self, stats_type: str) -> "QueryUserStatsViewRequestBodyBuilder":
        self._query_user_stats_view_request_body.stats_type = stats_type
        return self

    def user_id(self, user_id: str) -> "QueryUserStatsViewRequestBodyBuilder":
        self._query_user_stats_view_request_body.user_id = user_id
        return self

    def build(self) -> "QueryUserStatsViewRequestBody":
        return self._query_user_stats_view_request_body
