# 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 .metric_field import MetricField


class QueryMetricFieldResponseBody(object):
    _types = {
        "items": List[MetricField],
    }

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

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


class QueryMetricFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_metric_field_response_body = QueryMetricFieldResponseBody()

    def items(self, items: List[MetricField]) -> "QueryMetricFieldResponseBodyBuilder":
        self._query_metric_field_response_body.items = items
        return self

    def build(self) -> "QueryMetricFieldResponseBody":
        return self._query_metric_field_response_body
