|
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +Edition version of proto2 file""" |
| 5 | + |
| 6 | +import builtins |
| 7 | +import google.protobuf.descriptor |
| 8 | +import google.protobuf.message |
| 9 | +import sys |
| 10 | +import typing |
| 11 | + |
| 12 | +if sys.version_info >= (3, 10): |
| 13 | + import typing as typing_extensions |
| 14 | +else: |
| 15 | + import typing_extensions |
| 16 | + |
| 17 | +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
| 18 | + |
| 19 | +@typing.final |
| 20 | +class Editions2024SubMessage(google.protobuf.message.Message): |
| 21 | + DESCRIPTOR: google.protobuf.descriptor.Descriptor |
| 22 | + |
| 23 | + THING_FIELD_NUMBER: builtins.int |
| 24 | + thing: builtins.str |
| 25 | + def __init__( |
| 26 | + self, |
| 27 | + *, |
| 28 | + thing: builtins.str | None = ..., |
| 29 | + ) -> None: ... |
| 30 | + def HasField(self, field_name: typing.Literal["thing", b"thing"]) -> builtins.bool: ... |
| 31 | + def ClearField(self, field_name: typing.Literal["thing", b"thing"]) -> None: ... |
| 32 | + |
| 33 | +Global___Editions2024SubMessage: typing_extensions.TypeAlias = Editions2024SubMessage |
| 34 | + |
| 35 | +@typing.final |
| 36 | +class Editions2024Test(google.protobuf.message.Message): |
| 37 | + DESCRIPTOR: google.protobuf.descriptor.Descriptor |
| 38 | + |
| 39 | + LEGACY_FIELD_NUMBER: builtins.int |
| 40 | + EXPLICIT_SINGULAR_FIELD_NUMBER: builtins.int |
| 41 | + MESSAGE_FIELD_FIELD_NUMBER: builtins.int |
| 42 | + IMPLICIT_SINGULAR_FIELD_NUMBER: builtins.int |
| 43 | + DEFAULT_SINGULAR_FIELD_NUMBER: builtins.int |
| 44 | + legacy: builtins.str |
| 45 | + """Expect to be always set""" |
| 46 | + explicit_singular: builtins.str |
| 47 | + """Expect HasField generated""" |
| 48 | + implicit_singular: builtins.str |
| 49 | + """Expect implicit field presence, no HasField generated""" |
| 50 | + default_singular: builtins.str |
| 51 | + """Not set, should default to EXPLICIT""" |
| 52 | + @property |
| 53 | + def message_field(self) -> Global___Editions2024SubMessage: |
| 54 | + """Expect HasField generated?""" |
| 55 | + |
| 56 | + def __init__( |
| 57 | + self, |
| 58 | + *, |
| 59 | + legacy: builtins.str | None = ..., |
| 60 | + explicit_singular: builtins.str | None = ..., |
| 61 | + message_field: Global___Editions2024SubMessage | None = ..., |
| 62 | + implicit_singular: builtins.str = ..., |
| 63 | + default_singular: builtins.str | None = ..., |
| 64 | + ) -> None: ... |
| 65 | + def HasField(self, field_name: typing.Literal["default_singular", b"default_singular", "explicit_singular", b"explicit_singular", "legacy", b"legacy", "message_field", b"message_field"]) -> builtins.bool: ... |
| 66 | + def ClearField(self, field_name: typing.Literal["default_singular", b"default_singular", "explicit_singular", b"explicit_singular", "implicit_singular", b"implicit_singular", "legacy", b"legacy", "message_field", b"message_field"]) -> None: ... |
| 67 | + |
| 68 | +Global___Editions2024Test: typing_extensions.TypeAlias = Editions2024Test |
0 commit comments