123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- ///
- // Generated code. Do not modify.
- // source: flutterblue.proto
- ///
- // ignore_for_file: non_constant_identifier_names,library_prefixes,unused_import
-
- const Int32Value$json = const {
- '1': 'Int32Value',
- '2': const [
- const {'1': 'value', '3': 1, '4': 1, '5': 5, '10': 'value'},
- ],
- };
-
- const BluetoothState$json = const {
- '1': 'BluetoothState',
- '2': const [
- const {'1': 'state', '3': 1, '4': 1, '5': 14, '6': '.BluetoothState.State', '10': 'state'},
- ],
- '4': const [BluetoothState_State$json],
- };
-
- const BluetoothState_State$json = const {
- '1': 'State',
- '2': const [
- const {'1': 'UNKNOWN', '2': 0},
- const {'1': 'UNAVAILABLE', '2': 1},
- const {'1': 'UNAUTHORIZED', '2': 2},
- const {'1': 'TURNING_ON', '2': 3},
- const {'1': 'ON', '2': 4},
- const {'1': 'TURNING_OFF', '2': 5},
- const {'1': 'OFF', '2': 6},
- ],
- };
-
- const AdvertisementData$json = const {
- '1': 'AdvertisementData',
- '2': const [
- const {'1': 'local_name', '3': 1, '4': 1, '5': 9, '10': 'localName'},
- const {'1': 'tx_power_level', '3': 2, '4': 1, '5': 11, '6': '.Int32Value', '10': 'txPowerLevel'},
- const {'1': 'connectable', '3': 3, '4': 1, '5': 8, '10': 'connectable'},
- const {'1': 'manufacturer_data', '3': 4, '4': 3, '5': 11, '6': '.AdvertisementData.ManufacturerDataEntry', '10': 'manufacturerData'},
- const {'1': 'service_data', '3': 5, '4': 3, '5': 11, '6': '.AdvertisementData.ServiceDataEntry', '10': 'serviceData'},
- const {'1': 'service_uuids', '3': 6, '4': 3, '5': 9, '10': 'serviceUuids'},
- ],
- '3': const [AdvertisementData_ManufacturerDataEntry$json, AdvertisementData_ServiceDataEntry$json],
- };
-
- const AdvertisementData_ManufacturerDataEntry$json = const {
- '1': 'ManufacturerDataEntry',
- '2': const [
- const {'1': 'key', '3': 1, '4': 1, '5': 5, '10': 'key'},
- const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
- ],
- '7': const {'7': true},
- };
-
- const AdvertisementData_ServiceDataEntry$json = const {
- '1': 'ServiceDataEntry',
- '2': const [
- const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
- const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
- ],
- '7': const {'7': true},
- };
-
- const ScanSettings$json = const {
- '1': 'ScanSettings',
- '2': const [
- const {'1': 'android_scan_mode', '3': 1, '4': 1, '5': 5, '10': 'androidScanMode'},
- const {'1': 'service_uuids', '3': 2, '4': 3, '5': 9, '10': 'serviceUuids'},
- ],
- };
-
- const ScanResult$json = const {
- '1': 'ScanResult',
- '2': const [
- const {'1': 'device', '3': 1, '4': 1, '5': 11, '6': '.BluetoothDevice', '10': 'device'},
- const {'1': 'advertisement_data', '3': 2, '4': 1, '5': 11, '6': '.AdvertisementData', '10': 'advertisementData'},
- const {'1': 'rssi', '3': 3, '4': 1, '5': 5, '10': 'rssi'},
- ],
- };
-
- const ConnectRequest$json = const {
- '1': 'ConnectRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'android_auto_connect', '3': 2, '4': 1, '5': 8, '10': 'androidAutoConnect'},
- ],
- };
-
- const BluetoothDevice$json = const {
- '1': 'BluetoothDevice',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
- const {'1': 'type', '3': 3, '4': 1, '5': 14, '6': '.BluetoothDevice.Type', '10': 'type'},
- ],
- '4': const [BluetoothDevice_Type$json],
- };
-
- const BluetoothDevice_Type$json = const {
- '1': 'Type',
- '2': const [
- const {'1': 'UNKNOWN', '2': 0},
- const {'1': 'CLASSIC', '2': 1},
- const {'1': 'LE', '2': 2},
- const {'1': 'DUAL', '2': 3},
- ],
- };
-
- const BluetoothService$json = const {
- '1': 'BluetoothService',
- '2': const [
- const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
- const {'1': 'remote_id', '3': 2, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'is_primary', '3': 3, '4': 1, '5': 8, '10': 'isPrimary'},
- const {'1': 'characteristics', '3': 4, '4': 3, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristics'},
- const {'1': 'included_services', '3': 5, '4': 3, '5': 11, '6': '.BluetoothService', '10': 'includedServices'},
- ],
- };
-
- const BluetoothCharacteristic$json = const {
- '1': 'BluetoothCharacteristic',
- '2': const [
- const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
- const {'1': 'serviceUuid', '3': 2, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondaryServiceUuid', '3': 3, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- const {'1': 'descriptors', '3': 4, '4': 3, '5': 11, '6': '.BluetoothDescriptor', '10': 'descriptors'},
- const {'1': 'properties', '3': 5, '4': 1, '5': 11, '6': '.CharacteristicProperties', '10': 'properties'},
- const {'1': 'value', '3': 6, '4': 1, '5': 12, '10': 'value'},
- ],
- };
-
- const BluetoothDescriptor$json = const {
- '1': 'BluetoothDescriptor',
- '2': const [
- const {'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
- const {'1': 'serviceUuid', '3': 2, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'characteristicUuid', '3': 3, '4': 1, '5': 9, '10': 'characteristicUuid'},
- const {'1': 'value', '3': 4, '4': 1, '5': 12, '10': 'value'},
- ],
- };
-
- const CharacteristicProperties$json = const {
- '1': 'CharacteristicProperties',
- '2': const [
- const {'1': 'broadcast', '3': 1, '4': 1, '5': 8, '10': 'broadcast'},
- const {'1': 'read', '3': 2, '4': 1, '5': 8, '10': 'read'},
- const {'1': 'write_without_response', '3': 3, '4': 1, '5': 8, '10': 'writeWithoutResponse'},
- const {'1': 'write', '3': 4, '4': 1, '5': 8, '10': 'write'},
- const {'1': 'notify', '3': 5, '4': 1, '5': 8, '10': 'notify'},
- const {'1': 'indicate', '3': 6, '4': 1, '5': 8, '10': 'indicate'},
- const {'1': 'authenticated_signed_writes', '3': 7, '4': 1, '5': 8, '10': 'authenticatedSignedWrites'},
- const {'1': 'extended_properties', '3': 8, '4': 1, '5': 8, '10': 'extendedProperties'},
- const {'1': 'notify_encryption_required', '3': 9, '4': 1, '5': 8, '10': 'notifyEncryptionRequired'},
- const {'1': 'indicate_encryption_required', '3': 10, '4': 1, '5': 8, '10': 'indicateEncryptionRequired'},
- ],
- };
-
- const DiscoverServicesResult$json = const {
- '1': 'DiscoverServicesResult',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'services', '3': 2, '4': 3, '5': 11, '6': '.BluetoothService', '10': 'services'},
- ],
- };
-
- const ReadCharacteristicRequest$json = const {
- '1': 'ReadCharacteristicRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'characteristic_uuid', '3': 2, '4': 1, '5': 9, '10': 'characteristicUuid'},
- const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- ],
- };
-
- const ReadCharacteristicResponse$json = const {
- '1': 'ReadCharacteristicResponse',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'},
- ],
- };
-
- const ReadDescriptorRequest$json = const {
- '1': 'ReadDescriptorRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'descriptor_uuid', '3': 2, '4': 1, '5': 9, '10': 'descriptorUuid'},
- const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- const {'1': 'characteristic_uuid', '3': 5, '4': 1, '5': 9, '10': 'characteristicUuid'},
- ],
- };
-
- const ReadDescriptorResponse$json = const {
- '1': 'ReadDescriptorResponse',
- '2': const [
- const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.ReadDescriptorRequest', '10': 'request'},
- const {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
- ],
- };
-
- const WriteCharacteristicRequest$json = const {
- '1': 'WriteCharacteristicRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'characteristic_uuid', '3': 2, '4': 1, '5': 9, '10': 'characteristicUuid'},
- const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- const {'1': 'write_type', '3': 5, '4': 1, '5': 14, '6': '.WriteCharacteristicRequest.WriteType', '10': 'writeType'},
- const {'1': 'value', '3': 6, '4': 1, '5': 12, '10': 'value'},
- ],
- '4': const [WriteCharacteristicRequest_WriteType$json],
- };
-
- const WriteCharacteristicRequest_WriteType$json = const {
- '1': 'WriteType',
- '2': const [
- const {'1': 'WITH_RESPONSE', '2': 0},
- const {'1': 'WITHOUT_RESPONSE', '2': 1},
- ],
- };
-
- const WriteCharacteristicResponse$json = const {
- '1': 'WriteCharacteristicResponse',
- '2': const [
- const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.WriteCharacteristicRequest', '10': 'request'},
- const {'1': 'success', '3': 2, '4': 1, '5': 8, '10': 'success'},
- ],
- };
-
- const WriteDescriptorRequest$json = const {
- '1': 'WriteDescriptorRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'descriptor_uuid', '3': 2, '4': 1, '5': 9, '10': 'descriptorUuid'},
- const {'1': 'service_uuid', '3': 3, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondary_service_uuid', '3': 4, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- const {'1': 'characteristic_uuid', '3': 5, '4': 1, '5': 9, '10': 'characteristicUuid'},
- const {'1': 'value', '3': 6, '4': 1, '5': 12, '10': 'value'},
- ],
- };
-
- const WriteDescriptorResponse$json = const {
- '1': 'WriteDescriptorResponse',
- '2': const [
- const {'1': 'request', '3': 1, '4': 1, '5': 11, '6': '.WriteDescriptorRequest', '10': 'request'},
- const {'1': 'success', '3': 2, '4': 1, '5': 8, '10': 'success'},
- ],
- };
-
- const SetNotificationRequest$json = const {
- '1': 'SetNotificationRequest',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'service_uuid', '3': 2, '4': 1, '5': 9, '10': 'serviceUuid'},
- const {'1': 'secondary_service_uuid', '3': 3, '4': 1, '5': 9, '10': 'secondaryServiceUuid'},
- const {'1': 'characteristic_uuid', '3': 4, '4': 1, '5': 9, '10': 'characteristicUuid'},
- const {'1': 'enable', '3': 5, '4': 1, '5': 8, '10': 'enable'},
- ],
- };
-
- const SetNotificationResponse$json = const {
- '1': 'SetNotificationResponse',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'},
- const {'1': 'success', '3': 3, '4': 1, '5': 8, '10': 'success'},
- ],
- };
-
- const OnNotificationResponse$json = const {
- '1': 'OnNotificationResponse',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'},
- ],
- };
-
- const DeviceStateResponse$json = const {
- '1': 'DeviceStateResponse',
- '2': const [
- const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
- const {'1': 'state', '3': 2, '4': 1, '5': 14, '6': '.DeviceStateResponse.BluetoothDeviceState', '10': 'state'},
- ],
- '4': const [DeviceStateResponse_BluetoothDeviceState$json],
- };
-
- const DeviceStateResponse_BluetoothDeviceState$json = const {
- '1': 'BluetoothDeviceState',
- '2': const [
- const {'1': 'DISCONNECTED', '2': 0},
- const {'1': 'CONNECTING', '2': 1},
- const {'1': 'CONNECTED', '2': 2},
- const {'1': 'DISCONNECTING', '2': 3},
- ],
- };
|