def METHOD_NAME(
    text: str | bytes,
    message: _M,
    allow_unknown_extension: bool = ...,
    allow_field_number: bool = ...,
    descriptor_pool: DescriptorPool | None = ...,
    allow_unknown_field: bool = ...,
) -> _M: ...