mirror of
https://github.com/meshtastic/python.git
synced 2026-09-21 19:25:39 -04:00
107 lines
4.4 KiB
Python
Generated
107 lines
4.4 KiB
Python
Generated
"""
|
|
@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.message
|
|
import meshtastic.protobuf.deviceonly_pb2
|
|
import meshtastic.protobuf.telemetry_pb2
|
|
import typing
|
|
|
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
|
@typing.final
|
|
class NodeInfoLite_Legacy(google.protobuf.message.Message):
|
|
"""
|
|
Legacy NodeInfoLite descriptor used only to decode pre-split
|
|
/prefs/nodes.proto saves during the v24 -> v25 migration boot.
|
|
This preserves the original NodeInfoLite-compatible field numbers needed
|
|
to parse old wire bytes cleanly, including user (2), position (3),
|
|
device_metrics (6), and the legacy-only compatibility fields via_mqtt (8),
|
|
is_favorite (10), and is_ignored (11). Steady-state code does not use
|
|
this struct; it is dropped after migration completes. This file should be
|
|
removed once DEVICESTATE_MIN_VER advances past 24.
|
|
"""
|
|
|
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
|
|
NUM_FIELD_NUMBER: builtins.int
|
|
USER_FIELD_NUMBER: builtins.int
|
|
POSITION_FIELD_NUMBER: builtins.int
|
|
SNR_FIELD_NUMBER: builtins.int
|
|
LAST_HEARD_FIELD_NUMBER: builtins.int
|
|
DEVICE_METRICS_FIELD_NUMBER: builtins.int
|
|
CHANNEL_FIELD_NUMBER: builtins.int
|
|
VIA_MQTT_FIELD_NUMBER: builtins.int
|
|
HOPS_AWAY_FIELD_NUMBER: builtins.int
|
|
IS_FAVORITE_FIELD_NUMBER: builtins.int
|
|
IS_IGNORED_FIELD_NUMBER: builtins.int
|
|
NEXT_HOP_FIELD_NUMBER: builtins.int
|
|
BITFIELD_FIELD_NUMBER: builtins.int
|
|
num: builtins.int
|
|
snr: builtins.float
|
|
last_heard: builtins.int
|
|
channel: builtins.int
|
|
via_mqtt: builtins.bool
|
|
hops_away: builtins.int
|
|
is_favorite: builtins.bool
|
|
is_ignored: builtins.bool
|
|
next_hop: builtins.int
|
|
bitfield: builtins.int
|
|
@property
|
|
def user(self) -> meshtastic.protobuf.deviceonly_pb2.UserLite: ...
|
|
@property
|
|
def position(self) -> meshtastic.protobuf.deviceonly_pb2.PositionLite: ...
|
|
@property
|
|
def device_metrics(self) -> meshtastic.protobuf.telemetry_pb2.DeviceMetrics: ...
|
|
def __init__(
|
|
self,
|
|
*,
|
|
num: builtins.int = ...,
|
|
user: meshtastic.protobuf.deviceonly_pb2.UserLite | None = ...,
|
|
position: meshtastic.protobuf.deviceonly_pb2.PositionLite | None = ...,
|
|
snr: builtins.float = ...,
|
|
last_heard: builtins.int = ...,
|
|
device_metrics: meshtastic.protobuf.telemetry_pb2.DeviceMetrics | None = ...,
|
|
channel: builtins.int = ...,
|
|
via_mqtt: builtins.bool = ...,
|
|
hops_away: builtins.int | None = ...,
|
|
is_favorite: builtins.bool = ...,
|
|
is_ignored: builtins.bool = ...,
|
|
next_hop: builtins.int = ...,
|
|
bitfield: builtins.int = ...,
|
|
) -> None: ...
|
|
def HasField(self, field_name: typing.Literal["_hops_away", b"_hops_away", "device_metrics", b"device_metrics", "hops_away", b"hops_away", "position", b"position", "user", b"user"]) -> builtins.bool: ...
|
|
def ClearField(self, field_name: typing.Literal["_hops_away", b"_hops_away", "bitfield", b"bitfield", "channel", b"channel", "device_metrics", b"device_metrics", "hops_away", b"hops_away", "is_favorite", b"is_favorite", "is_ignored", b"is_ignored", "last_heard", b"last_heard", "next_hop", b"next_hop", "num", b"num", "position", b"position", "snr", b"snr", "user", b"user", "via_mqtt", b"via_mqtt"]) -> None: ...
|
|
def WhichOneof(self, oneof_group: typing.Literal["_hops_away", b"_hops_away"]) -> typing.Literal["hops_away"] | None: ...
|
|
|
|
global___NodeInfoLite_Legacy = NodeInfoLite_Legacy
|
|
|
|
@typing.final
|
|
class NodeDatabase_Legacy(google.protobuf.message.Message):
|
|
"""
|
|
Legacy NodeDatabase shape: one repeated array of fat NodeInfoLite_Legacy
|
|
with no satellite position/telemetry arrays.
|
|
"""
|
|
|
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
|
|
VERSION_FIELD_NUMBER: builtins.int
|
|
NODES_FIELD_NUMBER: builtins.int
|
|
version: builtins.int
|
|
@property
|
|
def nodes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NodeInfoLite_Legacy]: ...
|
|
def __init__(
|
|
self,
|
|
*,
|
|
version: builtins.int = ...,
|
|
nodes: collections.abc.Iterable[global___NodeInfoLite_Legacy] | None = ...,
|
|
) -> None: ...
|
|
def ClearField(self, field_name: typing.Literal["nodes", b"nodes", "version", b"version"]) -> None: ...
|
|
|
|
global___NodeDatabase_Legacy = NodeDatabase_Legacy
|