smartknob_pb2.py 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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\"\x9a\x01\n\rFromSmartKnob\x12\x1f\n\x10protocol_version\x18\x01 \x01(\rB\x05\x92?\x02\x38\x08\x12\x16\n\x03\x61\x63k\x18\x02 \x01(\x0b\x32\x07.PB.AckH\x00\x12\x16\n\x03log\x18\x03 \x01(\x0b\x32\x07.PB.LogH\x00\x12-\n\x0fsmartknob_state\x18\x04 \x01(\x0b\x32\x12.PB.SmartKnobStateH\x00\x42\t\n\x07payload\"\xa4\x01\n\x0bToSmartknob\x12\x1f\n\x10protocol_version\x18\x01 \x01(\rB\x05\x92?\x02\x38\x08\x12\r\n\x05nonce\x18\x02 \x01(\r\x12)\n\rrequest_state\x18\x03 \x01(\x0b\x32\x10.PB.RequestStateH\x00\x12/\n\x10smartknob_config\x18\x04 \x01(\x0b\x32\x13.PB.SmartKnobConfigH\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\"\xc9\x02\n\x0fSmartKnobConfig\x12\x10\n\x08position\x18\x01 \x01(\x05\x12\x19\n\x11sub_position_unit\x18\x02 \x01(\x02\x12\x1d\n\x0eposition_nonce\x18\x03 \x01(\rB\x05\x92?\x02\x38\x08\x12\x14\n\x0cmin_position\x18\x04 \x01(\x05\x12\x14\n\x0cmax_position\x18\x05 \x01(\x05\x12\x1e\n\x16position_width_radians\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tent_strength_unit\x18\x07 \x01(\x02\x12\x1d\n\x15\x65ndstop_strength_unit\x18\x08 \x01(\x02\x12\x12\n\nsnap_point\x18\t \x01(\x02\x12\x13\n\x04text\x18\n \x01(\tB\x05\x92?\x02p2\x12\x1f\n\x10\x64\x65tent_positions\x18\x0b \x03(\x05\x42\x05\x92?\x02\x10\x05\x12\x17\n\x0fsnap_point_bias\x18\x0c \x01(\x02\"\x0e\n\x0cRequestState\"O\n\x17PersistentConfiguration\x12\x0f\n\x07version\x18\x01 \x01(\r\x12#\n\x05motor\x18\x02 \x01(\x0b\x32\x14.PB.MotorCalibration\"p\n\x10MotorCalibration\x12\x12\n\ncalibrated\x18\x01 \x01(\x08\x12\x1e\n\x16zero_electrical_offset\x18\x02 \x01(\x02\x12\x14\n\x0c\x64irection_cw\x18\x03 \x01(\x08\x12\x12\n\npole_pairs\x18\x04 \x01(\rb\x06proto3')
  14. _FROMSMARTKNOB = DESCRIPTOR.message_types_by_name['FromSmartKnob']
  15. _TOSMARTKNOB = DESCRIPTOR.message_types_by_name['ToSmartknob']
  16. _ACK = DESCRIPTOR.message_types_by_name['Ack']
  17. _LOG = DESCRIPTOR.message_types_by_name['Log']
  18. _SMARTKNOBSTATE = DESCRIPTOR.message_types_by_name['SmartKnobState']
  19. _SMARTKNOBCONFIG = DESCRIPTOR.message_types_by_name['SmartKnobConfig']
  20. _REQUESTSTATE = DESCRIPTOR.message_types_by_name['RequestState']
  21. _PERSISTENTCONFIGURATION = DESCRIPTOR.message_types_by_name['PersistentConfiguration']
  22. _MOTORCALIBRATION = DESCRIPTOR.message_types_by_name['MotorCalibration']
  23. FromSmartKnob = _reflection.GeneratedProtocolMessageType('FromSmartKnob', (_message.Message,), {
  24. 'DESCRIPTOR' : _FROMSMARTKNOB,
  25. '__module__' : 'smartknob_pb2'
  26. # @@protoc_insertion_point(class_scope:PB.FromSmartKnob)
  27. })
  28. _sym_db.RegisterMessage(FromSmartKnob)
  29. ToSmartknob = _reflection.GeneratedProtocolMessageType('ToSmartknob', (_message.Message,), {
  30. 'DESCRIPTOR' : _TOSMARTKNOB,
  31. '__module__' : 'smartknob_pb2'
  32. # @@protoc_insertion_point(class_scope:PB.ToSmartknob)
  33. })
  34. _sym_db.RegisterMessage(ToSmartknob)
  35. Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), {
  36. 'DESCRIPTOR' : _ACK,
  37. '__module__' : 'smartknob_pb2'
  38. # @@protoc_insertion_point(class_scope:PB.Ack)
  39. })
  40. _sym_db.RegisterMessage(Ack)
  41. Log = _reflection.GeneratedProtocolMessageType('Log', (_message.Message,), {
  42. 'DESCRIPTOR' : _LOG,
  43. '__module__' : 'smartknob_pb2'
  44. # @@protoc_insertion_point(class_scope:PB.Log)
  45. })
  46. _sym_db.RegisterMessage(Log)
  47. SmartKnobState = _reflection.GeneratedProtocolMessageType('SmartKnobState', (_message.Message,), {
  48. 'DESCRIPTOR' : _SMARTKNOBSTATE,
  49. '__module__' : 'smartknob_pb2'
  50. # @@protoc_insertion_point(class_scope:PB.SmartKnobState)
  51. })
  52. _sym_db.RegisterMessage(SmartKnobState)
  53. SmartKnobConfig = _reflection.GeneratedProtocolMessageType('SmartKnobConfig', (_message.Message,), {
  54. 'DESCRIPTOR' : _SMARTKNOBCONFIG,
  55. '__module__' : 'smartknob_pb2'
  56. # @@protoc_insertion_point(class_scope:PB.SmartKnobConfig)
  57. })
  58. _sym_db.RegisterMessage(SmartKnobConfig)
  59. RequestState = _reflection.GeneratedProtocolMessageType('RequestState', (_message.Message,), {
  60. 'DESCRIPTOR' : _REQUESTSTATE,
  61. '__module__' : 'smartknob_pb2'
  62. # @@protoc_insertion_point(class_scope:PB.RequestState)
  63. })
  64. _sym_db.RegisterMessage(RequestState)
  65. PersistentConfiguration = _reflection.GeneratedProtocolMessageType('PersistentConfiguration', (_message.Message,), {
  66. 'DESCRIPTOR' : _PERSISTENTCONFIGURATION,
  67. '__module__' : 'smartknob_pb2'
  68. # @@protoc_insertion_point(class_scope:PB.PersistentConfiguration)
  69. })
  70. _sym_db.RegisterMessage(PersistentConfiguration)
  71. MotorCalibration = _reflection.GeneratedProtocolMessageType('MotorCalibration', (_message.Message,), {
  72. 'DESCRIPTOR' : _MOTORCALIBRATION,
  73. '__module__' : 'smartknob_pb2'
  74. # @@protoc_insertion_point(class_scope:PB.MotorCalibration)
  75. })
  76. _sym_db.RegisterMessage(MotorCalibration)
  77. if _descriptor._USE_C_DESCRIPTORS == False:
  78. DESCRIPTOR._options = None
  79. _FROMSMARTKNOB.fields_by_name['protocol_version']._options = None
  80. _FROMSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010'
  81. _TOSMARTKNOB.fields_by_name['protocol_version']._options = None
  82. _TOSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010'
  83. _LOG.fields_by_name['msg']._options = None
  84. _LOG.fields_by_name['msg']._serialized_options = b'\222?\003p\377\001'
  85. _SMARTKNOBCONFIG.fields_by_name['position_nonce']._options = None
  86. _SMARTKNOBCONFIG.fields_by_name['position_nonce']._serialized_options = b'\222?\0028\010'
  87. _SMARTKNOBCONFIG.fields_by_name['text']._options = None
  88. _SMARTKNOBCONFIG.fields_by_name['text']._serialized_options = b'\222?\002p2'
  89. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._options = None
  90. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._serialized_options = b'\222?\002\020\005'
  91. _FROMSMARTKNOB._serialized_start=38
  92. _FROMSMARTKNOB._serialized_end=192
  93. _TOSMARTKNOB._serialized_start=195
  94. _TOSMARTKNOB._serialized_end=359
  95. _ACK._serialized_start=361
  96. _ACK._serialized_end=381
  97. _LOG._serialized_start=383
  98. _LOG._serialized_end=409
  99. _SMARTKNOBSTATE._serialized_start=411
  100. _SMARTKNOBSTATE._serialized_end=517
  101. _SMARTKNOBCONFIG._serialized_start=520
  102. _SMARTKNOBCONFIG._serialized_end=849
  103. _REQUESTSTATE._serialized_start=851
  104. _REQUESTSTATE._serialized_end=865
  105. _PERSISTENTCONFIGURATION._serialized_start=867
  106. _PERSISTENTCONFIGURATION._serialized_end=946
  107. _MOTORCALIBRATION._serialized_start=948
  108. _MOTORCALIBRATION._serialized_end=1060
  109. # @@protoc_insertion_point(module_scope)