diff --git a/.github/workflows/patrol-prepare.yaml b/.github/workflows/patrol-prepare.yaml index 568e799fd..4d6211aef 100644 --- a/.github/workflows/patrol-prepare.yaml +++ b/.github/workflows/patrol-prepare.yaml @@ -145,29 +145,37 @@ jobs: run: flutter pub get - name: flutter test + if: always() run: flutter test --coverage - name: flutter analyze + if: always() run: flutter analyze - name: flutter format + if: always() run: flutter format --set-exit-if-changed . - name: flutter pub publish --dry-run + if: always() run: flutter pub publish --dry-run - name: flutter pub get (example app) + if: always() working-directory: ./packages/patrol/example run: flutter pub get - name: flutter format (example app) + if: always() working-directory: ./packages/patrol/example run: flutter format --set-exit-if-changed . - name: flutter analyze (example app) + if: always() working-directory: ./packages/patrol/example run: flutter analyze --no-fatal-infos - name: flutter test (example app) + if: always() working-directory: ./packages/patrol/example run: flutter test diff --git a/packages/patrol/lib/src/binding.dart b/packages/patrol/lib/src/binding.dart index df1d0b85b..476c61ac9 100644 --- a/packages/patrol/lib/src/binding.dart +++ b/packages/patrol/lib/src/binding.dart @@ -113,7 +113,7 @@ class PatrolBinding extends IntegrationTestWidgetsFlutterBinding { dartFileName: _currentDartTestFile!, passed: passed, details: _testResults[_currentDartTestFile!] is Failure - ? (_testResults[_currentDartTestFile!] as Failure).details + ? (_testResults[_currentDartTestFile!] as Failure?)?.details : null, ); } diff --git a/packages/patrol/lib/src/common.dart b/packages/patrol/lib/src/common.dart index 9292d4af3..6cf5c2073 100644 --- a/packages/patrol/lib/src/common.dart +++ b/packages/patrol/lib/src/common.dart @@ -1,5 +1,4 @@ -// ignore_for_file: invalid_use_of_internal_member, -// depend_on_referenced_packages, implementation_imports +// ignore_for_file: invalid_use_of_internal_member, implementation_imports import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; @@ -99,21 +98,18 @@ void patrolTest( // "integration_test/examples" directory, we assume that the name of the // immediate parent group is "examples/example_test.dart". // - // It's good enough for a POC. + // It's good enough for now. final parentGroupName = Invoker.current!.liveTest.groups.last.name; - - print('patrolTest(): test "$parentGroupName" registered and waiting'); final requestedToExecute = await patrolBinding.patrolAppService - .waitForRunRequest(parentGroupName); + .waitForExecutionRequest(parentGroupName); if (!requestedToExecute) { return; } - print('patrolTest(): requested execution of test "$parentGroupName"'); } - // await nativeAutomator?.configure(); // Move to bundled_test.dart + // await nativeAutomator?.configure(); // TODO: Move to bundled_test.dart or add again final patrolTester = PatrolTester( tester: widgetTester, diff --git a/packages/patrol/lib/src/native/contracts/contracts.pb.dart b/packages/patrol/lib/src/native/contracts/contracts.pb.dart index c03976bcc..f6437e5e6 100644 --- a/packages/patrol/lib/src/native/contracts/contracts.pb.dart +++ b/packages/patrol/lib/src/native/contracts/contracts.pb.dart @@ -15,10 +15,22 @@ import 'contracts.pbenum.dart'; export 'contracts.pbenum.dart'; class ListDartTestsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ListDartTestsResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'group', subBuilder: DartTestGroup.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'ListDartTestsResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOM( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'group', + subBuilder: DartTestGroup.create) + ..hasRequiredFields = false; ListDartTestsResponse._() : super(); factory ListDartTestsResponse({ @@ -30,31 +42,42 @@ class ListDartTestsResponse extends $pb.GeneratedMessage { } return _result; } - factory ListDartTestsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ListDartTestsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ListDartTestsResponse clone() => ListDartTestsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ListDartTestsResponse copyWith(void Function(ListDartTestsResponse) updates) => super.copyWith((message) => updates(message as ListDartTestsResponse)) as ListDartTestsResponse; // ignore: deprecated_member_use + factory ListDartTestsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListDartTestsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListDartTestsResponse clone() => + ListDartTestsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListDartTestsResponse copyWith( + void Function(ListDartTestsResponse) updates) => + super.copyWith((message) => updates(message as ListDartTestsResponse)) + as ListDartTestsResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListDartTestsResponse create() => ListDartTestsResponse._(); ListDartTestsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListDartTestsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ListDartTestsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ListDartTestsResponse? _defaultInstance; @$pb.TagNumber(1) DartTestGroup get group => $_getN(0); @$pb.TagNumber(1) - set group(DartTestGroup v) { setField(1, v); } + set group(DartTestGroup v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasGroup() => $_has(0); @$pb.TagNumber(1) @@ -64,12 +87,35 @@ class ListDartTestsResponse extends $pb.GeneratedMessage { } class DartTestGroup extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DartTestGroup', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..pc(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'tests', $pb.PbFieldType.PM, subBuilder: DartTestCase.create) - ..pc(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'groups', $pb.PbFieldType.PM, subBuilder: DartTestGroup.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'DartTestGroup', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'name') + ..pc( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'tests', + $pb.PbFieldType.PM, + subBuilder: DartTestCase.create) + ..pc( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'groups', + $pb.PbFieldType.PM, + subBuilder: DartTestGroup.create) + ..hasRequiredFields = false; DartTestGroup._() : super(); factory DartTestGroup({ @@ -89,31 +135,40 @@ class DartTestGroup extends $pb.GeneratedMessage { } return _result; } - factory DartTestGroup.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DartTestGroup.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory DartTestGroup.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DartTestGroup.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DartTestGroup clone() => DartTestGroup()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DartTestGroup copyWith(void Function(DartTestGroup) updates) => super.copyWith((message) => updates(message as DartTestGroup)) as DartTestGroup; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DartTestGroup copyWith(void Function(DartTestGroup) updates) => + super.copyWith((message) => updates(message as DartTestGroup)) + as DartTestGroup; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DartTestGroup create() => DartTestGroup._(); DartTestGroup createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DartTestGroup getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DartTestGroup getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DartTestGroup? _defaultInstance; @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { $_setString(0, v); } + set name($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -127,10 +182,21 @@ class DartTestGroup extends $pb.GeneratedMessage { } class DartTestCase extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DartTestCase', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'DartTestCase', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'name') + ..hasRequiredFields = false; DartTestCase._() : super(); factory DartTestCase({ @@ -142,31 +208,40 @@ class DartTestCase extends $pb.GeneratedMessage { } return _result; } - factory DartTestCase.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DartTestCase.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory DartTestCase.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DartTestCase.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DartTestCase clone() => DartTestCase()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DartTestCase copyWith(void Function(DartTestCase) updates) => super.copyWith((message) => updates(message as DartTestCase)) as DartTestCase; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DartTestCase copyWith(void Function(DartTestCase) updates) => + super.copyWith((message) => updates(message as DartTestCase)) + as DartTestCase; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DartTestCase create() => DartTestCase._(); DartTestCase createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DartTestCase getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DartTestCase getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DartTestCase? _defaultInstance; @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { $_setString(0, v); } + set name($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -174,10 +249,21 @@ class DartTestCase extends $pb.GeneratedMessage { } class RunDartTestRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RunDartTestRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'RunDartTestRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'name') + ..hasRequiredFields = false; RunDartTestRequest._() : super(); factory RunDartTestRequest({ @@ -189,31 +275,40 @@ class RunDartTestRequest extends $pb.GeneratedMessage { } return _result; } - factory RunDartTestRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RunDartTestRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RunDartTestRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RunDartTestRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RunDartTestRequest clone() => RunDartTestRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RunDartTestRequest copyWith(void Function(RunDartTestRequest) updates) => super.copyWith((message) => updates(message as RunDartTestRequest)) as RunDartTestRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RunDartTestRequest copyWith(void Function(RunDartTestRequest) updates) => + super.copyWith((message) => updates(message as RunDartTestRequest)) + as RunDartTestRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RunDartTestRequest create() => RunDartTestRequest._(); RunDartTestRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunDartTestRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunDartTestRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunDartTestRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { $_setString(0, v); } + set name($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -221,11 +316,30 @@ class RunDartTestRequest extends $pb.GeneratedMessage { } class RunDartTestResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'RunDartTestResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', $pb.PbFieldType.OE, defaultOrMaker: RunDartTestResponse_Result.SUCCESS, valueOf: RunDartTestResponse_Result.valueOf, enumValues: RunDartTestResponse_Result.values) - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'details') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'RunDartTestResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..e( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'result', + $pb.PbFieldType.OE, + defaultOrMaker: RunDartTestResponse_Result.SUCCESS, + valueOf: RunDartTestResponse_Result.valueOf, + enumValues: RunDartTestResponse_Result.values) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'details') + ..hasRequiredFields = false; RunDartTestResponse._() : super(); factory RunDartTestResponse({ @@ -241,31 +355,40 @@ class RunDartTestResponse extends $pb.GeneratedMessage { } return _result; } - factory RunDartTestResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RunDartTestResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RunDartTestResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RunDartTestResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RunDartTestResponse clone() => RunDartTestResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RunDartTestResponse copyWith(void Function(RunDartTestResponse) updates) => super.copyWith((message) => updates(message as RunDartTestResponse)) as RunDartTestResponse; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RunDartTestResponse copyWith(void Function(RunDartTestResponse) updates) => + super.copyWith((message) => updates(message as RunDartTestResponse)) + as RunDartTestResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RunDartTestResponse create() => RunDartTestResponse._(); RunDartTestResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunDartTestResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RunDartTestResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RunDartTestResponse? _defaultInstance; @$pb.TagNumber(1) RunDartTestResponse_Result get result => $_getN(0); @$pb.TagNumber(1) - set result(RunDartTestResponse_Result v) { setField(1, v); } + set result(RunDartTestResponse_Result v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasResult() => $_has(0); @$pb.TagNumber(1) @@ -274,7 +397,10 @@ class RunDartTestResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get details => $_getSZ(1); @$pb.TagNumber(2) - set details($core.String v) { $_setString(1, v); } + set details($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasDetails() => $_has(1); @$pb.TagNumber(2) @@ -282,10 +408,24 @@ class RunDartTestResponse extends $pb.GeneratedMessage { } class ConfigureRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ConfigureRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..a<$fixnum.Int64>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'findTimeoutMillis', $pb.PbFieldType.OU6, protoName: 'findTimeoutMillis', defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'ConfigureRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'findTimeoutMillis', + $pb.PbFieldType.OU6, + protoName: 'findTimeoutMillis', + defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; ConfigureRequest._() : super(); factory ConfigureRequest({ @@ -297,31 +437,40 @@ class ConfigureRequest extends $pb.GeneratedMessage { } return _result; } - factory ConfigureRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ConfigureRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ConfigureRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ConfigureRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ConfigureRequest clone() => ConfigureRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConfigureRequest copyWith(void Function(ConfigureRequest) updates) => super.copyWith((message) => updates(message as ConfigureRequest)) as ConfigureRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConfigureRequest copyWith(void Function(ConfigureRequest) updates) => + super.copyWith((message) => updates(message as ConfigureRequest)) + as ConfigureRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ConfigureRequest create() => ConfigureRequest._(); ConfigureRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConfigureRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConfigureRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ConfigureRequest? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get findTimeoutMillis => $_getI64(0); @$pb.TagNumber(1) - set findTimeoutMillis($fixnum.Int64 v) { $_setInt64(0, v); } + set findTimeoutMillis($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasFindTimeoutMillis() => $_has(0); @$pb.TagNumber(1) @@ -329,10 +478,22 @@ class ConfigureRequest extends $pb.GeneratedMessage { } class OpenAppRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OpenAppRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId', protoName: 'appId') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'OpenAppRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appId', + protoName: 'appId') + ..hasRequiredFields = false; OpenAppRequest._() : super(); factory OpenAppRequest({ @@ -344,55 +505,78 @@ class OpenAppRequest extends $pb.GeneratedMessage { } return _result; } - factory OpenAppRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory OpenAppRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory OpenAppRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory OpenAppRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') OpenAppRequest clone() => OpenAppRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - OpenAppRequest copyWith(void Function(OpenAppRequest) updates) => super.copyWith((message) => updates(message as OpenAppRequest)) as OpenAppRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OpenAppRequest copyWith(void Function(OpenAppRequest) updates) => + super.copyWith((message) => updates(message as OpenAppRequest)) + as OpenAppRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static OpenAppRequest create() => OpenAppRequest._(); OpenAppRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static OpenAppRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static OpenAppRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static OpenAppRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get appId => $_getSZ(0); @$pb.TagNumber(1) - set appId($core.String v) { $_setString(0, v); } + set appId($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasAppId() => $_has(0); @$pb.TagNumber(1) void clearAppId() => clearField(1); } -enum TapOnNotificationRequest_FindBy { - index_, - selector, - notSet -} +enum TapOnNotificationRequest_FindBy { index_, selector, notSet } class TapOnNotificationRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, TapOnNotificationRequest_FindBy> _TapOnNotificationRequest_FindByByTag = { - 1 : TapOnNotificationRequest_FindBy.index_, - 2 : TapOnNotificationRequest_FindBy.selector, - 0 : TapOnNotificationRequest_FindBy.notSet + static const $core.Map<$core.int, TapOnNotificationRequest_FindBy> + _TapOnNotificationRequest_FindByByTag = { + 1: TapOnNotificationRequest_FindBy.index_, + 2: TapOnNotificationRequest_FindBy.selector, + 0: TapOnNotificationRequest_FindBy.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TapOnNotificationRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'TapOnNotificationRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) ..oo(0, [1, 2]) - ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'index', $pb.PbFieldType.OU3) - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selector', subBuilder: Selector.create) - ..hasRequiredFields = false - ; + ..a<$core.int>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'index', + $pb.PbFieldType.OU3) + ..aOM( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'selector', + subBuilder: Selector.create) + ..hasRequiredFields = false; TapOnNotificationRequest._() : super(); factory TapOnNotificationRequest({ @@ -408,34 +592,46 @@ class TapOnNotificationRequest extends $pb.GeneratedMessage { } return _result; } - factory TapOnNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TapOnNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TapOnNotificationRequest clone() => TapOnNotificationRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TapOnNotificationRequest copyWith(void Function(TapOnNotificationRequest) updates) => super.copyWith((message) => updates(message as TapOnNotificationRequest)) as TapOnNotificationRequest; // ignore: deprecated_member_use + factory TapOnNotificationRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TapOnNotificationRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TapOnNotificationRequest clone() => + TapOnNotificationRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TapOnNotificationRequest copyWith( + void Function(TapOnNotificationRequest) updates) => + super.copyWith((message) => updates(message as TapOnNotificationRequest)) + as TapOnNotificationRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TapOnNotificationRequest create() => TapOnNotificationRequest._(); TapOnNotificationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TapOnNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TapOnNotificationRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TapOnNotificationRequest? _defaultInstance; - TapOnNotificationRequest_FindBy whichFindBy() => _TapOnNotificationRequest_FindByByTag[$_whichOneof(0)]!; + TapOnNotificationRequest_FindBy whichFindBy() => + _TapOnNotificationRequest_FindByByTag[$_whichOneof(0)]!; void clearFindBy() => clearField($_whichOneof(0)); @$pb.TagNumber(1) $core.int get index => $_getIZ(0); @$pb.TagNumber(1) - set index($core.int v) { $_setUnsignedInt32(0, v); } + set index($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasIndex() => $_has(0); @$pb.TagNumber(1) @@ -444,7 +640,10 @@ class TapOnNotificationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) Selector get selector => $_getN(1); @$pb.TagNumber(2) - set selector(Selector v) { setField(2, v); } + set selector(Selector v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasSelector() => $_has(1); @$pb.TagNumber(2) @@ -454,68 +653,107 @@ class TapOnNotificationRequest extends $pb.GeneratedMessage { } class Empty extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Empty', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'Empty', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..hasRequiredFields = false; Empty._() : super(); factory Empty() => create(); - factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Empty.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Empty.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Empty clone() => Empty()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Empty copyWith(void Function(Empty) updates) => + super.copyWith((message) => updates(message as Empty)) + as Empty; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Empty create() => Empty._(); Empty createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Empty getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Empty? _defaultInstance; } class OpenQuickSettingsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OpenQuickSettingsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'OpenQuickSettingsRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..hasRequiredFields = false; OpenQuickSettingsRequest._() : super(); factory OpenQuickSettingsRequest() => create(); - factory OpenQuickSettingsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory OpenQuickSettingsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - OpenQuickSettingsRequest clone() => OpenQuickSettingsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - OpenQuickSettingsRequest copyWith(void Function(OpenQuickSettingsRequest) updates) => super.copyWith((message) => updates(message as OpenQuickSettingsRequest)) as OpenQuickSettingsRequest; // ignore: deprecated_member_use + factory OpenQuickSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory OpenQuickSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + OpenQuickSettingsRequest clone() => + OpenQuickSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OpenQuickSettingsRequest copyWith( + void Function(OpenQuickSettingsRequest) updates) => + super.copyWith((message) => updates(message as OpenQuickSettingsRequest)) + as OpenQuickSettingsRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static OpenQuickSettingsRequest create() => OpenQuickSettingsRequest._(); OpenQuickSettingsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static OpenQuickSettingsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static OpenQuickSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static OpenQuickSettingsRequest? _defaultInstance; } class DarkModeRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DarkModeRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId', protoName: 'appId') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'DarkModeRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appId', + protoName: 'appId') + ..hasRequiredFields = false; DarkModeRequest._() : super(); factory DarkModeRequest({ @@ -527,31 +765,40 @@ class DarkModeRequest extends $pb.GeneratedMessage { } return _result; } - factory DarkModeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DarkModeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory DarkModeRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DarkModeRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DarkModeRequest clone() => DarkModeRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DarkModeRequest copyWith(void Function(DarkModeRequest) updates) => super.copyWith((message) => updates(message as DarkModeRequest)) as DarkModeRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DarkModeRequest copyWith(void Function(DarkModeRequest) updates) => + super.copyWith((message) => updates(message as DarkModeRequest)) + as DarkModeRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DarkModeRequest create() => DarkModeRequest._(); DarkModeRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DarkModeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DarkModeRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DarkModeRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get appId => $_getSZ(0); @$pb.TagNumber(1) - set appId($core.String v) { $_setString(0, v); } + set appId($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasAppId() => $_has(0); @$pb.TagNumber(1) @@ -559,10 +806,22 @@ class DarkModeRequest extends $pb.GeneratedMessage { } class GetNativeViewsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetNativeViewsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selector', subBuilder: Selector.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'GetNativeViewsRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOM( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'selector', + subBuilder: Selector.create) + ..hasRequiredFields = false; GetNativeViewsRequest._() : super(); factory GetNativeViewsRequest({ @@ -574,31 +833,42 @@ class GetNativeViewsRequest extends $pb.GeneratedMessage { } return _result; } - factory GetNativeViewsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNativeViewsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNativeViewsRequest clone() => GetNativeViewsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNativeViewsRequest copyWith(void Function(GetNativeViewsRequest) updates) => super.copyWith((message) => updates(message as GetNativeViewsRequest)) as GetNativeViewsRequest; // ignore: deprecated_member_use + factory GetNativeViewsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetNativeViewsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetNativeViewsRequest clone() => + GetNativeViewsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNativeViewsRequest copyWith( + void Function(GetNativeViewsRequest) updates) => + super.copyWith((message) => updates(message as GetNativeViewsRequest)) + as GetNativeViewsRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNativeViewsRequest create() => GetNativeViewsRequest._(); GetNativeViewsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNativeViewsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNativeViewsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNativeViewsRequest? _defaultInstance; @$pb.TagNumber(1) Selector get selector => $_getN(0); @$pb.TagNumber(1) - set selector(Selector v) { setField(1, v); } + set selector(Selector v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasSelector() => $_has(0); @$pb.TagNumber(1) @@ -608,10 +878,24 @@ class GetNativeViewsRequest extends $pb.GeneratedMessage { } class GetNativeViewsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetNativeViewsResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..pc(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nativeViews', $pb.PbFieldType.PM, protoName: 'nativeViews', subBuilder: NativeView.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'GetNativeViewsResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..pc( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'nativeViews', + $pb.PbFieldType.PM, + protoName: 'nativeViews', + subBuilder: NativeView.create) + ..hasRequiredFields = false; GetNativeViewsResponse._() : super(); factory GetNativeViewsResponse({ @@ -623,25 +907,33 @@ class GetNativeViewsResponse extends $pb.GeneratedMessage { } return _result; } - factory GetNativeViewsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNativeViewsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNativeViewsResponse clone() => GetNativeViewsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNativeViewsResponse copyWith(void Function(GetNativeViewsResponse) updates) => super.copyWith((message) => updates(message as GetNativeViewsResponse)) as GetNativeViewsResponse; // ignore: deprecated_member_use + factory GetNativeViewsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetNativeViewsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetNativeViewsResponse clone() => + GetNativeViewsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNativeViewsResponse copyWith( + void Function(GetNativeViewsResponse) updates) => + super.copyWith((message) => updates(message as GetNativeViewsResponse)) + as GetNativeViewsResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNativeViewsResponse create() => GetNativeViewsResponse._(); GetNativeViewsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNativeViewsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNativeViewsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNativeViewsResponse? _defaultInstance; @$pb.TagNumber(2) @@ -649,39 +941,67 @@ class GetNativeViewsResponse extends $pb.GeneratedMessage { } class GetNotificationsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetNotificationsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'GetNotificationsRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..hasRequiredFields = false; GetNotificationsRequest._() : super(); factory GetNotificationsRequest() => create(); - factory GetNotificationsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationsRequest clone() => GetNotificationsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationsRequest copyWith(void Function(GetNotificationsRequest) updates) => super.copyWith((message) => updates(message as GetNotificationsRequest)) as GetNotificationsRequest; // ignore: deprecated_member_use + factory GetNotificationsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetNotificationsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetNotificationsRequest clone() => + GetNotificationsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNotificationsRequest copyWith( + void Function(GetNotificationsRequest) updates) => + super.copyWith((message) => updates(message as GetNotificationsRequest)) + as GetNotificationsRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNotificationsRequest create() => GetNotificationsRequest._(); GetNotificationsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNotificationsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNotificationsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNotificationsRequest? _defaultInstance; } class GetNotificationsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetNotificationsResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..pc(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'notifications', $pb.PbFieldType.PM, subBuilder: Notification.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'GetNotificationsResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..pc( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'notifications', + $pb.PbFieldType.PM, + subBuilder: Notification.create) + ..hasRequiredFields = false; GetNotificationsResponse._() : super(); factory GetNotificationsResponse({ @@ -693,25 +1013,33 @@ class GetNotificationsResponse extends $pb.GeneratedMessage { } return _result; } - factory GetNotificationsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationsResponse clone() => GetNotificationsResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationsResponse copyWith(void Function(GetNotificationsResponse) updates) => super.copyWith((message) => updates(message as GetNotificationsResponse)) as GetNotificationsResponse; // ignore: deprecated_member_use + factory GetNotificationsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetNotificationsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetNotificationsResponse clone() => + GetNotificationsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetNotificationsResponse copyWith( + void Function(GetNotificationsResponse) updates) => + super.copyWith((message) => updates(message as GetNotificationsResponse)) + as GetNotificationsResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetNotificationsResponse create() => GetNotificationsResponse._(); GetNotificationsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetNotificationsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetNotificationsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static GetNotificationsResponse? _defaultInstance; @$pb.TagNumber(2) @@ -719,11 +1047,28 @@ class GetNotificationsResponse extends $pb.GeneratedMessage { } class TapRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TapRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selector', subBuilder: Selector.create) - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId', protoName: 'appId') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'TapRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOM( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'selector', + subBuilder: Selector.create) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appId', + protoName: 'appId') + ..hasRequiredFields = false; TapRequest._() : super(); factory TapRequest({ @@ -739,31 +1084,39 @@ class TapRequest extends $pb.GeneratedMessage { } return _result; } - factory TapRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TapRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory TapRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TapRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TapRequest clone() => TapRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TapRequest copyWith(void Function(TapRequest) updates) => super.copyWith((message) => updates(message as TapRequest)) as TapRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TapRequest copyWith(void Function(TapRequest) updates) => + super.copyWith((message) => updates(message as TapRequest)) + as TapRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TapRequest create() => TapRequest._(); TapRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TapRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TapRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TapRequest? _defaultInstance; @$pb.TagNumber(1) Selector get selector => $_getN(0); @$pb.TagNumber(1) - set selector(Selector v) { setField(1, v); } + set selector(Selector v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasSelector() => $_has(0); @$pb.TagNumber(1) @@ -774,33 +1127,59 @@ class TapRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get appId => $_getSZ(1); @$pb.TagNumber(2) - set appId($core.String v) { $_setString(1, v); } + set appId($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasAppId() => $_has(1); @$pb.TagNumber(2) void clearAppId() => clearField(2); } -enum EnterTextRequest_FindBy { - index_, - selector, - notSet -} +enum EnterTextRequest_FindBy { index_, selector, notSet } class EnterTextRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, EnterTextRequest_FindBy> _EnterTextRequest_FindByByTag = { - 3 : EnterTextRequest_FindBy.index_, - 4 : EnterTextRequest_FindBy.selector, - 0 : EnterTextRequest_FindBy.notSet + static const $core.Map<$core.int, EnterTextRequest_FindBy> + _EnterTextRequest_FindByByTag = { + 3: EnterTextRequest_FindBy.index_, + 4: EnterTextRequest_FindBy.selector, + 0: EnterTextRequest_FindBy.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'EnterTextRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'EnterTextRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) ..oo(0, [3, 4]) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data') - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId', protoName: 'appId') - ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'index', $pb.PbFieldType.OU3) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selector', subBuilder: Selector.create) - ..hasRequiredFields = false - ; + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'data') + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appId', + protoName: 'appId') + ..a<$core.int>( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'index', + $pb.PbFieldType.OU3) + ..aOM( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'selector', + subBuilder: Selector.create) + ..hasRequiredFields = false; EnterTextRequest._() : super(); factory EnterTextRequest({ @@ -824,34 +1203,44 @@ class EnterTextRequest extends $pb.GeneratedMessage { } return _result; } - factory EnterTextRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EnterTextRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory EnterTextRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory EnterTextRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') EnterTextRequest clone() => EnterTextRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EnterTextRequest copyWith(void Function(EnterTextRequest) updates) => super.copyWith((message) => updates(message as EnterTextRequest)) as EnterTextRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + EnterTextRequest copyWith(void Function(EnterTextRequest) updates) => + super.copyWith((message) => updates(message as EnterTextRequest)) + as EnterTextRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EnterTextRequest create() => EnterTextRequest._(); EnterTextRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static EnterTextRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static EnterTextRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static EnterTextRequest? _defaultInstance; - EnterTextRequest_FindBy whichFindBy() => _EnterTextRequest_FindByByTag[$_whichOneof(0)]!; + EnterTextRequest_FindBy whichFindBy() => + _EnterTextRequest_FindByByTag[$_whichOneof(0)]!; void clearFindBy() => clearField($_whichOneof(0)); @$pb.TagNumber(1) $core.String get data => $_getSZ(0); @$pb.TagNumber(1) - set data($core.String v) { $_setString(0, v); } + set data($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasData() => $_has(0); @$pb.TagNumber(1) @@ -860,7 +1249,10 @@ class EnterTextRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get appId => $_getSZ(1); @$pb.TagNumber(2) - set appId($core.String v) { $_setString(1, v); } + set appId($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasAppId() => $_has(1); @$pb.TagNumber(2) @@ -869,7 +1261,10 @@ class EnterTextRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get index => $_getIZ(2); @$pb.TagNumber(3) - set index($core.int v) { $_setUnsignedInt32(2, v); } + set index($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasIndex() => $_has(2); @$pb.TagNumber(3) @@ -878,7 +1273,10 @@ class EnterTextRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) Selector get selector => $_getN(3); @$pb.TagNumber(4) - set selector(Selector v) { setField(4, v); } + set selector(Selector v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasSelector() => $_has(3); @$pb.TagNumber(4) @@ -888,15 +1286,56 @@ class EnterTextRequest extends $pb.GeneratedMessage { } class SwipeRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SwipeRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..a<$core.double>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startX', $pb.PbFieldType.OF, protoName: 'startX') - ..a<$core.double>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startY', $pb.PbFieldType.OF, protoName: 'startY') - ..a<$core.double>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endX', $pb.PbFieldType.OF, protoName: 'endX') - ..a<$core.double>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endY', $pb.PbFieldType.OF, protoName: 'endY') - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'steps', $pb.PbFieldType.OU3) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId', protoName: 'appId') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'SwipeRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..a<$core.double>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'startX', + $pb.PbFieldType.OF, + protoName: 'startX') + ..a<$core.double>( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'startY', + $pb.PbFieldType.OF, + protoName: 'startY') + ..a<$core.double>( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'endX', + $pb.PbFieldType.OF, + protoName: 'endX') + ..a<$core.double>( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'endY', + $pb.PbFieldType.OF, + protoName: 'endY') + ..a<$core.int>( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'steps', + $pb.PbFieldType.OU3) + ..aOS( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appId', + protoName: 'appId') + ..hasRequiredFields = false; SwipeRequest._() : super(); factory SwipeRequest({ @@ -928,31 +1367,40 @@ class SwipeRequest extends $pb.GeneratedMessage { } return _result; } - factory SwipeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SwipeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SwipeRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SwipeRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SwipeRequest clone() => SwipeRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SwipeRequest copyWith(void Function(SwipeRequest) updates) => super.copyWith((message) => updates(message as SwipeRequest)) as SwipeRequest; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SwipeRequest copyWith(void Function(SwipeRequest) updates) => + super.copyWith((message) => updates(message as SwipeRequest)) + as SwipeRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SwipeRequest create() => SwipeRequest._(); SwipeRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SwipeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SwipeRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SwipeRequest? _defaultInstance; @$pb.TagNumber(1) $core.double get startX => $_getN(0); @$pb.TagNumber(1) - set startX($core.double v) { $_setFloat(0, v); } + set startX($core.double v) { + $_setFloat(0, v); + } + @$pb.TagNumber(1) $core.bool hasStartX() => $_has(0); @$pb.TagNumber(1) @@ -961,7 +1409,10 @@ class SwipeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get startY => $_getN(1); @$pb.TagNumber(2) - set startY($core.double v) { $_setFloat(1, v); } + set startY($core.double v) { + $_setFloat(1, v); + } + @$pb.TagNumber(2) $core.bool hasStartY() => $_has(1); @$pb.TagNumber(2) @@ -970,7 +1421,10 @@ class SwipeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get endX => $_getN(2); @$pb.TagNumber(3) - set endX($core.double v) { $_setFloat(2, v); } + set endX($core.double v) { + $_setFloat(2, v); + } + @$pb.TagNumber(3) $core.bool hasEndX() => $_has(2); @$pb.TagNumber(3) @@ -979,7 +1433,10 @@ class SwipeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get endY => $_getN(3); @$pb.TagNumber(4) - set endY($core.double v) { $_setFloat(3, v); } + set endY($core.double v) { + $_setFloat(3, v); + } + @$pb.TagNumber(4) $core.bool hasEndY() => $_has(3); @$pb.TagNumber(4) @@ -988,7 +1445,10 @@ class SwipeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get steps => $_getIZ(4); @$pb.TagNumber(5) - set steps($core.int v) { $_setUnsignedInt32(4, v); } + set steps($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasSteps() => $_has(4); @$pb.TagNumber(5) @@ -997,7 +1457,10 @@ class SwipeRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get appId => $_getSZ(5); @$pb.TagNumber(6) - set appId($core.String v) { $_setString(5, v); } + set appId($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasAppId() => $_has(5); @$pb.TagNumber(6) @@ -1005,10 +1468,25 @@ class SwipeRequest extends $pb.GeneratedMessage { } class HandlePermissionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'HandlePermissionRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OE, defaultOrMaker: HandlePermissionRequest_Code.WHILE_USING, valueOf: HandlePermissionRequest_Code.valueOf, enumValues: HandlePermissionRequest_Code.values) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'HandlePermissionRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..e( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'code', + $pb.PbFieldType.OE, + defaultOrMaker: HandlePermissionRequest_Code.WHILE_USING, + valueOf: HandlePermissionRequest_Code.valueOf, + enumValues: HandlePermissionRequest_Code.values) + ..hasRequiredFields = false; HandlePermissionRequest._() : super(); factory HandlePermissionRequest({ @@ -1020,31 +1498,42 @@ class HandlePermissionRequest extends $pb.GeneratedMessage { } return _result; } - factory HandlePermissionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory HandlePermissionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - HandlePermissionRequest clone() => HandlePermissionRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - HandlePermissionRequest copyWith(void Function(HandlePermissionRequest) updates) => super.copyWith((message) => updates(message as HandlePermissionRequest)) as HandlePermissionRequest; // ignore: deprecated_member_use + factory HandlePermissionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory HandlePermissionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + HandlePermissionRequest clone() => + HandlePermissionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + HandlePermissionRequest copyWith( + void Function(HandlePermissionRequest) updates) => + super.copyWith((message) => updates(message as HandlePermissionRequest)) + as HandlePermissionRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static HandlePermissionRequest create() => HandlePermissionRequest._(); HandlePermissionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static HandlePermissionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static HandlePermissionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static HandlePermissionRequest? _defaultInstance; @$pb.TagNumber(1) HandlePermissionRequest_Code get code => $_getN(0); @$pb.TagNumber(1) - set code(HandlePermissionRequest_Code v) { setField(1, v); } + set code(HandlePermissionRequest_Code v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) @@ -1052,10 +1541,26 @@ class HandlePermissionRequest extends $pb.GeneratedMessage { } class SetLocationAccuracyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SetLocationAccuracyRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'locationAccuracy', $pb.PbFieldType.OE, protoName: 'locationAccuracy', defaultOrMaker: SetLocationAccuracyRequest_LocationAccuracy.COARSE, valueOf: SetLocationAccuracyRequest_LocationAccuracy.valueOf, enumValues: SetLocationAccuracyRequest_LocationAccuracy.values) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'SetLocationAccuracyRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..e( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'locationAccuracy', + $pb.PbFieldType.OE, + protoName: 'locationAccuracy', + defaultOrMaker: SetLocationAccuracyRequest_LocationAccuracy.COARSE, + valueOf: SetLocationAccuracyRequest_LocationAccuracy.valueOf, + enumValues: SetLocationAccuracyRequest_LocationAccuracy.values) + ..hasRequiredFields = false; SetLocationAccuracyRequest._() : super(); factory SetLocationAccuracyRequest({ @@ -1067,31 +1572,43 @@ class SetLocationAccuracyRequest extends $pb.GeneratedMessage { } return _result; } - factory SetLocationAccuracyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SetLocationAccuracyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SetLocationAccuracyRequest clone() => SetLocationAccuracyRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SetLocationAccuracyRequest copyWith(void Function(SetLocationAccuracyRequest) updates) => super.copyWith((message) => updates(message as SetLocationAccuracyRequest)) as SetLocationAccuracyRequest; // ignore: deprecated_member_use + factory SetLocationAccuracyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SetLocationAccuracyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SetLocationAccuracyRequest clone() => + SetLocationAccuracyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SetLocationAccuracyRequest copyWith( + void Function(SetLocationAccuracyRequest) updates) => + super.copyWith( + (message) => updates(message as SetLocationAccuracyRequest)) + as SetLocationAccuracyRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SetLocationAccuracyRequest create() => SetLocationAccuracyRequest._(); SetLocationAccuracyRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SetLocationAccuracyRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SetLocationAccuracyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SetLocationAccuracyRequest? _defaultInstance; @$pb.TagNumber(1) SetLocationAccuracyRequest_LocationAccuracy get locationAccuracy => $_getN(0); @$pb.TagNumber(1) - set locationAccuracy(SetLocationAccuracyRequest_LocationAccuracy v) { setField(1, v); } + set locationAccuracy(SetLocationAccuracyRequest_LocationAccuracy v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasLocationAccuracy() => $_has(0); @$pb.TagNumber(1) @@ -1099,10 +1616,24 @@ class SetLocationAccuracyRequest extends $pb.GeneratedMessage { } class PermissionDialogVisibleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PermissionDialogVisibleRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..a<$fixnum.Int64>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeoutMillis', $pb.PbFieldType.OU6, protoName: 'timeoutMillis', defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'PermissionDialogVisibleRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'timeoutMillis', + $pb.PbFieldType.OU6, + protoName: 'timeoutMillis', + defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; PermissionDialogVisibleRequest._() : super(); factory PermissionDialogVisibleRequest({ @@ -1114,31 +1645,44 @@ class PermissionDialogVisibleRequest extends $pb.GeneratedMessage { } return _result; } - factory PermissionDialogVisibleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PermissionDialogVisibleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PermissionDialogVisibleRequest clone() => PermissionDialogVisibleRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PermissionDialogVisibleRequest copyWith(void Function(PermissionDialogVisibleRequest) updates) => super.copyWith((message) => updates(message as PermissionDialogVisibleRequest)) as PermissionDialogVisibleRequest; // ignore: deprecated_member_use + factory PermissionDialogVisibleRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PermissionDialogVisibleRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PermissionDialogVisibleRequest clone() => + PermissionDialogVisibleRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PermissionDialogVisibleRequest copyWith( + void Function(PermissionDialogVisibleRequest) updates) => + super.copyWith( + (message) => updates(message as PermissionDialogVisibleRequest)) + as PermissionDialogVisibleRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static PermissionDialogVisibleRequest create() => PermissionDialogVisibleRequest._(); + static PermissionDialogVisibleRequest create() => + PermissionDialogVisibleRequest._(); PermissionDialogVisibleRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PermissionDialogVisibleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PermissionDialogVisibleRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PermissionDialogVisibleRequest? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get timeoutMillis => $_getI64(0); @$pb.TagNumber(1) - set timeoutMillis($fixnum.Int64 v) { $_setInt64(0, v); } + set timeoutMillis($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasTimeoutMillis() => $_has(0); @$pb.TagNumber(1) @@ -1146,10 +1690,21 @@ class PermissionDialogVisibleRequest extends $pb.GeneratedMessage { } class PermissionDialogVisibleResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PermissionDialogVisibleResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'visible') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'PermissionDialogVisibleResponse', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOB( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'visible') + ..hasRequiredFields = false; PermissionDialogVisibleResponse._() : super(); factory PermissionDialogVisibleResponse({ @@ -1161,31 +1716,45 @@ class PermissionDialogVisibleResponse extends $pb.GeneratedMessage { } return _result; } - factory PermissionDialogVisibleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PermissionDialogVisibleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PermissionDialogVisibleResponse clone() => PermissionDialogVisibleResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PermissionDialogVisibleResponse copyWith(void Function(PermissionDialogVisibleResponse) updates) => super.copyWith((message) => updates(message as PermissionDialogVisibleResponse)) as PermissionDialogVisibleResponse; // ignore: deprecated_member_use + factory PermissionDialogVisibleResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PermissionDialogVisibleResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PermissionDialogVisibleResponse clone() => + PermissionDialogVisibleResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PermissionDialogVisibleResponse copyWith( + void Function(PermissionDialogVisibleResponse) updates) => + super.copyWith( + (message) => updates(message as PermissionDialogVisibleResponse)) + as PermissionDialogVisibleResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static PermissionDialogVisibleResponse create() => PermissionDialogVisibleResponse._(); + static PermissionDialogVisibleResponse create() => + PermissionDialogVisibleResponse._(); PermissionDialogVisibleResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PermissionDialogVisibleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PermissionDialogVisibleResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); static PermissionDialogVisibleResponse? _defaultInstance; @$pb.TagNumber(1) $core.bool get visible => $_getBF(0); @$pb.TagNumber(1) - set visible($core.bool v) { $_setBool(0, v); } + set visible($core.bool v) { + $_setBool(0, v); + } + @$pb.TagNumber(1) $core.bool hasVisible() => $_has(0); @$pb.TagNumber(1) @@ -1193,21 +1762,84 @@ class PermissionDialogVisibleResponse extends $pb.GeneratedMessage { } class Selector extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Selector', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'text') - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'textStartsWith', protoName: 'textStartsWith') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'textContains', protoName: 'textContains') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'className', protoName: 'className') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'contentDescription', protoName: 'contentDescription') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'contentDescriptionStartsWith', protoName: 'contentDescriptionStartsWith') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'contentDescriptionContains', protoName: 'contentDescriptionContains') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceId', protoName: 'resourceId') - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'instance', $pb.PbFieldType.OU3) - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enabled') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'focused') - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pkg') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'Selector', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'text') + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'textStartsWith', + protoName: 'textStartsWith') + ..aOS( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'textContains', + protoName: 'textContains') + ..aOS( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'className', + protoName: 'className') + ..aOS( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'contentDescription', + protoName: 'contentDescription') + ..aOS( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'contentDescriptionStartsWith', + protoName: 'contentDescriptionStartsWith') + ..aOS( + 7, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'contentDescriptionContains', + protoName: 'contentDescriptionContains') + ..aOS( + 8, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'resourceId', + protoName: 'resourceId') + ..a<$core.int>( + 9, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'instance', + $pb.PbFieldType.OU3) + ..aOB( + 10, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'enabled') + ..aOB( + 11, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'focused') + ..aOS( + 12, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'pkg') + ..hasRequiredFields = false; Selector._() : super(); factory Selector({ @@ -1263,31 +1895,39 @@ class Selector extends $pb.GeneratedMessage { } return _result; } - factory Selector.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Selector.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Selector.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Selector.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Selector clone() => Selector()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Selector copyWith(void Function(Selector) updates) => super.copyWith((message) => updates(message as Selector)) as Selector; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Selector copyWith(void Function(Selector) updates) => + super.copyWith((message) => updates(message as Selector)) + as Selector; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Selector create() => Selector._(); Selector createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Selector getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Selector getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Selector? _defaultInstance; @$pb.TagNumber(1) $core.String get text => $_getSZ(0); @$pb.TagNumber(1) - set text($core.String v) { $_setString(0, v); } + set text($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasText() => $_has(0); @$pb.TagNumber(1) @@ -1296,7 +1936,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get textStartsWith => $_getSZ(1); @$pb.TagNumber(2) - set textStartsWith($core.String v) { $_setString(1, v); } + set textStartsWith($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTextStartsWith() => $_has(1); @$pb.TagNumber(2) @@ -1305,7 +1948,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get textContains => $_getSZ(2); @$pb.TagNumber(3) - set textContains($core.String v) { $_setString(2, v); } + set textContains($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasTextContains() => $_has(2); @$pb.TagNumber(3) @@ -1314,7 +1960,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get className => $_getSZ(3); @$pb.TagNumber(4) - set className($core.String v) { $_setString(3, v); } + set className($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasClassName() => $_has(3); @$pb.TagNumber(4) @@ -1323,7 +1972,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get contentDescription => $_getSZ(4); @$pb.TagNumber(5) - set contentDescription($core.String v) { $_setString(4, v); } + set contentDescription($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasContentDescription() => $_has(4); @$pb.TagNumber(5) @@ -1332,7 +1984,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get contentDescriptionStartsWith => $_getSZ(5); @$pb.TagNumber(6) - set contentDescriptionStartsWith($core.String v) { $_setString(5, v); } + set contentDescriptionStartsWith($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasContentDescriptionStartsWith() => $_has(5); @$pb.TagNumber(6) @@ -1341,7 +1996,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get contentDescriptionContains => $_getSZ(6); @$pb.TagNumber(7) - set contentDescriptionContains($core.String v) { $_setString(6, v); } + set contentDescriptionContains($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(7) $core.bool hasContentDescriptionContains() => $_has(6); @$pb.TagNumber(7) @@ -1350,7 +2008,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get resourceId => $_getSZ(7); @$pb.TagNumber(8) - set resourceId($core.String v) { $_setString(7, v); } + set resourceId($core.String v) { + $_setString(7, v); + } + @$pb.TagNumber(8) $core.bool hasResourceId() => $_has(7); @$pb.TagNumber(8) @@ -1359,7 +2020,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.int get instance => $_getIZ(8); @$pb.TagNumber(9) - set instance($core.int v) { $_setUnsignedInt32(8, v); } + set instance($core.int v) { + $_setUnsignedInt32(8, v); + } + @$pb.TagNumber(9) $core.bool hasInstance() => $_has(8); @$pb.TagNumber(9) @@ -1368,7 +2032,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get enabled => $_getBF(9); @$pb.TagNumber(10) - set enabled($core.bool v) { $_setBool(9, v); } + set enabled($core.bool v) { + $_setBool(9, v); + } + @$pb.TagNumber(10) $core.bool hasEnabled() => $_has(9); @$pb.TagNumber(10) @@ -1377,7 +2044,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.bool get focused => $_getBF(10); @$pb.TagNumber(11) - set focused($core.bool v) { $_setBool(10, v); } + set focused($core.bool v) { + $_setBool(10, v); + } + @$pb.TagNumber(11) $core.bool hasFocused() => $_has(10); @$pb.TagNumber(11) @@ -1386,7 +2056,10 @@ class Selector extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get pkg => $_getSZ(11); @$pb.TagNumber(12) - set pkg($core.String v) { $_setString(11, v); } + set pkg($core.String v) { + $_setString(11, v); + } + @$pb.TagNumber(12) $core.bool hasPkg() => $_has(11); @$pb.TagNumber(12) @@ -1394,18 +2067,69 @@ class Selector extends $pb.GeneratedMessage { } class NativeView extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'NativeView', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'className', protoName: 'className') - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'text') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'contentDescription', protoName: 'contentDescription') - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'focused') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enabled') - ..a<$core.int>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'childCount', $pb.PbFieldType.O3, protoName: 'childCount') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceName', protoName: 'resourceName') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'applicationPackage', protoName: 'applicationPackage') - ..pc(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'children', $pb.PbFieldType.PM, subBuilder: NativeView.create) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'NativeView', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'className', + protoName: 'className') + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'text') + ..aOS( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'contentDescription', + protoName: 'contentDescription') + ..aOB( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'focused') + ..aOB( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'enabled') + ..a<$core.int>( + 6, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'childCount', + $pb.PbFieldType.O3, + protoName: 'childCount') + ..aOS( + 7, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'resourceName', + protoName: 'resourceName') + ..aOS( + 8, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'applicationPackage', + protoName: 'applicationPackage') + ..pc( + 9, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'children', + $pb.PbFieldType.PM, + subBuilder: NativeView.create) + ..hasRequiredFields = false; NativeView._() : super(); factory NativeView({ @@ -1449,31 +2173,39 @@ class NativeView extends $pb.GeneratedMessage { } return _result; } - factory NativeView.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory NativeView.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory NativeView.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory NativeView.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') NativeView clone() => NativeView()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - NativeView copyWith(void Function(NativeView) updates) => super.copyWith((message) => updates(message as NativeView)) as NativeView; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NativeView copyWith(void Function(NativeView) updates) => + super.copyWith((message) => updates(message as NativeView)) + as NativeView; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NativeView create() => NativeView._(); NativeView createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static NativeView getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static NativeView getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static NativeView? _defaultInstance; @$pb.TagNumber(1) $core.String get className => $_getSZ(0); @$pb.TagNumber(1) - set className($core.String v) { $_setString(0, v); } + set className($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasClassName() => $_has(0); @$pb.TagNumber(1) @@ -1482,7 +2214,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get text => $_getSZ(1); @$pb.TagNumber(2) - set text($core.String v) { $_setString(1, v); } + set text($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasText() => $_has(1); @$pb.TagNumber(2) @@ -1491,7 +2226,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get contentDescription => $_getSZ(2); @$pb.TagNumber(3) - set contentDescription($core.String v) { $_setString(2, v); } + set contentDescription($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasContentDescription() => $_has(2); @$pb.TagNumber(3) @@ -1500,7 +2238,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get focused => $_getBF(3); @$pb.TagNumber(4) - set focused($core.bool v) { $_setBool(3, v); } + set focused($core.bool v) { + $_setBool(3, v); + } + @$pb.TagNumber(4) $core.bool hasFocused() => $_has(3); @$pb.TagNumber(4) @@ -1509,7 +2250,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.bool get enabled => $_getBF(4); @$pb.TagNumber(5) - set enabled($core.bool v) { $_setBool(4, v); } + set enabled($core.bool v) { + $_setBool(4, v); + } + @$pb.TagNumber(5) $core.bool hasEnabled() => $_has(4); @$pb.TagNumber(5) @@ -1518,7 +2262,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get childCount => $_getIZ(5); @$pb.TagNumber(6) - set childCount($core.int v) { $_setSignedInt32(5, v); } + set childCount($core.int v) { + $_setSignedInt32(5, v); + } + @$pb.TagNumber(6) $core.bool hasChildCount() => $_has(5); @$pb.TagNumber(6) @@ -1527,7 +2274,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get resourceName => $_getSZ(6); @$pb.TagNumber(7) - set resourceName($core.String v) { $_setString(6, v); } + set resourceName($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(7) $core.bool hasResourceName() => $_has(6); @$pb.TagNumber(7) @@ -1536,7 +2286,10 @@ class NativeView extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get applicationPackage => $_getSZ(7); @$pb.TagNumber(8) - set applicationPackage($core.String v) { $_setString(7, v); } + set applicationPackage($core.String v) { + $_setString(7, v); + } + @$pb.TagNumber(8) $core.bool hasApplicationPackage() => $_has(7); @$pb.TagNumber(8) @@ -1547,13 +2300,37 @@ class NativeView extends $pb.GeneratedMessage { } class Notification extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Notification', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appName', protoName: 'appName') - ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'title') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'content') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'raw') - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'Notification', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'appName', + protoName: 'appName') + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'title') + ..aOS( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'content') + ..aOS( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'raw') + ..hasRequiredFields = false; Notification._() : super(); factory Notification({ @@ -1577,31 +2354,40 @@ class Notification extends $pb.GeneratedMessage { } return _result; } - factory Notification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Notification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Notification.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Notification.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Notification clone() => Notification()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Notification copyWith(void Function(Notification) updates) => super.copyWith((message) => updates(message as Notification)) as Notification; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Notification copyWith(void Function(Notification) updates) => + super.copyWith((message) => updates(message as Notification)) + as Notification; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Notification create() => Notification._(); Notification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static Notification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Notification getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Notification? _defaultInstance; @$pb.TagNumber(1) $core.String get appName => $_getSZ(0); @$pb.TagNumber(1) - set appName($core.String v) { $_setString(0, v); } + set appName($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasAppName() => $_has(0); @$pb.TagNumber(1) @@ -1610,7 +2396,10 @@ class Notification extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) - set title($core.String v) { $_setString(1, v); } + set title($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTitle() => $_has(1); @$pb.TagNumber(2) @@ -1619,7 +2408,10 @@ class Notification extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get content => $_getSZ(2); @$pb.TagNumber(3) - set content($core.String v) { $_setString(2, v); } + set content($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasContent() => $_has(2); @$pb.TagNumber(3) @@ -1628,7 +2420,10 @@ class Notification extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get raw => $_getSZ(3); @$pb.TagNumber(4) - set raw($core.String v) { $_setString(3, v); } + set raw($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasRaw() => $_has(3); @$pb.TagNumber(4) @@ -1636,10 +2431,25 @@ class Notification extends $pb.GeneratedMessage { } class SubmitTestResultsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubmitTestResultsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'patrol'), createEmptyInstance: create) - ..m<$core.String, $core.String>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'results', entryClassName: 'SubmitTestResultsRequest.ResultsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('patrol')) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'SubmitTestResultsRequest', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'patrol'), + createEmptyInstance: create) + ..m<$core.String, $core.String>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'results', + entryClassName: 'SubmitTestResultsRequest.ResultsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('patrol')) + ..hasRequiredFields = false; SubmitTestResultsRequest._() : super(); factory SubmitTestResultsRequest({ @@ -1651,28 +2461,35 @@ class SubmitTestResultsRequest extends $pb.GeneratedMessage { } return _result; } - factory SubmitTestResultsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubmitTestResultsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubmitTestResultsRequest clone() => SubmitTestResultsRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubmitTestResultsRequest copyWith(void Function(SubmitTestResultsRequest) updates) => super.copyWith((message) => updates(message as SubmitTestResultsRequest)) as SubmitTestResultsRequest; // ignore: deprecated_member_use + factory SubmitTestResultsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubmitTestResultsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubmitTestResultsRequest clone() => + SubmitTestResultsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubmitTestResultsRequest copyWith( + void Function(SubmitTestResultsRequest) updates) => + super.copyWith((message) => updates(message as SubmitTestResultsRequest)) + as SubmitTestResultsRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubmitTestResultsRequest create() => SubmitTestResultsRequest._(); SubmitTestResultsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubmitTestResultsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubmitTestResultsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubmitTestResultsRequest? _defaultInstance; @$pb.TagNumber(1) $core.Map<$core.String, $core.String> get results => $_getMap(0); } - diff --git a/packages/patrol/lib/src/native/contracts/contracts.pbenum.dart b/packages/patrol/lib/src/native/contracts/contracts.pbenum.dart index ed9a399a5..05170df17 100644 --- a/packages/patrol/lib/src/native/contracts/contracts.pbenum.dart +++ b/packages/patrol/lib/src/native/contracts/contracts.pbenum.dart @@ -10,51 +10,103 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class RunDartTestResponse_Result extends $pb.ProtobufEnum { - static const RunDartTestResponse_Result SUCCESS = RunDartTestResponse_Result._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SUCCESS'); - static const RunDartTestResponse_Result SKIPPED = RunDartTestResponse_Result._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SKIPPED'); - static const RunDartTestResponse_Result FAILURE = RunDartTestResponse_Result._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FAILURE'); + static const RunDartTestResponse_Result SUCCESS = + RunDartTestResponse_Result._( + 0, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'SUCCESS'); + static const RunDartTestResponse_Result SKIPPED = + RunDartTestResponse_Result._( + 1, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'SKIPPED'); + static const RunDartTestResponse_Result FAILURE = + RunDartTestResponse_Result._( + 2, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'FAILURE'); - static const $core.List values = [ + static const $core.List values = + [ SUCCESS, SKIPPED, FAILURE, ]; - static final $core.Map<$core.int, RunDartTestResponse_Result> _byValue = $pb.ProtobufEnum.initByValue(values); - static RunDartTestResponse_Result? valueOf($core.int value) => _byValue[value]; + static final $core.Map<$core.int, RunDartTestResponse_Result> _byValue = + $pb.ProtobufEnum.initByValue(values); + static RunDartTestResponse_Result? valueOf($core.int value) => + _byValue[value]; const RunDartTestResponse_Result._($core.int v, $core.String n) : super(v, n); } class HandlePermissionRequest_Code extends $pb.ProtobufEnum { - static const HandlePermissionRequest_Code WHILE_USING = HandlePermissionRequest_Code._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WHILE_USING'); - static const HandlePermissionRequest_Code ONLY_THIS_TIME = HandlePermissionRequest_Code._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ONLY_THIS_TIME'); - static const HandlePermissionRequest_Code DENIED = HandlePermissionRequest_Code._(2, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DENIED'); + static const HandlePermissionRequest_Code WHILE_USING = + HandlePermissionRequest_Code._( + 0, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'WHILE_USING'); + static const HandlePermissionRequest_Code ONLY_THIS_TIME = + HandlePermissionRequest_Code._( + 1, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'ONLY_THIS_TIME'); + static const HandlePermissionRequest_Code DENIED = + HandlePermissionRequest_Code._( + 2, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'DENIED'); - static const $core.List values = [ + static const $core.List values = + [ WHILE_USING, ONLY_THIS_TIME, DENIED, ]; - static final $core.Map<$core.int, HandlePermissionRequest_Code> _byValue = $pb.ProtobufEnum.initByValue(values); - static HandlePermissionRequest_Code? valueOf($core.int value) => _byValue[value]; + static final $core.Map<$core.int, HandlePermissionRequest_Code> _byValue = + $pb.ProtobufEnum.initByValue(values); + static HandlePermissionRequest_Code? valueOf($core.int value) => + _byValue[value]; - const HandlePermissionRequest_Code._($core.int v, $core.String n) : super(v, n); + const HandlePermissionRequest_Code._($core.int v, $core.String n) + : super(v, n); } class SetLocationAccuracyRequest_LocationAccuracy extends $pb.ProtobufEnum { - static const SetLocationAccuracyRequest_LocationAccuracy COARSE = SetLocationAccuracyRequest_LocationAccuracy._(0, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COARSE'); - static const SetLocationAccuracyRequest_LocationAccuracy FINE = SetLocationAccuracyRequest_LocationAccuracy._(1, const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FINE'); + static const SetLocationAccuracyRequest_LocationAccuracy COARSE = + SetLocationAccuracyRequest_LocationAccuracy._( + 0, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'COARSE'); + static const SetLocationAccuracyRequest_LocationAccuracy FINE = + SetLocationAccuracyRequest_LocationAccuracy._( + 1, + const $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'FINE'); - static const $core.List values = [ + static const $core.List values = + [ COARSE, FINE, ]; - static final $core.Map<$core.int, SetLocationAccuracyRequest_LocationAccuracy> _byValue = $pb.ProtobufEnum.initByValue(values); - static SetLocationAccuracyRequest_LocationAccuracy? valueOf($core.int value) => _byValue[value]; + static final $core.Map<$core.int, SetLocationAccuracyRequest_LocationAccuracy> + _byValue = $pb.ProtobufEnum.initByValue(values); + static SetLocationAccuracyRequest_LocationAccuracy? valueOf( + $core.int value) => + _byValue[value]; - const SetLocationAccuracyRequest_LocationAccuracy._($core.int v, $core.String n) : super(v, n); + const SetLocationAccuracyRequest_LocationAccuracy._( + $core.int v, $core.String n) + : super(v, n); } - diff --git a/packages/patrol/lib/src/native/contracts/contracts.pbjson.dart b/packages/patrol/lib/src/native/contracts/contracts.pbjson.dart index 3d40fda0d..c7f6d5abb 100644 --- a/packages/patrol/lib/src/native/contracts/contracts.pbjson.dart +++ b/packages/patrol/lib/src/native/contracts/contracts.pbjson.dart @@ -8,28 +8,52 @@ import 'dart:core' as $core; import 'dart:convert' as $convert; import 'dart:typed_data' as $typed_data; + @$core.Deprecated('Use listDartTestsResponseDescriptor instead') const ListDartTestsResponse$json = const { '1': 'ListDartTestsResponse', '2': const [ - const {'1': 'group', '3': 1, '4': 1, '5': 11, '6': '.patrol.DartTestGroup', '10': 'group'}, + const { + '1': 'group', + '3': 1, + '4': 1, + '5': 11, + '6': '.patrol.DartTestGroup', + '10': 'group' + }, ], }; /// Descriptor for `ListDartTestsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listDartTestsResponseDescriptor = $convert.base64Decode('ChVMaXN0RGFydFRlc3RzUmVzcG9uc2USKwoFZ3JvdXAYASABKAsyFS5wYXRyb2wuRGFydFRlc3RHcm91cFIFZ3JvdXA='); +final $typed_data.Uint8List listDartTestsResponseDescriptor = $convert.base64Decode( + 'ChVMaXN0RGFydFRlc3RzUmVzcG9uc2USKwoFZ3JvdXAYASABKAsyFS5wYXRyb2wuRGFydFRlc3RHcm91cFIFZ3JvdXA='); @$core.Deprecated('Use dartTestGroupDescriptor instead') const DartTestGroup$json = const { '1': 'DartTestGroup', '2': const [ const {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, - const {'1': 'tests', '3': 2, '4': 3, '5': 11, '6': '.patrol.DartTestCase', '10': 'tests'}, - const {'1': 'groups', '3': 3, '4': 3, '5': 11, '6': '.patrol.DartTestGroup', '10': 'groups'}, + const { + '1': 'tests', + '3': 2, + '4': 3, + '5': 11, + '6': '.patrol.DartTestCase', + '10': 'tests' + }, + const { + '1': 'groups', + '3': 3, + '4': 3, + '5': 11, + '6': '.patrol.DartTestGroup', + '10': 'groups' + }, ], }; /// Descriptor for `DartTestGroup`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List dartTestGroupDescriptor = $convert.base64Decode('Cg1EYXJ0VGVzdEdyb3VwEhIKBG5hbWUYASABKAlSBG5hbWUSKgoFdGVzdHMYAiADKAsyFC5wYXRyb2wuRGFydFRlc3RDYXNlUgV0ZXN0cxItCgZncm91cHMYAyADKAsyFS5wYXRyb2wuRGFydFRlc3RHcm91cFIGZ3JvdXBz'); +final $typed_data.Uint8List dartTestGroupDescriptor = $convert.base64Decode( + 'Cg1EYXJ0VGVzdEdyb3VwEhIKBG5hbWUYASABKAlSBG5hbWUSKgoFdGVzdHMYAiADKAsyFC5wYXRyb2wuRGFydFRlc3RDYXNlUgV0ZXN0cxItCgZncm91cHMYAyADKAsyFS5wYXRyb2wuRGFydFRlc3RHcm91cFIGZ3JvdXBz'); @$core.Deprecated('Use dartTestCaseDescriptor instead') const DartTestCase$json = const { '1': 'DartTestCase', @@ -39,7 +63,8 @@ const DartTestCase$json = const { }; /// Descriptor for `DartTestCase`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List dartTestCaseDescriptor = $convert.base64Decode('CgxEYXJ0VGVzdENhc2USEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); +final $typed_data.Uint8List dartTestCaseDescriptor = + $convert.base64Decode('CgxEYXJ0VGVzdENhc2USEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); @$core.Deprecated('Use runDartTestRequestDescriptor instead') const RunDartTestRequest$json = const { '1': 'RunDartTestRequest', @@ -49,13 +74,29 @@ const RunDartTestRequest$json = const { }; /// Descriptor for `RunDartTestRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List runDartTestRequestDescriptor = $convert.base64Decode('ChJSdW5EYXJ0VGVzdFJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); +final $typed_data.Uint8List runDartTestRequestDescriptor = $convert + .base64Decode('ChJSdW5EYXJ0VGVzdFJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); @$core.Deprecated('Use runDartTestResponseDescriptor instead') const RunDartTestResponse$json = const { '1': 'RunDartTestResponse', '2': const [ - const {'1': 'result', '3': 1, '4': 1, '5': 14, '6': '.patrol.RunDartTestResponse.Result', '10': 'result'}, - const {'1': 'details', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'details', '17': true}, + const { + '1': 'result', + '3': 1, + '4': 1, + '5': 14, + '6': '.patrol.RunDartTestResponse.Result', + '10': 'result' + }, + const { + '1': 'details', + '3': 2, + '4': 1, + '5': 9, + '9': 0, + '10': 'details', + '17': true + }, ], '4': const [RunDartTestResponse_Result$json], '8': const [ @@ -74,17 +115,25 @@ const RunDartTestResponse_Result$json = const { }; /// Descriptor for `RunDartTestResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List runDartTestResponseDescriptor = $convert.base64Decode('ChNSdW5EYXJ0VGVzdFJlc3BvbnNlEjoKBnJlc3VsdBgBIAEoDjIiLnBhdHJvbC5SdW5EYXJ0VGVzdFJlc3BvbnNlLlJlc3VsdFIGcmVzdWx0Eh0KB2RldGFpbHMYAiABKAlIAFIHZGV0YWlsc4gBASIvCgZSZXN1bHQSCwoHU1VDQ0VTUxAAEgsKB1NLSVBQRUQQARILCgdGQUlMVVJFEAJCCgoIX2RldGFpbHM='); +final $typed_data.Uint8List runDartTestResponseDescriptor = $convert.base64Decode( + 'ChNSdW5EYXJ0VGVzdFJlc3BvbnNlEjoKBnJlc3VsdBgBIAEoDjIiLnBhdHJvbC5SdW5EYXJ0VGVzdFJlc3BvbnNlLlJlc3VsdFIGcmVzdWx0Eh0KB2RldGFpbHMYAiABKAlIAFIHZGV0YWlsc4gBASIvCgZSZXN1bHQSCwoHU1VDQ0VTUxAAEgsKB1NLSVBQRUQQARILCgdGQUlMVVJFEAJCCgoIX2RldGFpbHM='); @$core.Deprecated('Use configureRequestDescriptor instead') const ConfigureRequest$json = const { '1': 'ConfigureRequest', '2': const [ - const {'1': 'findTimeoutMillis', '3': 1, '4': 1, '5': 4, '10': 'findTimeoutMillis'}, + const { + '1': 'findTimeoutMillis', + '3': 1, + '4': 1, + '5': 4, + '10': 'findTimeoutMillis' + }, ], }; /// Descriptor for `ConfigureRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List configureRequestDescriptor = $convert.base64Decode('ChBDb25maWd1cmVSZXF1ZXN0EiwKEWZpbmRUaW1lb3V0TWlsbGlzGAEgASgEUhFmaW5kVGltZW91dE1pbGxpcw=='); +final $typed_data.Uint8List configureRequestDescriptor = $convert.base64Decode( + 'ChBDb25maWd1cmVSZXF1ZXN0EiwKEWZpbmRUaW1lb3V0TWlsbGlzGAEgASgEUhFmaW5kVGltZW91dE1pbGxpcw=='); @$core.Deprecated('Use openAppRequestDescriptor instead') const OpenAppRequest$json = const { '1': 'OpenAppRequest', @@ -94,13 +143,22 @@ const OpenAppRequest$json = const { }; /// Descriptor for `OpenAppRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List openAppRequestDescriptor = $convert.base64Decode('Cg5PcGVuQXBwUmVxdWVzdBIUCgVhcHBJZBgBIAEoCVIFYXBwSWQ='); +final $typed_data.Uint8List openAppRequestDescriptor = $convert + .base64Decode('Cg5PcGVuQXBwUmVxdWVzdBIUCgVhcHBJZBgBIAEoCVIFYXBwSWQ='); @$core.Deprecated('Use tapOnNotificationRequestDescriptor instead') const TapOnNotificationRequest$json = const { '1': 'TapOnNotificationRequest', '2': const [ const {'1': 'index', '3': 1, '4': 1, '5': 13, '9': 0, '10': 'index'}, - const {'1': 'selector', '3': 2, '4': 1, '5': 11, '6': '.patrol.Selector', '9': 0, '10': 'selector'}, + const { + '1': 'selector', + '3': 2, + '4': 1, + '5': 11, + '6': '.patrol.Selector', + '9': 0, + '10': 'selector' + }, ], '8': const [ const {'1': 'findBy'}, @@ -108,21 +166,25 @@ const TapOnNotificationRequest$json = const { }; /// Descriptor for `TapOnNotificationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List tapOnNotificationRequestDescriptor = $convert.base64Decode('ChhUYXBPbk5vdGlmaWNhdGlvblJlcXVlc3QSFgoFaW5kZXgYASABKA1IAFIFaW5kZXgSLgoIc2VsZWN0b3IYAiABKAsyEC5wYXRyb2wuU2VsZWN0b3JIAFIIc2VsZWN0b3JCCAoGZmluZEJ5'); +final $typed_data.Uint8List tapOnNotificationRequestDescriptor = + $convert.base64Decode( + 'ChhUYXBPbk5vdGlmaWNhdGlvblJlcXVlc3QSFgoFaW5kZXgYASABKA1IAFIFaW5kZXgSLgoIc2VsZWN0b3IYAiABKAsyEC5wYXRyb2wuU2VsZWN0b3JIAFIIc2VsZWN0b3JCCAoGZmluZEJ5'); @$core.Deprecated('Use emptyDescriptor instead') const Empty$json = const { '1': 'Empty', }; /// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode('CgVFbXB0eQ=='); +final $typed_data.Uint8List emptyDescriptor = + $convert.base64Decode('CgVFbXB0eQ=='); @$core.Deprecated('Use openQuickSettingsRequestDescriptor instead') const OpenQuickSettingsRequest$json = const { '1': 'OpenQuickSettingsRequest', }; /// Descriptor for `OpenQuickSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List openQuickSettingsRequestDescriptor = $convert.base64Decode('ChhPcGVuUXVpY2tTZXR0aW5nc1JlcXVlc3Q='); +final $typed_data.Uint8List openQuickSettingsRequestDescriptor = + $convert.base64Decode('ChhPcGVuUXVpY2tTZXR0aW5nc1JlcXVlc3Q='); @$core.Deprecated('Use darkModeRequestDescriptor instead') const DarkModeRequest$json = const { '1': 'DarkModeRequest', @@ -132,55 +194,91 @@ const DarkModeRequest$json = const { }; /// Descriptor for `DarkModeRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List darkModeRequestDescriptor = $convert.base64Decode('Cg9EYXJrTW9kZVJlcXVlc3QSFAoFYXBwSWQYASABKAlSBWFwcElk'); +final $typed_data.Uint8List darkModeRequestDescriptor = $convert + .base64Decode('Cg9EYXJrTW9kZVJlcXVlc3QSFAoFYXBwSWQYASABKAlSBWFwcElk'); @$core.Deprecated('Use getNativeViewsRequestDescriptor instead') const GetNativeViewsRequest$json = const { '1': 'GetNativeViewsRequest', '2': const [ - const {'1': 'selector', '3': 1, '4': 1, '5': 11, '6': '.patrol.Selector', '10': 'selector'}, + const { + '1': 'selector', + '3': 1, + '4': 1, + '5': 11, + '6': '.patrol.Selector', + '10': 'selector' + }, ], }; /// Descriptor for `GetNativeViewsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNativeViewsRequestDescriptor = $convert.base64Decode('ChVHZXROYXRpdmVWaWV3c1JlcXVlc3QSLAoIc2VsZWN0b3IYASABKAsyEC5wYXRyb2wuU2VsZWN0b3JSCHNlbGVjdG9y'); +final $typed_data.Uint8List getNativeViewsRequestDescriptor = $convert.base64Decode( + 'ChVHZXROYXRpdmVWaWV3c1JlcXVlc3QSLAoIc2VsZWN0b3IYASABKAsyEC5wYXRyb2wuU2VsZWN0b3JSCHNlbGVjdG9y'); @$core.Deprecated('Use getNativeViewsResponseDescriptor instead') const GetNativeViewsResponse$json = const { '1': 'GetNativeViewsResponse', '2': const [ - const {'1': 'nativeViews', '3': 2, '4': 3, '5': 11, '6': '.patrol.NativeView', '10': 'nativeViews'}, + const { + '1': 'nativeViews', + '3': 2, + '4': 3, + '5': 11, + '6': '.patrol.NativeView', + '10': 'nativeViews' + }, ], }; /// Descriptor for `GetNativeViewsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNativeViewsResponseDescriptor = $convert.base64Decode('ChZHZXROYXRpdmVWaWV3c1Jlc3BvbnNlEjQKC25hdGl2ZVZpZXdzGAIgAygLMhIucGF0cm9sLk5hdGl2ZVZpZXdSC25hdGl2ZVZpZXdz'); +final $typed_data.Uint8List getNativeViewsResponseDescriptor = + $convert.base64Decode( + 'ChZHZXROYXRpdmVWaWV3c1Jlc3BvbnNlEjQKC25hdGl2ZVZpZXdzGAIgAygLMhIucGF0cm9sLk5hdGl2ZVZpZXdSC25hdGl2ZVZpZXdz'); @$core.Deprecated('Use getNotificationsRequestDescriptor instead') const GetNotificationsRequest$json = const { '1': 'GetNotificationsRequest', }; /// Descriptor for `GetNotificationsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationsRequestDescriptor = $convert.base64Decode('ChdHZXROb3RpZmljYXRpb25zUmVxdWVzdA=='); +final $typed_data.Uint8List getNotificationsRequestDescriptor = + $convert.base64Decode('ChdHZXROb3RpZmljYXRpb25zUmVxdWVzdA=='); @$core.Deprecated('Use getNotificationsResponseDescriptor instead') const GetNotificationsResponse$json = const { '1': 'GetNotificationsResponse', '2': const [ - const {'1': 'notifications', '3': 2, '4': 3, '5': 11, '6': '.patrol.Notification', '10': 'notifications'}, + const { + '1': 'notifications', + '3': 2, + '4': 3, + '5': 11, + '6': '.patrol.Notification', + '10': 'notifications' + }, ], }; /// Descriptor for `GetNotificationsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationsResponseDescriptor = $convert.base64Decode('ChhHZXROb3RpZmljYXRpb25zUmVzcG9uc2USOgoNbm90aWZpY2F0aW9ucxgCIAMoCzIULnBhdHJvbC5Ob3RpZmljYXRpb25SDW5vdGlmaWNhdGlvbnM='); +final $typed_data.Uint8List getNotificationsResponseDescriptor = + $convert.base64Decode( + 'ChhHZXROb3RpZmljYXRpb25zUmVzcG9uc2USOgoNbm90aWZpY2F0aW9ucxgCIAMoCzIULnBhdHJvbC5Ob3RpZmljYXRpb25SDW5vdGlmaWNhdGlvbnM='); @$core.Deprecated('Use tapRequestDescriptor instead') const TapRequest$json = const { '1': 'TapRequest', '2': const [ - const {'1': 'selector', '3': 1, '4': 1, '5': 11, '6': '.patrol.Selector', '10': 'selector'}, + const { + '1': 'selector', + '3': 1, + '4': 1, + '5': 11, + '6': '.patrol.Selector', + '10': 'selector' + }, const {'1': 'appId', '3': 2, '4': 1, '5': 9, '10': 'appId'}, ], }; /// Descriptor for `TapRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List tapRequestDescriptor = $convert.base64Decode('CgpUYXBSZXF1ZXN0EiwKCHNlbGVjdG9yGAEgASgLMhAucGF0cm9sLlNlbGVjdG9yUghzZWxlY3RvchIUCgVhcHBJZBgCIAEoCVIFYXBwSWQ='); +final $typed_data.Uint8List tapRequestDescriptor = $convert.base64Decode( + 'CgpUYXBSZXF1ZXN0EiwKCHNlbGVjdG9yGAEgASgLMhAucGF0cm9sLlNlbGVjdG9yUghzZWxlY3RvchIUCgVhcHBJZBgCIAEoCVIFYXBwSWQ='); @$core.Deprecated('Use enterTextRequestDescriptor instead') const EnterTextRequest$json = const { '1': 'EnterTextRequest', @@ -188,7 +286,15 @@ const EnterTextRequest$json = const { const {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, const {'1': 'appId', '3': 2, '4': 1, '5': 9, '10': 'appId'}, const {'1': 'index', '3': 3, '4': 1, '5': 13, '9': 0, '10': 'index'}, - const {'1': 'selector', '3': 4, '4': 1, '5': 11, '6': '.patrol.Selector', '9': 0, '10': 'selector'}, + const { + '1': 'selector', + '3': 4, + '4': 1, + '5': 11, + '6': '.patrol.Selector', + '9': 0, + '10': 'selector' + }, ], '8': const [ const {'1': 'findBy'}, @@ -196,7 +302,8 @@ const EnterTextRequest$json = const { }; /// Descriptor for `EnterTextRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List enterTextRequestDescriptor = $convert.base64Decode('ChBFbnRlclRleHRSZXF1ZXN0EhIKBGRhdGEYASABKAlSBGRhdGESFAoFYXBwSWQYAiABKAlSBWFwcElkEhYKBWluZGV4GAMgASgNSABSBWluZGV4Ei4KCHNlbGVjdG9yGAQgASgLMhAucGF0cm9sLlNlbGVjdG9ySABSCHNlbGVjdG9yQggKBmZpbmRCeQ=='); +final $typed_data.Uint8List enterTextRequestDescriptor = $convert.base64Decode( + 'ChBFbnRlclRleHRSZXF1ZXN0EhIKBGRhdGEYASABKAlSBGRhdGESFAoFYXBwSWQYAiABKAlSBWFwcElkEhYKBWluZGV4GAMgASgNSABSBWluZGV4Ei4KCHNlbGVjdG9yGAQgASgLMhAucGF0cm9sLlNlbGVjdG9ySABSCHNlbGVjdG9yQggKBmZpbmRCeQ=='); @$core.Deprecated('Use swipeRequestDescriptor instead') const SwipeRequest$json = const { '1': 'SwipeRequest', @@ -211,12 +318,20 @@ const SwipeRequest$json = const { }; /// Descriptor for `SwipeRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List swipeRequestDescriptor = $convert.base64Decode('CgxTd2lwZVJlcXVlc3QSFgoGc3RhcnRYGAEgASgCUgZzdGFydFgSFgoGc3RhcnRZGAIgASgCUgZzdGFydFkSEgoEZW5kWBgDIAEoAlIEZW5kWBISCgRlbmRZGAQgASgCUgRlbmRZEhQKBXN0ZXBzGAUgASgNUgVzdGVwcxIUCgVhcHBJZBgGIAEoCVIFYXBwSWQ='); +final $typed_data.Uint8List swipeRequestDescriptor = $convert.base64Decode( + 'CgxTd2lwZVJlcXVlc3QSFgoGc3RhcnRYGAEgASgCUgZzdGFydFgSFgoGc3RhcnRZGAIgASgCUgZzdGFydFkSEgoEZW5kWBgDIAEoAlIEZW5kWBISCgRlbmRZGAQgASgCUgRlbmRZEhQKBXN0ZXBzGAUgASgNUgVzdGVwcxIUCgVhcHBJZBgGIAEoCVIFYXBwSWQ='); @$core.Deprecated('Use handlePermissionRequestDescriptor instead') const HandlePermissionRequest$json = const { '1': 'HandlePermissionRequest', '2': const [ - const {'1': 'code', '3': 1, '4': 1, '5': 14, '6': '.patrol.HandlePermissionRequest.Code', '10': 'code'}, + const { + '1': 'code', + '3': 1, + '4': 1, + '5': 14, + '6': '.patrol.HandlePermissionRequest.Code', + '10': 'code' + }, ], '4': const [HandlePermissionRequest_Code$json], }; @@ -232,12 +347,21 @@ const HandlePermissionRequest_Code$json = const { }; /// Descriptor for `HandlePermissionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List handlePermissionRequestDescriptor = $convert.base64Decode('ChdIYW5kbGVQZXJtaXNzaW9uUmVxdWVzdBI4CgRjb2RlGAEgASgOMiQucGF0cm9sLkhhbmRsZVBlcm1pc3Npb25SZXF1ZXN0LkNvZGVSBGNvZGUiNwoEQ29kZRIPCgtXSElMRV9VU0lORxAAEhIKDk9OTFlfVEhJU19USU1FEAESCgoGREVOSUVEEAI='); +final $typed_data.Uint8List handlePermissionRequestDescriptor = + $convert.base64Decode( + 'ChdIYW5kbGVQZXJtaXNzaW9uUmVxdWVzdBI4CgRjb2RlGAEgASgOMiQucGF0cm9sLkhhbmRsZVBlcm1pc3Npb25SZXF1ZXN0LkNvZGVSBGNvZGUiNwoEQ29kZRIPCgtXSElMRV9VU0lORxAAEhIKDk9OTFlfVEhJU19USU1FEAESCgoGREVOSUVEEAI='); @$core.Deprecated('Use setLocationAccuracyRequestDescriptor instead') const SetLocationAccuracyRequest$json = const { '1': 'SetLocationAccuracyRequest', '2': const [ - const {'1': 'locationAccuracy', '3': 1, '4': 1, '5': 14, '6': '.patrol.SetLocationAccuracyRequest.LocationAccuracy', '10': 'locationAccuracy'}, + const { + '1': 'locationAccuracy', + '3': 1, + '4': 1, + '5': 14, + '6': '.patrol.SetLocationAccuracyRequest.LocationAccuracy', + '10': 'locationAccuracy' + }, ], '4': const [SetLocationAccuracyRequest_LocationAccuracy$json], }; @@ -252,7 +376,9 @@ const SetLocationAccuracyRequest_LocationAccuracy$json = const { }; /// Descriptor for `SetLocationAccuracyRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List setLocationAccuracyRequestDescriptor = $convert.base64Decode('ChpTZXRMb2NhdGlvbkFjY3VyYWN5UmVxdWVzdBJfChBsb2NhdGlvbkFjY3VyYWN5GAEgASgOMjMucGF0cm9sLlNldExvY2F0aW9uQWNjdXJhY3lSZXF1ZXN0LkxvY2F0aW9uQWNjdXJhY3lSEGxvY2F0aW9uQWNjdXJhY3kiKAoQTG9jYXRpb25BY2N1cmFjeRIKCgZDT0FSU0UQABIICgRGSU5FEAE='); +final $typed_data.Uint8List setLocationAccuracyRequestDescriptor = + $convert.base64Decode( + 'ChpTZXRMb2NhdGlvbkFjY3VyYWN5UmVxdWVzdBJfChBsb2NhdGlvbkFjY3VyYWN5GAEgASgOMjMucGF0cm9sLlNldExvY2F0aW9uQWNjdXJhY3lSZXF1ZXN0LkxvY2F0aW9uQWNjdXJhY3lSEGxvY2F0aW9uQWNjdXJhY3kiKAoQTG9jYXRpb25BY2N1cmFjeRIKCgZDT0FSU0UQABIICgRGSU5FEAE='); @$core.Deprecated('Use permissionDialogVisibleRequestDescriptor instead') const PermissionDialogVisibleRequest$json = const { '1': 'PermissionDialogVisibleRequest', @@ -262,7 +388,9 @@ const PermissionDialogVisibleRequest$json = const { }; /// Descriptor for `PermissionDialogVisibleRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List permissionDialogVisibleRequestDescriptor = $convert.base64Decode('Ch5QZXJtaXNzaW9uRGlhbG9nVmlzaWJsZVJlcXVlc3QSJAoNdGltZW91dE1pbGxpcxgBIAEoBFINdGltZW91dE1pbGxpcw=='); +final $typed_data.Uint8List permissionDialogVisibleRequestDescriptor = + $convert.base64Decode( + 'Ch5QZXJtaXNzaW9uRGlhbG9nVmlzaWJsZVJlcXVlc3QSJAoNdGltZW91dE1pbGxpcxgBIAEoBFINdGltZW91dE1pbGxpcw=='); @$core.Deprecated('Use permissionDialogVisibleResponseDescriptor instead') const PermissionDialogVisibleResponse$json = const { '1': 'PermissionDialogVisibleResponse', @@ -272,23 +400,121 @@ const PermissionDialogVisibleResponse$json = const { }; /// Descriptor for `PermissionDialogVisibleResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List permissionDialogVisibleResponseDescriptor = $convert.base64Decode('Ch9QZXJtaXNzaW9uRGlhbG9nVmlzaWJsZVJlc3BvbnNlEhgKB3Zpc2libGUYASABKAhSB3Zpc2libGU='); +final $typed_data.Uint8List permissionDialogVisibleResponseDescriptor = + $convert.base64Decode( + 'Ch9QZXJtaXNzaW9uRGlhbG9nVmlzaWJsZVJlc3BvbnNlEhgKB3Zpc2libGUYASABKAhSB3Zpc2libGU='); @$core.Deprecated('Use selectorDescriptor instead') const Selector$json = const { '1': 'Selector', '2': const [ - const {'1': 'text', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'text', '17': true}, - const {'1': 'textStartsWith', '3': 2, '4': 1, '5': 9, '9': 1, '10': 'textStartsWith', '17': true}, - const {'1': 'textContains', '3': 3, '4': 1, '5': 9, '9': 2, '10': 'textContains', '17': true}, - const {'1': 'className', '3': 4, '4': 1, '5': 9, '9': 3, '10': 'className', '17': true}, - const {'1': 'contentDescription', '3': 5, '4': 1, '5': 9, '9': 4, '10': 'contentDescription', '17': true}, - const {'1': 'contentDescriptionStartsWith', '3': 6, '4': 1, '5': 9, '9': 5, '10': 'contentDescriptionStartsWith', '17': true}, - const {'1': 'contentDescriptionContains', '3': 7, '4': 1, '5': 9, '9': 6, '10': 'contentDescriptionContains', '17': true}, - const {'1': 'resourceId', '3': 8, '4': 1, '5': 9, '9': 7, '10': 'resourceId', '17': true}, - const {'1': 'instance', '3': 9, '4': 1, '5': 13, '9': 8, '10': 'instance', '17': true}, - const {'1': 'enabled', '3': 10, '4': 1, '5': 8, '9': 9, '10': 'enabled', '17': true}, - const {'1': 'focused', '3': 11, '4': 1, '5': 8, '9': 10, '10': 'focused', '17': true}, - const {'1': 'pkg', '3': 12, '4': 1, '5': 9, '9': 11, '10': 'pkg', '17': true}, + const { + '1': 'text', + '3': 1, + '4': 1, + '5': 9, + '9': 0, + '10': 'text', + '17': true + }, + const { + '1': 'textStartsWith', + '3': 2, + '4': 1, + '5': 9, + '9': 1, + '10': 'textStartsWith', + '17': true + }, + const { + '1': 'textContains', + '3': 3, + '4': 1, + '5': 9, + '9': 2, + '10': 'textContains', + '17': true + }, + const { + '1': 'className', + '3': 4, + '4': 1, + '5': 9, + '9': 3, + '10': 'className', + '17': true + }, + const { + '1': 'contentDescription', + '3': 5, + '4': 1, + '5': 9, + '9': 4, + '10': 'contentDescription', + '17': true + }, + const { + '1': 'contentDescriptionStartsWith', + '3': 6, + '4': 1, + '5': 9, + '9': 5, + '10': 'contentDescriptionStartsWith', + '17': true + }, + const { + '1': 'contentDescriptionContains', + '3': 7, + '4': 1, + '5': 9, + '9': 6, + '10': 'contentDescriptionContains', + '17': true + }, + const { + '1': 'resourceId', + '3': 8, + '4': 1, + '5': 9, + '9': 7, + '10': 'resourceId', + '17': true + }, + const { + '1': 'instance', + '3': 9, + '4': 1, + '5': 13, + '9': 8, + '10': 'instance', + '17': true + }, + const { + '1': 'enabled', + '3': 10, + '4': 1, + '5': 8, + '9': 9, + '10': 'enabled', + '17': true + }, + const { + '1': 'focused', + '3': 11, + '4': 1, + '5': 8, + '9': 10, + '10': 'focused', + '17': true + }, + const { + '1': 'pkg', + '3': 12, + '4': 1, + '5': 9, + '9': 11, + '10': 'pkg', + '17': true + }, ], '8': const [ const {'1': '_text'}, @@ -307,30 +533,59 @@ const Selector$json = const { }; /// Descriptor for `Selector`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List selectorDescriptor = $convert.base64Decode('CghTZWxlY3RvchIXCgR0ZXh0GAEgASgJSABSBHRleHSIAQESKwoOdGV4dFN0YXJ0c1dpdGgYAiABKAlIAVIOdGV4dFN0YXJ0c1dpdGiIAQESJwoMdGV4dENvbnRhaW5zGAMgASgJSAJSDHRleHRDb250YWluc4gBARIhCgljbGFzc05hbWUYBCABKAlIA1IJY2xhc3NOYW1liAEBEjMKEmNvbnRlbnREZXNjcmlwdGlvbhgFIAEoCUgEUhJjb250ZW50RGVzY3JpcHRpb26IAQESRwocY29udGVudERlc2NyaXB0aW9uU3RhcnRzV2l0aBgGIAEoCUgFUhxjb250ZW50RGVzY3JpcHRpb25TdGFydHNXaXRoiAEBEkMKGmNvbnRlbnREZXNjcmlwdGlvbkNvbnRhaW5zGAcgASgJSAZSGmNvbnRlbnREZXNjcmlwdGlvbkNvbnRhaW5ziAEBEiMKCnJlc291cmNlSWQYCCABKAlIB1IKcmVzb3VyY2VJZIgBARIfCghpbnN0YW5jZRgJIAEoDUgIUghpbnN0YW5jZYgBARIdCgdlbmFibGVkGAogASgISAlSB2VuYWJsZWSIAQESHQoHZm9jdXNlZBgLIAEoCEgKUgdmb2N1c2VkiAEBEhUKA3BrZxgMIAEoCUgLUgNwa2eIAQFCBwoFX3RleHRCEQoPX3RleHRTdGFydHNXaXRoQg8KDV90ZXh0Q29udGFpbnNCDAoKX2NsYXNzTmFtZUIVChNfY29udGVudERlc2NyaXB0aW9uQh8KHV9jb250ZW50RGVzY3JpcHRpb25TdGFydHNXaXRoQh0KG19jb250ZW50RGVzY3JpcHRpb25Db250YWluc0INCgtfcmVzb3VyY2VJZEILCglfaW5zdGFuY2VCCgoIX2VuYWJsZWRCCgoIX2ZvY3VzZWRCBgoEX3BrZw=='); +final $typed_data.Uint8List selectorDescriptor = $convert.base64Decode( + 'CghTZWxlY3RvchIXCgR0ZXh0GAEgASgJSABSBHRleHSIAQESKwoOdGV4dFN0YXJ0c1dpdGgYAiABKAlIAVIOdGV4dFN0YXJ0c1dpdGiIAQESJwoMdGV4dENvbnRhaW5zGAMgASgJSAJSDHRleHRDb250YWluc4gBARIhCgljbGFzc05hbWUYBCABKAlIA1IJY2xhc3NOYW1liAEBEjMKEmNvbnRlbnREZXNjcmlwdGlvbhgFIAEoCUgEUhJjb250ZW50RGVzY3JpcHRpb26IAQESRwocY29udGVudERlc2NyaXB0aW9uU3RhcnRzV2l0aBgGIAEoCUgFUhxjb250ZW50RGVzY3JpcHRpb25TdGFydHNXaXRoiAEBEkMKGmNvbnRlbnREZXNjcmlwdGlvbkNvbnRhaW5zGAcgASgJSAZSGmNvbnRlbnREZXNjcmlwdGlvbkNvbnRhaW5ziAEBEiMKCnJlc291cmNlSWQYCCABKAlIB1IKcmVzb3VyY2VJZIgBARIfCghpbnN0YW5jZRgJIAEoDUgIUghpbnN0YW5jZYgBARIdCgdlbmFibGVkGAogASgISAlSB2VuYWJsZWSIAQESHQoHZm9jdXNlZBgLIAEoCEgKUgdmb2N1c2VkiAEBEhUKA3BrZxgMIAEoCUgLUgNwa2eIAQFCBwoFX3RleHRCEQoPX3RleHRTdGFydHNXaXRoQg8KDV90ZXh0Q29udGFpbnNCDAoKX2NsYXNzTmFtZUIVChNfY29udGVudERlc2NyaXB0aW9uQh8KHV9jb250ZW50RGVzY3JpcHRpb25TdGFydHNXaXRoQh0KG19jb250ZW50RGVzY3JpcHRpb25Db250YWluc0INCgtfcmVzb3VyY2VJZEILCglfaW5zdGFuY2VCCgoIX2VuYWJsZWRCCgoIX2ZvY3VzZWRCBgoEX3BrZw=='); @$core.Deprecated('Use nativeViewDescriptor instead') const NativeView$json = const { '1': 'NativeView', '2': const [ const {'1': 'className', '3': 1, '4': 1, '5': 9, '10': 'className'}, const {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'}, - const {'1': 'contentDescription', '3': 3, '4': 1, '5': 9, '10': 'contentDescription'}, + const { + '1': 'contentDescription', + '3': 3, + '4': 1, + '5': 9, + '10': 'contentDescription' + }, const {'1': 'focused', '3': 4, '4': 1, '5': 8, '10': 'focused'}, const {'1': 'enabled', '3': 5, '4': 1, '5': 8, '10': 'enabled'}, const {'1': 'childCount', '3': 6, '4': 1, '5': 5, '10': 'childCount'}, const {'1': 'resourceName', '3': 7, '4': 1, '5': 9, '10': 'resourceName'}, - const {'1': 'applicationPackage', '3': 8, '4': 1, '5': 9, '10': 'applicationPackage'}, - const {'1': 'children', '3': 9, '4': 3, '5': 11, '6': '.patrol.NativeView', '10': 'children'}, + const { + '1': 'applicationPackage', + '3': 8, + '4': 1, + '5': 9, + '10': 'applicationPackage' + }, + const { + '1': 'children', + '3': 9, + '4': 3, + '5': 11, + '6': '.patrol.NativeView', + '10': 'children' + }, ], }; /// Descriptor for `NativeView`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List nativeViewDescriptor = $convert.base64Decode('CgpOYXRpdmVWaWV3EhwKCWNsYXNzTmFtZRgBIAEoCVIJY2xhc3NOYW1lEhIKBHRleHQYAiABKAlSBHRleHQSLgoSY29udGVudERlc2NyaXB0aW9uGAMgASgJUhJjb250ZW50RGVzY3JpcHRpb24SGAoHZm9jdXNlZBgEIAEoCFIHZm9jdXNlZBIYCgdlbmFibGVkGAUgASgIUgdlbmFibGVkEh4KCmNoaWxkQ291bnQYBiABKAVSCmNoaWxkQ291bnQSIgoMcmVzb3VyY2VOYW1lGAcgASgJUgxyZXNvdXJjZU5hbWUSLgoSYXBwbGljYXRpb25QYWNrYWdlGAggASgJUhJhcHBsaWNhdGlvblBhY2thZ2USLgoIY2hpbGRyZW4YCSADKAsyEi5wYXRyb2wuTmF0aXZlVmlld1IIY2hpbGRyZW4='); +final $typed_data.Uint8List nativeViewDescriptor = $convert.base64Decode( + 'CgpOYXRpdmVWaWV3EhwKCWNsYXNzTmFtZRgBIAEoCVIJY2xhc3NOYW1lEhIKBHRleHQYAiABKAlSBHRleHQSLgoSY29udGVudERlc2NyaXB0aW9uGAMgASgJUhJjb250ZW50RGVzY3JpcHRpb24SGAoHZm9jdXNlZBgEIAEoCFIHZm9jdXNlZBIYCgdlbmFibGVkGAUgASgIUgdlbmFibGVkEh4KCmNoaWxkQ291bnQYBiABKAVSCmNoaWxkQ291bnQSIgoMcmVzb3VyY2VOYW1lGAcgASgJUgxyZXNvdXJjZU5hbWUSLgoSYXBwbGljYXRpb25QYWNrYWdlGAggASgJUhJhcHBsaWNhdGlvblBhY2thZ2USLgoIY2hpbGRyZW4YCSADKAsyEi5wYXRyb2wuTmF0aXZlVmlld1IIY2hpbGRyZW4='); @$core.Deprecated('Use notificationDescriptor instead') const Notification$json = const { '1': 'Notification', '2': const [ - const {'1': 'appName', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'appName', '17': true}, + const { + '1': 'appName', + '3': 1, + '4': 1, + '5': 9, + '9': 0, + '10': 'appName', + '17': true + }, const {'1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'}, const {'1': 'content', '3': 3, '4': 1, '5': 9, '10': 'content'}, const {'1': 'raw', '3': 4, '4': 1, '5': 9, '10': 'raw'}, @@ -341,12 +596,20 @@ const Notification$json = const { }; /// Descriptor for `Notification`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List notificationDescriptor = $convert.base64Decode('CgxOb3RpZmljYXRpb24SHQoHYXBwTmFtZRgBIAEoCUgAUgdhcHBOYW1liAEBEhQKBXRpdGxlGAIgASgJUgV0aXRsZRIYCgdjb250ZW50GAMgASgJUgdjb250ZW50EhAKA3JhdxgEIAEoCVIDcmF3QgoKCF9hcHBOYW1l'); +final $typed_data.Uint8List notificationDescriptor = $convert.base64Decode( + 'CgxOb3RpZmljYXRpb24SHQoHYXBwTmFtZRgBIAEoCUgAUgdhcHBOYW1liAEBEhQKBXRpdGxlGAIgASgJUgV0aXRsZRIYCgdjb250ZW50GAMgASgJUgdjb250ZW50EhAKA3JhdxgEIAEoCVIDcmF3QgoKCF9hcHBOYW1l'); @$core.Deprecated('Use submitTestResultsRequestDescriptor instead') const SubmitTestResultsRequest$json = const { '1': 'SubmitTestResultsRequest', '2': const [ - const {'1': 'results', '3': 1, '4': 3, '5': 11, '6': '.patrol.SubmitTestResultsRequest.ResultsEntry', '10': 'results'}, + const { + '1': 'results', + '3': 1, + '4': 3, + '5': 11, + '6': '.patrol.SubmitTestResultsRequest.ResultsEntry', + '10': 'results' + }, ], '3': const [SubmitTestResultsRequest_ResultsEntry$json], }; @@ -362,4 +625,6 @@ const SubmitTestResultsRequest_ResultsEntry$json = const { }; /// Descriptor for `SubmitTestResultsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List submitTestResultsRequestDescriptor = $convert.base64Decode('ChhTdWJtaXRUZXN0UmVzdWx0c1JlcXVlc3QSRwoHcmVzdWx0cxgBIAMoCzItLnBhdHJvbC5TdWJtaXRUZXN0UmVzdWx0c1JlcXVlc3QuUmVzdWx0c0VudHJ5UgdyZXN1bHRzGjoKDFJlc3VsdHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); +final $typed_data.Uint8List submitTestResultsRequestDescriptor = + $convert.base64Decode( + 'ChhTdWJtaXRUZXN0UmVzdWx0c1JlcXVlc3QSRwoHcmVzdWx0cxgBIAMoCzItLnBhdHJvbC5TdWJtaXRUZXN0UmVzdWx0c1JlcXVlc3QuUmVzdWx0c0VudHJ5UgdyZXN1bHRzGjoKDFJlc3VsdHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); diff --git a/packages/patrol/lib/src/native/patrol_app_service.dart b/packages/patrol/lib/src/native/patrol_app_service.dart index e0ae64dcc..e940aec52 100644 --- a/packages/patrol/lib/src/native/patrol_app_service.dart +++ b/packages/patrol/lib/src/native/patrol_app_service.dart @@ -1,3 +1,6 @@ +// ignore_for_file: avoid_print +// TODO: Use a logger instead of print + import 'dart:async'; import 'dart:io' as io; @@ -25,6 +28,9 @@ Future runAppService(PatrolAppService service) async { } /// Implements a stateful gRPC service for querying and executing Dart tests. +/// +/// This is an internal class and you don't want to use it. It's public so that +/// the generated code can access it. class PatrolAppService extends PatrolAppServiceBase { /// Creates a new [PatrolAppService]. PatrolAppService({required this.topLevelDartTestGroup}); @@ -51,6 +57,10 @@ class PatrolAppService extends PatrolAppServiceBase { return _testExecutionCompleted.future; } + /// Marks [dartFileName] as completed with the given [passed] status. + /// + /// If an exception was thrown during the test, [details] should contain the + /// useful information. Future markDartTestAsCompleted({ required String dartFileName, required bool passed, @@ -81,8 +91,8 @@ class PatrolAppService extends PatrolAppServiceBase { /// /// Returns true if the native side requsted execution of [dartTestFile]. /// Returns false otherwise. - Future waitForRunRequest(String dartTestFile) async { - print('PatrolAppService.waitUntilRunRequested(): $dartTestFile registered'); + Future waitForExecutionRequest(String dartTestFile) async { + print('PatrolAppService: registerd "$dartTestFile"'); final requestedDartTestFile = await testExecutionRequested; if (requestedDartTestFile != dartTestFile) { @@ -91,12 +101,14 @@ class PatrolAppService extends PatrolAppServiceBase { // callers can skip the already executed test. print( - 'PatrolAppService.waitUntilRunRequested(): $dartTestFile was not matched by requested test $requestedDartTestFile', + 'PatrolAppService: registered test "$dartTestFile" was not matched by requested test "$requestedDartTestFile"', ); return false; } + print('PatrolAppService: requested execution of test "$dartTestFile"'); + return true; } diff --git a/packages/patrol/pubspec.yaml b/packages/patrol/pubspec.yaml index 114120bae..290c267a8 100644 --- a/packages/patrol/pubspec.yaml +++ b/packages/patrol/pubspec.yaml @@ -24,6 +24,7 @@ dependencies: meta: ^1.7.0 path: ^1.8.2 protobuf: ^2.1.0 + test_api: ^0.4.12 dev_dependencies: build_runner: ^2.3.3