Module grpc_argument_validator.validation_context
Expand source code
import typing
from dataclasses import dataclass
@dataclass
class ValidationContext:
"""
Contains extra information about the request while validating.
"""
is_streaming: bool = False
"""Whether the request is part of a streaming request."""
streaming_message_index: typing.Optional[int] = None
"""If the request is a streaming request, the index of the current streamed message"""
Classes
class ValidationContext (is_streaming: bool = False, streaming_message_index: Optional[int] = None)-
Contains extra information about the request while validating.
Expand source code
class ValidationContext: """ Contains extra information about the request while validating. """ is_streaming: bool = False """Whether the request is part of a streaming request.""" streaming_message_index: typing.Optional[int] = None """If the request is a streaming request, the index of the current streamed message"""Class variables
var is_streaming : bool-
Whether the request is part of a streaming request.
var streaming_message_index : Optional[int]-
If the request is a streaming request, the index of the current streamed message