|
| 1 | +from google.protobuf.internal import containers as _containers |
| 2 | +from google.protobuf import descriptor as _descriptor |
| 3 | +from google.protobuf import message as _message |
| 4 | +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union |
| 5 | + |
| 6 | +DESCRIPTOR: _descriptor.FileDescriptor |
| 7 | + |
| 8 | +class Constraint(_message.Message): |
| 9 | + __slots__ = ("id", "message", "expression") |
| 10 | + ID_FIELD_NUMBER: _ClassVar[int] |
| 11 | + MESSAGE_FIELD_NUMBER: _ClassVar[int] |
| 12 | + EXPRESSION_FIELD_NUMBER: _ClassVar[int] |
| 13 | + id: str |
| 14 | + message: str |
| 15 | + expression: str |
| 16 | + def __init__(self, id: _Optional[str] = ..., message: _Optional[str] = ..., expression: _Optional[str] = ...) -> None: ... |
| 17 | + |
| 18 | +class Violations(_message.Message): |
| 19 | + __slots__ = ("violations",) |
| 20 | + VIOLATIONS_FIELD_NUMBER: _ClassVar[int] |
| 21 | + violations: _containers.RepeatedCompositeFieldContainer[Violation] |
| 22 | + def __init__(self, violations: _Optional[_Iterable[_Union[Violation, _Mapping]]] = ...) -> None: ... |
| 23 | + |
| 24 | +class Violation(_message.Message): |
| 25 | + __slots__ = ("field_path", "constraint_id", "message", "for_key") |
| 26 | + FIELD_PATH_FIELD_NUMBER: _ClassVar[int] |
| 27 | + CONSTRAINT_ID_FIELD_NUMBER: _ClassVar[int] |
| 28 | + MESSAGE_FIELD_NUMBER: _ClassVar[int] |
| 29 | + FOR_KEY_FIELD_NUMBER: _ClassVar[int] |
| 30 | + field_path: str |
| 31 | + constraint_id: str |
| 32 | + message: str |
| 33 | + for_key: bool |
| 34 | + def __init__(self, field_path: _Optional[str] = ..., constraint_id: _Optional[str] = ..., message: _Optional[str] = ..., for_key: bool = ...) -> None: ... |
0 commit comments