mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
54 lines
1.8 KiB
Python
54 lines
1.8 KiB
Python
"""
|
|
@generated by mypy-protobuf. Do not edit manually!
|
|
isort:skip_file
|
|
"""
|
|
|
|
import builtins
|
|
import collections.abc
|
|
import google.protobuf.descriptor
|
|
import google.protobuf.internal.containers
|
|
import google.protobuf.internal.enum_type_wrapper
|
|
import google.protobuf.message
|
|
import sys
|
|
import typing
|
|
|
|
if sys.version_info >= (3, 10):
|
|
import typing as typing_extensions
|
|
else:
|
|
import typing_extensions
|
|
|
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
|
@typing.final
|
|
class HolePunch(google.protobuf.message.Message):
|
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
|
|
class _Type:
|
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
V: typing_extensions.TypeAlias = ValueType
|
|
|
|
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HolePunch._Type.ValueType], builtins.type):
|
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
CONNECT: HolePunch._Type.ValueType # 100
|
|
SYNC: HolePunch._Type.ValueType # 300
|
|
|
|
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
CONNECT: HolePunch.Type.ValueType # 100
|
|
SYNC: HolePunch.Type.ValueType # 300
|
|
|
|
TYPE_FIELD_NUMBER: builtins.int
|
|
OBSADDRS_FIELD_NUMBER: builtins.int
|
|
type: global___HolePunch.Type.ValueType
|
|
@property
|
|
def ObsAddrs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ...
|
|
def __init__(
|
|
self,
|
|
*,
|
|
type: global___HolePunch.Type.ValueType | None = ...,
|
|
ObsAddrs: collections.abc.Iterable[builtins.bytes] | None = ...,
|
|
) -> None: ...
|
|
def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ...
|
|
def ClearField(self, field_name: typing.Literal["ObsAddrs", b"ObsAddrs", "type", b"type"]) -> None: ...
|
|
|
|
global___HolePunch = HolePunch
|