# generated by datamodel-codegen:
#   filename:  Boss/StatementUrlRequest.json

from __future__ import annotations
from architect_py.grpc.models.Boss.StatementUrlResponse import StatementUrlResponse

from msgspec import Struct


class StatementUrlRequest(Struct, omit_defaults=True):
    statement_uuid: str

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

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

    @staticmethod
    def get_response_type():
        return StatementUrlResponse

    @staticmethod
    def get_unannotated_response_type():
        return StatementUrlResponse

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

    @staticmethod
    def get_rpc_method():
        return "unary"
