You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/python/src/trezorlib/messages/IdentityType.py

42 lines
1019 B

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class IdentityType(p.MessageType):
def __init__(
self,
*,
proto: str = None,
user: str = None,
host: str = None,
port: str = None,
path: str = None,
index: int = 0,
) -> None:
self.proto = proto
self.user = user
self.host = host
self.port = port
self.path = path
self.index = index
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('proto', p.UnicodeType, None),
2: ('user', p.UnicodeType, None),
3: ('host', p.UnicodeType, None),
4: ('port', p.UnicodeType, None),
5: ('path', p.UnicodeType, None),
6: ('index', p.UVarintType, 0), # default=0
}