mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
rename libp2p test dir and rebuild protobufs
This commit is contained in:
@ -1,132 +1,62 @@
|
||||
# @generated by generate_proto_mypy_stubs.py. Do not edit!
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
from google.protobuf.descriptor import (
|
||||
Descriptor as google___protobuf___descriptor___Descriptor,
|
||||
)
|
||||
|
||||
from google.protobuf.message import (
|
||||
Message as google___protobuf___message___Message,
|
||||
)
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
from typing import (
|
||||
Optional as typing___Optional,
|
||||
Text as typing___Text,
|
||||
)
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
from typing_extensions import (
|
||||
Literal as typing_extensions___Literal,
|
||||
)
|
||||
|
||||
class Propose(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
rand = ... # type: bytes
|
||||
public_key = ... # type: bytes
|
||||
exchanges = ... # type: typing___Text
|
||||
ciphers = ... # type: typing___Text
|
||||
hashes = ... # type: typing___Text
|
||||
@typing_extensions.final
|
||||
class Propose(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
RAND_FIELD_NUMBER: builtins.int
|
||||
PUBLIC_KEY_FIELD_NUMBER: builtins.int
|
||||
EXCHANGES_FIELD_NUMBER: builtins.int
|
||||
CIPHERS_FIELD_NUMBER: builtins.int
|
||||
HASHES_FIELD_NUMBER: builtins.int
|
||||
rand: builtins.bytes
|
||||
public_key: builtins.bytes
|
||||
exchanges: builtins.str
|
||||
ciphers: builtins.str
|
||||
hashes: builtins.str
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
rand: typing___Optional[bytes] = None,
|
||||
public_key: typing___Optional[bytes] = None,
|
||||
exchanges: typing___Optional[typing___Text] = None,
|
||||
ciphers: typing___Optional[typing___Text] = None,
|
||||
hashes: typing___Optional[typing___Text] = None,
|
||||
rand: builtins.bytes | None = ...,
|
||||
public_key: builtins.bytes | None = ...,
|
||||
exchanges: builtins.str | None = ...,
|
||||
ciphers: builtins.str | None = ...,
|
||||
hashes: builtins.str | None = ...,
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def FromString(cls, s: bytes) -> Propose: ...
|
||||
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
|
||||
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
|
||||
if sys.version_info >= (3,):
|
||||
def HasField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ciphers", "exchanges", "hashes", "public_key", "rand"
|
||||
],
|
||||
) -> bool: ...
|
||||
def ClearField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ciphers", "exchanges", "hashes", "public_key", "rand"
|
||||
],
|
||||
) -> None: ...
|
||||
else:
|
||||
def HasField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ciphers",
|
||||
b"ciphers",
|
||||
"exchanges",
|
||||
b"exchanges",
|
||||
"hashes",
|
||||
b"hashes",
|
||||
"public_key",
|
||||
b"public_key",
|
||||
"rand",
|
||||
b"rand",
|
||||
],
|
||||
) -> bool: ...
|
||||
def ClearField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ciphers",
|
||||
b"ciphers",
|
||||
"exchanges",
|
||||
b"exchanges",
|
||||
"hashes",
|
||||
b"hashes",
|
||||
"public_key",
|
||||
b"public_key",
|
||||
"rand",
|
||||
b"rand",
|
||||
],
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["ciphers", b"ciphers", "exchanges", b"exchanges", "hashes", b"hashes", "public_key", b"public_key", "rand", b"rand"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["ciphers", b"ciphers", "exchanges", b"exchanges", "hashes", b"hashes", "public_key", b"public_key", "rand", b"rand"]) -> None: ...
|
||||
|
||||
class Exchange(google___protobuf___message___Message):
|
||||
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
||||
ephemeral_public_key = ... # type: bytes
|
||||
signature = ... # type: bytes
|
||||
global___Propose = Propose
|
||||
|
||||
@typing_extensions.final
|
||||
class Exchange(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
EPHEMERAL_PUBLIC_KEY_FIELD_NUMBER: builtins.int
|
||||
SIGNATURE_FIELD_NUMBER: builtins.int
|
||||
ephemeral_public_key: builtins.bytes
|
||||
signature: builtins.bytes
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
ephemeral_public_key: typing___Optional[bytes] = None,
|
||||
signature: typing___Optional[bytes] = None,
|
||||
ephemeral_public_key: builtins.bytes | None = ...,
|
||||
signature: builtins.bytes | None = ...,
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def FromString(cls, s: bytes) -> Exchange: ...
|
||||
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
|
||||
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
|
||||
if sys.version_info >= (3,):
|
||||
def HasField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ephemeral_public_key", "signature"
|
||||
],
|
||||
) -> bool: ...
|
||||
def ClearField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ephemeral_public_key", "signature"
|
||||
],
|
||||
) -> None: ...
|
||||
else:
|
||||
def HasField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ephemeral_public_key",
|
||||
b"ephemeral_public_key",
|
||||
"signature",
|
||||
b"signature",
|
||||
],
|
||||
) -> bool: ...
|
||||
def ClearField(
|
||||
self,
|
||||
field_name: typing_extensions___Literal[
|
||||
"ephemeral_public_key",
|
||||
b"ephemeral_public_key",
|
||||
"signature",
|
||||
b"signature",
|
||||
],
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["ephemeral_public_key", b"ephemeral_public_key", "signature", b"signature"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["ephemeral_public_key", b"ephemeral_public_key", "signature", b"signature"]) -> None: ...
|
||||
|
||||
global___Exchange = Exchange
|
||||
|
||||
Reference in New Issue
Block a user