|
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, Optional as _Optional |
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +""" |
5 | 5 |
|
6 |
| -DESCRIPTOR: _descriptor.FileDescriptor |
| 6 | +import builtins |
| 7 | +import collections.abc |
| 8 | +import google.protobuf.descriptor |
| 9 | +import google.protobuf.internal.containers |
| 10 | +import google.protobuf.message |
| 11 | +import typing |
7 | 12 |
|
8 |
| -class Identify(_message.Message): |
9 |
| - __slots__ = ("protocol_version", "agent_version", "public_key", "listen_addrs", "observed_addr", "protocols", "signedPeerRecord") |
10 |
| - PROTOCOL_VERSION_FIELD_NUMBER: _ClassVar[int] |
11 |
| - AGENT_VERSION_FIELD_NUMBER: _ClassVar[int] |
12 |
| - PUBLIC_KEY_FIELD_NUMBER: _ClassVar[int] |
13 |
| - LISTEN_ADDRS_FIELD_NUMBER: _ClassVar[int] |
14 |
| - OBSERVED_ADDR_FIELD_NUMBER: _ClassVar[int] |
15 |
| - PROTOCOLS_FIELD_NUMBER: _ClassVar[int] |
16 |
| - SIGNEDPEERRECORD_FIELD_NUMBER: _ClassVar[int] |
17 |
| - protocol_version: str |
18 |
| - agent_version: str |
19 |
| - public_key: bytes |
20 |
| - listen_addrs: _containers.RepeatedScalarFieldContainer[bytes] |
21 |
| - observed_addr: bytes |
22 |
| - protocols: _containers.RepeatedScalarFieldContainer[str] |
23 |
| - signedPeerRecord: bytes |
24 |
| - def __init__(self, protocol_version: _Optional[str] = ..., agent_version: _Optional[str] = ..., public_key: _Optional[bytes] = ..., listen_addrs: _Optional[_Iterable[bytes]] = ..., observed_addr: _Optional[bytes] = ..., protocols: _Optional[_Iterable[str]] = ..., signedPeerRecord: _Optional[bytes] = ...) -> None: ... |
| 13 | +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
| 14 | + |
| 15 | +@typing.final |
| 16 | +class Identify(google.protobuf.message.Message): |
| 17 | + DESCRIPTOR: google.protobuf.descriptor.Descriptor |
| 18 | + |
| 19 | + PROTOCOL_VERSION_FIELD_NUMBER: builtins.int |
| 20 | + AGENT_VERSION_FIELD_NUMBER: builtins.int |
| 21 | + PUBLIC_KEY_FIELD_NUMBER: builtins.int |
| 22 | + LISTEN_ADDRS_FIELD_NUMBER: builtins.int |
| 23 | + OBSERVED_ADDR_FIELD_NUMBER: builtins.int |
| 24 | + PROTOCOLS_FIELD_NUMBER: builtins.int |
| 25 | + SIGNEDPEERRECORD_FIELD_NUMBER: builtins.int |
| 26 | + protocol_version: builtins.str |
| 27 | + agent_version: builtins.str |
| 28 | + public_key: builtins.bytes |
| 29 | + observed_addr: builtins.bytes |
| 30 | + signedPeerRecord: builtins.bytes |
| 31 | + @property |
| 32 | + def listen_addrs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... |
| 33 | + @property |
| 34 | + def protocols(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... |
| 35 | + def __init__( |
| 36 | + self, |
| 37 | + *, |
| 38 | + protocol_version: builtins.str | None = ..., |
| 39 | + agent_version: builtins.str | None = ..., |
| 40 | + public_key: builtins.bytes | None = ..., |
| 41 | + listen_addrs: collections.abc.Iterable[builtins.bytes] | None = ..., |
| 42 | + observed_addr: builtins.bytes | None = ..., |
| 43 | + protocols: collections.abc.Iterable[builtins.str] | None = ..., |
| 44 | + signedPeerRecord: builtins.bytes | None = ..., |
| 45 | + ) -> None: ... |
| 46 | + def HasField(self, field_name: typing.Literal["agent_version", b"agent_version", "observed_addr", b"observed_addr", "protocol_version", b"protocol_version", "public_key", b"public_key", "signedPeerRecord", b"signedPeerRecord"]) -> builtins.bool: ... |
| 47 | + def ClearField(self, field_name: typing.Literal["agent_version", b"agent_version", "listen_addrs", b"listen_addrs", "observed_addr", b"observed_addr", "protocol_version", b"protocol_version", "protocols", b"protocols", "public_key", b"public_key", "signedPeerRecord", b"signedPeerRecord"]) -> None: ... |
| 48 | + |
| 49 | +global___Identify = Identify |
0 commit comments