smartknob_pb2.py 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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\"v\n\x17PersistentConfiguration\x12\x0f\n\x07version\x18\x01 \x01(\r\x12#\n\x05motor\x18\x02 \x01(\x0b\x32\x14.PB.MotorCalibration\x12%\n\x06strain\x18\x03 \x01(\x0b\x32\x15.PB.StrainCalibration\"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(\r\"<\n\x11StrainCalibration\x12\x12\n\nidle_value\x18\x01 \x01(\x05\x12\x13\n\x0bpress_delta\x18\x02 \x01(\x05\x62\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. _STRAINCALIBRATION = DESCRIPTOR.message_types_by_name['StrainCalibration']
  24. FromSmartKnob = _reflection.GeneratedProtocolMessageType('FromSmartKnob', (_message.Message,), {
  25. 'DESCRIPTOR' : _FROMSMARTKNOB,
  26. '__module__' : 'smartknob_pb2'
  27. # @@protoc_insertion_point(class_scope:PB.FromSmartKnob)
  28. })
  29. _sym_db.RegisterMessage(FromSmartKnob)
  30. ToSmartknob = _reflection.GeneratedProtocolMessageType('ToSmartknob', (_message.Message,), {
  31. 'DESCRIPTOR' : _TOSMARTKNOB,
  32. '__module__' : 'smartknob_pb2'
  33. # @@protoc_insertion_point(class_scope:PB.ToSmartknob)
  34. })
  35. _sym_db.RegisterMessage(ToSmartknob)
  36. Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), {
  37. 'DESCRIPTOR' : _ACK,
  38. '__module__' : 'smartknob_pb2'
  39. # @@protoc_insertion_point(class_scope:PB.Ack)
  40. })
  41. _sym_db.RegisterMessage(Ack)
  42. Log = _reflection.GeneratedProtocolMessageType('Log', (_message.Message,), {
  43. 'DESCRIPTOR' : _LOG,
  44. '__module__' : 'smartknob_pb2'
  45. # @@protoc_insertion_point(class_scope:PB.Log)
  46. })
  47. _sym_db.RegisterMessage(Log)
  48. SmartKnobState = _reflection.GeneratedProtocolMessageType('SmartKnobState', (_message.Message,), {
  49. 'DESCRIPTOR' : _SMARTKNOBSTATE,
  50. '__module__' : 'smartknob_pb2'
  51. # @@protoc_insertion_point(class_scope:PB.SmartKnobState)
  52. })
  53. _sym_db.RegisterMessage(SmartKnobState)
  54. SmartKnobConfig = _reflection.GeneratedProtocolMessageType('SmartKnobConfig', (_message.Message,), {
  55. 'DESCRIPTOR' : _SMARTKNOBCONFIG,
  56. '__module__' : 'smartknob_pb2'
  57. # @@protoc_insertion_point(class_scope:PB.SmartKnobConfig)
  58. })
  59. _sym_db.RegisterMessage(SmartKnobConfig)
  60. RequestState = _reflection.GeneratedProtocolMessageType('RequestState', (_message.Message,), {
  61. 'DESCRIPTOR' : _REQUESTSTATE,
  62. '__module__' : 'smartknob_pb2'
  63. # @@protoc_insertion_point(class_scope:PB.RequestState)
  64. })
  65. _sym_db.RegisterMessage(RequestState)
  66. PersistentConfiguration = _reflection.GeneratedProtocolMessageType('PersistentConfiguration', (_message.Message,), {
  67. 'DESCRIPTOR' : _PERSISTENTCONFIGURATION,
  68. '__module__' : 'smartknob_pb2'
  69. # @@protoc_insertion_point(class_scope:PB.PersistentConfiguration)
  70. })
  71. _sym_db.RegisterMessage(PersistentConfiguration)
  72. MotorCalibration = _reflection.GeneratedProtocolMessageType('MotorCalibration', (_message.Message,), {
  73. 'DESCRIPTOR' : _MOTORCALIBRATION,
  74. '__module__' : 'smartknob_pb2'
  75. # @@protoc_insertion_point(class_scope:PB.MotorCalibration)
  76. })
  77. _sym_db.RegisterMessage(MotorCalibration)
  78. StrainCalibration = _reflection.GeneratedProtocolMessageType('StrainCalibration', (_message.Message,), {
  79. 'DESCRIPTOR' : _STRAINCALIBRATION,
  80. '__module__' : 'smartknob_pb2'
  81. # @@protoc_insertion_point(class_scope:PB.StrainCalibration)
  82. })
  83. _sym_db.RegisterMessage(StrainCalibration)
  84. if _descriptor._USE_C_DESCRIPTORS == False:
  85. DESCRIPTOR._options = None
  86. _FROMSMARTKNOB.fields_by_name['protocol_version']._options = None
  87. _FROMSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010'
  88. _TOSMARTKNOB.fields_by_name['protocol_version']._options = None
  89. _TOSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010'
  90. _LOG.fields_by_name['msg']._options = None
  91. _LOG.fields_by_name['msg']._serialized_options = b'\222?\003p\377\001'
  92. _SMARTKNOBCONFIG.fields_by_name['position_nonce']._options = None
  93. _SMARTKNOBCONFIG.fields_by_name['position_nonce']._serialized_options = b'\222?\0028\010'
  94. _SMARTKNOBCONFIG.fields_by_name['text']._options = None
  95. _SMARTKNOBCONFIG.fields_by_name['text']._serialized_options = b'\222?\002p2'
  96. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._options = None
  97. _SMARTKNOBCONFIG.fields_by_name['detent_positions']._serialized_options = b'\222?\002\020\005'
  98. _FROMSMARTKNOB._serialized_start=38
  99. _FROMSMARTKNOB._serialized_end=192
  100. _TOSMARTKNOB._serialized_start=195
  101. _TOSMARTKNOB._serialized_end=359
  102. _ACK._serialized_start=361
  103. _ACK._serialized_end=381
  104. _LOG._serialized_start=383
  105. _LOG._serialized_end=409
  106. _SMARTKNOBSTATE._serialized_start=411
  107. _SMARTKNOBSTATE._serialized_end=517
  108. _SMARTKNOBCONFIG._serialized_start=520
  109. _SMARTKNOBCONFIG._serialized_end=849
  110. _REQUESTSTATE._serialized_start=851
  111. _REQUESTSTATE._serialized_end=865
  112. _PERSISTENTCONFIGURATION._serialized_start=867
  113. _PERSISTENTCONFIGURATION._serialized_end=985
  114. _MOTORCALIBRATION._serialized_start=987
  115. _MOTORCALIBRATION._serialized_end=1099
  116. _STRAINCALIBRATION._serialized_start=1101
  117. _STRAINCALIBRATION._serialized_end=1161
  118. # @@protoc_insertion_point(module_scope)