# Code generated by Lark OpenAPI.

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


class QueryMetricFieldRequestBody(object):
    _types = {
        "field_ids": List[int],
    }

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

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


class QueryMetricFieldRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._query_metric_field_request_body = QueryMetricFieldRequestBody()

    def field_ids(self, field_ids: List[int]) -> "QueryMetricFieldRequestBodyBuilder":
        self._query_metric_field_request_body.field_ids = field_ids
        return self

    def build(self) -> "QueryMetricFieldRequestBody":
        return self._query_metric_field_request_body
