# generated by datamodel-codegen:
#   filename:  Symbology/DownloadProductCatalogRequest.json

from __future__ import annotations
from architect_py.grpc.models.Symbology.DownloadProductCatalogResponse import (
    DownloadProductCatalogResponse,
)

from msgspec import Struct


class DownloadProductCatalogRequest(Struct, omit_defaults=True):
    exchange: str

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        exchange: str,
    ):
        return cls(
            exchange,
        )

    def __str__(self) -> str:
        return f"DownloadProductCatalogRequest(exchange={self.exchange})"

    @staticmethod
    def get_response_type():
        return DownloadProductCatalogResponse

    @staticmethod
    def get_unannotated_response_type():
        return DownloadProductCatalogResponse

    @staticmethod
    def get_route() -> str:
        return "/json.architect.Symbology/DownloadProductCatalog"

    @staticmethod
    def get_rpc_method():
        return "unary"
