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

Side by Side Diff: lib/src/dart_options.pb.dart

Issue 2103743002: Rename mixin protos and add a check for undefined mixin name (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /// 1 ///
2 // Generated code. Do not modify. 2 // Generated code. Do not modify.
3 /// 3 ///
4 library dart_options_dart_options; 4 library dart_options_dart_options;
5 5
6 import 'package:protobuf/protobuf.dart'; 6 import 'package:protobuf/protobuf.dart';
7 7
8 class DartOptions extends GeneratedMessage {
9 static final BuilderInfo _i = new BuilderInfo('DartOptions')
10 ..hasRequiredFields = false
11 ;
12
13 DartOptions() : super();
14 DartOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromBuffer(i, r);
15 DartOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY] ) : super.fromJson(i, r);
16 DartOptions clone() => new DartOptions()..mergeFromMessage(this);
17 BuilderInfo get info_ => _i;
18 static DartOptions create() => new DartOptions();
19 static PbList<DartOptions> createRepeated() => new PbList<DartOptions>();
20 static DartOptions getDefault() {
21 if (_defaultInstance == null) _defaultInstance = new _ReadonlyDartOptions();
22 return _defaultInstance;
23 }
24 static DartOptions _defaultInstance;
25 static void $checkItem(DartOptions v) {
26 if (v is !DartOptions) checkItemFailed(v, 'DartOptions');
27 }
28 }
29
30 class _ReadonlyDartOptions extends DartOptions with ReadonlyMessageMixin {}
31
32 class DartMixin extends GeneratedMessage { 8 class DartMixin extends GeneratedMessage {
33 static final BuilderInfo _i = new BuilderInfo('DartMixin') 9 static final BuilderInfo _i = new BuilderInfo('DartMixin')
34 ..a/*<String>*/(1, 'name', PbFieldType.OS) 10 ..a/*<String>*/(1, 'name', PbFieldType.OS)
35 ..a/*<String>*/(2, 'importFrom', PbFieldType.OS) 11 ..a/*<String>*/(2, 'importFrom', PbFieldType.OS)
36 ..a/*<String>*/(3, 'parent', PbFieldType.OS) 12 ..a/*<String>*/(3, 'parent', PbFieldType.OS)
37 ..hasRequiredFields = false 13 ..hasRequiredFields = false
38 ; 14 ;
39 15
40 DartMixin() : super(); 16 DartMixin() : super();
41 DartMixin.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromBuffer(i, r); 17 DartMixin.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromBuffer(i, r);
(...skipping 22 matching lines...) Expand all
64 void clearImportFrom() => clearField(2); 40 void clearImportFrom() => clearField(2);
65 41
66 String get parent => $_get(2, 3, ''); 42 String get parent => $_get(2, 3, '');
67 void set parent(String v) { $_setString(2, 3, v); } 43 void set parent(String v) { $_setString(2, 3, v); }
68 bool hasParent() => $_has(2, 3); 44 bool hasParent() => $_has(2, 3);
69 void clearParent() => clearField(3); 45 void clearParent() => clearField(3);
70 } 46 }
71 47
72 class _ReadonlyDartMixin extends DartMixin with ReadonlyMessageMixin {} 48 class _ReadonlyDartMixin extends DartMixin with ReadonlyMessageMixin {}
73 49
74 class ImportedMixins extends GeneratedMessage { 50 class Imports extends GeneratedMessage {
75 static final BuilderInfo _i = new BuilderInfo('ImportedMixins') 51 static final BuilderInfo _i = new BuilderInfo('Imports')
76 ..pp/*<DartMixin>*/(1, 'mixins', PbFieldType.PM, DartMixin.$checkItem, DartM ixin.create) 52 ..pp/*<DartMixin>*/(1, 'mixins', PbFieldType.PM, DartMixin.$checkItem, DartM ixin.create)
77 ..hasRequiredFields = false 53 ..hasRequiredFields = false
78 ; 54 ;
79 55
80 ImportedMixins() : super(); 56 Imports() : super();
81 ImportedMixins.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); 57 Imports.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY ]) : super.fromBuffer(i, r);
82 ImportedMixins.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); 58 Imports.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : super.fromJson(i, r);
83 ImportedMixins clone() => new ImportedMixins()..mergeFromMessage(this); 59 Imports clone() => new Imports()..mergeFromMessage(this);
84 BuilderInfo get info_ => _i; 60 BuilderInfo get info_ => _i;
85 static ImportedMixins create() => new ImportedMixins(); 61 static Imports create() => new Imports();
86 static PbList<ImportedMixins> createRepeated() => new PbList<ImportedMixins>() ; 62 static PbList<Imports> createRepeated() => new PbList<Imports>();
87 static ImportedMixins getDefault() { 63 static Imports getDefault() {
88 if (_defaultInstance == null) _defaultInstance = new _ReadonlyImportedMixins (); 64 if (_defaultInstance == null) _defaultInstance = new _ReadonlyImports();
89 return _defaultInstance; 65 return _defaultInstance;
90 } 66 }
91 static ImportedMixins _defaultInstance; 67 static Imports _defaultInstance;
92 static void $checkItem(ImportedMixins v) { 68 static void $checkItem(Imports v) {
93 if (v is !ImportedMixins) checkItemFailed(v, 'ImportedMixins'); 69 if (v is !Imports) checkItemFailed(v, 'Imports');
94 } 70 }
95 71
96 List<DartMixin> get mixins => $_get(0, 1, null); 72 List<DartMixin> get mixins => $_get(0, 1, null);
97 } 73 }
98 74
99 class _ReadonlyImportedMixins extends ImportedMixins with ReadonlyMessageMixin { } 75 class _ReadonlyImports extends Imports with ReadonlyMessageMixin {}
100 76
101 class Dart_options { 77 class Dart_options {
102 static final Extension importedMixins = new Extension<ImportedMixins>('FileOpt ions', 'importedMixins', 28125061, PbFieldType.OM, ImportedMixins.getDefault, Im portedMixins.create); 78 static final Extension imports = new Extension<Imports>('FileOptions', 'import s', 28125061, PbFieldType.OM, Imports.getDefault, Imports.create);
103 static final Extension defaultMixin = new Extension<String>('FileOptions', 'de faultMixin', 96128839, PbFieldType.OS); 79 static final Extension defaultMixin = new Extension<String>('FileOptions', 'de faultMixin', 96128839, PbFieldType.OS);
104 static final Extension mixin = new Extension<String>('MessageOptions', 'mixin' , 96128839, PbFieldType.OS); 80 static final Extension mixin = new Extension<String>('MessageOptions', 'mixin' , 96128839, PbFieldType.OS);
105 static final Extension override = new Extension<bool>('FieldOptions', 'overrid e', 28205290, PbFieldType.OB);
106 static final Extension dartName = new Extension<String>('FieldOptions', 'dartN ame', 28700919, PbFieldType.OS); 81 static final Extension dartName = new Extension<String>('FieldOptions', 'dartN ame', 28700919, PbFieldType.OS);
107 static void registerAllExtensions(ExtensionRegistry registry) { 82 static void registerAllExtensions(ExtensionRegistry registry) {
108 registry.add(importedMixins); 83 registry.add(imports);
109 registry.add(defaultMixin); 84 registry.add(defaultMixin);
110 registry.add(mixin); 85 registry.add(mixin);
111 registry.add(override);
112 registry.add(dartName); 86 registry.add(dartName);
113 } 87 }
114 } 88 }
115 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698