smartknob_pb2.py 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: smartknob.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import descriptor_pool as _descriptor_pool
  7. from google.protobuf import message as _message
  8. from google.protobuf import reflection as _reflection
  9. from google.protobuf import symbol_database as _symbol_database
  10. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. import nanopb_pb2 as nanopb__pb2
  13. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fsmartknob.proto\x12\x02PB\x1a\x0cnanopb.proto\"y\n\rFromSmartKnob\x12\x16\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\x07.PB.AckH\x00\x12\x16\n\x03log\x18\x02 \x01(\x0b\x32\x07.PB.LogH\x00\x12-\n\x0fsmartknob_state\x18\x03 \x01(\x0b\x32\x12.PB.SmartKnobStateH\x00\x42\t\n\x07payload\"\x14\n\x03\x41\x63k\x12\r\n\x05nonce\x18\x01 \x01(\r\"\x1a\n\x03Log\x12\x13\n\x03msg\x18\x01 \x01(\tB\x06\x92?\x03p\xff\x01\"j\n\x0eSmartKnobState\x12\x18\n\x10\x63urrent_position\x18\x01 \x01(\x05\x12\x19\n\x11sub_position_unit\x18\x02 \x01(\x02\x12#\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\x13.PB.SmartKnobConfig\"\x83\x01\n\x0bToSmartknob\x12\r\n\x05nonce\x18\x01 \x01(\r\x12)\n\rrequest_state\x18\x02 \x01(\x0b\x32\x10.PB.RequestStateH\x00\x12/\n\x10smartknob_config\x18\x03 \x01(\x0b\x32\x13.PB.SmartKnobConfigH\x00\x42\t\n\x07payload\"\x8f\x02\n\x0fSmartKnobConfig\x12\x10\n\x08position\x18\x01 \x01(\x05\x12\x14\n\x0cmin_position\x18\x02 \x01(\x05\x12\x14\n\x0cmax_position\x18\x03 \x01(\x05\x12\x1e\n\x16position_width_radians\x18\x04 \x01(\x02\x12\x1c\n\x14\x64\x65tent_strength_unit\x18\x05 \x01(\x02\x12\x1d\n\x15\x65ndstop_strength_unit\x18\x06 \x01(\x02\x12\x12\n\nsnap_point\x18\x07 \x01(\x02\x12\x13\n\x04text\x18\x08 \x01(\tB\x05\x92?\x02p2\x12\x1f\n\x10\x64\x65tent_positions\x18\t \x03(\x05\x42\x05\x92?\x02\x10\x05\x12\x17\n\x0fsnap_point_bias\x18\n \x01(\x02\"\x0e\n\x0cRequestStateb\x06proto3')
  14. _FROMSMARTKNOB = DESCRIPTOR.message_types_by_name['FromSmartKnob']
  15. _ACK = DESCRIPTOR.message_types_by_name['Ack']
  16. _LOG = DESCRIPTOR.message_types_by_name['Log']
  17. _SMARTKNOBSTATE = DESCRIPTOR.message_types_by_name['SmartKnobState']
  18. _TOSMARTKNOB = DESCRIPTOR.message_types_by_name['ToSmartknob']
  19. _SMARTKNOBCONFIG = DESCRIPTOR.message_types_by_name['SmartKnobConfig']
  20. _REQUESTSTATE = DESCRIPTOR.message_types_by_name['RequestState']
  21. FromSmartKnob = _reflection.GeneratedProtocolMessageType('FromSmartKnob', (_message.Message,), {
  22. 'DESCRIPTOR' : _FROMSMARTKNOB,
  23. '__module__' : 'smartknob_pb2'
  24. # @@protoc_insertion_point(class_scope:PB.FromSmartKnob)
  25. })
  26. _sym_db.RegisterMessage(FromSmartKnob)
  27. Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), {
  28. 'DESCRIPTOR' : _ACK,
  29. '__module__' : 'smartknob_pb2'
  30. # @@protoc_insertion_point(class_scope:PB.Ack)
  31. })
  32. _sym_db.RegisterMessage(Ack)
  33. Log = _reflection.GeneratedProtocolMessageType('Log', (_message.Message,), {
  34. 'DESCRIPTOR' : _LOG,
  35. '__module__' : 'smartknob_pb2'
  36. # @@protoc_insertion_point(class_scope:PB.Log)
  37. })
  38. _sym_db.RegisterMessage(Log)
  39. SmartKnobState = _reflection.GeneratedProtocolMessageType('SmartKnobState', (_message.Message,), {
  40. 'DESCRIPTOR' : _SMARTKNOBSTATE,
  41. '__module__' : 'smartknob_pb2'
  42. # @@protoc_insertion_point(class_scope:PB.SmartKnobState)
  43. })
  44. _sym_db.RegisterMessage(SmartKnobState)
  45. ToSmartknob = _reflection.GeneratedProtocolMessageType('ToSmartknob', (_message.Message,), {
  46. 'DESCRIPTOR' : _TOSMARTKNOB,
  47. '__module__' : 'smartknob_pb2'
  48. # @@protoc_insertion_point(class_scope:PB.ToSmartknob)
  49. })
  50. _sym_db.RegisterMessage(ToSmartknob)
  51. SmartKnobConfig = _reflection.GeneratedProtocolMessageType('SmartKnobConfig', (_message.Message,), {
  52. 'DESCRIPTOR' : _SMARTKNOBCONFIG,
  53. '__module__' : 'smartknob_pb2'
  54. # @@protoc_insertion_point(class_scope:PB.SmartKnobConfig)
  55. })
  56. _sym_db.RegisterMessage(SmartKnobConfig)
  57. RequestState = _reflection.GeneratedProtocolMessageType('RequestState', (_message.Message,), {
  58. 'DESCRIPTOR' : _REQUESTSTATE,
  59. '__module__' : 'smartknob_pb2'
  60. # @@protoc_insertion_point(class_scope:PB.RequestState)
  61. })
  62. _sym_db.RegisterMessage(RequestState)
  63. if _descriptor._USE_C_DESCRIPTORS == False:
  64. DESCRIPTOR._options = None
  65. _LOG.fields_by_name['msg']._options = None
  66. _LOG.fields_by_name['msg']._serialized_options = b'\222?\003p\377\001'
  67. _SMARTKNOBCONFIG.fields_by_name['text']._options = None
  68. _SMARTKNOBCONFIG.fields_by_name['text']._serialized_options = b'\222?\002p2'
  69. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._options = None
  70. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._serialized_options = b'\222?\002\020\005'
  71. _FROMSMARTKNOB._serialized_start=37
  72. _FROMSMARTKNOB._serialized_end=158
  73. _ACK._serialized_start=160
  74. _ACK._serialized_end=180
  75. _LOG._serialized_start=182
  76. _LOG._serialized_end=208
  77. _SMARTKNOBSTATE._serialized_start=210
  78. _SMARTKNOBSTATE._serialized_end=316
  79. _TOSMARTKNOB._serialized_start=319
  80. _TOSMARTKNOB._serialized_end=450
  81. _SMARTKNOBCONFIG._serialized_start=453
  82. _SMARTKNOBCONFIG._serialized_end=724
  83. _REQUESTSTATE._serialized_start=726
  84. _REQUESTSTATE._serialized_end=740
  85. # @@protoc_insertion_point(module_scope)