From 38f90b81eafb4cb8405f4111c34ebd7e86f51991 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 20 Oct 2023 08:37:20 -0700 Subject: [PATCH] implement compileDDC, additional fields for v3 (#2682) --- pkgs/dart_pad/pubspec.lock | 71 +- pkgs/dart_pad/pubspec.yaml | 6 +- .../lib/src/analysis_server.dart | 14 +- .../lib/src/common_server_api.dart | 36 +- pkgs/dart_services/lib/src/shared/model.dart | 24 + .../dart_services/lib/src/shared/model.g.dart | 20 + .../lib/src/shared/services.dart | 3 + pkgs/dart_services/test/server_v3_test.dart | 49 + pkgs/dart_services/tool/grind.dart | 3 +- pkgs/dartpad_shared/lib/model.dart | 24 + pkgs/dartpad_shared/lib/model.g.dart | 20 + pkgs/dartpad_shared/lib/services.dart | 3 + .../lib/src/protos/dart_services.pb.dart | 2747 ----------------- .../lib/src/protos/dart_services.pbenum.dart | 10 - .../lib/src/protos/dart_services.pbjson.dart | 801 ----- .../src/protos/dart_services.pbserver.dart | 13 - 16 files changed, 252 insertions(+), 3592 deletions(-) delete mode 100644 pkgs/sketch_pad/lib/src/protos/dart_services.pb.dart delete mode 100644 pkgs/sketch_pad/lib/src/protos/dart_services.pbenum.dart delete mode 100644 pkgs/sketch_pad/lib/src/protos/dart_services.pbjson.dart delete mode 100644 pkgs/sketch_pad/lib/src/protos/dart_services.pbserver.dart diff --git a/pkgs/dart_pad/pubspec.lock b/pkgs/dart_pad/pubspec.lock index c66c7866b..0c3335d78 100644 --- a/pkgs/dart_pad/pubspec.lock +++ b/pkgs/dart_pad/pubspec.lock @@ -169,6 +169,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.3" + cli_pkg: + dependency: transitive + description: + name: cli_pkg + sha256: "716254ea9f38179f64ff36d6e26c6193acd59939baeaf5b932ed13f25b28f6ad" + url: "https://pub.dev" + source: hosted + version: "2.7.0" cli_repl: dependency: transitive description: @@ -265,6 +273,13 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.3" + dartpad_shared: + dependency: "direct main" + description: + path: "../dartpad_shared" + relative: true + source: path + version: "0.0.0" encrypt: dependency: "direct main" description: @@ -273,6 +288,14 @@ packages: url: "https://pub.dev" source: hosted version: "5.0.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + url: "https://pub.dev" + source: hosted + version: "2.1.0" file: dependency: transitive description: @@ -357,10 +380,10 @@ packages: dependency: "direct main" description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.1.0" http_multi_server: dependency: transitive description: @@ -465,6 +488,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + native_synchronization: + dependency: transitive + description: + name: native_synchronization + sha256: ff200fe0a64d733ff7d4dde2005271c297db81007604c8cd21037959858133ab + url: "https://pub.dev" + source: hosted + version: "0.2.0" node_interop: dependency: transitive description: @@ -497,6 +528,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.8.3" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: eeb2d1428ee7f4170e2bd498827296a18d4e7fc462b71727d111c0ac7707cfa6 + url: "https://pub.dev" + source: hosted + version: "6.0.1" pointycastle: dependency: transitive description: @@ -537,14 +576,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.3" + retry: + dependency: transitive + description: + name: retry + sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" + url: "https://pub.dev" + source: hosted + version: "3.1.2" sass: dependency: "direct overridden" description: name: sass - sha256: c3ba6203735361e1c779f0d84b650cf7f1c0c94b0e8223b944447b82fb018832 + sha256: "5dd460578023d236404c3131cd7543399a891189aad130f61a16cc91f4842973" url: "https://pub.dev" source: hosted - version: "1.65.1" + version: "1.69.3" sass_builder: dependency: "direct main" description: @@ -712,6 +759,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.7" + test_process: + dependency: transitive + description: + name: test_process + sha256: "217f19b538926e4922bdb2a01410100ec4e3beb4cc48eae5ae6b20037b07bbd6" + url: "https://pub.dev" + source: hosted + version: "2.1.0" timing: dependency: transitive description: @@ -768,6 +823,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.1" + xml: + dependency: transitive + description: + name: xml + sha256: af5e77e9b83f2f4adc5d3f0a4ece1c7f45a2467b695c2540381bac793e34e556 + url: "https://pub.dev" + source: hosted + version: "6.4.2" yaml: dependency: "direct main" description: diff --git a/pkgs/dart_pad/pubspec.yaml b/pkgs/dart_pad/pubspec.yaml index c009418fe..ff4d546c0 100644 --- a/pkgs/dart_pad/pubspec.yaml +++ b/pkgs/dart_pad/pubspec.yaml @@ -10,10 +10,11 @@ dependencies: checked_yaml: ^2.0.3 codemirror: ^0.7.10+5.65.13 collection: ^1.17.2 + dartpad_shared: any encrypt: ^5.0.1 fluttering_phrases: ^0.5.0 html_unescape: ^2.0.0 - http: ^0.13.0 + http: ^1.1.0 js: ^0.6.7 json_annotation: ^4.8.1 logging: ^1.2.0 @@ -42,6 +43,8 @@ dev_dependencies: webdriver: ^3.0.2 dependency_overrides: + dartpad_shared: + path: ../dartpad_shared # package:mdc_web needs to upgrade the version of material-components-web 12.0.0 # or above, which includes this fix for the division operator: # https://github.com/material-components/material-components-web/pull/7158 @@ -52,6 +55,5 @@ dependency_overrides: # See this issue for details: # https://github.com/dart-lang/dart-pad/issues/2388 sass: ^1.62.0 - split: path: third_party/pkg/split/ diff --git a/pkgs/dart_services/lib/src/analysis_server.dart b/pkgs/dart_services/lib/src/analysis_server.dart index 5bd9e1918..04e72620d 100644 --- a/pkgs/dart_services/lib/src/analysis_server.dart +++ b/pkgs/dart_services/lib/src/analysis_server.dart @@ -184,6 +184,7 @@ abstract class AnalysisServerWrapper { relevance: suggestion.relevance, completion: suggestion.completion, deprecated: suggestion.isDeprecated, + selectionOffset: suggestion.selectionOffset, displayText: suggestion.displayText, returnType: suggestion.returnType, elementKind: suggestion.element?.kind, @@ -685,12 +686,15 @@ extension SourceChangeExtension on SourceChange { message: message, edits: edits .expand((fileEdit) => fileEdit.edits) - .map((edit) => api.SourceEdit( - offset: edit.offset, - length: edit.length, - replacement: edit.replacement, - )) + .map( + (edit) => api.SourceEdit( + offset: edit.offset, + length: edit.length, + replacement: edit.replacement, + ), + ) .toList(), + selectionOffset: selection?.offset, ); } } diff --git a/pkgs/dart_services/lib/src/common_server_api.dart b/pkgs/dart_services/lib/src/common_server_api.dart index 1e60ee7df..5bafac723 100644 --- a/pkgs/dart_services/lib/src/common_server_api.dart +++ b/pkgs/dart_services/lib/src/common_server_api.dart @@ -60,6 +60,7 @@ class CommonServerApi { kind: issue.kind, message: issue.message, correction: issue.hasCorrection() ? issue.correction : null, + url: issue.hasUrl() ? issue.url : null, charStart: issue.charStart, charLength: issue.charLength, line: issue.line, @@ -99,14 +100,32 @@ class CommonServerApi { } @Route.post('$apiPrefix/compileDDC') - Future compileDDC(Request request, String apiVersion) { - return _processRequest( - request, - decodeFromJSON: (json) => - proto.CompileDDCRequest.create()..mergeFromProto3Json(json), - decodeFromProto: proto.CompileDDCRequest.fromBuffer, - transform: _impl.compileDDC, - ); + Future compileDDC(Request request, String apiVersion) async { + if (apiVersion == api2) { + return _processRequest( + request, + decodeFromJSON: (json) => + proto.CompileDDCRequest.create()..mergeFromProto3Json(json), + decodeFromProto: proto.CompileDDCRequest.fromBuffer, + transform: _impl.compileDDC, + ); + } else if (apiVersion == api3) { + final sourceRequest = + api.SourceRequest.fromJson(await request.readAsJson()); + final results = await serialize(() { + return _impl.compiler.compileDDC(sourceRequest.source); + }); + if (results.hasOutput) { + return ok(api.CompileDDCResponse( + result: results.compiledJS!, + modulesBaseUrl: results.modulesBaseUrl!, + ).toJson()); + } else { + return failure(results.problems.map((p) => p.message).join('\n')); + } + } else { + return unhandledVersion(apiVersion); + } } @experimental @@ -401,6 +420,7 @@ class CommonServerApi { return api.VersionResponse( dartVersion: sdk.versionFull, flutterVersion: sdk.flutterVersion, + engineVersion: sdk.engineVersion, experiments: sdk.experiments, packages: packages, ); diff --git a/pkgs/dart_services/lib/src/shared/model.dart b/pkgs/dart_services/lib/src/shared/model.dart index fa9544165..1496905b6 100644 --- a/pkgs/dart_services/lib/src/shared/model.dart +++ b/pkgs/dart_services/lib/src/shared/model.dart @@ -39,6 +39,7 @@ class AnalysisIssue { final String kind; final String message; final String? correction; + final String? url; final int charStart; final int charLength; final int line; @@ -48,6 +49,7 @@ class AnalysisIssue { required this.kind, required this.message, this.correction, + this.url, this.charStart = -1, this.charLength = 0, this.line = -1, @@ -87,6 +89,22 @@ class CompileResponse { Map toJson() => _$CompileResponseToJson(this); } +@JsonSerializable() +class CompileDDCResponse { + final String result; + final String modulesBaseUrl; + + CompileDDCResponse({ + required this.result, + required this.modulesBaseUrl, + }); + + factory CompileDDCResponse.fromJson(Map json) => + _$CompileDDCResponseFromJson(json); + + Map toJson() => _$CompileDDCResponseToJson(this); +} + @JsonSerializable() class FormatResponse { final String source; @@ -140,10 +158,12 @@ class SourceChange { final List edits; // TODO: Add linked edit groups once we start using them. // final List linkedEditGroups; + final int? selectionOffset; SourceChange({ required this.message, required this.edits, + this.selectionOffset, }); factory SourceChange.fromJson(Map json) => @@ -224,6 +244,7 @@ class CompletionSuggestion { final int relevance; final String completion; final bool deprecated; + final int selectionOffset; final String? displayText; final String? returnType; final String? elementKind; @@ -233,6 +254,7 @@ class CompletionSuggestion { required this.relevance, required this.completion, required this.deprecated, + required this.selectionOffset, required this.displayText, required this.returnType, required this.elementKind, @@ -251,12 +273,14 @@ class CompletionSuggestion { class VersionResponse { final String dartVersion; final String flutterVersion; + final String engineVersion; final List experiments; final List packages; VersionResponse({ required this.dartVersion, required this.flutterVersion, + required this.engineVersion, required this.experiments, required this.packages, }); diff --git a/pkgs/dart_services/lib/src/shared/model.g.dart b/pkgs/dart_services/lib/src/shared/model.g.dart index b65de8fb0..19369bf36 100644 --- a/pkgs/dart_services/lib/src/shared/model.g.dart +++ b/pkgs/dart_services/lib/src/shared/model.g.dart @@ -36,6 +36,7 @@ AnalysisIssue _$AnalysisIssueFromJson(Map json) => kind: json['kind'] as String, message: json['message'] as String, correction: json['correction'] as String?, + url: json['url'] as String?, charStart: json['charStart'] as int? ?? -1, charLength: json['charLength'] as int? ?? 0, line: json['line'] as int? ?? -1, @@ -47,6 +48,7 @@ Map _$AnalysisIssueToJson(AnalysisIssue instance) => 'kind': instance.kind, 'message': instance.message, 'correction': instance.correction, + 'url': instance.url, 'charStart': instance.charStart, 'charLength': instance.charLength, 'line': instance.line, @@ -73,6 +75,18 @@ Map _$CompileResponseToJson(CompileResponse instance) => 'result': instance.result, }; +CompileDDCResponse _$CompileDDCResponseFromJson(Map json) => + CompileDDCResponse( + result: json['result'] as String, + modulesBaseUrl: json['modulesBaseUrl'] as String, + ); + +Map _$CompileDDCResponseToJson(CompileDDCResponse instance) => + { + 'result': instance.result, + 'modulesBaseUrl': instance.modulesBaseUrl, + }; + FormatResponse _$FormatResponseFromJson(Map json) => FormatResponse( source: json['source'] as String, @@ -118,12 +132,14 @@ SourceChange _$SourceChangeFromJson(Map json) => SourceChange( edits: (json['edits'] as List) .map((e) => SourceEdit.fromJson(e as Map)) .toList(), + selectionOffset: json['selectionOffset'] as int?, ); Map _$SourceChangeToJson(SourceChange instance) => { 'message': instance.message, 'edits': instance.edits, + 'selectionOffset': instance.selectionOffset, }; SourceEdit _$SourceEditFromJson(Map json) => SourceEdit( @@ -182,6 +198,7 @@ CompletionSuggestion _$CompletionSuggestionFromJson( relevance: json['relevance'] as int, completion: json['completion'] as String, deprecated: json['deprecated'] as bool, + selectionOffset: json['selectionOffset'] as int, displayText: json['displayText'] as String?, returnType: json['returnType'] as String?, elementKind: json['elementKind'] as String?, @@ -194,6 +211,7 @@ Map _$CompletionSuggestionToJson( 'relevance': instance.relevance, 'completion': instance.completion, 'deprecated': instance.deprecated, + 'selectionOffset': instance.selectionOffset, 'displayText': instance.displayText, 'returnType': instance.returnType, 'elementKind': instance.elementKind, @@ -203,6 +221,7 @@ VersionResponse _$VersionResponseFromJson(Map json) => VersionResponse( dartVersion: json['dartVersion'] as String, flutterVersion: json['flutterVersion'] as String, + engineVersion: json['engineVersion'] as String, experiments: (json['experiments'] as List) .map((e) => e as String) .toList(), @@ -215,6 +234,7 @@ Map _$VersionResponseToJson(VersionResponse instance) => { 'dartVersion': instance.dartVersion, 'flutterVersion': instance.flutterVersion, + 'engineVersion': instance.engineVersion, 'experiments': instance.experiments, 'packages': instance.packages, }; diff --git a/pkgs/dart_services/lib/src/shared/services.dart b/pkgs/dart_services/lib/src/shared/services.dart index 5cefd016d..9e0cc0341 100644 --- a/pkgs/dart_services/lib/src/shared/services.dart +++ b/pkgs/dart_services/lib/src/shared/services.dart @@ -37,6 +37,9 @@ class ServicesClient { Future compile(CompileRequest request) => _requestPost('compile', request.toJson(), CompileResponse.fromJson); + Future compileDDC(CompileRequest request) => + _requestPost('compileDDC', request.toJson(), CompileDDCResponse.fromJson); + /// Note that this call is experimental and can change at any time. Future flutterBuild(SourceRequest request) => _requestPost( diff --git a/pkgs/dart_services/test/server_v3_test.dart b/pkgs/dart_services/test/server_v3_test.dart index 581fc4f05..ee20a8296 100644 --- a/pkgs/dart_services/test/server_v3_test.dart +++ b/pkgs/dart_services/test/server_v3_test.dart @@ -42,6 +42,7 @@ void defineTests() { final result = await client.version(); expect(result.dartVersion, startsWith('3.')); expect(result.flutterVersion, startsWith('3.')); + expect(result.engineVersion, isNotEmpty); expect(result.packages, isNotEmpty); }); @@ -184,6 +185,54 @@ void main() { } }); + test('compileDDC', () async { + final result = await client.compileDDC(CompileRequest(source: ''' +void main() { + print('hello world'); +} +''')); + expect(result.result, isNotEmpty); + expect(result.result.length, greaterThanOrEqualTo(1024)); + expect(result.modulesBaseUrl, isNotEmpty); + }); + + test('compileDDC flutter', () async { + final result = await client.compileDDC(CompileRequest(source: ''' +import 'package:flutter/material.dart'; + +void main() { + runApp(MyApp()); +} + +class MyApp extends StatelessWidget { + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center(child: Text('hello world')), + ), + ); + } +} +''')); + expect(result.result, isNotEmpty); + expect(result.result.length, greaterThanOrEqualTo(10 * 1024)); + expect(result.modulesBaseUrl, isNotEmpty); + }); + + test('compileDDC with error', () async { + try { + await client.compileDDC(CompileRequest(source: ''' +void main() { + print('hello world') +} +''')); + fail('compile error expected'); + } on ApiRequestError catch (e) { + expect(e.body, contains("Expected ';' after this.")); + } + }); + test('document', () async { final result = await client.document(SourceRequest( source: ''' diff --git a/pkgs/dart_services/tool/grind.dart b/pkgs/dart_services/tool/grind.dart index 16b26bd48..fd7554334 100644 --- a/pkgs/dart_services/tool/grind.dart +++ b/pkgs/dart_services/tool/grind.dart @@ -366,9 +366,8 @@ void generateProtos() async { arguments: ['format', '--fix', 'lib/src/protos'], ); - // Copy to the front-end packages. + // Copy to the dart_pad front-end package. copy(getDir('lib/src/protos'), getDir('../dart_pad/lib/src/protos')); - copy(getDir('lib/src/protos'), getDir('../sketch_pad/lib/src/protos')); // TODO: We'd like to remove this copy operation; that will require work in // the cloud build configuration. diff --git a/pkgs/dartpad_shared/lib/model.dart b/pkgs/dartpad_shared/lib/model.dart index fa9544165..1496905b6 100644 --- a/pkgs/dartpad_shared/lib/model.dart +++ b/pkgs/dartpad_shared/lib/model.dart @@ -39,6 +39,7 @@ class AnalysisIssue { final String kind; final String message; final String? correction; + final String? url; final int charStart; final int charLength; final int line; @@ -48,6 +49,7 @@ class AnalysisIssue { required this.kind, required this.message, this.correction, + this.url, this.charStart = -1, this.charLength = 0, this.line = -1, @@ -87,6 +89,22 @@ class CompileResponse { Map toJson() => _$CompileResponseToJson(this); } +@JsonSerializable() +class CompileDDCResponse { + final String result; + final String modulesBaseUrl; + + CompileDDCResponse({ + required this.result, + required this.modulesBaseUrl, + }); + + factory CompileDDCResponse.fromJson(Map json) => + _$CompileDDCResponseFromJson(json); + + Map toJson() => _$CompileDDCResponseToJson(this); +} + @JsonSerializable() class FormatResponse { final String source; @@ -140,10 +158,12 @@ class SourceChange { final List edits; // TODO: Add linked edit groups once we start using them. // final List linkedEditGroups; + final int? selectionOffset; SourceChange({ required this.message, required this.edits, + this.selectionOffset, }); factory SourceChange.fromJson(Map json) => @@ -224,6 +244,7 @@ class CompletionSuggestion { final int relevance; final String completion; final bool deprecated; + final int selectionOffset; final String? displayText; final String? returnType; final String? elementKind; @@ -233,6 +254,7 @@ class CompletionSuggestion { required this.relevance, required this.completion, required this.deprecated, + required this.selectionOffset, required this.displayText, required this.returnType, required this.elementKind, @@ -251,12 +273,14 @@ class CompletionSuggestion { class VersionResponse { final String dartVersion; final String flutterVersion; + final String engineVersion; final List experiments; final List packages; VersionResponse({ required this.dartVersion, required this.flutterVersion, + required this.engineVersion, required this.experiments, required this.packages, }); diff --git a/pkgs/dartpad_shared/lib/model.g.dart b/pkgs/dartpad_shared/lib/model.g.dart index b65de8fb0..19369bf36 100644 --- a/pkgs/dartpad_shared/lib/model.g.dart +++ b/pkgs/dartpad_shared/lib/model.g.dart @@ -36,6 +36,7 @@ AnalysisIssue _$AnalysisIssueFromJson(Map json) => kind: json['kind'] as String, message: json['message'] as String, correction: json['correction'] as String?, + url: json['url'] as String?, charStart: json['charStart'] as int? ?? -1, charLength: json['charLength'] as int? ?? 0, line: json['line'] as int? ?? -1, @@ -47,6 +48,7 @@ Map _$AnalysisIssueToJson(AnalysisIssue instance) => 'kind': instance.kind, 'message': instance.message, 'correction': instance.correction, + 'url': instance.url, 'charStart': instance.charStart, 'charLength': instance.charLength, 'line': instance.line, @@ -73,6 +75,18 @@ Map _$CompileResponseToJson(CompileResponse instance) => 'result': instance.result, }; +CompileDDCResponse _$CompileDDCResponseFromJson(Map json) => + CompileDDCResponse( + result: json['result'] as String, + modulesBaseUrl: json['modulesBaseUrl'] as String, + ); + +Map _$CompileDDCResponseToJson(CompileDDCResponse instance) => + { + 'result': instance.result, + 'modulesBaseUrl': instance.modulesBaseUrl, + }; + FormatResponse _$FormatResponseFromJson(Map json) => FormatResponse( source: json['source'] as String, @@ -118,12 +132,14 @@ SourceChange _$SourceChangeFromJson(Map json) => SourceChange( edits: (json['edits'] as List) .map((e) => SourceEdit.fromJson(e as Map)) .toList(), + selectionOffset: json['selectionOffset'] as int?, ); Map _$SourceChangeToJson(SourceChange instance) => { 'message': instance.message, 'edits': instance.edits, + 'selectionOffset': instance.selectionOffset, }; SourceEdit _$SourceEditFromJson(Map json) => SourceEdit( @@ -182,6 +198,7 @@ CompletionSuggestion _$CompletionSuggestionFromJson( relevance: json['relevance'] as int, completion: json['completion'] as String, deprecated: json['deprecated'] as bool, + selectionOffset: json['selectionOffset'] as int, displayText: json['displayText'] as String?, returnType: json['returnType'] as String?, elementKind: json['elementKind'] as String?, @@ -194,6 +211,7 @@ Map _$CompletionSuggestionToJson( 'relevance': instance.relevance, 'completion': instance.completion, 'deprecated': instance.deprecated, + 'selectionOffset': instance.selectionOffset, 'displayText': instance.displayText, 'returnType': instance.returnType, 'elementKind': instance.elementKind, @@ -203,6 +221,7 @@ VersionResponse _$VersionResponseFromJson(Map json) => VersionResponse( dartVersion: json['dartVersion'] as String, flutterVersion: json['flutterVersion'] as String, + engineVersion: json['engineVersion'] as String, experiments: (json['experiments'] as List) .map((e) => e as String) .toList(), @@ -215,6 +234,7 @@ Map _$VersionResponseToJson(VersionResponse instance) => { 'dartVersion': instance.dartVersion, 'flutterVersion': instance.flutterVersion, + 'engineVersion': instance.engineVersion, 'experiments': instance.experiments, 'packages': instance.packages, }; diff --git a/pkgs/dartpad_shared/lib/services.dart b/pkgs/dartpad_shared/lib/services.dart index 5cefd016d..9e0cc0341 100644 --- a/pkgs/dartpad_shared/lib/services.dart +++ b/pkgs/dartpad_shared/lib/services.dart @@ -37,6 +37,9 @@ class ServicesClient { Future compile(CompileRequest request) => _requestPost('compile', request.toJson(), CompileResponse.fromJson); + Future compileDDC(CompileRequest request) => + _requestPost('compileDDC', request.toJson(), CompileDDCResponse.fromJson); + /// Note that this call is experimental and can change at any time. Future flutterBuild(SourceRequest request) => _requestPost( diff --git a/pkgs/sketch_pad/lib/src/protos/dart_services.pb.dart b/pkgs/sketch_pad/lib/src/protos/dart_services.pb.dart deleted file mode 100644 index 49a94aa46..000000000 --- a/pkgs/sketch_pad/lib/src/protos/dart_services.pb.dart +++ /dev/null @@ -1,2747 +0,0 @@ -// -// Generated code. Do not modify. -// source: protos/dart_services.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:core' as $core; - -import 'package:protobuf/protobuf.dart' as $pb; - -class CompileRequest extends $pb.GeneratedMessage { - factory CompileRequest({ - $core.String? source, - $core.bool? returnSourceMap, - }) { - final $result = create(); - if (source != null) { - $result.source = source; - } - if (returnSourceMap != null) { - $result.returnSourceMap = returnSourceMap; - } - return $result; - } - CompileRequest._() : super(); - factory CompileRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'source') - ..aOB(2, _omitFieldNames ? '' : 'returnSourceMap', - protoName: 'returnSourceMap') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileRequest clone() => CompileRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileRequest copyWith(void Function(CompileRequest) updates) => - super.copyWith((message) => updates(message as CompileRequest)) - as CompileRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileRequest create() => CompileRequest._(); - CompileRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileRequest? _defaultInstance; - - /// The Dart source. - @$pb.TagNumber(1) - $core.String get source => $_getSZ(0); - @$pb.TagNumber(1) - set source($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasSource() => $_has(0); - @$pb.TagNumber(1) - void clearSource() => clearField(1); - - /// Return the Dart to JS source map; optional (defaults to false). - @$pb.TagNumber(2) - $core.bool get returnSourceMap => $_getBF(1); - @$pb.TagNumber(2) - set returnSourceMap($core.bool v) { - $_setBool(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasReturnSourceMap() => $_has(1); - @$pb.TagNumber(2) - void clearReturnSourceMap() => clearField(2); -} - -/// / Compile request for a multiple file set. -class CompileFilesRequest extends $pb.GeneratedMessage { - factory CompileFilesRequest({ - $core.Map<$core.String, $core.String>? files, - $core.bool? returnSourceMap, - }) { - final $result = create(); - if (files != null) { - $result.files.addAll(files); - } - if (returnSourceMap != null) { - $result.returnSourceMap = returnSourceMap; - } - return $result; - } - CompileFilesRequest._() : super(); - factory CompileFilesRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileFilesRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileFilesRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'files', - entryClassName: 'CompileFilesRequest.FilesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..aOB(2, _omitFieldNames ? '' : 'returnSourceMap', - protoName: 'returnSourceMap') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileFilesRequest clone() => CompileFilesRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileFilesRequest copyWith(void Function(CompileFilesRequest) updates) => - super.copyWith((message) => updates(message as CompileFilesRequest)) - as CompileFilesRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileFilesRequest create() => CompileFilesRequest._(); - CompileFilesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileFilesRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileFilesRequest? _defaultInstance; - - /// The Dart source files set. map of { filename1:sourcecode1 .. filenameN:sourcecodeN } - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get files => $_getMap(0); - - /// Return the Dart to JS source map; optional (defaults to false). - @$pb.TagNumber(2) - $core.bool get returnSourceMap => $_getBF(1); - @$pb.TagNumber(2) - set returnSourceMap($core.bool v) { - $_setBool(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasReturnSourceMap() => $_has(1); - @$pb.TagNumber(2) - void clearReturnSourceMap() => clearField(2); -} - -class CompileDDCRequest extends $pb.GeneratedMessage { - factory CompileDDCRequest({ - $core.String? source, - }) { - final $result = create(); - if (source != null) { - $result.source = source; - } - return $result; - } - CompileDDCRequest._() : super(); - factory CompileDDCRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileDDCRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileDDCRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'source') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileDDCRequest clone() => CompileDDCRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileDDCRequest copyWith(void Function(CompileDDCRequest) updates) => - super.copyWith((message) => updates(message as CompileDDCRequest)) - as CompileDDCRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileDDCRequest create() => CompileDDCRequest._(); - CompileDDCRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileDDCRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileDDCRequest? _defaultInstance; - - /// The Dart source. - @$pb.TagNumber(1) - $core.String get source => $_getSZ(0); - @$pb.TagNumber(1) - set source($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasSource() => $_has(0); - @$pb.TagNumber(1) - void clearSource() => clearField(1); -} - -/// / DDC Compile request for a multiple file set. -class CompileFilesDDCRequest extends $pb.GeneratedMessage { - factory CompileFilesDDCRequest({ - $core.Map<$core.String, $core.String>? files, - }) { - final $result = create(); - if (files != null) { - $result.files.addAll(files); - } - return $result; - } - CompileFilesDDCRequest._() : super(); - factory CompileFilesDDCRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileFilesDDCRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileFilesDDCRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'files', - entryClassName: 'CompileFilesDDCRequest.FilesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileFilesDDCRequest clone() => - CompileFilesDDCRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileFilesDDCRequest copyWith( - void Function(CompileFilesDDCRequest) updates) => - super.copyWith((message) => updates(message as CompileFilesDDCRequest)) - as CompileFilesDDCRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileFilesDDCRequest create() => CompileFilesDDCRequest._(); - CompileFilesDDCRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileFilesDDCRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileFilesDDCRequest? _defaultInstance; - - /// The Dart source files set. map of { filename1:sourcecode1 .. filenameN:sourcecodeN } - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get files => $_getMap(0); -} - -class FlutterBuildResponse extends $pb.GeneratedMessage { - factory FlutterBuildResponse({ - $core.Map<$core.String, $core.String>? artifacts, - ErrorMessage? error, - }) { - final $result = create(); - if (artifacts != null) { - $result.artifacts.addAll(artifacts); - } - if (error != null) { - $result.error = error; - } - return $result; - } - FlutterBuildResponse._() : super(); - factory FlutterBuildResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory FlutterBuildResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FlutterBuildResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'artifacts', - entryClassName: 'FlutterBuildResponse.ArtifactsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - FlutterBuildResponse clone() => - FlutterBuildResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - FlutterBuildResponse copyWith(void Function(FlutterBuildResponse) updates) => - super.copyWith((message) => updates(message as FlutterBuildResponse)) - as FlutterBuildResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static FlutterBuildResponse create() => FlutterBuildResponse._(); - FlutterBuildResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static FlutterBuildResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static FlutterBuildResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get artifacts => $_getMap(0); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(1); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(1); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(1); -} - -class SourceRequest extends $pb.GeneratedMessage { - factory SourceRequest({ - $core.String? source, - $core.int? offset, - }) { - final $result = create(); - if (source != null) { - $result.source = source; - } - if (offset != null) { - $result.offset = offset; - } - return $result; - } - SourceRequest._() : super(); - factory SourceRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SourceRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SourceRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'source') - ..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SourceRequest clone() => SourceRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SourceRequest copyWith(void Function(SourceRequest) updates) => - super.copyWith((message) => updates(message as SourceRequest)) - as SourceRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SourceRequest create() => SourceRequest._(); - SourceRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SourceRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static SourceRequest? _defaultInstance; - - /// The Dart source. - @$pb.TagNumber(1) - $core.String get source => $_getSZ(0); - @$pb.TagNumber(1) - set source($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasSource() => $_has(0); - @$pb.TagNumber(1) - void clearSource() => clearField(1); - - /// The offset within source to operate at. - @$pb.TagNumber(2) - $core.int get offset => $_getIZ(1); - @$pb.TagNumber(2) - set offset($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasOffset() => $_has(1); - @$pb.TagNumber(2) - void clearOffset() => clearField(2); -} - -/// / Multiple file set of dart source for analysis, completion, fixes, etc. -class SourceFilesRequest extends $pb.GeneratedMessage { - factory SourceFilesRequest({ - $core.Map<$core.String, $core.String>? files, - $core.String? activeSourceName, - $core.int? offset, - }) { - final $result = create(); - if (files != null) { - $result.files.addAll(files); - } - if (activeSourceName != null) { - $result.activeSourceName = activeSourceName; - } - if (offset != null) { - $result.offset = offset; - } - return $result; - } - SourceFilesRequest._() : super(); - factory SourceFilesRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SourceFilesRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SourceFilesRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'files', - entryClassName: 'SourceFilesRequest.FilesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..aOS(2, _omitFieldNames ? '' : 'activeSourceName', - protoName: 'activeSourceName') - ..a<$core.int>(3, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SourceFilesRequest clone() => SourceFilesRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SourceFilesRequest copyWith(void Function(SourceFilesRequest) updates) => - super.copyWith((message) => updates(message as SourceFilesRequest)) - as SourceFilesRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SourceFilesRequest create() => SourceFilesRequest._(); - SourceFilesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SourceFilesRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static SourceFilesRequest? _defaultInstance; - - /// The Dart source files set. map of { filename1:sourcecode1 .. filenameN:sourcecodeN } - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get files => $_getMap(0); - - /// active (within editor) source filename key within files map - @$pb.TagNumber(2) - $core.String get activeSourceName => $_getSZ(1); - @$pb.TagNumber(2) - set activeSourceName($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasActiveSourceName() => $_has(1); - @$pb.TagNumber(2) - void clearActiveSourceName() => clearField(2); - - /// The offset within active source file to operate at. - @$pb.TagNumber(3) - $core.int get offset => $_getIZ(2); - @$pb.TagNumber(3) - set offset($core.int v) { - $_setSignedInt32(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasOffset() => $_has(2); - @$pb.TagNumber(3) - void clearOffset() => clearField(3); -} - -class AnalysisResults extends $pb.GeneratedMessage { - factory AnalysisResults({ - $core.Iterable? issues, - $core.Iterable<$core.String>? packageImports, - ErrorMessage? error, - }) { - final $result = create(); - if (issues != null) { - $result.issues.addAll(issues); - } - if (packageImports != null) { - $result.packageImports.addAll(packageImports); - } - if (error != null) { - $result.error = error; - } - return $result; - } - AnalysisResults._() : super(); - factory AnalysisResults.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory AnalysisResults.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'AnalysisResults', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'issues', $pb.PbFieldType.PM, - subBuilder: AnalysisIssue.create) - ..pPS(2, _omitFieldNames ? '' : 'packageImports', - protoName: 'packageImports') - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - AnalysisResults clone() => AnalysisResults()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AnalysisResults copyWith(void Function(AnalysisResults) updates) => - super.copyWith((message) => updates(message as AnalysisResults)) - as AnalysisResults; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static AnalysisResults create() => AnalysisResults._(); - AnalysisResults createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static AnalysisResults getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static AnalysisResults? _defaultInstance; - - @$pb.TagNumber(1) - $core.List get issues => $_getList(0); - - /// The package imports parsed from the source. - @$pb.TagNumber(2) - $core.List<$core.String> get packageImports => $_getList(1); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(2); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(2); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(2); -} - -class AnalysisIssue extends $pb.GeneratedMessage { - factory AnalysisIssue({ - $core.String? kind, - $core.int? line, - $core.String? message, - $core.String? sourceName, - $core.bool? hasFixes, - $core.int? charStart, - $core.int? charLength, - $core.String? url, - $core.Iterable? diagnosticMessages, - $core.String? correction, - $core.int? column, - $core.String? code, - }) { - final $result = create(); - if (kind != null) { - $result.kind = kind; - } - if (line != null) { - $result.line = line; - } - if (message != null) { - $result.message = message; - } - if (sourceName != null) { - $result.sourceName = sourceName; - } - if (hasFixes != null) { - $result.hasFixes = hasFixes; - } - if (charStart != null) { - $result.charStart = charStart; - } - if (charLength != null) { - $result.charLength = charLength; - } - if (url != null) { - $result.url = url; - } - if (diagnosticMessages != null) { - $result.diagnosticMessages.addAll(diagnosticMessages); - } - if (correction != null) { - $result.correction = correction; - } - if (column != null) { - $result.column = column; - } - if (code != null) { - $result.code = code; - } - return $result; - } - AnalysisIssue._() : super(); - factory AnalysisIssue.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory AnalysisIssue.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'AnalysisIssue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'kind') - ..a<$core.int>(2, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) - ..aOS(3, _omitFieldNames ? '' : 'message') - ..aOS(4, _omitFieldNames ? '' : 'sourceName', protoName: 'sourceName') - ..aOB(5, _omitFieldNames ? '' : 'hasFixes', protoName: 'hasFixes') - ..a<$core.int>(6, _omitFieldNames ? '' : 'charStart', $pb.PbFieldType.O3, - protoName: 'charStart') - ..a<$core.int>(7, _omitFieldNames ? '' : 'charLength', $pb.PbFieldType.O3, - protoName: 'charLength') - ..aOS(8, _omitFieldNames ? '' : 'url') - ..pc( - 9, _omitFieldNames ? '' : 'diagnosticMessages', $pb.PbFieldType.PM, - protoName: 'diagnosticMessages', subBuilder: DiagnosticMessage.create) - ..aOS(10, _omitFieldNames ? '' : 'correction') - ..a<$core.int>(11, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) - ..aOS(12, _omitFieldNames ? '' : 'code') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - AnalysisIssue clone() => AnalysisIssue()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AnalysisIssue copyWith(void Function(AnalysisIssue) updates) => - super.copyWith((message) => updates(message as AnalysisIssue)) - as AnalysisIssue; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static AnalysisIssue create() => AnalysisIssue._(); - AnalysisIssue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static AnalysisIssue getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static AnalysisIssue? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get kind => $_getSZ(0); - @$pb.TagNumber(1) - set kind($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasKind() => $_has(0); - @$pb.TagNumber(1) - void clearKind() => clearField(1); - - @$pb.TagNumber(2) - $core.int get line => $_getIZ(1); - @$pb.TagNumber(2) - set line($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasLine() => $_has(1); - @$pb.TagNumber(2) - void clearLine() => clearField(2); - - @$pb.TagNumber(3) - $core.String get message => $_getSZ(2); - @$pb.TagNumber(3) - set message($core.String v) { - $_setString(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasMessage() => $_has(2); - @$pb.TagNumber(3) - void clearMessage() => clearField(3); - - @$pb.TagNumber(4) - $core.String get sourceName => $_getSZ(3); - @$pb.TagNumber(4) - set sourceName($core.String v) { - $_setString(3, v); - } - - @$pb.TagNumber(4) - $core.bool hasSourceName() => $_has(3); - @$pb.TagNumber(4) - void clearSourceName() => clearField(4); - - @$pb.TagNumber(5) - $core.bool get hasFixes => $_getBF(4); - @$pb.TagNumber(5) - set hasFixes($core.bool v) { - $_setBool(4, v); - } - - @$pb.TagNumber(5) - $core.bool hasHasFixes() => $_has(4); - @$pb.TagNumber(5) - void clearHasFixes() => clearField(5); - - @$pb.TagNumber(6) - $core.int get charStart => $_getIZ(5); - @$pb.TagNumber(6) - set charStart($core.int v) { - $_setSignedInt32(5, v); - } - - @$pb.TagNumber(6) - $core.bool hasCharStart() => $_has(5); - @$pb.TagNumber(6) - void clearCharStart() => clearField(6); - - @$pb.TagNumber(7) - $core.int get charLength => $_getIZ(6); - @$pb.TagNumber(7) - set charLength($core.int v) { - $_setSignedInt32(6, v); - } - - @$pb.TagNumber(7) - $core.bool hasCharLength() => $_has(6); - @$pb.TagNumber(7) - void clearCharLength() => clearField(7); - - @$pb.TagNumber(8) - $core.String get url => $_getSZ(7); - @$pb.TagNumber(8) - set url($core.String v) { - $_setString(7, v); - } - - @$pb.TagNumber(8) - $core.bool hasUrl() => $_has(7); - @$pb.TagNumber(8) - void clearUrl() => clearField(8); - - @$pb.TagNumber(9) - $core.List get diagnosticMessages => $_getList(8); - - @$pb.TagNumber(10) - $core.String get correction => $_getSZ(9); - @$pb.TagNumber(10) - set correction($core.String v) { - $_setString(9, v); - } - - @$pb.TagNumber(10) - $core.bool hasCorrection() => $_has(9); - @$pb.TagNumber(10) - void clearCorrection() => clearField(10); - - @$pb.TagNumber(11) - $core.int get column => $_getIZ(10); - @$pb.TagNumber(11) - set column($core.int v) { - $_setSignedInt32(10, v); - } - - @$pb.TagNumber(11) - $core.bool hasColumn() => $_has(10); - @$pb.TagNumber(11) - void clearColumn() => clearField(11); - - @$pb.TagNumber(12) - $core.String get code => $_getSZ(11); - @$pb.TagNumber(12) - set code($core.String v) { - $_setString(11, v); - } - - @$pb.TagNumber(12) - $core.bool hasCode() => $_has(11); - @$pb.TagNumber(12) - void clearCode() => clearField(12); -} - -class DiagnosticMessage extends $pb.GeneratedMessage { - factory DiagnosticMessage({ - $core.String? message, - $core.int? line, - $core.int? charStart, - $core.int? charLength, - }) { - final $result = create(); - if (message != null) { - $result.message = message; - } - if (line != null) { - $result.line = line; - } - if (charStart != null) { - $result.charStart = charStart; - } - if (charLength != null) { - $result.charLength = charLength; - } - return $result; - } - DiagnosticMessage._() : super(); - factory DiagnosticMessage.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DiagnosticMessage.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'DiagnosticMessage', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'message') - ..a<$core.int>(2, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'charStart', $pb.PbFieldType.O3, - protoName: 'charStart') - ..a<$core.int>(4, _omitFieldNames ? '' : 'charLength', $pb.PbFieldType.O3, - protoName: 'charLength') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DiagnosticMessage clone() => DiagnosticMessage()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DiagnosticMessage copyWith(void Function(DiagnosticMessage) updates) => - super.copyWith((message) => updates(message as DiagnosticMessage)) - as DiagnosticMessage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DiagnosticMessage create() => DiagnosticMessage._(); - DiagnosticMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DiagnosticMessage getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DiagnosticMessage? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get message => $_getSZ(0); - @$pb.TagNumber(1) - set message($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasMessage() => $_has(0); - @$pb.TagNumber(1) - void clearMessage() => clearField(1); - - @$pb.TagNumber(2) - $core.int get line => $_getIZ(1); - @$pb.TagNumber(2) - set line($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasLine() => $_has(1); - @$pb.TagNumber(2) - void clearLine() => clearField(2); - - @$pb.TagNumber(3) - $core.int get charStart => $_getIZ(2); - @$pb.TagNumber(3) - set charStart($core.int v) { - $_setSignedInt32(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasCharStart() => $_has(2); - @$pb.TagNumber(3) - void clearCharStart() => clearField(3); - - @$pb.TagNumber(4) - $core.int get charLength => $_getIZ(3); - @$pb.TagNumber(4) - set charLength($core.int v) { - $_setSignedInt32(3, v); - } - - @$pb.TagNumber(4) - $core.bool hasCharLength() => $_has(3); - @$pb.TagNumber(4) - void clearCharLength() => clearField(4); -} - -class VersionRequest extends $pb.GeneratedMessage { - factory VersionRequest() => create(); - VersionRequest._() : super(); - factory VersionRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory VersionRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'VersionRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - VersionRequest clone() => VersionRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VersionRequest copyWith(void Function(VersionRequest) updates) => - super.copyWith((message) => updates(message as VersionRequest)) - as VersionRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static VersionRequest create() => VersionRequest._(); - VersionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static VersionRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static VersionRequest? _defaultInstance; -} - -class CompileResponse extends $pb.GeneratedMessage { - factory CompileResponse({ - $core.String? result, - $core.String? sourceMap, - ErrorMessage? error, - }) { - final $result = create(); - if (result != null) { - $result.result = result; - } - if (sourceMap != null) { - $result.sourceMap = sourceMap; - } - if (error != null) { - $result.error = error; - } - return $result; - } - CompileResponse._() : super(); - factory CompileResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'result') - ..aOS(2, _omitFieldNames ? '' : 'sourceMap', protoName: 'sourceMap') - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileResponse clone() => CompileResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileResponse copyWith(void Function(CompileResponse) updates) => - super.copyWith((message) => updates(message as CompileResponse)) - as CompileResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileResponse create() => CompileResponse._(); - CompileResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get result => $_getSZ(0); - @$pb.TagNumber(1) - set result($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasResult() => $_has(0); - @$pb.TagNumber(1) - void clearResult() => clearField(1); - - @$pb.TagNumber(2) - $core.String get sourceMap => $_getSZ(1); - @$pb.TagNumber(2) - set sourceMap($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasSourceMap() => $_has(1); - @$pb.TagNumber(2) - void clearSourceMap() => clearField(2); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(2); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(2); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(2); -} - -class CompileDDCResponse extends $pb.GeneratedMessage { - factory CompileDDCResponse({ - $core.String? result, - $core.String? modulesBaseUrl, - ErrorMessage? error, - }) { - final $result = create(); - if (result != null) { - $result.result = result; - } - if (modulesBaseUrl != null) { - $result.modulesBaseUrl = modulesBaseUrl; - } - if (error != null) { - $result.error = error; - } - return $result; - } - CompileDDCResponse._() : super(); - factory CompileDDCResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompileDDCResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompileDDCResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'result') - ..aOS(2, _omitFieldNames ? '' : 'modulesBaseUrl', - protoName: 'modulesBaseUrl') - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompileDDCResponse clone() => CompileDDCResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompileDDCResponse copyWith(void Function(CompileDDCResponse) updates) => - super.copyWith((message) => updates(message as CompileDDCResponse)) - as CompileDDCResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompileDDCResponse create() => CompileDDCResponse._(); - CompileDDCResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompileDDCResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompileDDCResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get result => $_getSZ(0); - @$pb.TagNumber(1) - set result($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasResult() => $_has(0); - @$pb.TagNumber(1) - void clearResult() => clearField(1); - - @$pb.TagNumber(2) - $core.String get modulesBaseUrl => $_getSZ(1); - @$pb.TagNumber(2) - set modulesBaseUrl($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasModulesBaseUrl() => $_has(1); - @$pb.TagNumber(2) - void clearModulesBaseUrl() => clearField(2); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(2); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(2); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(2); -} - -class DocumentResponse extends $pb.GeneratedMessage { - factory DocumentResponse({ - $core.Map<$core.String, $core.String>? info, - ErrorMessage? error, - }) { - final $result = create(); - if (info != null) { - $result.info.addAll(info); - } - if (error != null) { - $result.error = error; - } - return $result; - } - DocumentResponse._() : super(); - factory DocumentResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DocumentResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'DocumentResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'info', - entryClassName: 'DocumentResponse.InfoEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DocumentResponse clone() => DocumentResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DocumentResponse copyWith(void Function(DocumentResponse) updates) => - super.copyWith((message) => updates(message as DocumentResponse)) - as DocumentResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DocumentResponse create() => DocumentResponse._(); - DocumentResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DocumentResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DocumentResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get info => $_getMap(0); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(1); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(1); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(1); -} - -class CompleteResponse extends $pb.GeneratedMessage { - factory CompleteResponse({ - $core.int? replacementOffset, - $core.int? replacementLength, - $core.Iterable? completions, - ErrorMessage? error, - }) { - final $result = create(); - if (replacementOffset != null) { - $result.replacementOffset = replacementOffset; - } - if (replacementLength != null) { - $result.replacementLength = replacementLength; - } - if (completions != null) { - $result.completions.addAll(completions); - } - if (error != null) { - $result.error = error; - } - return $result; - } - CompleteResponse._() : super(); - factory CompleteResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CompleteResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CompleteResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..a<$core.int>( - 1, _omitFieldNames ? '' : 'replacementOffset', $pb.PbFieldType.O3, - protoName: 'replacementOffset') - ..a<$core.int>( - 2, _omitFieldNames ? '' : 'replacementLength', $pb.PbFieldType.O3, - protoName: 'replacementLength') - ..pc( - 3, _omitFieldNames ? '' : 'completions', $pb.PbFieldType.PM, - subBuilder: Completion.create) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CompleteResponse clone() => CompleteResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CompleteResponse copyWith(void Function(CompleteResponse) updates) => - super.copyWith((message) => updates(message as CompleteResponse)) - as CompleteResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CompleteResponse create() => CompleteResponse._(); - CompleteResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CompleteResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CompleteResponse? _defaultInstance; - - /// The offset of the start of the text to be replaced. - @$pb.TagNumber(1) - $core.int get replacementOffset => $_getIZ(0); - @$pb.TagNumber(1) - set replacementOffset($core.int v) { - $_setSignedInt32(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasReplacementOffset() => $_has(0); - @$pb.TagNumber(1) - void clearReplacementOffset() => clearField(1); - - /// The length of the text to be replaced. - @$pb.TagNumber(2) - $core.int get replacementLength => $_getIZ(1); - @$pb.TagNumber(2) - set replacementLength($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasReplacementLength() => $_has(1); - @$pb.TagNumber(2) - void clearReplacementLength() => clearField(2); - - @$pb.TagNumber(3) - $core.List get completions => $_getList(2); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(3); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(3); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(3); -} - -class Completion extends $pb.GeneratedMessage { - factory Completion({ - $core.Map<$core.String, $core.String>? completion, - }) { - final $result = create(); - if (completion != null) { - $result.completion.addAll(completion); - } - return $result; - } - Completion._() : super(); - factory Completion.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Completion.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Completion', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'completion', - entryClassName: 'Completion.CompletionEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - Completion clone() => Completion()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Completion copyWith(void Function(Completion) updates) => - super.copyWith((message) => updates(message as Completion)) as Completion; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Completion create() => Completion._(); - Completion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Completion getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static Completion? _defaultInstance; - - @$pb.TagNumber(1) - $core.Map<$core.String, $core.String> get completion => $_getMap(0); -} - -class FixesResponse extends $pb.GeneratedMessage { - factory FixesResponse({ - $core.Iterable? fixes, - ErrorMessage? error, - }) { - final $result = create(); - if (fixes != null) { - $result.fixes.addAll(fixes); - } - if (error != null) { - $result.error = error; - } - return $result; - } - FixesResponse._() : super(); - factory FixesResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory FixesResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FixesResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'fixes', $pb.PbFieldType.PM, - subBuilder: ProblemAndFixes.create) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - FixesResponse clone() => FixesResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - FixesResponse copyWith(void Function(FixesResponse) updates) => - super.copyWith((message) => updates(message as FixesResponse)) - as FixesResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static FixesResponse create() => FixesResponse._(); - FixesResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static FixesResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static FixesResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.List get fixes => $_getList(0); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(1); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(1); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(1); -} - -/// Represents a problem detected during analysis, and a set of possible ways of -/// resolving the problem. -class ProblemAndFixes extends $pb.GeneratedMessage { - factory ProblemAndFixes({ - $core.Iterable? fixes, - $core.String? problemMessage, - $core.int? offset, - $core.int? length, - }) { - final $result = create(); - if (fixes != null) { - $result.fixes.addAll(fixes); - } - if (problemMessage != null) { - $result.problemMessage = problemMessage; - } - if (offset != null) { - $result.offset = offset; - } - if (length != null) { - $result.length = length; - } - return $result; - } - ProblemAndFixes._() : super(); - factory ProblemAndFixes.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ProblemAndFixes.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ProblemAndFixes', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'fixes', $pb.PbFieldType.PM, - subBuilder: CandidateFix.create) - ..aOS(2, _omitFieldNames ? '' : 'problemMessage', - protoName: 'problemMessage') - ..a<$core.int>(3, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'length', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ProblemAndFixes clone() => ProblemAndFixes()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ProblemAndFixes copyWith(void Function(ProblemAndFixes) updates) => - super.copyWith((message) => updates(message as ProblemAndFixes)) - as ProblemAndFixes; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ProblemAndFixes create() => ProblemAndFixes._(); - ProblemAndFixes createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ProblemAndFixes getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static ProblemAndFixes? _defaultInstance; - - @$pb.TagNumber(1) - $core.List get fixes => $_getList(0); - - @$pb.TagNumber(2) - $core.String get problemMessage => $_getSZ(1); - @$pb.TagNumber(2) - set problemMessage($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasProblemMessage() => $_has(1); - @$pb.TagNumber(2) - void clearProblemMessage() => clearField(2); - - @$pb.TagNumber(3) - $core.int get offset => $_getIZ(2); - @$pb.TagNumber(3) - set offset($core.int v) { - $_setSignedInt32(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasOffset() => $_has(2); - @$pb.TagNumber(3) - void clearOffset() => clearField(3); - - @$pb.TagNumber(4) - $core.int get length => $_getIZ(3); - @$pb.TagNumber(4) - set length($core.int v) { - $_setSignedInt32(3, v); - } - - @$pb.TagNumber(4) - $core.bool hasLength() => $_has(3); - @$pb.TagNumber(4) - void clearLength() => clearField(4); -} - -/// Represents a possible way of solving an Analysis Problem. -class CandidateFix extends $pb.GeneratedMessage { - factory CandidateFix({ - $core.String? message, - $core.Iterable? edits, - $core.int? selectionOffset, - $core.Iterable? linkedEditGroups, - }) { - final $result = create(); - if (message != null) { - $result.message = message; - } - if (edits != null) { - $result.edits.addAll(edits); - } - if (selectionOffset != null) { - $result.selectionOffset = selectionOffset; - } - if (linkedEditGroups != null) { - $result.linkedEditGroups.addAll(linkedEditGroups); - } - return $result; - } - CandidateFix._() : super(); - factory CandidateFix.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CandidateFix.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'CandidateFix', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'message') - ..pc(2, _omitFieldNames ? '' : 'edits', $pb.PbFieldType.PM, - subBuilder: SourceEdit.create) - ..a<$core.int>( - 3, _omitFieldNames ? '' : 'selectionOffset', $pb.PbFieldType.O3, - protoName: 'selectionOffset') - ..pc( - 4, _omitFieldNames ? '' : 'linkedEditGroups', $pb.PbFieldType.PM, - protoName: 'linkedEditGroups', subBuilder: LinkedEditGroup.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CandidateFix clone() => CandidateFix()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CandidateFix copyWith(void Function(CandidateFix) updates) => - super.copyWith((message) => updates(message as CandidateFix)) - as CandidateFix; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static CandidateFix create() => CandidateFix._(); - CandidateFix createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CandidateFix getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CandidateFix? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get message => $_getSZ(0); - @$pb.TagNumber(1) - set message($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasMessage() => $_has(0); - @$pb.TagNumber(1) - void clearMessage() => clearField(1); - - @$pb.TagNumber(2) - $core.List get edits => $_getList(1); - - @$pb.TagNumber(3) - $core.int get selectionOffset => $_getIZ(2); - @$pb.TagNumber(3) - set selectionOffset($core.int v) { - $_setSignedInt32(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasSelectionOffset() => $_has(2); - @$pb.TagNumber(3) - void clearSelectionOffset() => clearField(3); - - @$pb.TagNumber(4) - $core.List get linkedEditGroups => $_getList(3); -} - -/// Represents a single edit-point change to a source file. -class SourceEdit extends $pb.GeneratedMessage { - factory SourceEdit({ - $core.int? offset, - $core.int? length, - $core.String? replacement, - }) { - final $result = create(); - if (offset != null) { - $result.offset = offset; - } - if (length != null) { - $result.length = length; - } - if (replacement != null) { - $result.replacement = replacement; - } - return $result; - } - SourceEdit._() : super(); - factory SourceEdit.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SourceEdit.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SourceEdit', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'length', $pb.PbFieldType.O3) - ..aOS(3, _omitFieldNames ? '' : 'replacement') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SourceEdit clone() => SourceEdit()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SourceEdit copyWith(void Function(SourceEdit) updates) => - super.copyWith((message) => updates(message as SourceEdit)) as SourceEdit; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static SourceEdit create() => SourceEdit._(); - SourceEdit createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static SourceEdit getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static SourceEdit? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get offset => $_getIZ(0); - @$pb.TagNumber(1) - set offset($core.int v) { - $_setSignedInt32(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasOffset() => $_has(0); - @$pb.TagNumber(1) - void clearOffset() => clearField(1); - - @$pb.TagNumber(2) - $core.int get length => $_getIZ(1); - @$pb.TagNumber(2) - set length($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasLength() => $_has(1); - @$pb.TagNumber(2) - void clearLength() => clearField(2); - - @$pb.TagNumber(3) - $core.String get replacement => $_getSZ(2); - @$pb.TagNumber(3) - set replacement($core.String v) { - $_setString(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasReplacement() => $_has(2); - @$pb.TagNumber(3) - void clearReplacement() => clearField(3); -} - -class LinkedEditGroup extends $pb.GeneratedMessage { - factory LinkedEditGroup({ - $core.Iterable<$core.int>? positions, - $core.int? length, - $core.Iterable? suggestions, - }) { - final $result = create(); - if (positions != null) { - $result.positions.addAll(positions); - } - if (length != null) { - $result.length = length; - } - if (suggestions != null) { - $result.suggestions.addAll(suggestions); - } - return $result; - } - LinkedEditGroup._() : super(); - factory LinkedEditGroup.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory LinkedEditGroup.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'LinkedEditGroup', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..p<$core.int>(1, _omitFieldNames ? '' : 'positions', $pb.PbFieldType.K3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'length', $pb.PbFieldType.O3) - ..pc( - 3, _omitFieldNames ? '' : 'suggestions', $pb.PbFieldType.PM, - subBuilder: LinkedEditSuggestion.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LinkedEditGroup clone() => LinkedEditGroup()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LinkedEditGroup copyWith(void Function(LinkedEditGroup) updates) => - super.copyWith((message) => updates(message as LinkedEditGroup)) - as LinkedEditGroup; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LinkedEditGroup create() => LinkedEditGroup._(); - LinkedEditGroup createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LinkedEditGroup getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static LinkedEditGroup? _defaultInstance; - - /// The positions of the regions that should be edited simultaneously. - @$pb.TagNumber(1) - $core.List<$core.int> get positions => $_getList(0); - - /// The length of the regions that should be edited simultaneously. - @$pb.TagNumber(2) - $core.int get length => $_getIZ(1); - @$pb.TagNumber(2) - set length($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasLength() => $_has(1); - @$pb.TagNumber(2) - void clearLength() => clearField(2); - - /// Pre-computed suggestions for what every region might want to be changed to. - @$pb.TagNumber(3) - $core.List get suggestions => $_getList(2); -} - -class LinkedEditSuggestion extends $pb.GeneratedMessage { - factory LinkedEditSuggestion({ - $core.String? value, - $core.String? kind, - }) { - final $result = create(); - if (value != null) { - $result.value = value; - } - if (kind != null) { - $result.kind = kind; - } - return $result; - } - LinkedEditSuggestion._() : super(); - factory LinkedEditSuggestion.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory LinkedEditSuggestion.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'LinkedEditSuggestion', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'value') - ..aOS(2, _omitFieldNames ? '' : 'kind') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - LinkedEditSuggestion clone() => - LinkedEditSuggestion()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LinkedEditSuggestion copyWith(void Function(LinkedEditSuggestion) updates) => - super.copyWith((message) => updates(message as LinkedEditSuggestion)) - as LinkedEditSuggestion; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static LinkedEditSuggestion create() => LinkedEditSuggestion._(); - LinkedEditSuggestion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static LinkedEditSuggestion getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static LinkedEditSuggestion? _defaultInstance; - - /// The value that could be used to replace all of the linked edit regions. - @$pb.TagNumber(1) - $core.String get value => $_getSZ(0); - @$pb.TagNumber(1) - set value($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => clearField(1); - - /// The kind of value being proposed. - @$pb.TagNumber(2) - $core.String get kind => $_getSZ(1); - @$pb.TagNumber(2) - set kind($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasKind() => $_has(1); - @$pb.TagNumber(2) - void clearKind() => clearField(2); -} - -/// Represents a reformatting of the code. -class FormatResponse extends $pb.GeneratedMessage { - factory FormatResponse({ - $core.String? newString, - $core.int? offset, - ErrorMessage? error, - }) { - final $result = create(); - if (newString != null) { - $result.newString = newString; - } - if (offset != null) { - $result.offset = offset; - } - if (error != null) { - $result.error = error; - } - return $result; - } - FormatResponse._() : super(); - factory FormatResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory FormatResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FormatResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'newString', protoName: 'newString') - ..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - FormatResponse clone() => FormatResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - FormatResponse copyWith(void Function(FormatResponse) updates) => - super.copyWith((message) => updates(message as FormatResponse)) - as FormatResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static FormatResponse create() => FormatResponse._(); - FormatResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static FormatResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static FormatResponse? _defaultInstance; - - /// The formatted source code. - @$pb.TagNumber(1) - $core.String get newString => $_getSZ(0); - @$pb.TagNumber(1) - set newString($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasNewString() => $_has(0); - @$pb.TagNumber(1) - void clearNewString() => clearField(1); - - /// The (optional) new offset of the cursor; can be `null`. - @$pb.TagNumber(2) - $core.int get offset => $_getIZ(1); - @$pb.TagNumber(2) - set offset($core.int v) { - $_setSignedInt32(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasOffset() => $_has(1); - @$pb.TagNumber(2) - void clearOffset() => clearField(2); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(2); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(2); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(2); -} - -/// The response from the `/assists` service call. -class AssistsResponse extends $pb.GeneratedMessage { - factory AssistsResponse({ - $core.Iterable? assists, - ErrorMessage? error, - }) { - final $result = create(); - if (assists != null) { - $result.assists.addAll(assists); - } - if (error != null) { - $result.error = error; - } - return $result; - } - AssistsResponse._() : super(); - factory AssistsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory AssistsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'AssistsResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'assists', $pb.PbFieldType.PM, - subBuilder: CandidateFix.create) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - AssistsResponse clone() => AssistsResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AssistsResponse copyWith(void Function(AssistsResponse) updates) => - super.copyWith((message) => updates(message as AssistsResponse)) - as AssistsResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static AssistsResponse create() => AssistsResponse._(); - AssistsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static AssistsResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static AssistsResponse? _defaultInstance; - - @$pb.TagNumber(1) - $core.List get assists => $_getList(0); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(1); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(1); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(1); -} - -/// The response from the `/version` service call. -class VersionResponse extends $pb.GeneratedMessage { - factory VersionResponse({ - $core.String? sdkVersion, - $core.String? sdkVersionFull, - @$core.Deprecated('This field is deprecated.') $core.String? runtimeVersion, - @$core.Deprecated('This field is deprecated.') - $core.String? appEngineVersion, - @$core.Deprecated('This field is deprecated.') - $core.String? servicesVersion, - $core.String? flutterVersion, - @$core.Deprecated('This field is deprecated.') - $core.String? flutterDartVersion, - @$core.Deprecated('This field is deprecated.') - $core.String? flutterDartVersionFull, - @$core.Deprecated('This field is deprecated.') - $core.Map<$core.String, $core.String>? packageVersions, - $core.Iterable? packageInfo, - $core.Iterable<$core.String>? experiment, - $core.String? flutterEngineSha, - ErrorMessage? error, - }) { - final $result = create(); - if (sdkVersion != null) { - $result.sdkVersion = sdkVersion; - } - if (sdkVersionFull != null) { - $result.sdkVersionFull = sdkVersionFull; - } - if (runtimeVersion != null) { - // ignore: deprecated_member_use_from_same_package - $result.runtimeVersion = runtimeVersion; - } - if (appEngineVersion != null) { - // ignore: deprecated_member_use_from_same_package - $result.appEngineVersion = appEngineVersion; - } - if (servicesVersion != null) { - // ignore: deprecated_member_use_from_same_package - $result.servicesVersion = servicesVersion; - } - if (flutterVersion != null) { - $result.flutterVersion = flutterVersion; - } - if (flutterDartVersion != null) { - // ignore: deprecated_member_use_from_same_package - $result.flutterDartVersion = flutterDartVersion; - } - if (flutterDartVersionFull != null) { - // ignore: deprecated_member_use_from_same_package - $result.flutterDartVersionFull = flutterDartVersionFull; - } - if (packageVersions != null) { - // ignore: deprecated_member_use_from_same_package - $result.packageVersions.addAll(packageVersions); - } - if (packageInfo != null) { - $result.packageInfo.addAll(packageInfo); - } - if (experiment != null) { - $result.experiment.addAll(experiment); - } - if (flutterEngineSha != null) { - $result.flutterEngineSha = flutterEngineSha; - } - if (error != null) { - $result.error = error; - } - return $result; - } - VersionResponse._() : super(); - factory VersionResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory VersionResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'VersionResponse', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'sdkVersion', protoName: 'sdkVersion') - ..aOS(2, _omitFieldNames ? '' : 'sdkVersionFull', - protoName: 'sdkVersionFull') - ..aOS(3, _omitFieldNames ? '' : 'runtimeVersion', - protoName: 'runtimeVersion') - ..aOS(4, _omitFieldNames ? '' : 'appEngineVersion', - protoName: 'appEngineVersion') - ..aOS(5, _omitFieldNames ? '' : 'servicesVersion', - protoName: 'servicesVersion') - ..aOS(6, _omitFieldNames ? '' : 'flutterVersion', - protoName: 'flutterVersion') - ..aOS(7, _omitFieldNames ? '' : 'flutterDartVersion', - protoName: 'flutterDartVersion') - ..aOS(8, _omitFieldNames ? '' : 'flutterDartVersionFull', - protoName: 'flutterDartVersionFull') - ..m<$core.String, $core.String>(9, _omitFieldNames ? '' : 'packageVersions', - protoName: 'packageVersions', - entryClassName: 'VersionResponse.PackageVersionsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('dart_services.api')) - ..pc( - 10, _omitFieldNames ? '' : 'packageInfo', $pb.PbFieldType.PM, - protoName: 'packageInfo', subBuilder: PackageInfo.create) - ..pPS(11, _omitFieldNames ? '' : 'experiment') - ..aOS(12, _omitFieldNames ? '' : 'flutterEngineSha', - protoName: 'flutterEngineSha') - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - VersionResponse clone() => VersionResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VersionResponse copyWith(void Function(VersionResponse) updates) => - super.copyWith((message) => updates(message as VersionResponse)) - as VersionResponse; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static VersionResponse create() => VersionResponse._(); - VersionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static VersionResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static VersionResponse? _defaultInstance; - - /// The Dart SDK version. - @$pb.TagNumber(1) - $core.String get sdkVersion => $_getSZ(0); - @$pb.TagNumber(1) - set sdkVersion($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasSdkVersion() => $_has(0); - @$pb.TagNumber(1) - void clearSdkVersion() => clearField(1); - - /// The full string of the Dart SDK version, including any channel name. - /// - /// E.g., `3.1.0-262.2.beta` vs `3.1.0`. - @$pb.TagNumber(2) - $core.String get sdkVersionFull => $_getSZ(1); - @$pb.TagNumber(2) - set sdkVersionFull($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasSdkVersionFull() => $_has(1); - @$pb.TagNumber(2) - void clearSdkVersionFull() => clearField(2); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(3) - $core.String get runtimeVersion => $_getSZ(2); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(3) - set runtimeVersion($core.String v) { - $_setString(2, v); - } - - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(3) - $core.bool hasRuntimeVersion() => $_has(2); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(3) - void clearRuntimeVersion() => clearField(3); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(4) - $core.String get appEngineVersion => $_getSZ(3); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(4) - set appEngineVersion($core.String v) { - $_setString(3, v); - } - - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(4) - $core.bool hasAppEngineVersion() => $_has(3); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(4) - void clearAppEngineVersion() => clearField(4); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(5) - $core.String get servicesVersion => $_getSZ(4); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(5) - set servicesVersion($core.String v) { - $_setString(4, v); - } - - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(5) - $core.bool hasServicesVersion() => $_has(4); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(5) - void clearServicesVersion() => clearField(5); - - /// The Flutter SDK version. - @$pb.TagNumber(6) - $core.String get flutterVersion => $_getSZ(5); - @$pb.TagNumber(6) - set flutterVersion($core.String v) { - $_setString(5, v); - } - - @$pb.TagNumber(6) - $core.bool hasFlutterVersion() => $_has(5); - @$pb.TagNumber(6) - void clearFlutterVersion() => clearField(6); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(7) - $core.String get flutterDartVersion => $_getSZ(6); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(7) - set flutterDartVersion($core.String v) { - $_setString(6, v); - } - - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(7) - $core.bool hasFlutterDartVersion() => $_has(6); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(7) - void clearFlutterDartVersion() => clearField(7); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(8) - $core.String get flutterDartVersionFull => $_getSZ(7); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(8) - set flutterDartVersionFull($core.String v) { - $_setString(7, v); - } - - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(8) - $core.bool hasFlutterDartVersionFull() => $_has(7); - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(8) - void clearFlutterDartVersionFull() => clearField(8); - - /// Removed. - @$core.Deprecated('This field is deprecated.') - @$pb.TagNumber(9) - $core.Map<$core.String, $core.String> get packageVersions => $_getMap(8); - - /// Package information; each package found in `pubspec.lock` is included. - @$pb.TagNumber(10) - $core.List get packageInfo => $_getList(9); - - /// Experiments that this server is running. - @$pb.TagNumber(11) - $core.List<$core.String> get experiment => $_getList(10); - - /// The Flutter engine SHA, located in bin/internal/engine.version. - @$pb.TagNumber(12) - $core.String get flutterEngineSha => $_getSZ(11); - @$pb.TagNumber(12) - set flutterEngineSha($core.String v) { - $_setString(11, v); - } - - @$pb.TagNumber(12) - $core.bool hasFlutterEngineSha() => $_has(11); - @$pb.TagNumber(12) - void clearFlutterEngineSha() => clearField(12); - - /// Make this response compatible with BadRequest - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(12); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(12); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(12); -} - -class PackageInfo extends $pb.GeneratedMessage { - factory PackageInfo({ - $core.String? name, - $core.String? version, - $core.bool? supported, - }) { - final $result = create(); - if (name != null) { - $result.name = name; - } - if (version != null) { - $result.version = version; - } - if (supported != null) { - $result.supported = supported; - } - return $result; - } - PackageInfo._() : super(); - factory PackageInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory PackageInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'PackageInfo', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'name') - ..aOS(2, _omitFieldNames ? '' : 'version') - ..aOB(3, _omitFieldNames ? '' : 'supported') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - PackageInfo clone() => PackageInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PackageInfo copyWith(void Function(PackageInfo) updates) => - super.copyWith((message) => updates(message as PackageInfo)) - as PackageInfo; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static PackageInfo create() => PackageInfo._(); - PackageInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static PackageInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static PackageInfo? _defaultInstance; - - /// The name of this package. - @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); - @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); - @$pb.TagNumber(1) - void clearName() => clearField(1); - - /// The selected version of this package. - @$pb.TagNumber(2) - $core.String get version => $_getSZ(1); - @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasVersion() => $_has(1); - @$pb.TagNumber(2) - void clearVersion() => clearField(2); - - /// Whether this package is supported as a directly importable package, - /// or simply available as a transitive dependency of a supported package. - @$pb.TagNumber(3) - $core.bool get supported => $_getBF(2); - @$pb.TagNumber(3) - set supported($core.bool v) { - $_setBool(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasSupported() => $_has(2); - @$pb.TagNumber(3) - void clearSupported() => clearField(3); -} - -/// Response from the server when errors are thrown internally -class BadRequest extends $pb.GeneratedMessage { - factory BadRequest({ - ErrorMessage? error, - }) { - final $result = create(); - if (error != null) { - $result.error = error; - } - return $result; - } - BadRequest._() : super(); - factory BadRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BadRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BadRequest', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOM(99, _omitFieldNames ? '' : 'error', - subBuilder: ErrorMessage.create) - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - BadRequest clone() => BadRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - BadRequest copyWith(void Function(BadRequest) updates) => - super.copyWith((message) => updates(message as BadRequest)) as BadRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BadRequest create() => BadRequest._(); - BadRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BadRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static BadRequest? _defaultInstance; - - @$pb.TagNumber(99) - ErrorMessage get error => $_getN(0); - @$pb.TagNumber(99) - set error(ErrorMessage v) { - setField(99, v); - } - - @$pb.TagNumber(99) - $core.bool hasError() => $_has(0); - @$pb.TagNumber(99) - void clearError() => clearField(99); - @$pb.TagNumber(99) - ErrorMessage ensureError() => $_ensure(0); -} - -/// Individual error messages. -class ErrorMessage extends $pb.GeneratedMessage { - factory ErrorMessage({ - $core.String? message, - }) { - final $result = create(); - if (message != null) { - $result.message = message; - } - return $result; - } - ErrorMessage._() : super(); - factory ErrorMessage.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ErrorMessage.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ErrorMessage', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'dart_services.api'), - createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'message') - ..hasRequiredFields = false; - - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ErrorMessage clone() => ErrorMessage()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ErrorMessage copyWith(void Function(ErrorMessage) updates) => - super.copyWith((message) => updates(message as ErrorMessage)) - as ErrorMessage; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ErrorMessage create() => ErrorMessage._(); - ErrorMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ErrorMessage getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static ErrorMessage? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get message => $_getSZ(0); - @$pb.TagNumber(1) - set message($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasMessage() => $_has(0); - @$pb.TagNumber(1) - void clearMessage() => clearField(1); -} - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/sketch_pad/lib/src/protos/dart_services.pbenum.dart b/pkgs/sketch_pad/lib/src/protos/dart_services.pbenum.dart deleted file mode 100644 index 75e711a69..000000000 --- a/pkgs/sketch_pad/lib/src/protos/dart_services.pbenum.dart +++ /dev/null @@ -1,10 +0,0 @@ -// -// Generated code. Do not modify. -// source: protos/dart_services.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/pkgs/sketch_pad/lib/src/protos/dart_services.pbjson.dart b/pkgs/sketch_pad/lib/src/protos/dart_services.pbjson.dart deleted file mode 100644 index 26d416a56..000000000 --- a/pkgs/sketch_pad/lib/src/protos/dart_services.pbjson.dart +++ /dev/null @@ -1,801 +0,0 @@ -// -// Generated code. Do not modify. -// source: protos/dart_services.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use compileRequestDescriptor instead') -const CompileRequest$json = { - '1': 'CompileRequest', - '2': [ - {'1': 'source', '3': 1, '4': 1, '5': 9, '10': 'source'}, - {'1': 'returnSourceMap', '3': 2, '4': 1, '5': 8, '10': 'returnSourceMap'}, - ], -}; - -/// Descriptor for `CompileRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileRequestDescriptor = $convert.base64Decode( - 'Cg5Db21waWxlUmVxdWVzdBIWCgZzb3VyY2UYASABKAlSBnNvdXJjZRIoCg9yZXR1cm5Tb3VyY2' - 'VNYXAYAiABKAhSD3JldHVyblNvdXJjZU1hcA=='); - -@$core.Deprecated('Use compileFilesRequestDescriptor instead') -const CompileFilesRequest$json = { - '1': 'CompileFilesRequest', - '2': [ - { - '1': 'files', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.CompileFilesRequest.FilesEntry', - '10': 'files' - }, - {'1': 'returnSourceMap', '3': 2, '4': 1, '5': 8, '10': 'returnSourceMap'}, - ], - '3': [CompileFilesRequest_FilesEntry$json], -}; - -@$core.Deprecated('Use compileFilesRequestDescriptor instead') -const CompileFilesRequest_FilesEntry$json = { - '1': 'FilesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `CompileFilesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileFilesRequestDescriptor = $convert.base64Decode( - 'ChNDb21waWxlRmlsZXNSZXF1ZXN0EkcKBWZpbGVzGAEgAygLMjEuZGFydF9zZXJ2aWNlcy5hcG' - 'kuQ29tcGlsZUZpbGVzUmVxdWVzdC5GaWxlc0VudHJ5UgVmaWxlcxIoCg9yZXR1cm5Tb3VyY2VN' - 'YXAYAiABKAhSD3JldHVyblNvdXJjZU1hcBo4CgpGaWxlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2' - 'V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use compileDDCRequestDescriptor instead') -const CompileDDCRequest$json = { - '1': 'CompileDDCRequest', - '2': [ - {'1': 'source', '3': 1, '4': 1, '5': 9, '10': 'source'}, - ], -}; - -/// Descriptor for `CompileDDCRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileDDCRequestDescriptor = $convert.base64Decode( - 'ChFDb21waWxlRERDUmVxdWVzdBIWCgZzb3VyY2UYASABKAlSBnNvdXJjZQ=='); - -@$core.Deprecated('Use compileFilesDDCRequestDescriptor instead') -const CompileFilesDDCRequest$json = { - '1': 'CompileFilesDDCRequest', - '2': [ - { - '1': 'files', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.CompileFilesDDCRequest.FilesEntry', - '10': 'files' - }, - ], - '3': [CompileFilesDDCRequest_FilesEntry$json], -}; - -@$core.Deprecated('Use compileFilesDDCRequestDescriptor instead') -const CompileFilesDDCRequest_FilesEntry$json = { - '1': 'FilesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `CompileFilesDDCRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileFilesDDCRequestDescriptor = $convert.base64Decode( - 'ChZDb21waWxlRmlsZXNERENSZXF1ZXN0EkoKBWZpbGVzGAEgAygLMjQuZGFydF9zZXJ2aWNlcy' - '5hcGkuQ29tcGlsZUZpbGVzRERDUmVxdWVzdC5GaWxlc0VudHJ5UgVmaWxlcxo4CgpGaWxlc0Vu' - 'dHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use flutterBuildResponseDescriptor instead') -const FlutterBuildResponse$json = { - '1': 'FlutterBuildResponse', - '2': [ - { - '1': 'artifacts', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.FlutterBuildResponse.ArtifactsEntry', - '10': 'artifacts' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], - '3': [FlutterBuildResponse_ArtifactsEntry$json], -}; - -@$core.Deprecated('Use flutterBuildResponseDescriptor instead') -const FlutterBuildResponse_ArtifactsEntry$json = { - '1': 'ArtifactsEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `FlutterBuildResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List flutterBuildResponseDescriptor = $convert.base64Decode( - 'ChRGbHV0dGVyQnVpbGRSZXNwb25zZRJUCglhcnRpZmFjdHMYASADKAsyNi5kYXJ0X3NlcnZpY2' - 'VzLmFwaS5GbHV0dGVyQnVpbGRSZXNwb25zZS5BcnRpZmFjdHNFbnRyeVIJYXJ0aWZhY3RzEjUK' - 'BWVycm9yGGMgASgLMh8uZGFydF9zZXJ2aWNlcy5hcGkuRXJyb3JNZXNzYWdlUgVlcnJvcho8Cg' - '5BcnRpZmFjdHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6' - 'AjgB'); - -@$core.Deprecated('Use sourceRequestDescriptor instead') -const SourceRequest$json = { - '1': 'SourceRequest', - '2': [ - {'1': 'source', '3': 1, '4': 1, '5': 9, '10': 'source'}, - {'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'}, - ], -}; - -/// Descriptor for `SourceRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sourceRequestDescriptor = $convert.base64Decode( - 'Cg1Tb3VyY2VSZXF1ZXN0EhYKBnNvdXJjZRgBIAEoCVIGc291cmNlEhYKBm9mZnNldBgCIAEoBV' - 'IGb2Zmc2V0'); - -@$core.Deprecated('Use sourceFilesRequestDescriptor instead') -const SourceFilesRequest$json = { - '1': 'SourceFilesRequest', - '2': [ - { - '1': 'files', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.SourceFilesRequest.FilesEntry', - '10': 'files' - }, - {'1': 'activeSourceName', '3': 2, '4': 1, '5': 9, '10': 'activeSourceName'}, - {'1': 'offset', '3': 3, '4': 1, '5': 5, '10': 'offset'}, - ], - '3': [SourceFilesRequest_FilesEntry$json], -}; - -@$core.Deprecated('Use sourceFilesRequestDescriptor instead') -const SourceFilesRequest_FilesEntry$json = { - '1': 'FilesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `SourceFilesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sourceFilesRequestDescriptor = $convert.base64Decode( - 'ChJTb3VyY2VGaWxlc1JlcXVlc3QSRgoFZmlsZXMYASADKAsyMC5kYXJ0X3NlcnZpY2VzLmFwaS' - '5Tb3VyY2VGaWxlc1JlcXVlc3QuRmlsZXNFbnRyeVIFZmlsZXMSKgoQYWN0aXZlU291cmNlTmFt' - 'ZRgCIAEoCVIQYWN0aXZlU291cmNlTmFtZRIWCgZvZmZzZXQYAyABKAVSBm9mZnNldBo4CgpGaW' - 'xlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use analysisResultsDescriptor instead') -const AnalysisResults$json = { - '1': 'AnalysisResults', - '2': [ - { - '1': 'issues', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.AnalysisIssue', - '10': 'issues' - }, - {'1': 'packageImports', '3': 2, '4': 3, '5': 9, '10': 'packageImports'}, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `AnalysisResults`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List analysisResultsDescriptor = $convert.base64Decode( - 'Cg9BbmFseXNpc1Jlc3VsdHMSOAoGaXNzdWVzGAEgAygLMiAuZGFydF9zZXJ2aWNlcy5hcGkuQW' - '5hbHlzaXNJc3N1ZVIGaXNzdWVzEiYKDnBhY2thZ2VJbXBvcnRzGAIgAygJUg5wYWNrYWdlSW1w' - 'b3J0cxI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2VydmljZXMuYXBpLkVycm9yTWVzc2FnZVIFZX' - 'Jyb3I='); - -@$core.Deprecated('Use analysisIssueDescriptor instead') -const AnalysisIssue$json = { - '1': 'AnalysisIssue', - '2': [ - {'1': 'kind', '3': 1, '4': 1, '5': 9, '10': 'kind'}, - {'1': 'line', '3': 2, '4': 1, '5': 5, '10': 'line'}, - {'1': 'message', '3': 3, '4': 1, '5': 9, '10': 'message'}, - {'1': 'sourceName', '3': 4, '4': 1, '5': 9, '10': 'sourceName'}, - {'1': 'hasFixes', '3': 5, '4': 1, '5': 8, '10': 'hasFixes'}, - {'1': 'charStart', '3': 6, '4': 1, '5': 5, '10': 'charStart'}, - {'1': 'charLength', '3': 7, '4': 1, '5': 5, '10': 'charLength'}, - {'1': 'url', '3': 8, '4': 1, '5': 9, '10': 'url'}, - { - '1': 'diagnosticMessages', - '3': 9, - '4': 3, - '5': 11, - '6': '.dart_services.api.DiagnosticMessage', - '10': 'diagnosticMessages' - }, - {'1': 'correction', '3': 10, '4': 1, '5': 9, '10': 'correction'}, - {'1': 'column', '3': 11, '4': 1, '5': 5, '10': 'column'}, - {'1': 'code', '3': 12, '4': 1, '5': 9, '10': 'code'}, - ], -}; - -/// Descriptor for `AnalysisIssue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List analysisIssueDescriptor = $convert.base64Decode( - 'Cg1BbmFseXNpc0lzc3VlEhIKBGtpbmQYASABKAlSBGtpbmQSEgoEbGluZRgCIAEoBVIEbGluZR' - 'IYCgdtZXNzYWdlGAMgASgJUgdtZXNzYWdlEh4KCnNvdXJjZU5hbWUYBCABKAlSCnNvdXJjZU5h' - 'bWUSGgoIaGFzRml4ZXMYBSABKAhSCGhhc0ZpeGVzEhwKCWNoYXJTdGFydBgGIAEoBVIJY2hhcl' - 'N0YXJ0Eh4KCmNoYXJMZW5ndGgYByABKAVSCmNoYXJMZW5ndGgSEAoDdXJsGAggASgJUgN1cmwS' - 'VAoSZGlhZ25vc3RpY01lc3NhZ2VzGAkgAygLMiQuZGFydF9zZXJ2aWNlcy5hcGkuRGlhZ25vc3' - 'RpY01lc3NhZ2VSEmRpYWdub3N0aWNNZXNzYWdlcxIeCgpjb3JyZWN0aW9uGAogASgJUgpjb3Jy' - 'ZWN0aW9uEhYKBmNvbHVtbhgLIAEoBVIGY29sdW1uEhIKBGNvZGUYDCABKAlSBGNvZGU='); - -@$core.Deprecated('Use diagnosticMessageDescriptor instead') -const DiagnosticMessage$json = { - '1': 'DiagnosticMessage', - '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - {'1': 'line', '3': 2, '4': 1, '5': 5, '10': 'line'}, - {'1': 'charStart', '3': 3, '4': 1, '5': 5, '10': 'charStart'}, - {'1': 'charLength', '3': 4, '4': 1, '5': 5, '10': 'charLength'}, - ], -}; - -/// Descriptor for `DiagnosticMessage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List diagnosticMessageDescriptor = $convert.base64Decode( - 'ChFEaWFnbm9zdGljTWVzc2FnZRIYCgdtZXNzYWdlGAEgASgJUgdtZXNzYWdlEhIKBGxpbmUYAi' - 'ABKAVSBGxpbmUSHAoJY2hhclN0YXJ0GAMgASgFUgljaGFyU3RhcnQSHgoKY2hhckxlbmd0aBgE' - 'IAEoBVIKY2hhckxlbmd0aA=='); - -@$core.Deprecated('Use versionRequestDescriptor instead') -const VersionRequest$json = { - '1': 'VersionRequest', -}; - -/// Descriptor for `VersionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List versionRequestDescriptor = - $convert.base64Decode('Cg5WZXJzaW9uUmVxdWVzdA=='); - -@$core.Deprecated('Use compileResponseDescriptor instead') -const CompileResponse$json = { - '1': 'CompileResponse', - '2': [ - {'1': 'result', '3': 1, '4': 1, '5': 9, '10': 'result'}, - {'1': 'sourceMap', '3': 2, '4': 1, '5': 9, '10': 'sourceMap'}, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `CompileResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileResponseDescriptor = $convert.base64Decode( - 'Cg9Db21waWxlUmVzcG9uc2USFgoGcmVzdWx0GAEgASgJUgZyZXN1bHQSHAoJc291cmNlTWFwGA' - 'IgASgJUglzb3VyY2VNYXASNQoFZXJyb3IYYyABKAsyHy5kYXJ0X3NlcnZpY2VzLmFwaS5FcnJv' - 'ck1lc3NhZ2VSBWVycm9y'); - -@$core.Deprecated('Use compileDDCResponseDescriptor instead') -const CompileDDCResponse$json = { - '1': 'CompileDDCResponse', - '2': [ - {'1': 'result', '3': 1, '4': 1, '5': 9, '10': 'result'}, - {'1': 'modulesBaseUrl', '3': 2, '4': 1, '5': 9, '10': 'modulesBaseUrl'}, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `CompileDDCResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List compileDDCResponseDescriptor = $convert.base64Decode( - 'ChJDb21waWxlRERDUmVzcG9uc2USFgoGcmVzdWx0GAEgASgJUgZyZXN1bHQSJgoObW9kdWxlc0' - 'Jhc2VVcmwYAiABKAlSDm1vZHVsZXNCYXNlVXJsEjUKBWVycm9yGGMgASgLMh8uZGFydF9zZXJ2' - 'aWNlcy5hcGkuRXJyb3JNZXNzYWdlUgVlcnJvcg=='); - -@$core.Deprecated('Use documentResponseDescriptor instead') -const DocumentResponse$json = { - '1': 'DocumentResponse', - '2': [ - { - '1': 'info', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.DocumentResponse.InfoEntry', - '10': 'info' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], - '3': [DocumentResponse_InfoEntry$json], -}; - -@$core.Deprecated('Use documentResponseDescriptor instead') -const DocumentResponse_InfoEntry$json = { - '1': 'InfoEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `DocumentResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List documentResponseDescriptor = $convert.base64Decode( - 'ChBEb2N1bWVudFJlc3BvbnNlEkEKBGluZm8YASADKAsyLS5kYXJ0X3NlcnZpY2VzLmFwaS5Eb2' - 'N1bWVudFJlc3BvbnNlLkluZm9FbnRyeVIEaW5mbxI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2Vy' - 'dmljZXMuYXBpLkVycm9yTWVzc2FnZVIFZXJyb3IaNwoJSW5mb0VudHJ5EhAKA2tleRgBIAEoCV' - 'IDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use completeResponseDescriptor instead') -const CompleteResponse$json = { - '1': 'CompleteResponse', - '2': [ - { - '1': 'replacementOffset', - '3': 1, - '4': 1, - '5': 5, - '10': 'replacementOffset' - }, - { - '1': 'replacementLength', - '3': 2, - '4': 1, - '5': 5, - '10': 'replacementLength' - }, - { - '1': 'completions', - '3': 3, - '4': 3, - '5': 11, - '6': '.dart_services.api.Completion', - '10': 'completions' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `CompleteResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List completeResponseDescriptor = $convert.base64Decode( - 'ChBDb21wbGV0ZVJlc3BvbnNlEiwKEXJlcGxhY2VtZW50T2Zmc2V0GAEgASgFUhFyZXBsYWNlbW' - 'VudE9mZnNldBIsChFyZXBsYWNlbWVudExlbmd0aBgCIAEoBVIRcmVwbGFjZW1lbnRMZW5ndGgS' - 'PwoLY29tcGxldGlvbnMYAyADKAsyHS5kYXJ0X3NlcnZpY2VzLmFwaS5Db21wbGV0aW9uUgtjb2' - '1wbGV0aW9ucxI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2VydmljZXMuYXBpLkVycm9yTWVzc2Fn' - 'ZVIFZXJyb3I='); - -@$core.Deprecated('Use completionDescriptor instead') -const Completion$json = { - '1': 'Completion', - '2': [ - { - '1': 'completion', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.Completion.CompletionEntry', - '10': 'completion' - }, - ], - '3': [Completion_CompletionEntry$json], -}; - -@$core.Deprecated('Use completionDescriptor instead') -const Completion_CompletionEntry$json = { - '1': 'CompletionEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `Completion`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List completionDescriptor = $convert.base64Decode( - 'CgpDb21wbGV0aW9uEk0KCmNvbXBsZXRpb24YASADKAsyLS5kYXJ0X3NlcnZpY2VzLmFwaS5Db2' - '1wbGV0aW9uLkNvbXBsZXRpb25FbnRyeVIKY29tcGxldGlvbho9Cg9Db21wbGV0aW9uRW50cnkS' - 'EAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); - -@$core.Deprecated('Use fixesResponseDescriptor instead') -const FixesResponse$json = { - '1': 'FixesResponse', - '2': [ - { - '1': 'fixes', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.ProblemAndFixes', - '10': 'fixes' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `FixesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List fixesResponseDescriptor = $convert.base64Decode( - 'Cg1GaXhlc1Jlc3BvbnNlEjgKBWZpeGVzGAEgAygLMiIuZGFydF9zZXJ2aWNlcy5hcGkuUHJvYm' - 'xlbUFuZEZpeGVzUgVmaXhlcxI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2VydmljZXMuYXBpLkVy' - 'cm9yTWVzc2FnZVIFZXJyb3I='); - -@$core.Deprecated('Use problemAndFixesDescriptor instead') -const ProblemAndFixes$json = { - '1': 'ProblemAndFixes', - '2': [ - { - '1': 'fixes', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.CandidateFix', - '10': 'fixes' - }, - {'1': 'problemMessage', '3': 2, '4': 1, '5': 9, '10': 'problemMessage'}, - {'1': 'offset', '3': 3, '4': 1, '5': 5, '10': 'offset'}, - {'1': 'length', '3': 4, '4': 1, '5': 5, '10': 'length'}, - ], -}; - -/// Descriptor for `ProblemAndFixes`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List problemAndFixesDescriptor = $convert.base64Decode( - 'Cg9Qcm9ibGVtQW5kRml4ZXMSNQoFZml4ZXMYASADKAsyHy5kYXJ0X3NlcnZpY2VzLmFwaS5DYW' - '5kaWRhdGVGaXhSBWZpeGVzEiYKDnByb2JsZW1NZXNzYWdlGAIgASgJUg5wcm9ibGVtTWVzc2Fn' - 'ZRIWCgZvZmZzZXQYAyABKAVSBm9mZnNldBIWCgZsZW5ndGgYBCABKAVSBmxlbmd0aA=='); - -@$core.Deprecated('Use candidateFixDescriptor instead') -const CandidateFix$json = { - '1': 'CandidateFix', - '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - { - '1': 'edits', - '3': 2, - '4': 3, - '5': 11, - '6': '.dart_services.api.SourceEdit', - '10': 'edits' - }, - {'1': 'selectionOffset', '3': 3, '4': 1, '5': 5, '10': 'selectionOffset'}, - { - '1': 'linkedEditGroups', - '3': 4, - '4': 3, - '5': 11, - '6': '.dart_services.api.LinkedEditGroup', - '10': 'linkedEditGroups' - }, - ], -}; - -/// Descriptor for `CandidateFix`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List candidateFixDescriptor = $convert.base64Decode( - 'CgxDYW5kaWRhdGVGaXgSGAoHbWVzc2FnZRgBIAEoCVIHbWVzc2FnZRIzCgVlZGl0cxgCIAMoCz' - 'IdLmRhcnRfc2VydmljZXMuYXBpLlNvdXJjZUVkaXRSBWVkaXRzEigKD3NlbGVjdGlvbk9mZnNl' - 'dBgDIAEoBVIPc2VsZWN0aW9uT2Zmc2V0Ek4KEGxpbmtlZEVkaXRHcm91cHMYBCADKAsyIi5kYX' - 'J0X3NlcnZpY2VzLmFwaS5MaW5rZWRFZGl0R3JvdXBSEGxpbmtlZEVkaXRHcm91cHM='); - -@$core.Deprecated('Use sourceEditDescriptor instead') -const SourceEdit$json = { - '1': 'SourceEdit', - '2': [ - {'1': 'offset', '3': 1, '4': 1, '5': 5, '10': 'offset'}, - {'1': 'length', '3': 2, '4': 1, '5': 5, '10': 'length'}, - {'1': 'replacement', '3': 3, '4': 1, '5': 9, '10': 'replacement'}, - ], -}; - -/// Descriptor for `SourceEdit`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sourceEditDescriptor = $convert.base64Decode( - 'CgpTb3VyY2VFZGl0EhYKBm9mZnNldBgBIAEoBVIGb2Zmc2V0EhYKBmxlbmd0aBgCIAEoBVIGbG' - 'VuZ3RoEiAKC3JlcGxhY2VtZW50GAMgASgJUgtyZXBsYWNlbWVudA=='); - -@$core.Deprecated('Use linkedEditGroupDescriptor instead') -const LinkedEditGroup$json = { - '1': 'LinkedEditGroup', - '2': [ - {'1': 'positions', '3': 1, '4': 3, '5': 5, '10': 'positions'}, - {'1': 'length', '3': 2, '4': 1, '5': 5, '10': 'length'}, - { - '1': 'suggestions', - '3': 3, - '4': 3, - '5': 11, - '6': '.dart_services.api.LinkedEditSuggestion', - '10': 'suggestions' - }, - ], -}; - -/// Descriptor for `LinkedEditGroup`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List linkedEditGroupDescriptor = $convert.base64Decode( - 'Cg9MaW5rZWRFZGl0R3JvdXASHAoJcG9zaXRpb25zGAEgAygFUglwb3NpdGlvbnMSFgoGbGVuZ3' - 'RoGAIgASgFUgZsZW5ndGgSSQoLc3VnZ2VzdGlvbnMYAyADKAsyJy5kYXJ0X3NlcnZpY2VzLmFw' - 'aS5MaW5rZWRFZGl0U3VnZ2VzdGlvblILc3VnZ2VzdGlvbnM='); - -@$core.Deprecated('Use linkedEditSuggestionDescriptor instead') -const LinkedEditSuggestion$json = { - '1': 'LinkedEditSuggestion', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 9, '10': 'value'}, - {'1': 'kind', '3': 2, '4': 1, '5': 9, '10': 'kind'}, - ], -}; - -/// Descriptor for `LinkedEditSuggestion`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List linkedEditSuggestionDescriptor = $convert.base64Decode( - 'ChRMaW5rZWRFZGl0U3VnZ2VzdGlvbhIUCgV2YWx1ZRgBIAEoCVIFdmFsdWUSEgoEa2luZBgCIA' - 'EoCVIEa2luZA=='); - -@$core.Deprecated('Use formatResponseDescriptor instead') -const FormatResponse$json = { - '1': 'FormatResponse', - '2': [ - {'1': 'newString', '3': 1, '4': 1, '5': 9, '10': 'newString'}, - {'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'}, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `FormatResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List formatResponseDescriptor = $convert.base64Decode( - 'Cg5Gb3JtYXRSZXNwb25zZRIcCgluZXdTdHJpbmcYASABKAlSCW5ld1N0cmluZxIWCgZvZmZzZX' - 'QYAiABKAVSBm9mZnNldBI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2VydmljZXMuYXBpLkVycm9y' - 'TWVzc2FnZVIFZXJyb3I='); - -@$core.Deprecated('Use assistsResponseDescriptor instead') -const AssistsResponse$json = { - '1': 'AssistsResponse', - '2': [ - { - '1': 'assists', - '3': 1, - '4': 3, - '5': 11, - '6': '.dart_services.api.CandidateFix', - '10': 'assists' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `AssistsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List assistsResponseDescriptor = $convert.base64Decode( - 'Cg9Bc3Npc3RzUmVzcG9uc2USOQoHYXNzaXN0cxgBIAMoCzIfLmRhcnRfc2VydmljZXMuYXBpLk' - 'NhbmRpZGF0ZUZpeFIHYXNzaXN0cxI1CgVlcnJvchhjIAEoCzIfLmRhcnRfc2VydmljZXMuYXBp' - 'LkVycm9yTWVzc2FnZVIFZXJyb3I='); - -@$core.Deprecated('Use versionResponseDescriptor instead') -const VersionResponse$json = { - '1': 'VersionResponse', - '2': [ - {'1': 'sdkVersion', '3': 1, '4': 1, '5': 9, '10': 'sdkVersion'}, - {'1': 'sdkVersionFull', '3': 2, '4': 1, '5': 9, '10': 'sdkVersionFull'}, - { - '1': 'runtimeVersion', - '3': 3, - '4': 1, - '5': 9, - '8': {'3': true}, - '10': 'runtimeVersion', - }, - { - '1': 'appEngineVersion', - '3': 4, - '4': 1, - '5': 9, - '8': {'3': true}, - '10': 'appEngineVersion', - }, - { - '1': 'servicesVersion', - '3': 5, - '4': 1, - '5': 9, - '8': {'3': true}, - '10': 'servicesVersion', - }, - {'1': 'flutterVersion', '3': 6, '4': 1, '5': 9, '10': 'flutterVersion'}, - { - '1': 'flutterDartVersion', - '3': 7, - '4': 1, - '5': 9, - '8': {'3': true}, - '10': 'flutterDartVersion', - }, - { - '1': 'flutterDartVersionFull', - '3': 8, - '4': 1, - '5': 9, - '8': {'3': true}, - '10': 'flutterDartVersionFull', - }, - { - '1': 'packageVersions', - '3': 9, - '4': 3, - '5': 11, - '6': '.dart_services.api.VersionResponse.PackageVersionsEntry', - '8': {'3': true}, - '10': 'packageVersions', - }, - { - '1': 'packageInfo', - '3': 10, - '4': 3, - '5': 11, - '6': '.dart_services.api.PackageInfo', - '10': 'packageInfo' - }, - {'1': 'experiment', '3': 11, '4': 3, '5': 9, '10': 'experiment'}, - { - '1': 'flutterEngineSha', - '3': 12, - '4': 1, - '5': 9, - '10': 'flutterEngineSha' - }, - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], - '3': [VersionResponse_PackageVersionsEntry$json], -}; - -@$core.Deprecated('Use versionResponseDescriptor instead') -const VersionResponse_PackageVersionsEntry$json = { - '1': 'PackageVersionsEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `VersionResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List versionResponseDescriptor = $convert.base64Decode( - 'Cg9WZXJzaW9uUmVzcG9uc2USHgoKc2RrVmVyc2lvbhgBIAEoCVIKc2RrVmVyc2lvbhImCg5zZG' - 'tWZXJzaW9uRnVsbBgCIAEoCVIOc2RrVmVyc2lvbkZ1bGwSKgoOcnVudGltZVZlcnNpb24YAyAB' - 'KAlCAhgBUg5ydW50aW1lVmVyc2lvbhIuChBhcHBFbmdpbmVWZXJzaW9uGAQgASgJQgIYAVIQYX' - 'BwRW5naW5lVmVyc2lvbhIsCg9zZXJ2aWNlc1ZlcnNpb24YBSABKAlCAhgBUg9zZXJ2aWNlc1Zl' - 'cnNpb24SJgoOZmx1dHRlclZlcnNpb24YBiABKAlSDmZsdXR0ZXJWZXJzaW9uEjIKEmZsdXR0ZX' - 'JEYXJ0VmVyc2lvbhgHIAEoCUICGAFSEmZsdXR0ZXJEYXJ0VmVyc2lvbhI6ChZmbHV0dGVyRGFy' - 'dFZlcnNpb25GdWxsGAggASgJQgIYAVIWZmx1dHRlckRhcnRWZXJzaW9uRnVsbBJlCg9wYWNrYW' - 'dlVmVyc2lvbnMYCSADKAsyNy5kYXJ0X3NlcnZpY2VzLmFwaS5WZXJzaW9uUmVzcG9uc2UuUGFj' - 'a2FnZVZlcnNpb25zRW50cnlCAhgBUg9wYWNrYWdlVmVyc2lvbnMSQAoLcGFja2FnZUluZm8YCi' - 'ADKAsyHi5kYXJ0X3NlcnZpY2VzLmFwaS5QYWNrYWdlSW5mb1ILcGFja2FnZUluZm8SHgoKZXhw' - 'ZXJpbWVudBgLIAMoCVIKZXhwZXJpbWVudBIqChBmbHV0dGVyRW5naW5lU2hhGAwgASgJUhBmbH' - 'V0dGVyRW5naW5lU2hhEjUKBWVycm9yGGMgASgLMh8uZGFydF9zZXJ2aWNlcy5hcGkuRXJyb3JN' - 'ZXNzYWdlUgVlcnJvchpCChRQYWNrYWdlVmVyc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleR' - 'IUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); - -@$core.Deprecated('Use packageInfoDescriptor instead') -const PackageInfo$json = { - '1': 'PackageInfo', - '2': [ - {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, - {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, - {'1': 'supported', '3': 3, '4': 1, '5': 8, '10': 'supported'}, - ], -}; - -/// Descriptor for `PackageInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List packageInfoDescriptor = $convert.base64Decode( - 'CgtQYWNrYWdlSW5mbxISCgRuYW1lGAEgASgJUgRuYW1lEhgKB3ZlcnNpb24YAiABKAlSB3Zlcn' - 'Npb24SHAoJc3VwcG9ydGVkGAMgASgIUglzdXBwb3J0ZWQ='); - -@$core.Deprecated('Use badRequestDescriptor instead') -const BadRequest$json = { - '1': 'BadRequest', - '2': [ - { - '1': 'error', - '3': 99, - '4': 1, - '5': 11, - '6': '.dart_services.api.ErrorMessage', - '10': 'error' - }, - ], -}; - -/// Descriptor for `BadRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List badRequestDescriptor = $convert.base64Decode( - 'CgpCYWRSZXF1ZXN0EjUKBWVycm9yGGMgASgLMh8uZGFydF9zZXJ2aWNlcy5hcGkuRXJyb3JNZX' - 'NzYWdlUgVlcnJvcg=='); - -@$core.Deprecated('Use errorMessageDescriptor instead') -const ErrorMessage$json = { - '1': 'ErrorMessage', - '2': [ - {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - ], -}; - -/// Descriptor for `ErrorMessage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List errorMessageDescriptor = $convert - .base64Decode('CgxFcnJvck1lc3NhZ2USGAoHbWVzc2FnZRgBIAEoCVIHbWVzc2FnZQ=='); diff --git a/pkgs/sketch_pad/lib/src/protos/dart_services.pbserver.dart b/pkgs/sketch_pad/lib/src/protos/dart_services.pbserver.dart deleted file mode 100644 index c9b6a46da..000000000 --- a/pkgs/sketch_pad/lib/src/protos/dart_services.pbserver.dart +++ /dev/null @@ -1,13 +0,0 @@ -// -// Generated code. Do not modify. -// source: protos/dart_services.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names -// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -export 'dart_services.pb.dart';