Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: lib/src/plugin.pb.dart

Issue 1829573002: Fix all strong mode warnings in protoc-plugin (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/plugin.pb.dart
diff --git a/lib/src/plugin.pb.dart b/lib/src/plugin.pb.dart
index 9ac0ae40d884a17af2a0e71295289131a55177c7..b0044ac9444396a666dbe2cdbbb1810a9eefdef2 100644
--- a/lib/src/plugin.pb.dart
+++ b/lib/src/plugin.pb.dart
@@ -29,14 +29,14 @@ class CodeGeneratorRequest extends GeneratedMessage {
if (v is !CodeGeneratorRequest) checkItemFailed(v, 'CodeGeneratorRequest');
}
- List<String> get fileToGenerate => getField(1);
+ List<String> get fileToGenerate => $_get(0, 1, null) as List<String>;
vsm 2016/03/23 17:20:24 here as well
- String get parameter => getField(2);
- void set parameter(String v) { setField(2, v); }
- bool hasParameter() => hasField(2);
+ String get parameter => $_get(1, 2, '') as String;
+ void set parameter(String v) { $_setString(1, 2, v); }
+ bool hasParameter() => $_has(1, 2);
void clearParameter() => clearField(2);
- List<proto2.FileDescriptorProto> get protoFile => getField(15);
+ List<proto2.FileDescriptorProto> get protoFile => $_get(2, 15, null) as List<proto2.FileDescriptorProto>;
}
class _ReadonlyCodeGeneratorRequest extends CodeGeneratorRequest with ReadonlyMessageMixin {}
@@ -65,19 +65,19 @@ class CodeGeneratorResponse_File extends GeneratedMessage {
if (v is !CodeGeneratorResponse_File) checkItemFailed(v, 'CodeGeneratorResponse_File');
}
- String get name => getField(1);
- void set name(String v) { setField(1, v); }
- bool hasName() => hasField(1);
+ String get name => $_get(0, 1, '') as String;
+ void set name(String v) { $_setString(0, 1, v); }
+ bool hasName() => $_has(0, 1);
void clearName() => clearField(1);
- String get insertionPoint => getField(2);
- void set insertionPoint(String v) { setField(2, v); }
- bool hasInsertionPoint() => hasField(2);
+ String get insertionPoint => $_get(1, 2, '') as String;
+ void set insertionPoint(String v) { $_setString(1, 2, v); }
+ bool hasInsertionPoint() => $_has(1, 2);
void clearInsertionPoint() => clearField(2);
- String get content => getField(15);
- void set content(String v) { setField(15, v); }
- bool hasContent() => hasField(15);
+ String get content => $_get(2, 15, '') as String;
+ void set content(String v) { $_setString(2, 15, v); }
+ bool hasContent() => $_has(2, 15);
void clearContent() => clearField(15);
}
@@ -106,12 +106,12 @@ class CodeGeneratorResponse extends GeneratedMessage {
if (v is !CodeGeneratorResponse) checkItemFailed(v, 'CodeGeneratorResponse');
}
- String get error => getField(1);
- void set error(String v) { setField(1, v); }
- bool hasError() => hasField(1);
+ String get error => $_get(0, 1, '') as String;
+ void set error(String v) { $_setString(0, 1, v); }
+ bool hasError() => $_has(0, 1);
void clearError() => clearField(1);
- List<CodeGeneratorResponse_File> get file => getField(15);
+ List<CodeGeneratorResponse_File> get file => $_get(1, 15, null) as List<CodeGeneratorResponse_File>;
}
class _ReadonlyCodeGeneratorResponse extends CodeGeneratorResponse with ReadonlyMessageMixin {}

Powered by Google App Engine
This is Rietveld 408576698