flutterblue.pbenum.dart 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ///
  2. // Generated code. Do not modify.
  3. // source: flutterblue.proto
  4. //
  5. // @dart = 2.12
  6. // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
  7. // ignore_for_file: UNDEFINED_SHOWN_NAME
  8. import 'dart:core' as $core;
  9. import 'package:protobuf/protobuf.dart' as $pb;
  10. class BluetoothState_State extends $pb.ProtobufEnum {
  11. static const BluetoothState_State UNKNOWN = BluetoothState_State._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNKNOWN');
  12. static const BluetoothState_State UNAVAILABLE = BluetoothState_State._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNAVAILABLE');
  13. static const BluetoothState_State UNAUTHORIZED = BluetoothState_State._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNAUTHORIZED');
  14. static const BluetoothState_State TURNING_ON = BluetoothState_State._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TURNING_ON');
  15. static const BluetoothState_State ON = BluetoothState_State._(4, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ON');
  16. static const BluetoothState_State TURNING_OFF = BluetoothState_State._(5, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TURNING_OFF');
  17. static const BluetoothState_State OFF = BluetoothState_State._(6, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OFF');
  18. static const $core.List<BluetoothState_State> values = <BluetoothState_State> [
  19. UNKNOWN,
  20. UNAVAILABLE,
  21. UNAUTHORIZED,
  22. TURNING_ON,
  23. ON,
  24. TURNING_OFF,
  25. OFF,
  26. ];
  27. static final $core.Map<$core.int, BluetoothState_State> _byValue = $pb.ProtobufEnum.initByValue(values);
  28. static BluetoothState_State? valueOf($core.int value) => _byValue[value];
  29. const BluetoothState_State._($core.int v, $core.String n) : super(v, n);
  30. }
  31. class BluetoothDevice_Type extends $pb.ProtobufEnum {
  32. static const BluetoothDevice_Type UNKNOWN = BluetoothDevice_Type._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UNKNOWN');
  33. static const BluetoothDevice_Type CLASSIC = BluetoothDevice_Type._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CLASSIC');
  34. static const BluetoothDevice_Type LE = BluetoothDevice_Type._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'LE');
  35. static const BluetoothDevice_Type DUAL = BluetoothDevice_Type._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DUAL');
  36. static const $core.List<BluetoothDevice_Type> values = <BluetoothDevice_Type> [
  37. UNKNOWN,
  38. CLASSIC,
  39. LE,
  40. DUAL,
  41. ];
  42. static final $core.Map<$core.int, BluetoothDevice_Type> _byValue = $pb.ProtobufEnum.initByValue(values);
  43. static BluetoothDevice_Type? valueOf($core.int value) => _byValue[value];
  44. const BluetoothDevice_Type._($core.int v, $core.String n) : super(v, n);
  45. }
  46. class WriteCharacteristicRequest_WriteType extends $pb.ProtobufEnum {
  47. static const WriteCharacteristicRequest_WriteType WITH_RESPONSE = WriteCharacteristicRequest_WriteType._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WITH_RESPONSE');
  48. static const WriteCharacteristicRequest_WriteType WITHOUT_RESPONSE = WriteCharacteristicRequest_WriteType._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WITHOUT_RESPONSE');
  49. static const $core.List<WriteCharacteristicRequest_WriteType> values = <WriteCharacteristicRequest_WriteType> [
  50. WITH_RESPONSE,
  51. WITHOUT_RESPONSE,
  52. ];
  53. static final $core.Map<$core.int, WriteCharacteristicRequest_WriteType> _byValue = $pb.ProtobufEnum.initByValue(values);
  54. static WriteCharacteristicRequest_WriteType? valueOf($core.int value) => _byValue[value];
  55. const WriteCharacteristicRequest_WriteType._($core.int v, $core.String n) : super(v, n);
  56. }
  57. class DeviceStateResponse_BluetoothDeviceState extends $pb.ProtobufEnum {
  58. static const DeviceStateResponse_BluetoothDeviceState DISCONNECTED = DeviceStateResponse_BluetoothDeviceState._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISCONNECTED');
  59. static const DeviceStateResponse_BluetoothDeviceState CONNECTING = DeviceStateResponse_BluetoothDeviceState._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECTING');
  60. static const DeviceStateResponse_BluetoothDeviceState CONNECTED = DeviceStateResponse_BluetoothDeviceState._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CONNECTED');
  61. static const DeviceStateResponse_BluetoothDeviceState DISCONNECTING = DeviceStateResponse_BluetoothDeviceState._(3, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISCONNECTING');
  62. static const $core.List<DeviceStateResponse_BluetoothDeviceState> values = <DeviceStateResponse_BluetoothDeviceState> [
  63. DISCONNECTED,
  64. CONNECTING,
  65. CONNECTED,
  66. DISCONNECTING,
  67. ];
  68. static final $core.Map<$core.int, DeviceStateResponse_BluetoothDeviceState> _byValue = $pb.ProtobufEnum.initByValue(values);
  69. static DeviceStateResponse_BluetoothDeviceState? valueOf($core.int value) => _byValue[value];
  70. const DeviceStateResponse_BluetoothDeviceState._($core.int v, $core.String n) : super(v, n);
  71. }