1# Generated by the protocol buffer compiler.  DO NOT EDIT!
2# source: wifi_config.proto
3
4import sys
5
6_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
7from google.protobuf import descriptor as _descriptor
8from google.protobuf import descriptor_pb2
9from google.protobuf import message as _message
10from google.protobuf import reflection as _reflection
11from google.protobuf import symbol_database as _symbol_database
12from google.protobuf.internal import enum_type_wrapper
13
14# @@protoc_insertion_point(imports)
15
16_sym_db = _symbol_database.Default()
17
18
19import constants_pb2 as constants__pb2
20import wifi_constants_pb2 as wifi__constants__pb2
21
22DESCRIPTOR = _descriptor.FileDescriptor(
23  name='wifi_config.proto',
24  package='',
25  syntax='proto3',
26  serialized_pb=_b('\n\x11wifi_config.proto\x1a\x0f\x63onstants.proto\x1a\x14wifi_constants.proto\"\x0e\n\x0c\x43mdGetStatus\"\xb2\x01\n\rRespGetStatus\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\x12$\n\tsta_state\x18\x02 \x01(\x0e\x32\x11.WifiStationState\x12/\n\x0b\x66\x61il_reason\x18\n \x01(\x0e\x32\x18.WifiConnectFailedReasonH\x00\x12(\n\tconnected\x18\x0b \x01(\x0b\x32\x13.WifiConnectedStateH\x00\x42\x07\n\x05state\"P\n\x0c\x43mdSetConfig\x12\x0c\n\x04ssid\x18\x01 \x01(\x0c\x12\x12\n\npassphrase\x18\x02 \x01(\x0c\x12\r\n\x05\x62ssid\x18\x03 \x01(\x0c\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\x05\"(\n\rRespSetConfig\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\"\x10\n\x0e\x43mdApplyConfig\"*\n\x0fRespApplyConfig\x12\x17\n\x06status\x18\x01 \x01(\x0e\x32\x07.Status\"\xc3\x02\n\x11WiFiConfigPayload\x12\x1f\n\x03msg\x18\x01 \x01(\x0e\x32\x12.WiFiConfigMsgType\x12\'\n\x0e\x63md_get_status\x18\n \x01(\x0b\x32\r.CmdGetStatusH\x00\x12)\n\x0fresp_get_status\x18\x0b \x01(\x0b\x32\x0e.RespGetStatusH\x00\x12\'\n\x0e\x63md_set_config\x18\x0c \x01(\x0b\x32\r.CmdSetConfigH\x00\x12)\n\x0fresp_set_config\x18\r \x01(\x0b\x32\x0e.RespSetConfigH\x00\x12+\n\x10\x63md_apply_config\x18\x0e \x01(\x0b\x32\x0f.CmdApplyConfigH\x00\x12-\n\x11resp_apply_config\x18\x0f \x01(\x0b\x32\x10.RespApplyConfigH\x00\x42\t\n\x07payload*\x9e\x01\n\x11WiFiConfigMsgType\x12\x14\n\x10TypeCmdGetStatus\x10\x00\x12\x15\n\x11TypeRespGetStatus\x10\x01\x12\x14\n\x10TypeCmdSetConfig\x10\x02\x12\x15\n\x11TypeRespSetConfig\x10\x03\x12\x16\n\x12TypeCmdApplyConfig\x10\x04\x12\x17\n\x13TypeRespApplyConfig\x10\x05\x62\x06proto3')
27  ,
28  dependencies=[constants__pb2.DESCRIPTOR,wifi__constants__pb2.DESCRIPTOR,])
29
30_WIFICONFIGMSGTYPE = _descriptor.EnumDescriptor(
31  name='WiFiConfigMsgType',
32  full_name='WiFiConfigMsgType',
33  filename=None,
34  file=DESCRIPTOR,
35  values=[
36    _descriptor.EnumValueDescriptor(
37      name='TypeCmdGetStatus', index=0, number=0,
38      options=None,
39      type=None),
40    _descriptor.EnumValueDescriptor(
41      name='TypeRespGetStatus', index=1, number=1,
42      options=None,
43      type=None),
44    _descriptor.EnumValueDescriptor(
45      name='TypeCmdSetConfig', index=2, number=2,
46      options=None,
47      type=None),
48    _descriptor.EnumValueDescriptor(
49      name='TypeRespSetConfig', index=3, number=3,
50      options=None,
51      type=None),
52    _descriptor.EnumValueDescriptor(
53      name='TypeCmdApplyConfig', index=4, number=4,
54      options=None,
55      type=None),
56    _descriptor.EnumValueDescriptor(
57      name='TypeRespApplyConfig', index=5, number=5,
58      options=None,
59      type=None),
60  ],
61  containing_type=None,
62  options=None,
63  serialized_start=770,
64  serialized_end=928,
65)
66_sym_db.RegisterEnumDescriptor(_WIFICONFIGMSGTYPE)
67
68WiFiConfigMsgType = enum_type_wrapper.EnumTypeWrapper(_WIFICONFIGMSGTYPE)
69TypeCmdGetStatus = 0
70TypeRespGetStatus = 1
71TypeCmdSetConfig = 2
72TypeRespSetConfig = 3
73TypeCmdApplyConfig = 4
74TypeRespApplyConfig = 5
75
76
77
78_CMDGETSTATUS = _descriptor.Descriptor(
79  name='CmdGetStatus',
80  full_name='CmdGetStatus',
81  filename=None,
82  file=DESCRIPTOR,
83  containing_type=None,
84  fields=[
85  ],
86  extensions=[
87  ],
88  nested_types=[],
89  enum_types=[
90  ],
91  options=None,
92  is_extendable=False,
93  syntax='proto3',
94  extension_ranges=[],
95  oneofs=[
96  ],
97  serialized_start=60,
98  serialized_end=74,
99)
100
101
102_RESPGETSTATUS = _descriptor.Descriptor(
103  name='RespGetStatus',
104  full_name='RespGetStatus',
105  filename=None,
106  file=DESCRIPTOR,
107  containing_type=None,
108  fields=[
109    _descriptor.FieldDescriptor(
110      name='status', full_name='RespGetStatus.status', index=0,
111      number=1, type=14, cpp_type=8, label=1,
112      has_default_value=False, default_value=0,
113      message_type=None, enum_type=None, containing_type=None,
114      is_extension=False, extension_scope=None,
115      options=None, file=DESCRIPTOR),
116    _descriptor.FieldDescriptor(
117      name='sta_state', full_name='RespGetStatus.sta_state', index=1,
118      number=2, type=14, cpp_type=8, label=1,
119      has_default_value=False, default_value=0,
120      message_type=None, enum_type=None, containing_type=None,
121      is_extension=False, extension_scope=None,
122      options=None, file=DESCRIPTOR),
123    _descriptor.FieldDescriptor(
124      name='fail_reason', full_name='RespGetStatus.fail_reason', index=2,
125      number=10, type=14, cpp_type=8, label=1,
126      has_default_value=False, default_value=0,
127      message_type=None, enum_type=None, containing_type=None,
128      is_extension=False, extension_scope=None,
129      options=None, file=DESCRIPTOR),
130    _descriptor.FieldDescriptor(
131      name='connected', full_name='RespGetStatus.connected', index=3,
132      number=11, type=11, cpp_type=10, label=1,
133      has_default_value=False, default_value=None,
134      message_type=None, enum_type=None, containing_type=None,
135      is_extension=False, extension_scope=None,
136      options=None, file=DESCRIPTOR),
137  ],
138  extensions=[
139  ],
140  nested_types=[],
141  enum_types=[
142  ],
143  options=None,
144  is_extendable=False,
145  syntax='proto3',
146  extension_ranges=[],
147  oneofs=[
148    _descriptor.OneofDescriptor(
149      name='state', full_name='RespGetStatus.state',
150      index=0, containing_type=None, fields=[]),
151  ],
152  serialized_start=77,
153  serialized_end=255,
154)
155
156
157_CMDSETCONFIG = _descriptor.Descriptor(
158  name='CmdSetConfig',
159  full_name='CmdSetConfig',
160  filename=None,
161  file=DESCRIPTOR,
162  containing_type=None,
163  fields=[
164    _descriptor.FieldDescriptor(
165      name='ssid', full_name='CmdSetConfig.ssid', index=0,
166      number=1, type=12, cpp_type=9, label=1,
167      has_default_value=False, default_value=_b(''),
168      message_type=None, enum_type=None, containing_type=None,
169      is_extension=False, extension_scope=None,
170      options=None, file=DESCRIPTOR),
171    _descriptor.FieldDescriptor(
172      name='passphrase', full_name='CmdSetConfig.passphrase', index=1,
173      number=2, type=12, cpp_type=9, label=1,
174      has_default_value=False, default_value=_b(''),
175      message_type=None, enum_type=None, containing_type=None,
176      is_extension=False, extension_scope=None,
177      options=None, file=DESCRIPTOR),
178    _descriptor.FieldDescriptor(
179      name='bssid', full_name='CmdSetConfig.bssid', index=2,
180      number=3, type=12, cpp_type=9, label=1,
181      has_default_value=False, default_value=_b(''),
182      message_type=None, enum_type=None, containing_type=None,
183      is_extension=False, extension_scope=None,
184      options=None, file=DESCRIPTOR),
185    _descriptor.FieldDescriptor(
186      name='channel', full_name='CmdSetConfig.channel', index=3,
187      number=4, type=5, cpp_type=1, label=1,
188      has_default_value=False, default_value=0,
189      message_type=None, enum_type=None, containing_type=None,
190      is_extension=False, extension_scope=None,
191      options=None, file=DESCRIPTOR),
192  ],
193  extensions=[
194  ],
195  nested_types=[],
196  enum_types=[
197  ],
198  options=None,
199  is_extendable=False,
200  syntax='proto3',
201  extension_ranges=[],
202  oneofs=[
203  ],
204  serialized_start=257,
205  serialized_end=337,
206)
207
208
209_RESPSETCONFIG = _descriptor.Descriptor(
210  name='RespSetConfig',
211  full_name='RespSetConfig',
212  filename=None,
213  file=DESCRIPTOR,
214  containing_type=None,
215  fields=[
216    _descriptor.FieldDescriptor(
217      name='status', full_name='RespSetConfig.status', index=0,
218      number=1, type=14, cpp_type=8, label=1,
219      has_default_value=False, default_value=0,
220      message_type=None, enum_type=None, containing_type=None,
221      is_extension=False, extension_scope=None,
222      options=None, file=DESCRIPTOR),
223  ],
224  extensions=[
225  ],
226  nested_types=[],
227  enum_types=[
228  ],
229  options=None,
230  is_extendable=False,
231  syntax='proto3',
232  extension_ranges=[],
233  oneofs=[
234  ],
235  serialized_start=339,
236  serialized_end=379,
237)
238
239
240_CMDAPPLYCONFIG = _descriptor.Descriptor(
241  name='CmdApplyConfig',
242  full_name='CmdApplyConfig',
243  filename=None,
244  file=DESCRIPTOR,
245  containing_type=None,
246  fields=[
247  ],
248  extensions=[
249  ],
250  nested_types=[],
251  enum_types=[
252  ],
253  options=None,
254  is_extendable=False,
255  syntax='proto3',
256  extension_ranges=[],
257  oneofs=[
258  ],
259  serialized_start=381,
260  serialized_end=397,
261)
262
263
264_RESPAPPLYCONFIG = _descriptor.Descriptor(
265  name='RespApplyConfig',
266  full_name='RespApplyConfig',
267  filename=None,
268  file=DESCRIPTOR,
269  containing_type=None,
270  fields=[
271    _descriptor.FieldDescriptor(
272      name='status', full_name='RespApplyConfig.status', index=0,
273      number=1, type=14, cpp_type=8, label=1,
274      has_default_value=False, default_value=0,
275      message_type=None, enum_type=None, containing_type=None,
276      is_extension=False, extension_scope=None,
277      options=None, file=DESCRIPTOR),
278  ],
279  extensions=[
280  ],
281  nested_types=[],
282  enum_types=[
283  ],
284  options=None,
285  is_extendable=False,
286  syntax='proto3',
287  extension_ranges=[],
288  oneofs=[
289  ],
290  serialized_start=399,
291  serialized_end=441,
292)
293
294
295_WIFICONFIGPAYLOAD = _descriptor.Descriptor(
296  name='WiFiConfigPayload',
297  full_name='WiFiConfigPayload',
298  filename=None,
299  file=DESCRIPTOR,
300  containing_type=None,
301  fields=[
302    _descriptor.FieldDescriptor(
303      name='msg', full_name='WiFiConfigPayload.msg', index=0,
304      number=1, type=14, cpp_type=8, label=1,
305      has_default_value=False, default_value=0,
306      message_type=None, enum_type=None, containing_type=None,
307      is_extension=False, extension_scope=None,
308      options=None, file=DESCRIPTOR),
309    _descriptor.FieldDescriptor(
310      name='cmd_get_status', full_name='WiFiConfigPayload.cmd_get_status', index=1,
311      number=10, type=11, cpp_type=10, label=1,
312      has_default_value=False, default_value=None,
313      message_type=None, enum_type=None, containing_type=None,
314      is_extension=False, extension_scope=None,
315      options=None, file=DESCRIPTOR),
316    _descriptor.FieldDescriptor(
317      name='resp_get_status', full_name='WiFiConfigPayload.resp_get_status', index=2,
318      number=11, type=11, cpp_type=10, label=1,
319      has_default_value=False, default_value=None,
320      message_type=None, enum_type=None, containing_type=None,
321      is_extension=False, extension_scope=None,
322      options=None, file=DESCRIPTOR),
323    _descriptor.FieldDescriptor(
324      name='cmd_set_config', full_name='WiFiConfigPayload.cmd_set_config', index=3,
325      number=12, type=11, cpp_type=10, label=1,
326      has_default_value=False, default_value=None,
327      message_type=None, enum_type=None, containing_type=None,
328      is_extension=False, extension_scope=None,
329      options=None, file=DESCRIPTOR),
330    _descriptor.FieldDescriptor(
331      name='resp_set_config', full_name='WiFiConfigPayload.resp_set_config', index=4,
332      number=13, type=11, cpp_type=10, label=1,
333      has_default_value=False, default_value=None,
334      message_type=None, enum_type=None, containing_type=None,
335      is_extension=False, extension_scope=None,
336      options=None, file=DESCRIPTOR),
337    _descriptor.FieldDescriptor(
338      name='cmd_apply_config', full_name='WiFiConfigPayload.cmd_apply_config', index=5,
339      number=14, type=11, cpp_type=10, label=1,
340      has_default_value=False, default_value=None,
341      message_type=None, enum_type=None, containing_type=None,
342      is_extension=False, extension_scope=None,
343      options=None, file=DESCRIPTOR),
344    _descriptor.FieldDescriptor(
345      name='resp_apply_config', full_name='WiFiConfigPayload.resp_apply_config', index=6,
346      number=15, type=11, cpp_type=10, label=1,
347      has_default_value=False, default_value=None,
348      message_type=None, enum_type=None, containing_type=None,
349      is_extension=False, extension_scope=None,
350      options=None, file=DESCRIPTOR),
351  ],
352  extensions=[
353  ],
354  nested_types=[],
355  enum_types=[
356  ],
357  options=None,
358  is_extendable=False,
359  syntax='proto3',
360  extension_ranges=[],
361  oneofs=[
362    _descriptor.OneofDescriptor(
363      name='payload', full_name='WiFiConfigPayload.payload',
364      index=0, containing_type=None, fields=[]),
365  ],
366  serialized_start=444,
367  serialized_end=767,
368)
369
370_RESPGETSTATUS.fields_by_name['status'].enum_type = constants__pb2._STATUS
371_RESPGETSTATUS.fields_by_name['sta_state'].enum_type = wifi__constants__pb2._WIFISTATIONSTATE
372_RESPGETSTATUS.fields_by_name['fail_reason'].enum_type = wifi__constants__pb2._WIFICONNECTFAILEDREASON
373_RESPGETSTATUS.fields_by_name['connected'].message_type = wifi__constants__pb2._WIFICONNECTEDSTATE
374_RESPGETSTATUS.oneofs_by_name['state'].fields.append(
375  _RESPGETSTATUS.fields_by_name['fail_reason'])
376_RESPGETSTATUS.fields_by_name['fail_reason'].containing_oneof = _RESPGETSTATUS.oneofs_by_name['state']
377_RESPGETSTATUS.oneofs_by_name['state'].fields.append(
378  _RESPGETSTATUS.fields_by_name['connected'])
379_RESPGETSTATUS.fields_by_name['connected'].containing_oneof = _RESPGETSTATUS.oneofs_by_name['state']
380_RESPSETCONFIG.fields_by_name['status'].enum_type = constants__pb2._STATUS
381_RESPAPPLYCONFIG.fields_by_name['status'].enum_type = constants__pb2._STATUS
382_WIFICONFIGPAYLOAD.fields_by_name['msg'].enum_type = _WIFICONFIGMSGTYPE
383_WIFICONFIGPAYLOAD.fields_by_name['cmd_get_status'].message_type = _CMDGETSTATUS
384_WIFICONFIGPAYLOAD.fields_by_name['resp_get_status'].message_type = _RESPGETSTATUS
385_WIFICONFIGPAYLOAD.fields_by_name['cmd_set_config'].message_type = _CMDSETCONFIG
386_WIFICONFIGPAYLOAD.fields_by_name['resp_set_config'].message_type = _RESPSETCONFIG
387_WIFICONFIGPAYLOAD.fields_by_name['cmd_apply_config'].message_type = _CMDAPPLYCONFIG
388_WIFICONFIGPAYLOAD.fields_by_name['resp_apply_config'].message_type = _RESPAPPLYCONFIG
389_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
390  _WIFICONFIGPAYLOAD.fields_by_name['cmd_get_status'])
391_WIFICONFIGPAYLOAD.fields_by_name['cmd_get_status'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
392_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
393  _WIFICONFIGPAYLOAD.fields_by_name['resp_get_status'])
394_WIFICONFIGPAYLOAD.fields_by_name['resp_get_status'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
395_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
396  _WIFICONFIGPAYLOAD.fields_by_name['cmd_set_config'])
397_WIFICONFIGPAYLOAD.fields_by_name['cmd_set_config'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
398_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
399  _WIFICONFIGPAYLOAD.fields_by_name['resp_set_config'])
400_WIFICONFIGPAYLOAD.fields_by_name['resp_set_config'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
401_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
402  _WIFICONFIGPAYLOAD.fields_by_name['cmd_apply_config'])
403_WIFICONFIGPAYLOAD.fields_by_name['cmd_apply_config'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
404_WIFICONFIGPAYLOAD.oneofs_by_name['payload'].fields.append(
405  _WIFICONFIGPAYLOAD.fields_by_name['resp_apply_config'])
406_WIFICONFIGPAYLOAD.fields_by_name['resp_apply_config'].containing_oneof = _WIFICONFIGPAYLOAD.oneofs_by_name['payload']
407DESCRIPTOR.message_types_by_name['CmdGetStatus'] = _CMDGETSTATUS
408DESCRIPTOR.message_types_by_name['RespGetStatus'] = _RESPGETSTATUS
409DESCRIPTOR.message_types_by_name['CmdSetConfig'] = _CMDSETCONFIG
410DESCRIPTOR.message_types_by_name['RespSetConfig'] = _RESPSETCONFIG
411DESCRIPTOR.message_types_by_name['CmdApplyConfig'] = _CMDAPPLYCONFIG
412DESCRIPTOR.message_types_by_name['RespApplyConfig'] = _RESPAPPLYCONFIG
413DESCRIPTOR.message_types_by_name['WiFiConfigPayload'] = _WIFICONFIGPAYLOAD
414DESCRIPTOR.enum_types_by_name['WiFiConfigMsgType'] = _WIFICONFIGMSGTYPE
415_sym_db.RegisterFileDescriptor(DESCRIPTOR)
416
417CmdGetStatus = _reflection.GeneratedProtocolMessageType('CmdGetStatus', (_message.Message,), dict(
418  DESCRIPTOR = _CMDGETSTATUS,
419  __module__ = 'wifi_config_pb2'
420  # @@protoc_insertion_point(class_scope:CmdGetStatus)
421  ))
422_sym_db.RegisterMessage(CmdGetStatus)
423
424RespGetStatus = _reflection.GeneratedProtocolMessageType('RespGetStatus', (_message.Message,), dict(
425  DESCRIPTOR = _RESPGETSTATUS,
426  __module__ = 'wifi_config_pb2'
427  # @@protoc_insertion_point(class_scope:RespGetStatus)
428  ))
429_sym_db.RegisterMessage(RespGetStatus)
430
431CmdSetConfig = _reflection.GeneratedProtocolMessageType('CmdSetConfig', (_message.Message,), dict(
432  DESCRIPTOR = _CMDSETCONFIG,
433  __module__ = 'wifi_config_pb2'
434  # @@protoc_insertion_point(class_scope:CmdSetConfig)
435  ))
436_sym_db.RegisterMessage(CmdSetConfig)
437
438RespSetConfig = _reflection.GeneratedProtocolMessageType('RespSetConfig', (_message.Message,), dict(
439  DESCRIPTOR = _RESPSETCONFIG,
440  __module__ = 'wifi_config_pb2'
441  # @@protoc_insertion_point(class_scope:RespSetConfig)
442  ))
443_sym_db.RegisterMessage(RespSetConfig)
444
445CmdApplyConfig = _reflection.GeneratedProtocolMessageType('CmdApplyConfig', (_message.Message,), dict(
446  DESCRIPTOR = _CMDAPPLYCONFIG,
447  __module__ = 'wifi_config_pb2'
448  # @@protoc_insertion_point(class_scope:CmdApplyConfig)
449  ))
450_sym_db.RegisterMessage(CmdApplyConfig)
451
452RespApplyConfig = _reflection.GeneratedProtocolMessageType('RespApplyConfig', (_message.Message,), dict(
453  DESCRIPTOR = _RESPAPPLYCONFIG,
454  __module__ = 'wifi_config_pb2'
455  # @@protoc_insertion_point(class_scope:RespApplyConfig)
456  ))
457_sym_db.RegisterMessage(RespApplyConfig)
458
459WiFiConfigPayload = _reflection.GeneratedProtocolMessageType('WiFiConfigPayload', (_message.Message,), dict(
460  DESCRIPTOR = _WIFICONFIGPAYLOAD,
461  __module__ = 'wifi_config_pb2'
462  # @@protoc_insertion_point(class_scope:WiFiConfigPayload)
463  ))
464_sym_db.RegisterMessage(WiFiConfigPayload)
465
466
467# @@protoc_insertion_point(module_scope)
468