48 lines
1.6 KiB
Dart
48 lines
1.6 KiB
Dart
// 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
|
|
|
|
import 'dart:core' as $core;
|
|
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
/// 控制指令类型,对应原 JSON 字段 action。
|
|
class Action extends $pb.ProtobufEnum {
|
|
static const Action ACTION_UNKNOWN =
|
|
Action._(0, _omitEnumNames ? '' : 'ACTION_UNKNOWN');
|
|
static const Action TOUCH = Action._(1, _omitEnumNames ? '' : 'TOUCH');
|
|
static const Action SWIPE = Action._(2, _omitEnumNames ? '' : 'SWIPE');
|
|
static const Action KEY = Action._(3, _omitEnumNames ? '' : 'KEY');
|
|
static const Action LONG_PRESS =
|
|
Action._(4, _omitEnumNames ? '' : 'LONG_PRESS');
|
|
static const Action MOTION_EVENT =
|
|
Action._(5, _omitEnumNames ? '' : 'MOTION_EVENT');
|
|
|
|
static const $core.List<Action> values = <Action>[
|
|
ACTION_UNKNOWN,
|
|
TOUCH,
|
|
SWIPE,
|
|
KEY,
|
|
LONG_PRESS,
|
|
MOTION_EVENT,
|
|
];
|
|
|
|
static final $core.List<Action?> _byValue =
|
|
$pb.ProtobufEnum.$_initByValueList(values, 5);
|
|
static Action? valueOf($core.int value) =>
|
|
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
|
|
const Action._(super.value, super.name);
|
|
}
|
|
|
|
const $core.bool _omitEnumNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|