# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .user_stats_field import UserStatsField


class QueryUserStatsFieldResponseBody(object):
    _types = {
        "user_stats_field": UserStatsField,
    }

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

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


class QueryUserStatsFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_user_stats_field_response_body = QueryUserStatsFieldResponseBody()

    def user_stats_field(self, user_stats_field: UserStatsField) -> "QueryUserStatsFieldResponseBodyBuilder":
        self._query_user_stats_field_response_body.user_stats_field = user_stats_field
        return self

    def build(self) -> "QueryUserStatsFieldResponseBody":
        return self._query_user_stats_field_response_body
