33isort:skip_file
44"""
55
6- import builtins
7- import collections .abc
8- import google .protobuf .descriptor
9- import google .protobuf .internal .containers
10- import google .protobuf .message
11- from . import channel_pb2
12- from . import config_pb2
13- import typing
14-
15- DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
16-
17- @typing .final
18- class ChannelSet (google .protobuf .message .Message ):
6+ from collections import abc as _abc
7+ from google .protobuf import descriptor as _descriptor
8+ from google .protobuf import message as _message
9+ from google .protobuf .internal import containers as _containers
10+ from meshtastic .aiomeshtastic .protobuf import channel_pb2 as _channel_pb2
11+ from meshtastic .aiomeshtastic .protobuf import config_pb2 as _config_pb2
12+ import builtins as _builtins
13+ import sys
14+ import typing as _typing
15+
16+ if sys .version_info >= (3 , 11 ):
17+ from typing import TypeAlias as _TypeAlias , Never as _Never
18+ else :
19+ from typing_extensions import TypeAlias as _TypeAlias , Never as _Never
20+
21+ DESCRIPTOR : _descriptor .FileDescriptor
22+
23+ @_typing .final
24+ class ChannelSet (_message .Message ):
1925 """
2026 This is the most compact possible representation for a set of channels.
2127 It includes only one PRIMARY channel (which must be first) and
@@ -24,29 +30,32 @@ class ChannelSet(google.protobuf.message.Message):
2430 This abstraction is used only on the the 'app side' of the world (ie python, javascript and android etc) to show a group of Channels as a (long) URL
2531 """
2632
27- DESCRIPTOR : google . protobuf . descriptor .Descriptor
33+ DESCRIPTOR : _descriptor .Descriptor
2834
29- SETTINGS_FIELD_NUMBER : builtins .int
30- LORA_CONFIG_FIELD_NUMBER : builtins .int
31- @property
32- def settings (self ) -> google . protobuf . internal . containers . RepeatedCompositeFieldContainer [channel_pb2 .ChannelSettings ]:
35+ SETTINGS_FIELD_NUMBER : _builtins .int
36+ LORA_CONFIG_FIELD_NUMBER : _builtins .int
37+ @_builtins . property
38+ def settings (self ) -> _containers . RepeatedCompositeFieldContainer [_channel_pb2 .ChannelSettings ]:
3339 """
3440 Channel list with settings
3541 """
3642
37- @property
38- def lora_config (self ) -> config_pb2 .Config .LoRaConfig :
43+ @_builtins . property
44+ def lora_config (self ) -> _config_pb2 .Config .LoRaConfig :
3945 """
4046 LoRa config
4147 """
4248
4349 def __init__ (
4450 self ,
4551 * ,
46- settings : collections . abc . Iterable [channel_pb2 .ChannelSettings ] | None = ...,
47- lora_config : config_pb2 .Config .LoRaConfig | None = ...,
52+ settings : _abc . Iterable [_channel_pb2 .ChannelSettings ] | None = ...,
53+ lora_config : _config_pb2 .Config .LoRaConfig | None = ...,
4854 ) -> None : ...
49- def HasField (self , field_name : typing .Literal ["lora_config" , b"lora_config" ]) -> builtins .bool : ...
50- def ClearField (self , field_name : typing .Literal ["lora_config" , b"lora_config" , "settings" , b"settings" ]) -> None : ...
55+ _HasFieldArgType : _TypeAlias = _typing .Literal ["lora_config" , b"lora_config" ] # noqa: Y015
56+ def HasField (self , field_name : _HasFieldArgType ) -> _builtins .bool : ...
57+ _ClearFieldArgType : _TypeAlias = _typing .Literal ["lora_config" , b"lora_config" , "settings" , b"settings" ] # noqa: Y015
58+ def ClearField (self , field_name : _ClearFieldArgType ) -> None : ...
59+ def WhichOneof (self , oneof_group : _Never ) -> None : ...
5160
52- global___ChannelSet = ChannelSet
61+ Global___ChannelSet : _TypeAlias = ChannelSet # noqa: Y015
0 commit comments