feat: 控制指令消息改为protobuf二进制

This commit is contained in:
2026-07-15 17:03:58 +08:00
parent 92ad90cbeb
commit da1730ce19
21 changed files with 658 additions and 147 deletions

View File

@@ -0,0 +1,68 @@
// This is a generated file - do not edit.
//
// Generated from control_message.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use actionDescriptor instead')
const Action$json = {
'1': 'Action',
'2': [
{'1': 'ACTION_UNKNOWN', '2': 0},
{'1': 'TOUCH', '2': 1},
{'1': 'SWIPE', '2': 2},
{'1': 'KEY', '2': 3},
{'1': 'LONG_PRESS', '2': 4},
{'1': 'MOTION_EVENT', '2': 5},
],
};
/// Descriptor for `Action`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List actionDescriptor = $convert.base64Decode(
'CgZBY3Rpb24SEgoOQUNUSU9OX1VOS05PV04QABIJCgVUT1VDSBABEgkKBVNXSVBFEAISBwoDS0'
'VZEAMSDgoKTE9OR19QUkVTUxAEEhAKDE1PVElPTl9FVkVOVBAF');
@$core.Deprecated('Use controlMessageDescriptor instead')
const ControlMessage$json = {
'1': 'ControlMessage',
'2': [
{
'1': 'action',
'3': 1,
'4': 1,
'5': 14,
'6': '.com.ttstd.control.Action',
'10': 'action'
},
{'1': 'x', '3': 2, '4': 1, '5': 1, '10': 'x'},
{'1': 'y', '3': 3, '4': 1, '5': 1, '10': 'y'},
{'1': 'x1', '3': 4, '4': 1, '5': 1, '10': 'x1'},
{'1': 'y1', '3': 5, '4': 1, '5': 1, '10': 'y1'},
{'1': 'x2', '3': 6, '4': 1, '5': 1, '10': 'x2'},
{'1': 'y2', '3': 7, '4': 1, '5': 1, '10': 'y2'},
{'1': 'duration', '3': 8, '4': 1, '5': 3, '10': 'duration'},
{'1': 'key_code', '3': 9, '4': 1, '5': 5, '10': 'keyCode'},
{'1': 'key_action', '3': 10, '4': 1, '5': 5, '10': 'keyAction'},
{'1': 'motion_action', '3': 11, '4': 1, '5': 5, '10': 'motionAction'},
],
};
/// Descriptor for `ControlMessage`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List controlMessageDescriptor = $convert.base64Decode(
'Cg5Db250cm9sTWVzc2FnZRIxCgZhY3Rpb24YASABKA4yGS5jb20udHRzdGQuY29udHJvbC5BY3'
'Rpb25SBmFjdGlvbhIMCgF4GAIgASgBUgF4EgwKAXkYAyABKAFSAXkSDgoCeDEYBCABKAFSAngx'
'Eg4KAnkxGAUgASgBUgJ5MRIOCgJ4MhgGIAEoAVICeDISDgoCeTIYByABKAFSAnkyEhoKCGR1cm'
'F0aW9uGAggASgDUghkdXJhdGlvbhIZCghrZXlfY29kZRgJIAEoBVIHa2V5Q29kZRIdCgprZXlf'
'YWN0aW9uGAogASgFUglrZXlBY3Rpb24SIwoNbW90aW9uX2FjdGlvbhgLIAEoBVIMbW90aW9uQW'
'N0aW9u');