esp-idf/components/wifi_provisioning/python/wifi_constants_pb2.py

208 lines
6.9 KiB
Python
Raw Normal View History

# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wifi_constants.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='wifi_constants.proto',
package='',
syntax='proto3',
serialized_pb=_b('\n\x14wifi_constants.proto\"v\n\x12WifiConnectedState\x12\x10\n\x08ip4_addr\x18\x01 \x01(\t\x12 \n\tauth_mode\x18\x02 \x01(\x0e\x32\r.WifiAuthMode\x12\x0c\n\x04ssid\x18\x03 \x01(\x0c\x12\r\n\x05\x62ssid\x18\x04 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x05 \x01(\x05*Y\n\x10WifiStationState\x12\r\n\tConnected\x10\x00\x12\x0e\n\nConnecting\x10\x01\x12\x10\n\x0c\x44isconnected\x10\x02\x12\x14\n\x10\x43onnectionFailed\x10\x03*=\n\x17WifiConnectFailedReason\x12\r\n\tAuthError\x10\x00\x12\x13\n\x0fNetworkNotFound\x10\x01*c\n\x0cWifiAuthMode\x12\x08\n\x04Open\x10\x00\x12\x07\n\x03WEP\x10\x01\x12\x0b\n\x07WPA_PSK\x10\x02\x12\x0c\n\x08WPA2_PSK\x10\x03\x12\x10\n\x0cWPA_WPA2_PSK\x10\x04\x12\x13\n\x0fWPA2_ENTERPRISE\x10\x05\x62\x06proto3')
)
_WIFISTATIONSTATE = _descriptor.EnumDescriptor(
name='WifiStationState',
full_name='WifiStationState',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='Connected', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='Connecting', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='Disconnected', index=2, number=2,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ConnectionFailed', index=3, number=3,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=144,
serialized_end=233,
)
_sym_db.RegisterEnumDescriptor(_WIFISTATIONSTATE)
WifiStationState = enum_type_wrapper.EnumTypeWrapper(_WIFISTATIONSTATE)
_WIFICONNECTFAILEDREASON = _descriptor.EnumDescriptor(
name='WifiConnectFailedReason',
full_name='WifiConnectFailedReason',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='AuthError', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='NetworkNotFound', index=1, number=1,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=235,
serialized_end=296,
)
_sym_db.RegisterEnumDescriptor(_WIFICONNECTFAILEDREASON)
WifiConnectFailedReason = enum_type_wrapper.EnumTypeWrapper(_WIFICONNECTFAILEDREASON)
_WIFIAUTHMODE = _descriptor.EnumDescriptor(
name='WifiAuthMode',
full_name='WifiAuthMode',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='Open', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WEP', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WPA_PSK', index=2, number=2,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WPA2_PSK', index=3, number=3,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WPA_WPA2_PSK', index=4, number=4,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WPA2_ENTERPRISE', index=5, number=5,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=298,
serialized_end=397,
)
_sym_db.RegisterEnumDescriptor(_WIFIAUTHMODE)
WifiAuthMode = enum_type_wrapper.EnumTypeWrapper(_WIFIAUTHMODE)
Connected = 0
Connecting = 1
Disconnected = 2
ConnectionFailed = 3
AuthError = 0
NetworkNotFound = 1
Open = 0
WEP = 1
WPA_PSK = 2
WPA2_PSK = 3
WPA_WPA2_PSK = 4
WPA2_ENTERPRISE = 5
_WIFICONNECTEDSTATE = _descriptor.Descriptor(
name='WifiConnectedState',
full_name='WifiConnectedState',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ip4_addr', full_name='WifiConnectedState.ip4_addr', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='auth_mode', full_name='WifiConnectedState.auth_mode', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ssid', full_name='WifiConnectedState.ssid', index=2,
number=3, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='bssid', full_name='WifiConnectedState.bssid', index=3,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='channel', full_name='WifiConnectedState.channel', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=24,
serialized_end=142,
)
_WIFICONNECTEDSTATE.fields_by_name['auth_mode'].enum_type = _WIFIAUTHMODE
DESCRIPTOR.message_types_by_name['WifiConnectedState'] = _WIFICONNECTEDSTATE
DESCRIPTOR.enum_types_by_name['WifiStationState'] = _WIFISTATIONSTATE
DESCRIPTOR.enum_types_by_name['WifiConnectFailedReason'] = _WIFICONNECTFAILEDREASON
DESCRIPTOR.enum_types_by_name['WifiAuthMode'] = _WIFIAUTHMODE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
WifiConnectedState = _reflection.GeneratedProtocolMessageType('WifiConnectedState', (_message.Message,), dict(
DESCRIPTOR = _WIFICONNECTEDSTATE,
__module__ = 'wifi_constants_pb2'
# @@protoc_insertion_point(class_scope:WifiConnectedState)
))
_sym_db.RegisterMessage(WifiConnectedState)
# @@protoc_insertion_point(module_scope)