OLD | NEW |
---|---|
1 /// | 1 /// |
2 // Generated code. Do not modify. | 2 // Generated code. Do not modify. |
3 /// | 3 /// |
4 library proto2_descriptor; | 4 library proto2_descriptor; |
Søren Gjesse
2016/03/29 09:04:13
What is the reason for editing the generated code?
skybrian
2016/04/01 02:00:15
Yes, this is generated code, but it's also checked
| |
5 | 5 |
6 import 'package:fixnum/fixnum.dart'; | 6 import 'package:fixnum/fixnum.dart'; |
7 import 'package:protobuf/protobuf.dart'; | 7 import 'package:protobuf/protobuf.dart'; |
8 | 8 |
9 class FileDescriptorSet extends GeneratedMessage { | 9 class FileDescriptorSet extends GeneratedMessage { |
10 static final BuilderInfo _i = new BuilderInfo('FileDescriptorSet') | 10 static final BuilderInfo _i = new BuilderInfo('FileDescriptorSet') |
11 ..pp(1, 'file', PbFieldType.PM, FileDescriptorProto.$checkItem, FileDescript orProto.create) | 11 ..pp(1, 'file', PbFieldType.PM, FileDescriptorProto.$checkItem, FileDescript orProto.create) |
12 ; | 12 ; |
13 | 13 |
14 FileDescriptorSet() : super(); | 14 FileDescriptorSet() : super(); |
15 FileDescriptorSet.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegi stry.EMPTY]) : super.fromBuffer(i, r); | 15 FileDescriptorSet.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegi stry.EMPTY]) : super.fromBuffer(i, r); |
16 FileDescriptorSet.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry. EMPTY]) : super.fromJson(i, r); | 16 FileDescriptorSet.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry. EMPTY]) : super.fromJson(i, r); |
17 FileDescriptorSet clone() => new FileDescriptorSet()..mergeFromMessage(this); | 17 FileDescriptorSet clone() => new FileDescriptorSet()..mergeFromMessage(this); |
18 BuilderInfo get info_ => _i; | 18 BuilderInfo get info_ => _i; |
19 static FileDescriptorSet create() => new FileDescriptorSet(); | 19 static FileDescriptorSet create() => new FileDescriptorSet(); |
20 static PbList<FileDescriptorSet> createRepeated() => new PbList<FileDescriptor Set>(); | 20 static PbList<FileDescriptorSet> createRepeated() => new PbList<FileDescriptor Set>(); |
21 static FileDescriptorSet getDefault() { | 21 static FileDescriptorSet getDefault() { |
22 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileDescriptor Set(); | 22 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileDescriptor Set(); |
23 return _defaultInstance; | 23 return _defaultInstance; |
24 } | 24 } |
25 static FileDescriptorSet _defaultInstance; | 25 static FileDescriptorSet _defaultInstance; |
26 static void $checkItem(FileDescriptorSet v) { | 26 static void $checkItem(FileDescriptorSet v) { |
27 if (v is !FileDescriptorSet) checkItemFailed(v, 'FileDescriptorSet'); | 27 if (v is !FileDescriptorSet) checkItemFailed(v, 'FileDescriptorSet'); |
28 } | 28 } |
29 | 29 |
30 List<FileDescriptorProto> get file => getField(1); | 30 List<FileDescriptorProto> get file => $_get(0, 1, null) as List<FileDescriptor Proto>; |
vsm
2016/03/23 17:20:24
This is going to be problematic at runtime if $_ge
skybrian
2016/03/23 18:02:39
It's going to be trickier than that. Ultimately th
Leaf
2016/03/23 18:09:59
We don't support generic getters and setters. Int
skybrian
2016/03/23 18:34:17
I don't know what you mean by that? _get isn't a g
skybrian
2016/04/01 02:00:15
$_get() is now a generic method. At runtime the l
| |
31 } | 31 } |
32 | 32 |
33 class _ReadonlyFileDescriptorSet extends FileDescriptorSet with ReadonlyMessageM ixin {} | 33 class _ReadonlyFileDescriptorSet extends FileDescriptorSet with ReadonlyMessageM ixin {} |
34 | 34 |
35 class FileDescriptorProto extends GeneratedMessage { | 35 class FileDescriptorProto extends GeneratedMessage { |
36 static final BuilderInfo _i = new BuilderInfo('FileDescriptorProto') | 36 static final BuilderInfo _i = new BuilderInfo('FileDescriptorProto') |
37 ..a(1, 'name', PbFieldType.OS) | 37 ..a(1, 'name', PbFieldType.OS) |
38 ..a(2, 'package', PbFieldType.OS) | 38 ..a(2, 'package', PbFieldType.OS) |
39 ..p(3, 'dependency', PbFieldType.PS) | 39 ..p(3, 'dependency', PbFieldType.PS) |
40 ..p(10, 'publicDependency', PbFieldType.P3) | |
41 ..p(11, 'weakDependency', PbFieldType.P3) | |
42 ..pp(4, 'messageType', PbFieldType.PM, DescriptorProto.$checkItem, Descripto rProto.create) | 40 ..pp(4, 'messageType', PbFieldType.PM, DescriptorProto.$checkItem, Descripto rProto.create) |
43 ..pp(5, 'enumType', PbFieldType.PM, EnumDescriptorProto.$checkItem, EnumDesc riptorProto.create) | 41 ..pp(5, 'enumType', PbFieldType.PM, EnumDescriptorProto.$checkItem, EnumDesc riptorProto.create) |
44 ..pp(6, 'service', PbFieldType.PM, ServiceDescriptorProto.$checkItem, Servic eDescriptorProto.create) | 42 ..pp(6, 'service', PbFieldType.PM, ServiceDescriptorProto.$checkItem, Servic eDescriptorProto.create) |
45 ..pp(7, 'extension', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldD escriptorProto.create) | 43 ..pp(7, 'extension', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldD escriptorProto.create) |
46 ..a(8, 'options', PbFieldType.OM, FileOptions.getDefault, FileOptions.create ) | 44 ..a(8, 'options', PbFieldType.OM, FileOptions.getDefault, FileOptions.create ) |
47 ..a(9, 'sourceCodeInfo', PbFieldType.OM, SourceCodeInfo.getDefault, SourceCo deInfo.create) | 45 ..a(9, 'sourceCodeInfo', PbFieldType.OM, SourceCodeInfo.getDefault, SourceCo deInfo.create) |
46 ..p(10, 'publicDependency', PbFieldType.P3) | |
47 ..p(11, 'weakDependency', PbFieldType.P3) | |
48 ; | 48 ; |
49 | 49 |
50 FileDescriptorProto() : super(); | 50 FileDescriptorProto() : super(); |
51 FileDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromBuffer(i, r); | 51 FileDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromBuffer(i, r); |
52 FileDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromJson(i, r); | 52 FileDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromJson(i, r); |
53 FileDescriptorProto clone() => new FileDescriptorProto()..mergeFromMessage(thi s); | 53 FileDescriptorProto clone() => new FileDescriptorProto()..mergeFromMessage(thi s); |
54 BuilderInfo get info_ => _i; | 54 BuilderInfo get info_ => _i; |
55 static FileDescriptorProto create() => new FileDescriptorProto(); | 55 static FileDescriptorProto create() => new FileDescriptorProto(); |
56 static PbList<FileDescriptorProto> createRepeated() => new PbList<FileDescript orProto>(); | 56 static PbList<FileDescriptorProto> createRepeated() => new PbList<FileDescript orProto>(); |
57 static FileDescriptorProto getDefault() { | 57 static FileDescriptorProto getDefault() { |
58 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileDescriptor Proto(); | 58 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileDescriptor Proto(); |
59 return _defaultInstance; | 59 return _defaultInstance; |
60 } | 60 } |
61 static FileDescriptorProto _defaultInstance; | 61 static FileDescriptorProto _defaultInstance; |
62 static void $checkItem(FileDescriptorProto v) { | 62 static void $checkItem(FileDescriptorProto v) { |
63 if (v is !FileDescriptorProto) checkItemFailed(v, 'FileDescriptorProto'); | 63 if (v is !FileDescriptorProto) checkItemFailed(v, 'FileDescriptorProto'); |
64 } | 64 } |
65 | 65 |
66 String get name => getField(1); | 66 String get name => $_get(0, 1, '') as String; |
67 void set name(String v) { setField(1, v); } | 67 void set name(String v) { $_setString(0, 1, v); } |
68 bool hasName() => hasField(1); | 68 bool hasName() => $_has(0, 1); |
69 void clearName() => clearField(1); | 69 void clearName() => clearField(1); |
70 | 70 |
71 String get package => getField(2); | 71 String get package => $_get(1, 2, '') as String; |
72 void set package(String v) { setField(2, v); } | 72 void set package(String v) { $_setString(1, 2, v); } |
73 bool hasPackage() => hasField(2); | 73 bool hasPackage() => $_has(1, 2); |
74 void clearPackage() => clearField(2); | 74 void clearPackage() => clearField(2); |
75 | 75 |
76 List<String> get dependency => getField(3); | 76 List<String> get dependency => $_get(2, 3, null) as List<String>; |
vsm
2016/03/23 17:20:24
ditto here and the other List casts below
| |
77 | 77 |
78 List<int> get publicDependency => getField(10); | 78 List<DescriptorProto> get messageType => $_get(3, 4, null) as List<DescriptorP roto>; |
79 | 79 |
80 List<int> get weakDependency => getField(11); | 80 List<EnumDescriptorProto> get enumType => $_get(4, 5, null) as List<EnumDescri ptorProto>; |
81 | 81 |
82 List<DescriptorProto> get messageType => getField(4); | 82 List<ServiceDescriptorProto> get service => $_get(5, 6, null) as List<ServiceD escriptorProto>; |
83 | 83 |
84 List<EnumDescriptorProto> get enumType => getField(5); | 84 List<FieldDescriptorProto> get extension => $_get(6, 7, null) as List<FieldDes criptorProto>; |
85 | 85 |
86 List<ServiceDescriptorProto> get service => getField(6); | 86 FileOptions get options => $_get(7, 8, null) as FileOptions; |
87 | |
88 List<FieldDescriptorProto> get extension => getField(7); | |
89 | |
90 FileOptions get options => getField(8); | |
91 void set options(FileOptions v) { setField(8, v); } | 87 void set options(FileOptions v) { setField(8, v); } |
92 bool hasOptions() => hasField(8); | 88 bool hasOptions() => $_has(7, 8); |
93 void clearOptions() => clearField(8); | 89 void clearOptions() => clearField(8); |
94 | 90 |
95 SourceCodeInfo get sourceCodeInfo => getField(9); | 91 SourceCodeInfo get sourceCodeInfo => $_get(8, 9, null) as SourceCodeInfo; |
96 void set sourceCodeInfo(SourceCodeInfo v) { setField(9, v); } | 92 void set sourceCodeInfo(SourceCodeInfo v) { setField(9, v); } |
97 bool hasSourceCodeInfo() => hasField(9); | 93 bool hasSourceCodeInfo() => $_has(8, 9); |
98 void clearSourceCodeInfo() => clearField(9); | 94 void clearSourceCodeInfo() => clearField(9); |
95 | |
96 List<int> get publicDependency => $_get(9, 10, null) as List<int>; | |
97 | |
98 List<int> get weakDependency => $_get(10, 11, null) as List<int>; | |
99 } | 99 } |
100 | 100 |
101 class _ReadonlyFileDescriptorProto extends FileDescriptorProto with ReadonlyMess ageMixin {} | 101 class _ReadonlyFileDescriptorProto extends FileDescriptorProto with ReadonlyMess ageMixin {} |
102 | 102 |
103 class DescriptorProto_ExtensionRange extends GeneratedMessage { | 103 class DescriptorProto_ExtensionRange extends GeneratedMessage { |
104 static final BuilderInfo _i = new BuilderInfo('DescriptorProto_ExtensionRange' ) | 104 static final BuilderInfo _i = new BuilderInfo('DescriptorProto_ExtensionRange' ) |
105 ..a(1, 'start', PbFieldType.O3) | 105 ..a(1, 'start', PbFieldType.O3) |
106 ..a(2, 'end', PbFieldType.O3) | 106 ..a(2, 'end', PbFieldType.O3) |
107 ..hasRequiredFields = false | 107 ..hasRequiredFields = false |
108 ; | 108 ; |
109 | 109 |
110 DescriptorProto_ExtensionRange() : super(); | 110 DescriptorProto_ExtensionRange() : super(); |
111 DescriptorProto_ExtensionRange.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); | 111 DescriptorProto_ExtensionRange.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); |
112 DescriptorProto_ExtensionRange.fromJson(String i, [ExtensionRegistry r = Exten sionRegistry.EMPTY]) : super.fromJson(i, r); | 112 DescriptorProto_ExtensionRange.fromJson(String i, [ExtensionRegistry r = Exten sionRegistry.EMPTY]) : super.fromJson(i, r); |
113 DescriptorProto_ExtensionRange clone() => new DescriptorProto_ExtensionRange() ..mergeFromMessage(this); | 113 DescriptorProto_ExtensionRange clone() => new DescriptorProto_ExtensionRange() ..mergeFromMessage(this); |
114 BuilderInfo get info_ => _i; | 114 BuilderInfo get info_ => _i; |
115 static DescriptorProto_ExtensionRange create() => new DescriptorProto_Extensio nRange(); | 115 static DescriptorProto_ExtensionRange create() => new DescriptorProto_Extensio nRange(); |
116 static PbList<DescriptorProto_ExtensionRange> createRepeated() => new PbList<D escriptorProto_ExtensionRange>(); | 116 static PbList<DescriptorProto_ExtensionRange> createRepeated() => new PbList<D escriptorProto_ExtensionRange>(); |
117 static DescriptorProto_ExtensionRange getDefault() { | 117 static DescriptorProto_ExtensionRange getDefault() { |
118 if (_defaultInstance == null) _defaultInstance = new _ReadonlyDescriptorProt o_ExtensionRange(); | 118 if (_defaultInstance == null) _defaultInstance = new _ReadonlyDescriptorProt o_ExtensionRange(); |
119 return _defaultInstance; | 119 return _defaultInstance; |
120 } | 120 } |
121 static DescriptorProto_ExtensionRange _defaultInstance; | 121 static DescriptorProto_ExtensionRange _defaultInstance; |
122 static void $checkItem(DescriptorProto_ExtensionRange v) { | 122 static void $checkItem(DescriptorProto_ExtensionRange v) { |
123 if (v is !DescriptorProto_ExtensionRange) checkItemFailed(v, 'DescriptorProt o_ExtensionRange'); | 123 if (v is !DescriptorProto_ExtensionRange) checkItemFailed(v, 'DescriptorProt o_ExtensionRange'); |
124 } | 124 } |
125 | 125 |
126 int get start => getField(1); | 126 int get start => $_get(0, 1, 0) as int; |
127 void set start(int v) { setField(1, v); } | 127 void set start(int v) { $_setUnsignedInt32(0, 1, v); } |
128 bool hasStart() => hasField(1); | 128 bool hasStart() => $_has(0, 1); |
129 void clearStart() => clearField(1); | 129 void clearStart() => clearField(1); |
130 | 130 |
131 int get end => getField(2); | 131 int get end => $_get(1, 2, 0) as int; |
132 void set end(int v) { setField(2, v); } | 132 void set end(int v) { $_setUnsignedInt32(1, 2, v); } |
133 bool hasEnd() => hasField(2); | 133 bool hasEnd() => $_has(1, 2); |
134 void clearEnd() => clearField(2); | 134 void clearEnd() => clearField(2); |
135 } | 135 } |
136 | 136 |
137 class _ReadonlyDescriptorProto_ExtensionRange extends DescriptorProto_ExtensionR ange with ReadonlyMessageMixin {} | 137 class _ReadonlyDescriptorProto_ExtensionRange extends DescriptorProto_ExtensionR ange with ReadonlyMessageMixin {} |
138 | 138 |
139 class DescriptorProto extends GeneratedMessage { | 139 class DescriptorProto extends GeneratedMessage { |
140 static final BuilderInfo _i = new BuilderInfo('DescriptorProto') | 140 static final BuilderInfo _i = new BuilderInfo('DescriptorProto') |
141 ..a(1, 'name', PbFieldType.OS) | 141 ..a(1, 'name', PbFieldType.OS) |
142 ..pp(2, 'field', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldDescr iptorProto.create) | 142 ..pp(2, 'field', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldDescr iptorProto.create) |
143 ..pp(6, 'extension', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldD escriptorProto.create) | |
144 ..pp(3, 'nestedType', PbFieldType.PM, DescriptorProto.$checkItem, Descriptor Proto.create) | 143 ..pp(3, 'nestedType', PbFieldType.PM, DescriptorProto.$checkItem, Descriptor Proto.create) |
145 ..pp(4, 'enumType', PbFieldType.PM, EnumDescriptorProto.$checkItem, EnumDesc riptorProto.create) | 144 ..pp(4, 'enumType', PbFieldType.PM, EnumDescriptorProto.$checkItem, EnumDesc riptorProto.create) |
146 ..pp(5, 'extensionRange', PbFieldType.PM, DescriptorProto_ExtensionRange.$ch eckItem, DescriptorProto_ExtensionRange.create) | 145 ..pp(5, 'extensionRange', PbFieldType.PM, DescriptorProto_ExtensionRange.$ch eckItem, DescriptorProto_ExtensionRange.create) |
146 ..pp(6, 'extension', PbFieldType.PM, FieldDescriptorProto.$checkItem, FieldD escriptorProto.create) | |
147 ..a(7, 'options', PbFieldType.OM, MessageOptions.getDefault, MessageOptions. create) | 147 ..a(7, 'options', PbFieldType.OM, MessageOptions.getDefault, MessageOptions. create) |
148 ; | 148 ; |
149 | 149 |
150 DescriptorProto() : super(); | 150 DescriptorProto() : super(); |
151 DescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist ry.EMPTY]) : super.fromBuffer(i, r); | 151 DescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist ry.EMPTY]) : super.fromBuffer(i, r); |
152 DescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM PTY]) : super.fromJson(i, r); | 152 DescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM PTY]) : super.fromJson(i, r); |
153 DescriptorProto clone() => new DescriptorProto()..mergeFromMessage(this); | 153 DescriptorProto clone() => new DescriptorProto()..mergeFromMessage(this); |
154 BuilderInfo get info_ => _i; | 154 BuilderInfo get info_ => _i; |
155 static DescriptorProto create() => new DescriptorProto(); | 155 static DescriptorProto create() => new DescriptorProto(); |
156 static PbList<DescriptorProto> createRepeated() => new PbList<DescriptorProto> (); | 156 static PbList<DescriptorProto> createRepeated() => new PbList<DescriptorProto> (); |
157 static DescriptorProto getDefault() { | 157 static DescriptorProto getDefault() { |
158 if (_defaultInstance == null) _defaultInstance = new _ReadonlyDescriptorProt o(); | 158 if (_defaultInstance == null) _defaultInstance = new _ReadonlyDescriptorProt o(); |
159 return _defaultInstance; | 159 return _defaultInstance; |
160 } | 160 } |
161 static DescriptorProto _defaultInstance; | 161 static DescriptorProto _defaultInstance; |
162 static void $checkItem(DescriptorProto v) { | 162 static void $checkItem(DescriptorProto v) { |
163 if (v is !DescriptorProto) checkItemFailed(v, 'DescriptorProto'); | 163 if (v is !DescriptorProto) checkItemFailed(v, 'DescriptorProto'); |
164 } | 164 } |
165 | 165 |
166 String get name => getField(1); | 166 String get name => $_get(0, 1, '') as String; |
167 void set name(String v) { setField(1, v); } | 167 void set name(String v) { $_setString(0, 1, v); } |
168 bool hasName() => hasField(1); | 168 bool hasName() => $_has(0, 1); |
169 void clearName() => clearField(1); | 169 void clearName() => clearField(1); |
170 | 170 |
171 List<FieldDescriptorProto> get field => getField(2); | 171 List<FieldDescriptorProto> get field => $_get(1, 2, null) as List<FieldDescrip torProto>; |
172 | 172 |
173 List<FieldDescriptorProto> get extension => getField(6); | 173 List<DescriptorProto> get nestedType => $_get(2, 3, null) as List<DescriptorPr oto>; |
174 | 174 |
175 List<DescriptorProto> get nestedType => getField(3); | 175 List<EnumDescriptorProto> get enumType => $_get(3, 4, null) as List<EnumDescri ptorProto>; |
176 | 176 |
177 List<EnumDescriptorProto> get enumType => getField(4); | 177 List<DescriptorProto_ExtensionRange> get extensionRange => $_get(4, 5, null) a s List<DescriptorProto_ExtensionRange>; |
178 | 178 |
179 List<DescriptorProto_ExtensionRange> get extensionRange => getField(5); | 179 List<FieldDescriptorProto> get extension => $_get(5, 6, null) as List<FieldDes criptorProto>; |
180 | 180 |
181 MessageOptions get options => getField(7); | 181 MessageOptions get options => $_get(6, 7, null) as MessageOptions; |
182 void set options(MessageOptions v) { setField(7, v); } | 182 void set options(MessageOptions v) { setField(7, v); } |
183 bool hasOptions() => hasField(7); | 183 bool hasOptions() => $_has(6, 7); |
184 void clearOptions() => clearField(7); | 184 void clearOptions() => clearField(7); |
185 } | 185 } |
186 | 186 |
187 class _ReadonlyDescriptorProto extends DescriptorProto with ReadonlyMessageMixin {} | 187 class _ReadonlyDescriptorProto extends DescriptorProto with ReadonlyMessageMixin {} |
188 | 188 |
189 class FieldDescriptorProto_Type extends ProtobufEnum { | 189 class FieldDescriptorProto_Type extends ProtobufEnum { |
190 static const FieldDescriptorProto_Type TYPE_DOUBLE = const FieldDescriptorProt o_Type._(1, 'TYPE_DOUBLE'); | 190 static const FieldDescriptorProto_Type TYPE_DOUBLE = const FieldDescriptorProt o_Type._(1, 'TYPE_DOUBLE'); |
191 static const FieldDescriptorProto_Type TYPE_FLOAT = const FieldDescriptorProto _Type._(2, 'TYPE_FLOAT'); | 191 static const FieldDescriptorProto_Type TYPE_FLOAT = const FieldDescriptorProto _Type._(2, 'TYPE_FLOAT'); |
192 static const FieldDescriptorProto_Type TYPE_INT64 = const FieldDescriptorProto _Type._(3, 'TYPE_INT64'); | 192 static const FieldDescriptorProto_Type TYPE_INT64 = const FieldDescriptorProto _Type._(3, 'TYPE_INT64'); |
193 static const FieldDescriptorProto_Type TYPE_UINT64 = const FieldDescriptorProt o_Type._(4, 'TYPE_UINT64'); | 193 static const FieldDescriptorProto_Type TYPE_UINT64 = const FieldDescriptorProt o_Type._(4, 'TYPE_UINT64'); |
(...skipping 26 matching lines...) Expand all Loading... | |
220 TYPE_MESSAGE, | 220 TYPE_MESSAGE, |
221 TYPE_BYTES, | 221 TYPE_BYTES, |
222 TYPE_UINT32, | 222 TYPE_UINT32, |
223 TYPE_ENUM, | 223 TYPE_ENUM, |
224 TYPE_SFIXED32, | 224 TYPE_SFIXED32, |
225 TYPE_SFIXED64, | 225 TYPE_SFIXED64, |
226 TYPE_SINT32, | 226 TYPE_SINT32, |
227 TYPE_SINT64, | 227 TYPE_SINT64, |
228 ]; | 228 ]; |
229 | 229 |
230 static final Map<int, FieldDescriptorProto_Type> _byValue = ProtobufEnum.initB yValue(values); | 230 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values); |
231 static FieldDescriptorProto_Type valueOf(int value) => _byValue[value]; | 231 static FieldDescriptorProto_Type valueOf(int value) => _byValue[value] as Fiel dDescriptorProto_Type; |
232 static void $checkItem(FieldDescriptorProto_Type v) { | 232 static void $checkItem(FieldDescriptorProto_Type v) { |
233 if (v is !FieldDescriptorProto_Type) checkItemFailed(v, 'FieldDescriptorProt o_Type'); | 233 if (v is !FieldDescriptorProto_Type) checkItemFailed(v, 'FieldDescriptorProt o_Type'); |
234 } | 234 } |
235 | 235 |
236 const FieldDescriptorProto_Type._(int v, String n) : super(v, n); | 236 const FieldDescriptorProto_Type._(int v, String n) : super(v, n); |
237 } | 237 } |
238 | 238 |
239 class FieldDescriptorProto_Label extends ProtobufEnum { | 239 class FieldDescriptorProto_Label extends ProtobufEnum { |
240 static const FieldDescriptorProto_Label LABEL_OPTIONAL = const FieldDescriptor Proto_Label._(1, 'LABEL_OPTIONAL'); | 240 static const FieldDescriptorProto_Label LABEL_OPTIONAL = const FieldDescriptor Proto_Label._(1, 'LABEL_OPTIONAL'); |
241 static const FieldDescriptorProto_Label LABEL_REQUIRED = const FieldDescriptor Proto_Label._(2, 'LABEL_REQUIRED'); | 241 static const FieldDescriptorProto_Label LABEL_REQUIRED = const FieldDescriptor Proto_Label._(2, 'LABEL_REQUIRED'); |
242 static const FieldDescriptorProto_Label LABEL_REPEATED = const FieldDescriptor Proto_Label._(3, 'LABEL_REPEATED'); | 242 static const FieldDescriptorProto_Label LABEL_REPEATED = const FieldDescriptor Proto_Label._(3, 'LABEL_REPEATED'); |
243 | 243 |
244 static const List<FieldDescriptorProto_Label> values = const <FieldDescriptorP roto_Label> [ | 244 static const List<FieldDescriptorProto_Label> values = const <FieldDescriptorP roto_Label> [ |
245 LABEL_OPTIONAL, | 245 LABEL_OPTIONAL, |
246 LABEL_REQUIRED, | 246 LABEL_REQUIRED, |
247 LABEL_REPEATED, | 247 LABEL_REPEATED, |
248 ]; | 248 ]; |
249 | 249 |
250 static final Map<int, FieldDescriptorProto_Label> _byValue = ProtobufEnum.init ByValue(values); | 250 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values); |
251 static FieldDescriptorProto_Label valueOf(int value) => _byValue[value]; | 251 static FieldDescriptorProto_Label valueOf(int value) => _byValue[value] as Fie ldDescriptorProto_Label; |
252 static void $checkItem(FieldDescriptorProto_Label v) { | 252 static void $checkItem(FieldDescriptorProto_Label v) { |
253 if (v is !FieldDescriptorProto_Label) checkItemFailed(v, 'FieldDescriptorPro to_Label'); | 253 if (v is !FieldDescriptorProto_Label) checkItemFailed(v, 'FieldDescriptorPro to_Label'); |
254 } | 254 } |
255 | 255 |
256 const FieldDescriptorProto_Label._(int v, String n) : super(v, n); | 256 const FieldDescriptorProto_Label._(int v, String n) : super(v, n); |
257 } | 257 } |
258 | 258 |
259 class FieldDescriptorProto extends GeneratedMessage { | 259 class FieldDescriptorProto extends GeneratedMessage { |
260 static final BuilderInfo _i = new BuilderInfo('FieldDescriptorProto') | 260 static final BuilderInfo _i = new BuilderInfo('FieldDescriptorProto') |
261 ..a(1, 'name', PbFieldType.OS) | 261 ..a(1, 'name', PbFieldType.OS) |
262 ..a(2, 'extendee', PbFieldType.OS) | |
262 ..a(3, 'number', PbFieldType.O3) | 263 ..a(3, 'number', PbFieldType.O3) |
263 ..e(4, 'label', PbFieldType.OE, FieldDescriptorProto_Label.LABEL_OPTIONAL, F ieldDescriptorProto_Label.valueOf) | 264 ..e(4, 'label', PbFieldType.OE, FieldDescriptorProto_Label.LABEL_OPTIONAL, F ieldDescriptorProto_Label.valueOf) |
264 ..e(5, 'type', PbFieldType.OE, FieldDescriptorProto_Type.TYPE_DOUBLE, FieldD escriptorProto_Type.valueOf) | 265 ..e(5, 'type', PbFieldType.OE, FieldDescriptorProto_Type.TYPE_DOUBLE, FieldD escriptorProto_Type.valueOf) |
265 ..a(6, 'typeName', PbFieldType.OS) | 266 ..a(6, 'typeName', PbFieldType.OS) |
266 ..a(2, 'extendee', PbFieldType.OS) | |
267 ..a(7, 'defaultValue', PbFieldType.OS) | 267 ..a(7, 'defaultValue', PbFieldType.OS) |
268 ..a(8, 'options', PbFieldType.OM, FieldOptions.getDefault, FieldOptions.crea te) | 268 ..a(8, 'options', PbFieldType.OM, FieldOptions.getDefault, FieldOptions.crea te) |
269 ; | 269 ; |
270 | 270 |
271 FieldDescriptorProto() : super(); | 271 FieldDescriptorProto() : super(); |
272 FieldDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionR egistry.EMPTY]) : super.fromBuffer(i, r); | 272 FieldDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionR egistry.EMPTY]) : super.fromBuffer(i, r); |
273 FieldDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegist ry.EMPTY]) : super.fromJson(i, r); | 273 FieldDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegist ry.EMPTY]) : super.fromJson(i, r); |
274 FieldDescriptorProto clone() => new FieldDescriptorProto()..mergeFromMessage(t his); | 274 FieldDescriptorProto clone() => new FieldDescriptorProto()..mergeFromMessage(t his); |
275 BuilderInfo get info_ => _i; | 275 BuilderInfo get info_ => _i; |
276 static FieldDescriptorProto create() => new FieldDescriptorProto(); | 276 static FieldDescriptorProto create() => new FieldDescriptorProto(); |
277 static PbList<FieldDescriptorProto> createRepeated() => new PbList<FieldDescri ptorProto>(); | 277 static PbList<FieldDescriptorProto> createRepeated() => new PbList<FieldDescri ptorProto>(); |
278 static FieldDescriptorProto getDefault() { | 278 static FieldDescriptorProto getDefault() { |
279 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFieldDescripto rProto(); | 279 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFieldDescripto rProto(); |
280 return _defaultInstance; | 280 return _defaultInstance; |
281 } | 281 } |
282 static FieldDescriptorProto _defaultInstance; | 282 static FieldDescriptorProto _defaultInstance; |
283 static void $checkItem(FieldDescriptorProto v) { | 283 static void $checkItem(FieldDescriptorProto v) { |
284 if (v is !FieldDescriptorProto) checkItemFailed(v, 'FieldDescriptorProto'); | 284 if (v is !FieldDescriptorProto) checkItemFailed(v, 'FieldDescriptorProto'); |
285 } | 285 } |
286 | 286 |
287 String get name => getField(1); | 287 String get name => $_get(0, 1, '') as String; |
288 void set name(String v) { setField(1, v); } | 288 void set name(String v) { $_setString(0, 1, v); } |
289 bool hasName() => hasField(1); | 289 bool hasName() => $_has(0, 1); |
290 void clearName() => clearField(1); | 290 void clearName() => clearField(1); |
291 | 291 |
292 int get number => getField(3); | 292 String get extendee => $_get(1, 2, '') as String; |
293 void set number(int v) { setField(3, v); } | 293 void set extendee(String v) { $_setString(1, 2, v); } |
294 bool hasNumber() => hasField(3); | 294 bool hasExtendee() => $_has(1, 2); |
295 void clearExtendee() => clearField(2); | |
296 | |
297 int get number => $_get(2, 3, 0) as int; | |
298 void set number(int v) { $_setUnsignedInt32(2, 3, v); } | |
299 bool hasNumber() => $_has(2, 3); | |
295 void clearNumber() => clearField(3); | 300 void clearNumber() => clearField(3); |
296 | 301 |
297 FieldDescriptorProto_Label get label => getField(4); | 302 FieldDescriptorProto_Label get label => $_get(3, 4, null) as FieldDescriptorPr oto_Label; |
298 void set label(FieldDescriptorProto_Label v) { setField(4, v); } | 303 void set label(FieldDescriptorProto_Label v) { setField(4, v); } |
299 bool hasLabel() => hasField(4); | 304 bool hasLabel() => $_has(3, 4); |
300 void clearLabel() => clearField(4); | 305 void clearLabel() => clearField(4); |
301 | 306 |
302 FieldDescriptorProto_Type get type => getField(5); | 307 FieldDescriptorProto_Type get type => $_get(4, 5, null) as FieldDescriptorProt o_Type; |
303 void set type(FieldDescriptorProto_Type v) { setField(5, v); } | 308 void set type(FieldDescriptorProto_Type v) { setField(5, v); } |
304 bool hasType() => hasField(5); | 309 bool hasType() => $_has(4, 5); |
305 void clearType() => clearField(5); | 310 void clearType() => clearField(5); |
306 | 311 |
307 String get typeName => getField(6); | 312 String get typeName => $_get(5, 6, '') as String; |
308 void set typeName(String v) { setField(6, v); } | 313 void set typeName(String v) { $_setString(5, 6, v); } |
309 bool hasTypeName() => hasField(6); | 314 bool hasTypeName() => $_has(5, 6); |
310 void clearTypeName() => clearField(6); | 315 void clearTypeName() => clearField(6); |
311 | 316 |
312 String get extendee => getField(2); | 317 String get defaultValue => $_get(6, 7, '') as String; |
313 void set extendee(String v) { setField(2, v); } | 318 void set defaultValue(String v) { $_setString(6, 7, v); } |
314 bool hasExtendee() => hasField(2); | 319 bool hasDefaultValue() => $_has(6, 7); |
315 void clearExtendee() => clearField(2); | |
316 | |
317 String get defaultValue => getField(7); | |
318 void set defaultValue(String v) { setField(7, v); } | |
319 bool hasDefaultValue() => hasField(7); | |
320 void clearDefaultValue() => clearField(7); | 320 void clearDefaultValue() => clearField(7); |
321 | 321 |
322 FieldOptions get options => getField(8); | 322 FieldOptions get options => $_get(7, 8, null) as FieldOptions; |
323 void set options(FieldOptions v) { setField(8, v); } | 323 void set options(FieldOptions v) { setField(8, v); } |
324 bool hasOptions() => hasField(8); | 324 bool hasOptions() => $_has(7, 8); |
325 void clearOptions() => clearField(8); | 325 void clearOptions() => clearField(8); |
326 } | 326 } |
327 | 327 |
328 class _ReadonlyFieldDescriptorProto extends FieldDescriptorProto with ReadonlyMe ssageMixin {} | 328 class _ReadonlyFieldDescriptorProto extends FieldDescriptorProto with ReadonlyMe ssageMixin {} |
329 | 329 |
330 class EnumDescriptorProto extends GeneratedMessage { | 330 class EnumDescriptorProto extends GeneratedMessage { |
331 static final BuilderInfo _i = new BuilderInfo('EnumDescriptorProto') | 331 static final BuilderInfo _i = new BuilderInfo('EnumDescriptorProto') |
332 ..a(1, 'name', PbFieldType.OS) | 332 ..a(1, 'name', PbFieldType.OS) |
333 ..pp(2, 'value', PbFieldType.PM, EnumValueDescriptorProto.$checkItem, EnumVa lueDescriptorProto.create) | 333 ..pp(2, 'value', PbFieldType.PM, EnumValueDescriptorProto.$checkItem, EnumVa lueDescriptorProto.create) |
334 ..a(3, 'options', PbFieldType.OM, EnumOptions.getDefault, EnumOptions.create ) | 334 ..a(3, 'options', PbFieldType.OM, EnumOptions.getDefault, EnumOptions.create ) |
335 ; | 335 ; |
336 | 336 |
337 EnumDescriptorProto() : super(); | 337 EnumDescriptorProto() : super(); |
338 EnumDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromBuffer(i, r); | 338 EnumDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromBuffer(i, r); |
339 EnumDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromJson(i, r); | 339 EnumDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromJson(i, r); |
340 EnumDescriptorProto clone() => new EnumDescriptorProto()..mergeFromMessage(thi s); | 340 EnumDescriptorProto clone() => new EnumDescriptorProto()..mergeFromMessage(thi s); |
341 BuilderInfo get info_ => _i; | 341 BuilderInfo get info_ => _i; |
342 static EnumDescriptorProto create() => new EnumDescriptorProto(); | 342 static EnumDescriptorProto create() => new EnumDescriptorProto(); |
343 static PbList<EnumDescriptorProto> createRepeated() => new PbList<EnumDescript orProto>(); | 343 static PbList<EnumDescriptorProto> createRepeated() => new PbList<EnumDescript orProto>(); |
344 static EnumDescriptorProto getDefault() { | 344 static EnumDescriptorProto getDefault() { |
345 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumDescriptor Proto(); | 345 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumDescriptor Proto(); |
346 return _defaultInstance; | 346 return _defaultInstance; |
347 } | 347 } |
348 static EnumDescriptorProto _defaultInstance; | 348 static EnumDescriptorProto _defaultInstance; |
349 static void $checkItem(EnumDescriptorProto v) { | 349 static void $checkItem(EnumDescriptorProto v) { |
350 if (v is !EnumDescriptorProto) checkItemFailed(v, 'EnumDescriptorProto'); | 350 if (v is !EnumDescriptorProto) checkItemFailed(v, 'EnumDescriptorProto'); |
351 } | 351 } |
352 | 352 |
353 String get name => getField(1); | 353 String get name => $_get(0, 1, '') as String; |
354 void set name(String v) { setField(1, v); } | 354 void set name(String v) { $_setString(0, 1, v); } |
355 bool hasName() => hasField(1); | 355 bool hasName() => $_has(0, 1); |
356 void clearName() => clearField(1); | 356 void clearName() => clearField(1); |
357 | 357 |
358 List<EnumValueDescriptorProto> get value => getField(2); | 358 List<EnumValueDescriptorProto> get value => $_get(1, 2, null) as List<EnumValu eDescriptorProto>; |
359 | 359 |
360 EnumOptions get options => getField(3); | 360 EnumOptions get options => $_get(2, 3, null) as EnumOptions; |
361 void set options(EnumOptions v) { setField(3, v); } | 361 void set options(EnumOptions v) { setField(3, v); } |
362 bool hasOptions() => hasField(3); | 362 bool hasOptions() => $_has(2, 3); |
363 void clearOptions() => clearField(3); | 363 void clearOptions() => clearField(3); |
364 } | 364 } |
365 | 365 |
366 class _ReadonlyEnumDescriptorProto extends EnumDescriptorProto with ReadonlyMess ageMixin {} | 366 class _ReadonlyEnumDescriptorProto extends EnumDescriptorProto with ReadonlyMess ageMixin {} |
367 | 367 |
368 class EnumValueDescriptorProto extends GeneratedMessage { | 368 class EnumValueDescriptorProto extends GeneratedMessage { |
369 static final BuilderInfo _i = new BuilderInfo('EnumValueDescriptorProto') | 369 static final BuilderInfo _i = new BuilderInfo('EnumValueDescriptorProto') |
370 ..a(1, 'name', PbFieldType.OS) | 370 ..a(1, 'name', PbFieldType.OS) |
371 ..a(2, 'number', PbFieldType.O3) | 371 ..a(2, 'number', PbFieldType.O3) |
372 ..a(3, 'options', PbFieldType.OM, EnumValueOptions.getDefault, EnumValueOpti ons.create) | 372 ..a(3, 'options', PbFieldType.OM, EnumValueOptions.getDefault, EnumValueOpti ons.create) |
373 ; | 373 ; |
374 | 374 |
375 EnumValueDescriptorProto() : super(); | 375 EnumValueDescriptorProto() : super(); |
376 EnumValueDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extens ionRegistry.EMPTY]) : super.fromBuffer(i, r); | 376 EnumValueDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extens ionRegistry.EMPTY]) : super.fromBuffer(i, r); |
377 EnumValueDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromJson(i, r); | 377 EnumValueDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRe gistry.EMPTY]) : super.fromJson(i, r); |
378 EnumValueDescriptorProto clone() => new EnumValueDescriptorProto()..mergeFromM essage(this); | 378 EnumValueDescriptorProto clone() => new EnumValueDescriptorProto()..mergeFromM essage(this); |
379 BuilderInfo get info_ => _i; | 379 BuilderInfo get info_ => _i; |
380 static EnumValueDescriptorProto create() => new EnumValueDescriptorProto(); | 380 static EnumValueDescriptorProto create() => new EnumValueDescriptorProto(); |
381 static PbList<EnumValueDescriptorProto> createRepeated() => new PbList<EnumVal ueDescriptorProto>(); | 381 static PbList<EnumValueDescriptorProto> createRepeated() => new PbList<EnumVal ueDescriptorProto>(); |
382 static EnumValueDescriptorProto getDefault() { | 382 static EnumValueDescriptorProto getDefault() { |
383 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumValueDescr iptorProto(); | 383 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumValueDescr iptorProto(); |
384 return _defaultInstance; | 384 return _defaultInstance; |
385 } | 385 } |
386 static EnumValueDescriptorProto _defaultInstance; | 386 static EnumValueDescriptorProto _defaultInstance; |
387 static void $checkItem(EnumValueDescriptorProto v) { | 387 static void $checkItem(EnumValueDescriptorProto v) { |
388 if (v is !EnumValueDescriptorProto) checkItemFailed(v, 'EnumValueDescriptorP roto'); | 388 if (v is !EnumValueDescriptorProto) checkItemFailed(v, 'EnumValueDescriptorP roto'); |
389 } | 389 } |
390 | 390 |
391 String get name => getField(1); | 391 String get name => $_get(0, 1, '') as String; |
392 void set name(String v) { setField(1, v); } | 392 void set name(String v) { $_setString(0, 1, v); } |
393 bool hasName() => hasField(1); | 393 bool hasName() => $_has(0, 1); |
394 void clearName() => clearField(1); | 394 void clearName() => clearField(1); |
395 | 395 |
396 int get number => getField(2); | 396 int get number => $_get(1, 2, 0) as int; |
397 void set number(int v) { setField(2, v); } | 397 void set number(int v) { $_setUnsignedInt32(1, 2, v); } |
398 bool hasNumber() => hasField(2); | 398 bool hasNumber() => $_has(1, 2); |
399 void clearNumber() => clearField(2); | 399 void clearNumber() => clearField(2); |
400 | 400 |
401 EnumValueOptions get options => getField(3); | 401 EnumValueOptions get options => $_get(2, 3, null) as EnumValueOptions; |
402 void set options(EnumValueOptions v) { setField(3, v); } | 402 void set options(EnumValueOptions v) { setField(3, v); } |
403 bool hasOptions() => hasField(3); | 403 bool hasOptions() => $_has(2, 3); |
404 void clearOptions() => clearField(3); | 404 void clearOptions() => clearField(3); |
405 } | 405 } |
406 | 406 |
407 class _ReadonlyEnumValueDescriptorProto extends EnumValueDescriptorProto with Re adonlyMessageMixin {} | 407 class _ReadonlyEnumValueDescriptorProto extends EnumValueDescriptorProto with Re adonlyMessageMixin {} |
408 | 408 |
409 class ServiceDescriptorProto extends GeneratedMessage { | 409 class ServiceDescriptorProto extends GeneratedMessage { |
410 static final BuilderInfo _i = new BuilderInfo('ServiceDescriptorProto') | 410 static final BuilderInfo _i = new BuilderInfo('ServiceDescriptorProto') |
411 ..a(1, 'name', PbFieldType.OS) | 411 ..a(1, 'name', PbFieldType.OS) |
412 ..pp(2, 'method', PbFieldType.PM, MethodDescriptorProto.$checkItem, MethodDe scriptorProto.create) | 412 ..pp(2, 'method', PbFieldType.PM, MethodDescriptorProto.$checkItem, MethodDe scriptorProto.create) |
413 ..a(3, 'options', PbFieldType.OM, ServiceOptions.getDefault, ServiceOptions. create) | |
413 ..pp(4, 'stream', PbFieldType.PM, StreamDescriptorProto.$checkItem, StreamDe scriptorProto.create) | 414 ..pp(4, 'stream', PbFieldType.PM, StreamDescriptorProto.$checkItem, StreamDe scriptorProto.create) |
414 ..a(3, 'options', PbFieldType.OM, ServiceOptions.getDefault, ServiceOptions. create) | |
415 ; | 415 ; |
416 | 416 |
417 ServiceDescriptorProto() : super(); | 417 ServiceDescriptorProto() : super(); |
418 ServiceDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extensio nRegistry.EMPTY]) : super.fromBuffer(i, r); | 418 ServiceDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extensio nRegistry.EMPTY]) : super.fromBuffer(i, r); |
419 ServiceDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegi stry.EMPTY]) : super.fromJson(i, r); | 419 ServiceDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegi stry.EMPTY]) : super.fromJson(i, r); |
420 ServiceDescriptorProto clone() => new ServiceDescriptorProto()..mergeFromMessa ge(this); | 420 ServiceDescriptorProto clone() => new ServiceDescriptorProto()..mergeFromMessa ge(this); |
421 BuilderInfo get info_ => _i; | 421 BuilderInfo get info_ => _i; |
422 static ServiceDescriptorProto create() => new ServiceDescriptorProto(); | 422 static ServiceDescriptorProto create() => new ServiceDescriptorProto(); |
423 static PbList<ServiceDescriptorProto> createRepeated() => new PbList<ServiceDe scriptorProto>(); | 423 static PbList<ServiceDescriptorProto> createRepeated() => new PbList<ServiceDe scriptorProto>(); |
424 static ServiceDescriptorProto getDefault() { | 424 static ServiceDescriptorProto getDefault() { |
425 if (_defaultInstance == null) _defaultInstance = new _ReadonlyServiceDescrip torProto(); | 425 if (_defaultInstance == null) _defaultInstance = new _ReadonlyServiceDescrip torProto(); |
426 return _defaultInstance; | 426 return _defaultInstance; |
427 } | 427 } |
428 static ServiceDescriptorProto _defaultInstance; | 428 static ServiceDescriptorProto _defaultInstance; |
429 static void $checkItem(ServiceDescriptorProto v) { | 429 static void $checkItem(ServiceDescriptorProto v) { |
430 if (v is !ServiceDescriptorProto) checkItemFailed(v, 'ServiceDescriptorProto '); | 430 if (v is !ServiceDescriptorProto) checkItemFailed(v, 'ServiceDescriptorProto '); |
431 } | 431 } |
432 | 432 |
433 String get name => getField(1); | 433 String get name => $_get(0, 1, '') as String; |
434 void set name(String v) { setField(1, v); } | 434 void set name(String v) { $_setString(0, 1, v); } |
435 bool hasName() => hasField(1); | 435 bool hasName() => $_has(0, 1); |
436 void clearName() => clearField(1); | 436 void clearName() => clearField(1); |
437 | 437 |
438 List<MethodDescriptorProto> get method => getField(2); | 438 List<MethodDescriptorProto> get method => $_get(1, 2, null) as List<MethodDesc riptorProto>; |
439 | 439 |
440 List<StreamDescriptorProto> get stream => getField(4); | 440 ServiceOptions get options => $_get(2, 3, null) as ServiceOptions; |
441 void set options(ServiceOptions v) { setField(3, v); } | |
442 bool hasOptions() => $_has(2, 3); | |
443 void clearOptions() => clearField(3); | |
441 | 444 |
442 ServiceOptions get options => getField(3); | 445 List<StreamDescriptorProto> get stream => $_get(3, 4, null) as List<StreamDesc riptorProto>; |
443 void set options(ServiceOptions v) { setField(3, v); } | |
444 bool hasOptions() => hasField(3); | |
445 void clearOptions() => clearField(3); | |
446 } | 446 } |
447 | 447 |
448 class _ReadonlyServiceDescriptorProto extends ServiceDescriptorProto with Readon lyMessageMixin {} | 448 class _ReadonlyServiceDescriptorProto extends ServiceDescriptorProto with Readon lyMessageMixin {} |
449 | 449 |
450 class MethodDescriptorProto extends GeneratedMessage { | 450 class MethodDescriptorProto extends GeneratedMessage { |
451 static final BuilderInfo _i = new BuilderInfo('MethodDescriptorProto') | 451 static final BuilderInfo _i = new BuilderInfo('MethodDescriptorProto') |
452 ..a(1, 'name', PbFieldType.OS) | 452 ..a(1, 'name', PbFieldType.OS) |
453 ..a(2, 'inputType', PbFieldType.OS) | 453 ..a(2, 'inputType', PbFieldType.OS) |
454 ..a(3, 'outputType', PbFieldType.OS) | 454 ..a(3, 'outputType', PbFieldType.OS) |
455 ..a(4, 'options', PbFieldType.OM, MethodOptions.getDefault, MethodOptions.cr eate) | 455 ..a(4, 'options', PbFieldType.OM, MethodOptions.getDefault, MethodOptions.cr eate) |
456 ; | 456 ; |
457 | 457 |
458 MethodDescriptorProto() : super(); | 458 MethodDescriptorProto() : super(); |
459 MethodDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extension Registry.EMPTY]) : super.fromBuffer(i, r); | 459 MethodDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extension Registry.EMPTY]) : super.fromBuffer(i, r); |
460 MethodDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromJson(i, r); | 460 MethodDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromJson(i, r); |
461 MethodDescriptorProto clone() => new MethodDescriptorProto()..mergeFromMessage (this); | 461 MethodDescriptorProto clone() => new MethodDescriptorProto()..mergeFromMessage (this); |
462 BuilderInfo get info_ => _i; | 462 BuilderInfo get info_ => _i; |
463 static MethodDescriptorProto create() => new MethodDescriptorProto(); | 463 static MethodDescriptorProto create() => new MethodDescriptorProto(); |
464 static PbList<MethodDescriptorProto> createRepeated() => new PbList<MethodDesc riptorProto>(); | 464 static PbList<MethodDescriptorProto> createRepeated() => new PbList<MethodDesc riptorProto>(); |
465 static MethodDescriptorProto getDefault() { | 465 static MethodDescriptorProto getDefault() { |
466 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMethodDescript orProto(); | 466 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMethodDescript orProto(); |
467 return _defaultInstance; | 467 return _defaultInstance; |
468 } | 468 } |
469 static MethodDescriptorProto _defaultInstance; | 469 static MethodDescriptorProto _defaultInstance; |
470 static void $checkItem(MethodDescriptorProto v) { | 470 static void $checkItem(MethodDescriptorProto v) { |
471 if (v is !MethodDescriptorProto) checkItemFailed(v, 'MethodDescriptorProto') ; | 471 if (v is !MethodDescriptorProto) checkItemFailed(v, 'MethodDescriptorProto') ; |
472 } | 472 } |
473 | 473 |
474 String get name => getField(1); | 474 String get name => $_get(0, 1, '') as String; |
475 void set name(String v) { setField(1, v); } | 475 void set name(String v) { $_setString(0, 1, v); } |
476 bool hasName() => hasField(1); | 476 bool hasName() => $_has(0, 1); |
477 void clearName() => clearField(1); | 477 void clearName() => clearField(1); |
478 | 478 |
479 String get inputType => getField(2); | 479 String get inputType => $_get(1, 2, '') as String; |
480 void set inputType(String v) { setField(2, v); } | 480 void set inputType(String v) { $_setString(1, 2, v); } |
481 bool hasInputType() => hasField(2); | 481 bool hasInputType() => $_has(1, 2); |
482 void clearInputType() => clearField(2); | 482 void clearInputType() => clearField(2); |
483 | 483 |
484 String get outputType => getField(3); | 484 String get outputType => $_get(2, 3, '') as String; |
485 void set outputType(String v) { setField(3, v); } | 485 void set outputType(String v) { $_setString(2, 3, v); } |
486 bool hasOutputType() => hasField(3); | 486 bool hasOutputType() => $_has(2, 3); |
487 void clearOutputType() => clearField(3); | 487 void clearOutputType() => clearField(3); |
488 | 488 |
489 MethodOptions get options => getField(4); | 489 MethodOptions get options => $_get(3, 4, null) as MethodOptions; |
490 void set options(MethodOptions v) { setField(4, v); } | 490 void set options(MethodOptions v) { setField(4, v); } |
491 bool hasOptions() => hasField(4); | 491 bool hasOptions() => $_has(3, 4); |
492 void clearOptions() => clearField(4); | 492 void clearOptions() => clearField(4); |
493 } | 493 } |
494 | 494 |
495 class _ReadonlyMethodDescriptorProto extends MethodDescriptorProto with Readonly MessageMixin {} | 495 class _ReadonlyMethodDescriptorProto extends MethodDescriptorProto with Readonly MessageMixin {} |
496 | 496 |
497 class StreamDescriptorProto extends GeneratedMessage { | 497 class StreamDescriptorProto extends GeneratedMessage { |
498 static final BuilderInfo _i = new BuilderInfo('StreamDescriptorProto') | 498 static final BuilderInfo _i = new BuilderInfo('StreamDescriptorProto') |
499 ..a(1, 'name', PbFieldType.OS) | 499 ..a(1, 'name', PbFieldType.OS) |
500 ..a(2, 'clientMessageType', PbFieldType.OS) | 500 ..a(2, 'clientMessageType', PbFieldType.OS) |
501 ..a(3, 'serverMessageType', PbFieldType.OS) | 501 ..a(3, 'serverMessageType', PbFieldType.OS) |
502 ..a(4, 'options', PbFieldType.OM, StreamOptions.getDefault, StreamOptions.cr eate) | 502 ..a(4, 'options', PbFieldType.OM, StreamOptions.getDefault, StreamOptions.cr eate) |
503 ; | 503 ; |
504 | 504 |
505 StreamDescriptorProto() : super(); | 505 StreamDescriptorProto() : super(); |
506 StreamDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extension Registry.EMPTY]) : super.fromBuffer(i, r); | 506 StreamDescriptorProto.fromBuffer(List<int> i, [ExtensionRegistry r = Extension Registry.EMPTY]) : super.fromBuffer(i, r); |
507 StreamDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromJson(i, r); | 507 StreamDescriptorProto.fromJson(String i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromJson(i, r); |
508 StreamDescriptorProto clone() => new StreamDescriptorProto()..mergeFromMessage (this); | 508 StreamDescriptorProto clone() => new StreamDescriptorProto()..mergeFromMessage (this); |
509 BuilderInfo get info_ => _i; | 509 BuilderInfo get info_ => _i; |
510 static StreamDescriptorProto create() => new StreamDescriptorProto(); | 510 static StreamDescriptorProto create() => new StreamDescriptorProto(); |
511 static PbList<StreamDescriptorProto> createRepeated() => new PbList<StreamDesc riptorProto>(); | 511 static PbList<StreamDescriptorProto> createRepeated() => new PbList<StreamDesc riptorProto>(); |
512 static StreamDescriptorProto getDefault() { | 512 static StreamDescriptorProto getDefault() { |
513 if (_defaultInstance == null) _defaultInstance = new _ReadonlyStreamDescript orProto(); | 513 if (_defaultInstance == null) _defaultInstance = new _ReadonlyStreamDescript orProto(); |
514 return _defaultInstance; | 514 return _defaultInstance; |
515 } | 515 } |
516 static StreamDescriptorProto _defaultInstance; | 516 static StreamDescriptorProto _defaultInstance; |
517 static void $checkItem(StreamDescriptorProto v) { | 517 static void $checkItem(StreamDescriptorProto v) { |
518 if (v is !StreamDescriptorProto) checkItemFailed(v, 'StreamDescriptorProto') ; | 518 if (v is !StreamDescriptorProto) checkItemFailed(v, 'StreamDescriptorProto') ; |
519 } | 519 } |
520 | 520 |
521 String get name => getField(1); | 521 String get name => $_get(0, 1, '') as String; |
522 void set name(String v) { setField(1, v); } | 522 void set name(String v) { $_setString(0, 1, v); } |
523 bool hasName() => hasField(1); | 523 bool hasName() => $_has(0, 1); |
524 void clearName() => clearField(1); | 524 void clearName() => clearField(1); |
525 | 525 |
526 String get clientMessageType => getField(2); | 526 String get clientMessageType => $_get(1, 2, '') as String; |
527 void set clientMessageType(String v) { setField(2, v); } | 527 void set clientMessageType(String v) { $_setString(1, 2, v); } |
528 bool hasClientMessageType() => hasField(2); | 528 bool hasClientMessageType() => $_has(1, 2); |
529 void clearClientMessageType() => clearField(2); | 529 void clearClientMessageType() => clearField(2); |
530 | 530 |
531 String get serverMessageType => getField(3); | 531 String get serverMessageType => $_get(2, 3, '') as String; |
532 void set serverMessageType(String v) { setField(3, v); } | 532 void set serverMessageType(String v) { $_setString(2, 3, v); } |
533 bool hasServerMessageType() => hasField(3); | 533 bool hasServerMessageType() => $_has(2, 3); |
534 void clearServerMessageType() => clearField(3); | 534 void clearServerMessageType() => clearField(3); |
535 | 535 |
536 StreamOptions get options => getField(4); | 536 StreamOptions get options => $_get(3, 4, null) as StreamOptions; |
537 void set options(StreamOptions v) { setField(4, v); } | 537 void set options(StreamOptions v) { setField(4, v); } |
538 bool hasOptions() => hasField(4); | 538 bool hasOptions() => $_has(3, 4); |
539 void clearOptions() => clearField(4); | 539 void clearOptions() => clearField(4); |
540 } | 540 } |
541 | 541 |
542 class _ReadonlyStreamDescriptorProto extends StreamDescriptorProto with Readonly MessageMixin {} | 542 class _ReadonlyStreamDescriptorProto extends StreamDescriptorProto with Readonly MessageMixin {} |
543 | 543 |
544 class FileOptions_OptimizeMode extends ProtobufEnum { | 544 class FileOptions_OptimizeMode extends ProtobufEnum { |
545 static const FileOptions_OptimizeMode SPEED = const FileOptions_OptimizeMode._ (1, 'SPEED'); | 545 static const FileOptions_OptimizeMode SPEED = const FileOptions_OptimizeMode._ (1, 'SPEED'); |
546 static const FileOptions_OptimizeMode CODE_SIZE = const FileOptions_OptimizeMo de._(2, 'CODE_SIZE'); | 546 static const FileOptions_OptimizeMode CODE_SIZE = const FileOptions_OptimizeMo de._(2, 'CODE_SIZE'); |
547 static const FileOptions_OptimizeMode LITE_RUNTIME = const FileOptions_Optimiz eMode._(3, 'LITE_RUNTIME'); | 547 static const FileOptions_OptimizeMode LITE_RUNTIME = const FileOptions_Optimiz eMode._(3, 'LITE_RUNTIME'); |
548 | 548 |
549 static const List<FileOptions_OptimizeMode> values = const <FileOptions_Optimi zeMode> [ | 549 static const List<FileOptions_OptimizeMode> values = const <FileOptions_Optimi zeMode> [ |
550 SPEED, | 550 SPEED, |
551 CODE_SIZE, | 551 CODE_SIZE, |
552 LITE_RUNTIME, | 552 LITE_RUNTIME, |
553 ]; | 553 ]; |
554 | 554 |
555 static final Map<int, FileOptions_OptimizeMode> _byValue = ProtobufEnum.initBy Value(values); | 555 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values); |
556 static FileOptions_OptimizeMode valueOf(int value) => _byValue[value]; | 556 static FileOptions_OptimizeMode valueOf(int value) => _byValue[value] as FileO ptions_OptimizeMode; |
557 static void $checkItem(FileOptions_OptimizeMode v) { | 557 static void $checkItem(FileOptions_OptimizeMode v) { |
558 if (v is !FileOptions_OptimizeMode) checkItemFailed(v, 'FileOptions_Optimize Mode'); | 558 if (v is !FileOptions_OptimizeMode) checkItemFailed(v, 'FileOptions_Optimize Mode'); |
559 } | 559 } |
560 | 560 |
561 const FileOptions_OptimizeMode._(int v, String n) : super(v, n); | 561 const FileOptions_OptimizeMode._(int v, String n) : super(v, n); |
562 } | 562 } |
563 | 563 |
564 class FileOptions extends GeneratedMessage { | 564 class FileOptions extends GeneratedMessage { |
565 static final BuilderInfo _i = new BuilderInfo('FileOptions') | 565 static final BuilderInfo _i = new BuilderInfo('FileOptions') |
566 ..a(1, 'javaPackage', PbFieldType.OS) | 566 ..a(1, 'javaPackage', PbFieldType.OS) |
567 ..a(8, 'javaOuterClassname', PbFieldType.OS) | 567 ..a(8, 'javaOuterClassname', PbFieldType.OS) |
568 ..e(9, 'optimizeFor', PbFieldType.OE, FileOptions_OptimizeMode.SPEED, FileOp tions_OptimizeMode.valueOf) | |
568 ..a(10, 'javaMultipleFiles', PbFieldType.OB) | 569 ..a(10, 'javaMultipleFiles', PbFieldType.OB) |
569 ..a(20, 'javaGenerateEqualsAndHash', PbFieldType.OB) | |
570 ..e(9, 'optimizeFor', PbFieldType.OE, FileOptions_OptimizeMode.SPEED, FileOp tions_OptimizeMode.valueOf) | |
571 ..a(16, 'ccGenericServices', PbFieldType.OB) | 570 ..a(16, 'ccGenericServices', PbFieldType.OB) |
572 ..a(17, 'javaGenericServices', PbFieldType.OB) | 571 ..a(17, 'javaGenericServices', PbFieldType.OB) |
573 ..a(18, 'pyGenericServices', PbFieldType.OB) | 572 ..a(18, 'pyGenericServices', PbFieldType.OB) |
573 ..a(20, 'javaGenerateEqualsAndHash', PbFieldType.OB) | |
574 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 574 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
575 ..hasExtensions = true | 575 ..hasExtensions = true |
576 ; | 576 ; |
577 | 577 |
578 FileOptions() : super(); | 578 FileOptions() : super(); |
579 FileOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromBuffer(i, r); | 579 FileOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromBuffer(i, r); |
580 FileOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY] ) : super.fromJson(i, r); | 580 FileOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY] ) : super.fromJson(i, r); |
581 FileOptions clone() => new FileOptions()..mergeFromMessage(this); | 581 FileOptions clone() => new FileOptions()..mergeFromMessage(this); |
582 BuilderInfo get info_ => _i; | 582 BuilderInfo get info_ => _i; |
583 static FileOptions create() => new FileOptions(); | 583 static FileOptions create() => new FileOptions(); |
584 static PbList<FileOptions> createRepeated() => new PbList<FileOptions>(); | 584 static PbList<FileOptions> createRepeated() => new PbList<FileOptions>(); |
585 static FileOptions getDefault() { | 585 static FileOptions getDefault() { |
586 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileOptions(); | 586 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFileOptions(); |
587 return _defaultInstance; | 587 return _defaultInstance; |
588 } | 588 } |
589 static FileOptions _defaultInstance; | 589 static FileOptions _defaultInstance; |
590 static void $checkItem(FileOptions v) { | 590 static void $checkItem(FileOptions v) { |
591 if (v is !FileOptions) checkItemFailed(v, 'FileOptions'); | 591 if (v is !FileOptions) checkItemFailed(v, 'FileOptions'); |
592 } | 592 } |
593 | 593 |
594 String get javaPackage => getField(1); | 594 String get javaPackage => $_get(0, 1, '') as String; |
595 void set javaPackage(String v) { setField(1, v); } | 595 void set javaPackage(String v) { $_setString(0, 1, v); } |
596 bool hasJavaPackage() => hasField(1); | 596 bool hasJavaPackage() => $_has(0, 1); |
597 void clearJavaPackage() => clearField(1); | 597 void clearJavaPackage() => clearField(1); |
598 | 598 |
599 String get javaOuterClassname => getField(8); | 599 String get javaOuterClassname => $_get(1, 8, '') as String; |
600 void set javaOuterClassname(String v) { setField(8, v); } | 600 void set javaOuterClassname(String v) { $_setString(1, 8, v); } |
601 bool hasJavaOuterClassname() => hasField(8); | 601 bool hasJavaOuterClassname() => $_has(1, 8); |
602 void clearJavaOuterClassname() => clearField(8); | 602 void clearJavaOuterClassname() => clearField(8); |
603 | 603 |
604 bool get javaMultipleFiles => getField(10); | 604 FileOptions_OptimizeMode get optimizeFor => $_get(2, 9, null) as FileOptions_O ptimizeMode; |
605 void set javaMultipleFiles(bool v) { setField(10, v); } | 605 void set optimizeFor(FileOptions_OptimizeMode v) { setField(9, v); } |
606 bool hasJavaMultipleFiles() => hasField(10); | 606 bool hasOptimizeFor() => $_has(2, 9); |
607 void clearOptimizeFor() => clearField(9); | |
608 | |
609 bool get javaMultipleFiles => $_get(3, 10, false) as bool; | |
610 void set javaMultipleFiles(bool v) { $_setBool(3, 10, v); } | |
611 bool hasJavaMultipleFiles() => $_has(3, 10); | |
607 void clearJavaMultipleFiles() => clearField(10); | 612 void clearJavaMultipleFiles() => clearField(10); |
608 | 613 |
609 bool get javaGenerateEqualsAndHash => getField(20); | 614 bool get ccGenericServices => $_get(4, 16, false) as bool; |
610 void set javaGenerateEqualsAndHash(bool v) { setField(20, v); } | 615 void set ccGenericServices(bool v) { $_setBool(4, 16, v); } |
611 bool hasJavaGenerateEqualsAndHash() => hasField(20); | 616 bool hasCcGenericServices() => $_has(4, 16); |
617 void clearCcGenericServices() => clearField(16); | |
618 | |
619 bool get javaGenericServices => $_get(5, 17, false) as bool; | |
620 void set javaGenericServices(bool v) { $_setBool(5, 17, v); } | |
621 bool hasJavaGenericServices() => $_has(5, 17); | |
622 void clearJavaGenericServices() => clearField(17); | |
623 | |
624 bool get pyGenericServices => $_get(6, 18, false) as bool; | |
625 void set pyGenericServices(bool v) { $_setBool(6, 18, v); } | |
626 bool hasPyGenericServices() => $_has(6, 18); | |
627 void clearPyGenericServices() => clearField(18); | |
628 | |
629 bool get javaGenerateEqualsAndHash => $_get(7, 20, false) as bool; | |
630 void set javaGenerateEqualsAndHash(bool v) { $_setBool(7, 20, v); } | |
631 bool hasJavaGenerateEqualsAndHash() => $_has(7, 20); | |
612 void clearJavaGenerateEqualsAndHash() => clearField(20); | 632 void clearJavaGenerateEqualsAndHash() => clearField(20); |
613 | 633 |
614 FileOptions_OptimizeMode get optimizeFor => getField(9); | 634 List<UninterpretedOption> get uninterpretedOption => $_get(8, 999, null) as Li st<UninterpretedOption>; |
615 void set optimizeFor(FileOptions_OptimizeMode v) { setField(9, v); } | |
616 bool hasOptimizeFor() => hasField(9); | |
617 void clearOptimizeFor() => clearField(9); | |
618 | |
619 bool get ccGenericServices => getField(16); | |
620 void set ccGenericServices(bool v) { setField(16, v); } | |
621 bool hasCcGenericServices() => hasField(16); | |
622 void clearCcGenericServices() => clearField(16); | |
623 | |
624 bool get javaGenericServices => getField(17); | |
625 void set javaGenericServices(bool v) { setField(17, v); } | |
626 bool hasJavaGenericServices() => hasField(17); | |
627 void clearJavaGenericServices() => clearField(17); | |
628 | |
629 bool get pyGenericServices => getField(18); | |
630 void set pyGenericServices(bool v) { setField(18, v); } | |
631 bool hasPyGenericServices() => hasField(18); | |
632 void clearPyGenericServices() => clearField(18); | |
633 | |
634 List<UninterpretedOption> get uninterpretedOption => getField(999); | |
635 } | 635 } |
636 | 636 |
637 class _ReadonlyFileOptions extends FileOptions with ReadonlyMessageMixin {} | 637 class _ReadonlyFileOptions extends FileOptions with ReadonlyMessageMixin {} |
638 | 638 |
639 class MessageOptions extends GeneratedMessage { | 639 class MessageOptions extends GeneratedMessage { |
640 static final BuilderInfo _i = new BuilderInfo('MessageOptions') | 640 static final BuilderInfo _i = new BuilderInfo('MessageOptions') |
641 ..a(1, 'messageSetWireFormat', PbFieldType.OB) | 641 ..a(1, 'messageSetWireFormat', PbFieldType.OB) |
642 ..a(2, 'noStandardDescriptorAccessor', PbFieldType.OB) | 642 ..a(2, 'noStandardDescriptorAccessor', PbFieldType.OB) |
643 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 643 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
644 ..hasExtensions = true | 644 ..hasExtensions = true |
645 ; | 645 ; |
646 | 646 |
647 MessageOptions() : super(); | 647 MessageOptions() : super(); |
648 MessageOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); | 648 MessageOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); |
649 MessageOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); | 649 MessageOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); |
650 MessageOptions clone() => new MessageOptions()..mergeFromMessage(this); | 650 MessageOptions clone() => new MessageOptions()..mergeFromMessage(this); |
651 BuilderInfo get info_ => _i; | 651 BuilderInfo get info_ => _i; |
652 static MessageOptions create() => new MessageOptions(); | 652 static MessageOptions create() => new MessageOptions(); |
653 static PbList<MessageOptions> createRepeated() => new PbList<MessageOptions>() ; | 653 static PbList<MessageOptions> createRepeated() => new PbList<MessageOptions>() ; |
654 static MessageOptions getDefault() { | 654 static MessageOptions getDefault() { |
655 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMessageOptions (); | 655 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMessageOptions (); |
656 return _defaultInstance; | 656 return _defaultInstance; |
657 } | 657 } |
658 static MessageOptions _defaultInstance; | 658 static MessageOptions _defaultInstance; |
659 static void $checkItem(MessageOptions v) { | 659 static void $checkItem(MessageOptions v) { |
660 if (v is !MessageOptions) checkItemFailed(v, 'MessageOptions'); | 660 if (v is !MessageOptions) checkItemFailed(v, 'MessageOptions'); |
661 } | 661 } |
662 | 662 |
663 bool get messageSetWireFormat => getField(1); | 663 bool get messageSetWireFormat => $_get(0, 1, false) as bool; |
664 void set messageSetWireFormat(bool v) { setField(1, v); } | 664 void set messageSetWireFormat(bool v) { $_setBool(0, 1, v); } |
665 bool hasMessageSetWireFormat() => hasField(1); | 665 bool hasMessageSetWireFormat() => $_has(0, 1); |
666 void clearMessageSetWireFormat() => clearField(1); | 666 void clearMessageSetWireFormat() => clearField(1); |
667 | 667 |
668 bool get noStandardDescriptorAccessor => getField(2); | 668 bool get noStandardDescriptorAccessor => $_get(1, 2, false) as bool; |
669 void set noStandardDescriptorAccessor(bool v) { setField(2, v); } | 669 void set noStandardDescriptorAccessor(bool v) { $_setBool(1, 2, v); } |
670 bool hasNoStandardDescriptorAccessor() => hasField(2); | 670 bool hasNoStandardDescriptorAccessor() => $_has(1, 2); |
671 void clearNoStandardDescriptorAccessor() => clearField(2); | 671 void clearNoStandardDescriptorAccessor() => clearField(2); |
672 | 672 |
673 List<UninterpretedOption> get uninterpretedOption => getField(999); | 673 List<UninterpretedOption> get uninterpretedOption => $_get(2, 999, null) as Li st<UninterpretedOption>; |
674 } | 674 } |
675 | 675 |
676 class _ReadonlyMessageOptions extends MessageOptions with ReadonlyMessageMixin { } | 676 class _ReadonlyMessageOptions extends MessageOptions with ReadonlyMessageMixin { } |
677 | 677 |
678 class FieldOptions_CType extends ProtobufEnum { | 678 class FieldOptions_CType extends ProtobufEnum { |
679 static const FieldOptions_CType STRING = const FieldOptions_CType._(0, 'STRING '); | 679 static const FieldOptions_CType STRING = const FieldOptions_CType._(0, 'STRING '); |
680 | 680 |
681 static const List<FieldOptions_CType> values = const <FieldOptions_CType> [ | 681 static const List<FieldOptions_CType> values = const <FieldOptions_CType> [ |
682 STRING, | 682 STRING, |
683 ]; | 683 ]; |
684 | 684 |
685 static final Map<int, FieldOptions_CType> _byValue = ProtobufEnum.initByValue( values); | 685 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values); |
686 static FieldOptions_CType valueOf(int value) => _byValue[value]; | 686 static FieldOptions_CType valueOf(int value) => _byValue[value] as FieldOption s_CType; |
687 static void $checkItem(FieldOptions_CType v) { | 687 static void $checkItem(FieldOptions_CType v) { |
688 if (v is !FieldOptions_CType) checkItemFailed(v, 'FieldOptions_CType'); | 688 if (v is !FieldOptions_CType) checkItemFailed(v, 'FieldOptions_CType'); |
689 } | 689 } |
690 | 690 |
691 const FieldOptions_CType._(int v, String n) : super(v, n); | 691 const FieldOptions_CType._(int v, String n) : super(v, n); |
692 } | 692 } |
693 | 693 |
694 class FieldOptions extends GeneratedMessage { | 694 class FieldOptions extends GeneratedMessage { |
695 static final BuilderInfo _i = new BuilderInfo('FieldOptions') | 695 static final BuilderInfo _i = new BuilderInfo('FieldOptions') |
696 ..e(1, 'ctype', PbFieldType.OE, FieldOptions_CType.STRING, FieldOptions_CTyp e.valueOf) | 696 ..e(1, 'ctype', PbFieldType.OE, FieldOptions_CType.STRING, FieldOptions_CTyp e.valueOf) |
697 ..a(2, 'packed', PbFieldType.OB) | 697 ..a(2, 'packed', PbFieldType.OB) |
698 ..a(3, 'deprecated', PbFieldType.OB) | |
698 ..a(5, 'lazy', PbFieldType.OB) | 699 ..a(5, 'lazy', PbFieldType.OB) |
699 ..a(3, 'deprecated', PbFieldType.OB) | |
700 ..a(9, 'experimentalMapKey', PbFieldType.OS) | 700 ..a(9, 'experimentalMapKey', PbFieldType.OS) |
701 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 701 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
702 ..hasExtensions = true | 702 ..hasExtensions = true |
703 ; | 703 ; |
704 | 704 |
705 FieldOptions() : super(); | 705 FieldOptions() : super(); |
706 FieldOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry. EMPTY]) : super.fromBuffer(i, r); | 706 FieldOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry. EMPTY]) : super.fromBuffer(i, r); |
707 FieldOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY ]) : super.fromJson(i, r); | 707 FieldOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY ]) : super.fromJson(i, r); |
708 FieldOptions clone() => new FieldOptions()..mergeFromMessage(this); | 708 FieldOptions clone() => new FieldOptions()..mergeFromMessage(this); |
709 BuilderInfo get info_ => _i; | 709 BuilderInfo get info_ => _i; |
710 static FieldOptions create() => new FieldOptions(); | 710 static FieldOptions create() => new FieldOptions(); |
711 static PbList<FieldOptions> createRepeated() => new PbList<FieldOptions>(); | 711 static PbList<FieldOptions> createRepeated() => new PbList<FieldOptions>(); |
712 static FieldOptions getDefault() { | 712 static FieldOptions getDefault() { |
713 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFieldOptions() ; | 713 if (_defaultInstance == null) _defaultInstance = new _ReadonlyFieldOptions() ; |
714 return _defaultInstance; | 714 return _defaultInstance; |
715 } | 715 } |
716 static FieldOptions _defaultInstance; | 716 static FieldOptions _defaultInstance; |
717 static void $checkItem(FieldOptions v) { | 717 static void $checkItem(FieldOptions v) { |
718 if (v is !FieldOptions) checkItemFailed(v, 'FieldOptions'); | 718 if (v is !FieldOptions) checkItemFailed(v, 'FieldOptions'); |
719 } | 719 } |
720 | 720 |
721 FieldOptions_CType get ctype => getField(1); | 721 FieldOptions_CType get ctype => $_get(0, 1, null) as FieldOptions_CType; |
722 void set ctype(FieldOptions_CType v) { setField(1, v); } | 722 void set ctype(FieldOptions_CType v) { setField(1, v); } |
723 bool hasCtype() => hasField(1); | 723 bool hasCtype() => $_has(0, 1); |
724 void clearCtype() => clearField(1); | 724 void clearCtype() => clearField(1); |
725 | 725 |
726 bool get packed => getField(2); | 726 bool get packed => $_get(1, 2, false) as bool; |
727 void set packed(bool v) { setField(2, v); } | 727 void set packed(bool v) { $_setBool(1, 2, v); } |
728 bool hasPacked() => hasField(2); | 728 bool hasPacked() => $_has(1, 2); |
729 void clearPacked() => clearField(2); | 729 void clearPacked() => clearField(2); |
730 | 730 |
731 bool get lazy => getField(5); | 731 bool get deprecated => $_get(2, 3, false) as bool; |
732 void set lazy(bool v) { setField(5, v); } | 732 void set deprecated(bool v) { $_setBool(2, 3, v); } |
733 bool hasLazy() => hasField(5); | 733 bool hasDeprecated() => $_has(2, 3); |
734 void clearDeprecated() => clearField(3); | |
735 | |
736 bool get lazy => $_get(3, 5, false) as bool; | |
737 void set lazy(bool v) { $_setBool(3, 5, v); } | |
738 bool hasLazy() => $_has(3, 5); | |
734 void clearLazy() => clearField(5); | 739 void clearLazy() => clearField(5); |
735 | 740 |
736 bool get deprecated => getField(3); | 741 String get experimentalMapKey => $_get(4, 9, '') as String; |
737 void set deprecated(bool v) { setField(3, v); } | 742 void set experimentalMapKey(String v) { $_setString(4, 9, v); } |
738 bool hasDeprecated() => hasField(3); | 743 bool hasExperimentalMapKey() => $_has(4, 9); |
739 void clearDeprecated() => clearField(3); | |
740 | |
741 String get experimentalMapKey => getField(9); | |
742 void set experimentalMapKey(String v) { setField(9, v); } | |
743 bool hasExperimentalMapKey() => hasField(9); | |
744 void clearExperimentalMapKey() => clearField(9); | 744 void clearExperimentalMapKey() => clearField(9); |
745 | 745 |
746 List<UninterpretedOption> get uninterpretedOption => getField(999); | 746 List<UninterpretedOption> get uninterpretedOption => $_get(5, 999, null) as Li st<UninterpretedOption>; |
747 } | 747 } |
748 | 748 |
749 class _ReadonlyFieldOptions extends FieldOptions with ReadonlyMessageMixin {} | 749 class _ReadonlyFieldOptions extends FieldOptions with ReadonlyMessageMixin {} |
750 | 750 |
751 class EnumOptions extends GeneratedMessage { | 751 class EnumOptions extends GeneratedMessage { |
752 static final BuilderInfo _i = new BuilderInfo('EnumOptions') | 752 static final BuilderInfo _i = new BuilderInfo('EnumOptions') |
753 ..a(2, 'allowAlias', PbFieldType.OB, true) | 753 ..a(2, 'allowAlias', PbFieldType.OB, true) |
754 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 754 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
755 ..hasExtensions = true | 755 ..hasExtensions = true |
756 ; | 756 ; |
757 | 757 |
758 EnumOptions() : super(); | 758 EnumOptions() : super(); |
759 EnumOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromBuffer(i, r); | 759 EnumOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromBuffer(i, r); |
760 EnumOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY] ) : super.fromJson(i, r); | 760 EnumOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY] ) : super.fromJson(i, r); |
761 EnumOptions clone() => new EnumOptions()..mergeFromMessage(this); | 761 EnumOptions clone() => new EnumOptions()..mergeFromMessage(this); |
762 BuilderInfo get info_ => _i; | 762 BuilderInfo get info_ => _i; |
763 static EnumOptions create() => new EnumOptions(); | 763 static EnumOptions create() => new EnumOptions(); |
764 static PbList<EnumOptions> createRepeated() => new PbList<EnumOptions>(); | 764 static PbList<EnumOptions> createRepeated() => new PbList<EnumOptions>(); |
765 static EnumOptions getDefault() { | 765 static EnumOptions getDefault() { |
766 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumOptions(); | 766 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumOptions(); |
767 return _defaultInstance; | 767 return _defaultInstance; |
768 } | 768 } |
769 static EnumOptions _defaultInstance; | 769 static EnumOptions _defaultInstance; |
770 static void $checkItem(EnumOptions v) { | 770 static void $checkItem(EnumOptions v) { |
771 if (v is !EnumOptions) checkItemFailed(v, 'EnumOptions'); | 771 if (v is !EnumOptions) checkItemFailed(v, 'EnumOptions'); |
772 } | 772 } |
773 | 773 |
774 bool get allowAlias => getField(2); | 774 bool get allowAlias => $_get(0, 2, true) as bool; |
775 void set allowAlias(bool v) { setField(2, v); } | 775 void set allowAlias(bool v) { $_setBool(0, 2, v); } |
776 bool hasAllowAlias() => hasField(2); | 776 bool hasAllowAlias() => $_has(0, 2); |
777 void clearAllowAlias() => clearField(2); | 777 void clearAllowAlias() => clearField(2); |
778 | 778 |
779 List<UninterpretedOption> get uninterpretedOption => getField(999); | 779 List<UninterpretedOption> get uninterpretedOption => $_get(1, 999, null) as Li st<UninterpretedOption>; |
780 } | 780 } |
781 | 781 |
782 class _ReadonlyEnumOptions extends EnumOptions with ReadonlyMessageMixin {} | 782 class _ReadonlyEnumOptions extends EnumOptions with ReadonlyMessageMixin {} |
783 | 783 |
784 class EnumValueOptions extends GeneratedMessage { | 784 class EnumValueOptions extends GeneratedMessage { |
785 static final BuilderInfo _i = new BuilderInfo('EnumValueOptions') | 785 static final BuilderInfo _i = new BuilderInfo('EnumValueOptions') |
786 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 786 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
787 ..hasExtensions = true | 787 ..hasExtensions = true |
788 ; | 788 ; |
789 | 789 |
790 EnumValueOptions() : super(); | 790 EnumValueOptions() : super(); |
791 EnumValueOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromBuffer(i, r); | 791 EnumValueOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis try.EMPTY]) : super.fromBuffer(i, r); |
792 EnumValueOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromJson(i, r); | 792 EnumValueOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E MPTY]) : super.fromJson(i, r); |
793 EnumValueOptions clone() => new EnumValueOptions()..mergeFromMessage(this); | 793 EnumValueOptions clone() => new EnumValueOptions()..mergeFromMessage(this); |
794 BuilderInfo get info_ => _i; | 794 BuilderInfo get info_ => _i; |
795 static EnumValueOptions create() => new EnumValueOptions(); | 795 static EnumValueOptions create() => new EnumValueOptions(); |
796 static PbList<EnumValueOptions> createRepeated() => new PbList<EnumValueOption s>(); | 796 static PbList<EnumValueOptions> createRepeated() => new PbList<EnumValueOption s>(); |
797 static EnumValueOptions getDefault() { | 797 static EnumValueOptions getDefault() { |
798 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumValueOptio ns(); | 798 if (_defaultInstance == null) _defaultInstance = new _ReadonlyEnumValueOptio ns(); |
799 return _defaultInstance; | 799 return _defaultInstance; |
800 } | 800 } |
801 static EnumValueOptions _defaultInstance; | 801 static EnumValueOptions _defaultInstance; |
802 static void $checkItem(EnumValueOptions v) { | 802 static void $checkItem(EnumValueOptions v) { |
803 if (v is !EnumValueOptions) checkItemFailed(v, 'EnumValueOptions'); | 803 if (v is !EnumValueOptions) checkItemFailed(v, 'EnumValueOptions'); |
804 } | 804 } |
805 | 805 |
806 List<UninterpretedOption> get uninterpretedOption => getField(999); | 806 List<UninterpretedOption> get uninterpretedOption => $_get(0, 999, null) as Li st<UninterpretedOption>; |
807 } | 807 } |
808 | 808 |
809 class _ReadonlyEnumValueOptions extends EnumValueOptions with ReadonlyMessageMix in {} | 809 class _ReadonlyEnumValueOptions extends EnumValueOptions with ReadonlyMessageMix in {} |
810 | 810 |
811 class ServiceOptions extends GeneratedMessage { | 811 class ServiceOptions extends GeneratedMessage { |
812 static final BuilderInfo _i = new BuilderInfo('ServiceOptions') | 812 static final BuilderInfo _i = new BuilderInfo('ServiceOptions') |
813 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 813 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
814 ..hasExtensions = true | 814 ..hasExtensions = true |
815 ; | 815 ; |
816 | 816 |
817 ServiceOptions() : super(); | 817 ServiceOptions() : super(); |
818 ServiceOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); | 818 ServiceOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); |
819 ServiceOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); | 819 ServiceOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); |
820 ServiceOptions clone() => new ServiceOptions()..mergeFromMessage(this); | 820 ServiceOptions clone() => new ServiceOptions()..mergeFromMessage(this); |
821 BuilderInfo get info_ => _i; | 821 BuilderInfo get info_ => _i; |
822 static ServiceOptions create() => new ServiceOptions(); | 822 static ServiceOptions create() => new ServiceOptions(); |
823 static PbList<ServiceOptions> createRepeated() => new PbList<ServiceOptions>() ; | 823 static PbList<ServiceOptions> createRepeated() => new PbList<ServiceOptions>() ; |
824 static ServiceOptions getDefault() { | 824 static ServiceOptions getDefault() { |
825 if (_defaultInstance == null) _defaultInstance = new _ReadonlyServiceOptions (); | 825 if (_defaultInstance == null) _defaultInstance = new _ReadonlyServiceOptions (); |
826 return _defaultInstance; | 826 return _defaultInstance; |
827 } | 827 } |
828 static ServiceOptions _defaultInstance; | 828 static ServiceOptions _defaultInstance; |
829 static void $checkItem(ServiceOptions v) { | 829 static void $checkItem(ServiceOptions v) { |
830 if (v is !ServiceOptions) checkItemFailed(v, 'ServiceOptions'); | 830 if (v is !ServiceOptions) checkItemFailed(v, 'ServiceOptions'); |
831 } | 831 } |
832 | 832 |
833 List<UninterpretedOption> get uninterpretedOption => getField(999); | 833 List<UninterpretedOption> get uninterpretedOption => $_get(0, 999, null) as Li st<UninterpretedOption>; |
834 } | 834 } |
835 | 835 |
836 class _ReadonlyServiceOptions extends ServiceOptions with ReadonlyMessageMixin { } | 836 class _ReadonlyServiceOptions extends ServiceOptions with ReadonlyMessageMixin { } |
837 | 837 |
838 class MethodOptions extends GeneratedMessage { | 838 class MethodOptions extends GeneratedMessage { |
839 static final BuilderInfo _i = new BuilderInfo('MethodOptions') | 839 static final BuilderInfo _i = new BuilderInfo('MethodOptions') |
840 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 840 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
841 ..hasExtensions = true | 841 ..hasExtensions = true |
842 ; | 842 ; |
843 | 843 |
844 MethodOptions() : super(); | 844 MethodOptions() : super(); |
845 MethodOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry .EMPTY]) : super.fromBuffer(i, r); | 845 MethodOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry .EMPTY]) : super.fromBuffer(i, r); |
846 MethodOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT Y]) : super.fromJson(i, r); | 846 MethodOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT Y]) : super.fromJson(i, r); |
847 MethodOptions clone() => new MethodOptions()..mergeFromMessage(this); | 847 MethodOptions clone() => new MethodOptions()..mergeFromMessage(this); |
848 BuilderInfo get info_ => _i; | 848 BuilderInfo get info_ => _i; |
849 static MethodOptions create() => new MethodOptions(); | 849 static MethodOptions create() => new MethodOptions(); |
850 static PbList<MethodOptions> createRepeated() => new PbList<MethodOptions>(); | 850 static PbList<MethodOptions> createRepeated() => new PbList<MethodOptions>(); |
851 static MethodOptions getDefault() { | 851 static MethodOptions getDefault() { |
852 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMethodOptions( ); | 852 if (_defaultInstance == null) _defaultInstance = new _ReadonlyMethodOptions( ); |
853 return _defaultInstance; | 853 return _defaultInstance; |
854 } | 854 } |
855 static MethodOptions _defaultInstance; | 855 static MethodOptions _defaultInstance; |
856 static void $checkItem(MethodOptions v) { | 856 static void $checkItem(MethodOptions v) { |
857 if (v is !MethodOptions) checkItemFailed(v, 'MethodOptions'); | 857 if (v is !MethodOptions) checkItemFailed(v, 'MethodOptions'); |
858 } | 858 } |
859 | 859 |
860 List<UninterpretedOption> get uninterpretedOption => getField(999); | 860 List<UninterpretedOption> get uninterpretedOption => $_get(0, 999, null) as Li st<UninterpretedOption>; |
861 } | 861 } |
862 | 862 |
863 class _ReadonlyMethodOptions extends MethodOptions with ReadonlyMessageMixin {} | 863 class _ReadonlyMethodOptions extends MethodOptions with ReadonlyMessageMixin {} |
864 | 864 |
865 class StreamOptions extends GeneratedMessage { | 865 class StreamOptions extends GeneratedMessage { |
866 static final BuilderInfo _i = new BuilderInfo('StreamOptions') | 866 static final BuilderInfo _i = new BuilderInfo('StreamOptions') |
867 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) | 867 ..pp(999, 'uninterpretedOption', PbFieldType.PM, UninterpretedOption.$checkI tem, UninterpretedOption.create) |
868 ..hasExtensions = true | 868 ..hasExtensions = true |
869 ; | 869 ; |
870 | 870 |
871 StreamOptions() : super(); | 871 StreamOptions() : super(); |
872 StreamOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry .EMPTY]) : super.fromBuffer(i, r); | 872 StreamOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry .EMPTY]) : super.fromBuffer(i, r); |
873 StreamOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT Y]) : super.fromJson(i, r); | 873 StreamOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT Y]) : super.fromJson(i, r); |
874 StreamOptions clone() => new StreamOptions()..mergeFromMessage(this); | 874 StreamOptions clone() => new StreamOptions()..mergeFromMessage(this); |
875 BuilderInfo get info_ => _i; | 875 BuilderInfo get info_ => _i; |
876 static StreamOptions create() => new StreamOptions(); | 876 static StreamOptions create() => new StreamOptions(); |
877 static PbList<StreamOptions> createRepeated() => new PbList<StreamOptions>(); | 877 static PbList<StreamOptions> createRepeated() => new PbList<StreamOptions>(); |
878 static StreamOptions getDefault() { | 878 static StreamOptions getDefault() { |
879 if (_defaultInstance == null) _defaultInstance = new _ReadonlyStreamOptions( ); | 879 if (_defaultInstance == null) _defaultInstance = new _ReadonlyStreamOptions( ); |
880 return _defaultInstance; | 880 return _defaultInstance; |
881 } | 881 } |
882 static StreamOptions _defaultInstance; | 882 static StreamOptions _defaultInstance; |
883 static void $checkItem(StreamOptions v) { | 883 static void $checkItem(StreamOptions v) { |
884 if (v is !StreamOptions) checkItemFailed(v, 'StreamOptions'); | 884 if (v is !StreamOptions) checkItemFailed(v, 'StreamOptions'); |
885 } | 885 } |
886 | 886 |
887 List<UninterpretedOption> get uninterpretedOption => getField(999); | 887 List<UninterpretedOption> get uninterpretedOption => $_get(0, 999, null) as Li st<UninterpretedOption>; |
888 } | 888 } |
889 | 889 |
890 class _ReadonlyStreamOptions extends StreamOptions with ReadonlyMessageMixin {} | 890 class _ReadonlyStreamOptions extends StreamOptions with ReadonlyMessageMixin {} |
891 | 891 |
892 class UninterpretedOption_NamePart extends GeneratedMessage { | 892 class UninterpretedOption_NamePart extends GeneratedMessage { |
893 static final BuilderInfo _i = new BuilderInfo('UninterpretedOption_NamePart') | 893 static final BuilderInfo _i = new BuilderInfo('UninterpretedOption_NamePart') |
894 ..a(1, 'namePart', PbFieldType.QS) | 894 ..a(1, 'namePart', PbFieldType.QS) |
895 ..a(2, 'isExtension', PbFieldType.QB) | 895 ..a(2, 'isExtension', PbFieldType.QB) |
896 ; | 896 ; |
897 | 897 |
898 UninterpretedOption_NamePart() : super(); | 898 UninterpretedOption_NamePart() : super(); |
899 UninterpretedOption_NamePart.fromBuffer(List<int> i, [ExtensionRegistry r = Ex tensionRegistry.EMPTY]) : super.fromBuffer(i, r); | 899 UninterpretedOption_NamePart.fromBuffer(List<int> i, [ExtensionRegistry r = Ex tensionRegistry.EMPTY]) : super.fromBuffer(i, r); |
900 UninterpretedOption_NamePart.fromJson(String i, [ExtensionRegistry r = Extensi onRegistry.EMPTY]) : super.fromJson(i, r); | 900 UninterpretedOption_NamePart.fromJson(String i, [ExtensionRegistry r = Extensi onRegistry.EMPTY]) : super.fromJson(i, r); |
901 UninterpretedOption_NamePart clone() => new UninterpretedOption_NamePart()..me rgeFromMessage(this); | 901 UninterpretedOption_NamePart clone() => new UninterpretedOption_NamePart()..me rgeFromMessage(this); |
902 BuilderInfo get info_ => _i; | 902 BuilderInfo get info_ => _i; |
903 static UninterpretedOption_NamePart create() => new UninterpretedOption_NamePa rt(); | 903 static UninterpretedOption_NamePart create() => new UninterpretedOption_NamePa rt(); |
904 static PbList<UninterpretedOption_NamePart> createRepeated() => new PbList<Uni nterpretedOption_NamePart>(); | 904 static PbList<UninterpretedOption_NamePart> createRepeated() => new PbList<Uni nterpretedOption_NamePart>(); |
905 static UninterpretedOption_NamePart getDefault() { | 905 static UninterpretedOption_NamePart getDefault() { |
906 if (_defaultInstance == null) _defaultInstance = new _ReadonlyUninterpretedO ption_NamePart(); | 906 if (_defaultInstance == null) _defaultInstance = new _ReadonlyUninterpretedO ption_NamePart(); |
907 return _defaultInstance; | 907 return _defaultInstance; |
908 } | 908 } |
909 static UninterpretedOption_NamePart _defaultInstance; | 909 static UninterpretedOption_NamePart _defaultInstance; |
910 static void $checkItem(UninterpretedOption_NamePart v) { | 910 static void $checkItem(UninterpretedOption_NamePart v) { |
911 if (v is !UninterpretedOption_NamePart) checkItemFailed(v, 'UninterpretedOpt ion_NamePart'); | 911 if (v is !UninterpretedOption_NamePart) checkItemFailed(v, 'UninterpretedOpt ion_NamePart'); |
912 } | 912 } |
913 | 913 |
914 String get namePart => getField(1); | 914 String get namePart => $_get(0, 1, '') as String; |
915 void set namePart(String v) { setField(1, v); } | 915 void set namePart(String v) { $_setString(0, 1, v); } |
916 bool hasNamePart() => hasField(1); | 916 bool hasNamePart() => $_has(0, 1); |
917 void clearNamePart() => clearField(1); | 917 void clearNamePart() => clearField(1); |
918 | 918 |
919 bool get isExtension => getField(2); | 919 bool get isExtension => $_get(1, 2, false) as bool; |
920 void set isExtension(bool v) { setField(2, v); } | 920 void set isExtension(bool v) { $_setBool(1, 2, v); } |
921 bool hasIsExtension() => hasField(2); | 921 bool hasIsExtension() => $_has(1, 2); |
922 void clearIsExtension() => clearField(2); | 922 void clearIsExtension() => clearField(2); |
923 } | 923 } |
924 | 924 |
925 class _ReadonlyUninterpretedOption_NamePart extends UninterpretedOption_NamePart with ReadonlyMessageMixin {} | 925 class _ReadonlyUninterpretedOption_NamePart extends UninterpretedOption_NamePart with ReadonlyMessageMixin {} |
926 | 926 |
927 class UninterpretedOption extends GeneratedMessage { | 927 class UninterpretedOption extends GeneratedMessage { |
928 static final BuilderInfo _i = new BuilderInfo('UninterpretedOption') | 928 static final BuilderInfo _i = new BuilderInfo('UninterpretedOption') |
929 ..pp(2, 'name', PbFieldType.PM, UninterpretedOption_NamePart.$checkItem, Uni nterpretedOption_NamePart.create) | 929 ..pp(2, 'name', PbFieldType.PM, UninterpretedOption_NamePart.$checkItem, Uni nterpretedOption_NamePart.create) |
930 ..a(3, 'identifierValue', PbFieldType.OS) | 930 ..a(3, 'identifierValue', PbFieldType.OS) |
931 ..a(4, 'positiveIntValue', PbFieldType.OU6, Int64.ZERO) | 931 ..a(4, 'positiveIntValue', PbFieldType.OU6, Int64.ZERO) |
(...skipping 12 matching lines...) Expand all Loading... | |
944 static PbList<UninterpretedOption> createRepeated() => new PbList<Uninterprete dOption>(); | 944 static PbList<UninterpretedOption> createRepeated() => new PbList<Uninterprete dOption>(); |
945 static UninterpretedOption getDefault() { | 945 static UninterpretedOption getDefault() { |
946 if (_defaultInstance == null) _defaultInstance = new _ReadonlyUninterpretedO ption(); | 946 if (_defaultInstance == null) _defaultInstance = new _ReadonlyUninterpretedO ption(); |
947 return _defaultInstance; | 947 return _defaultInstance; |
948 } | 948 } |
949 static UninterpretedOption _defaultInstance; | 949 static UninterpretedOption _defaultInstance; |
950 static void $checkItem(UninterpretedOption v) { | 950 static void $checkItem(UninterpretedOption v) { |
951 if (v is !UninterpretedOption) checkItemFailed(v, 'UninterpretedOption'); | 951 if (v is !UninterpretedOption) checkItemFailed(v, 'UninterpretedOption'); |
952 } | 952 } |
953 | 953 |
954 List<UninterpretedOption_NamePart> get name => getField(2); | 954 List<UninterpretedOption_NamePart> get name => $_get(0, 2, null) as List<Unint erpretedOption_NamePart>; |
955 | 955 |
956 String get identifierValue => getField(3); | 956 String get identifierValue => $_get(1, 3, '') as String; |
957 void set identifierValue(String v) { setField(3, v); } | 957 void set identifierValue(String v) { $_setString(1, 3, v); } |
958 bool hasIdentifierValue() => hasField(3); | 958 bool hasIdentifierValue() => $_has(1, 3); |
959 void clearIdentifierValue() => clearField(3); | 959 void clearIdentifierValue() => clearField(3); |
960 | 960 |
961 Int64 get positiveIntValue => getField(4); | 961 Int64 get positiveIntValue => $_get(2, 4, null) as Int64; |
962 void set positiveIntValue(Int64 v) { setField(4, v); } | 962 void set positiveIntValue(Int64 v) { $_setInt64(2, 4, v); } |
963 bool hasPositiveIntValue() => hasField(4); | 963 bool hasPositiveIntValue() => $_has(2, 4); |
964 void clearPositiveIntValue() => clearField(4); | 964 void clearPositiveIntValue() => clearField(4); |
965 | 965 |
966 Int64 get negativeIntValue => getField(5); | 966 Int64 get negativeIntValue => $_get(3, 5, null) as Int64; |
967 void set negativeIntValue(Int64 v) { setField(5, v); } | 967 void set negativeIntValue(Int64 v) { $_setInt64(3, 5, v); } |
968 bool hasNegativeIntValue() => hasField(5); | 968 bool hasNegativeIntValue() => $_has(3, 5); |
969 void clearNegativeIntValue() => clearField(5); | 969 void clearNegativeIntValue() => clearField(5); |
970 | 970 |
971 double get doubleValue => getField(6); | 971 double get doubleValue => $_get(4, 6, null) as double; |
972 void set doubleValue(double v) { setField(6, v); } | 972 void set doubleValue(double v) { $_setDouble(4, 6, v); } |
973 bool hasDoubleValue() => hasField(6); | 973 bool hasDoubleValue() => $_has(4, 6); |
974 void clearDoubleValue() => clearField(6); | 974 void clearDoubleValue() => clearField(6); |
975 | 975 |
976 List<int> get stringValue => getField(7); | 976 List<int> get stringValue => $_get(5, 7, null) as List<int>; |
977 void set stringValue(List<int> v) { setField(7, v); } | 977 void set stringValue(List<int> v) { $_setBytes(5, 7, v); } |
978 bool hasStringValue() => hasField(7); | 978 bool hasStringValue() => $_has(5, 7); |
979 void clearStringValue() => clearField(7); | 979 void clearStringValue() => clearField(7); |
980 | 980 |
981 String get aggregateValue => getField(8); | 981 String get aggregateValue => $_get(6, 8, '') as String; |
982 void set aggregateValue(String v) { setField(8, v); } | 982 void set aggregateValue(String v) { $_setString(6, 8, v); } |
983 bool hasAggregateValue() => hasField(8); | 983 bool hasAggregateValue() => $_has(6, 8); |
984 void clearAggregateValue() => clearField(8); | 984 void clearAggregateValue() => clearField(8); |
985 } | 985 } |
986 | 986 |
987 class _ReadonlyUninterpretedOption extends UninterpretedOption with ReadonlyMess ageMixin {} | 987 class _ReadonlyUninterpretedOption extends UninterpretedOption with ReadonlyMess ageMixin {} |
988 | 988 |
989 class SourceCodeInfo_Location extends GeneratedMessage { | 989 class SourceCodeInfo_Location extends GeneratedMessage { |
990 static final BuilderInfo _i = new BuilderInfo('SourceCodeInfo_Location') | 990 static final BuilderInfo _i = new BuilderInfo('SourceCodeInfo_Location') |
991 ..p(1, 'path', PbFieldType.K3) | 991 ..p(1, 'path', PbFieldType.K3) |
992 ..p(2, 'span', PbFieldType.K3) | 992 ..p(2, 'span', PbFieldType.K3) |
993 ..hasRequiredFields = false | 993 ..hasRequiredFields = false |
994 ; | 994 ; |
995 | 995 |
996 SourceCodeInfo_Location() : super(); | 996 SourceCodeInfo_Location() : super(); |
997 SourceCodeInfo_Location.fromBuffer(List<int> i, [ExtensionRegistry r = Extensi onRegistry.EMPTY]) : super.fromBuffer(i, r); | 997 SourceCodeInfo_Location.fromBuffer(List<int> i, [ExtensionRegistry r = Extensi onRegistry.EMPTY]) : super.fromBuffer(i, r); |
998 SourceCodeInfo_Location.fromJson(String i, [ExtensionRegistry r = ExtensionReg istry.EMPTY]) : super.fromJson(i, r); | 998 SourceCodeInfo_Location.fromJson(String i, [ExtensionRegistry r = ExtensionReg istry.EMPTY]) : super.fromJson(i, r); |
999 SourceCodeInfo_Location clone() => new SourceCodeInfo_Location()..mergeFromMes sage(this); | 999 SourceCodeInfo_Location clone() => new SourceCodeInfo_Location()..mergeFromMes sage(this); |
1000 BuilderInfo get info_ => _i; | 1000 BuilderInfo get info_ => _i; |
1001 static SourceCodeInfo_Location create() => new SourceCodeInfo_Location(); | 1001 static SourceCodeInfo_Location create() => new SourceCodeInfo_Location(); |
1002 static PbList<SourceCodeInfo_Location> createRepeated() => new PbList<SourceCo deInfo_Location>(); | 1002 static PbList<SourceCodeInfo_Location> createRepeated() => new PbList<SourceCo deInfo_Location>(); |
1003 static SourceCodeInfo_Location getDefault() { | 1003 static SourceCodeInfo_Location getDefault() { |
1004 if (_defaultInstance == null) _defaultInstance = new _ReadonlySourceCodeInfo _Location(); | 1004 if (_defaultInstance == null) _defaultInstance = new _ReadonlySourceCodeInfo _Location(); |
1005 return _defaultInstance; | 1005 return _defaultInstance; |
1006 } | 1006 } |
1007 static SourceCodeInfo_Location _defaultInstance; | 1007 static SourceCodeInfo_Location _defaultInstance; |
1008 static void $checkItem(SourceCodeInfo_Location v) { | 1008 static void $checkItem(SourceCodeInfo_Location v) { |
1009 if (v is !SourceCodeInfo_Location) checkItemFailed(v, 'SourceCodeInfo_Locati on'); | 1009 if (v is !SourceCodeInfo_Location) checkItemFailed(v, 'SourceCodeInfo_Locati on'); |
1010 } | 1010 } |
1011 | 1011 |
1012 List<int> get path => getField(1); | 1012 List<int> get path => $_get(0, 1, null) as List<int>; |
1013 | 1013 |
1014 List<int> get span => getField(2); | 1014 List<int> get span => $_get(1, 2, null) as List<int>; |
1015 } | 1015 } |
1016 | 1016 |
1017 class _ReadonlySourceCodeInfo_Location extends SourceCodeInfo_Location with Read onlyMessageMixin {} | 1017 class _ReadonlySourceCodeInfo_Location extends SourceCodeInfo_Location with Read onlyMessageMixin {} |
1018 | 1018 |
1019 class SourceCodeInfo extends GeneratedMessage { | 1019 class SourceCodeInfo extends GeneratedMessage { |
1020 static final BuilderInfo _i = new BuilderInfo('SourceCodeInfo') | 1020 static final BuilderInfo _i = new BuilderInfo('SourceCodeInfo') |
1021 ..pp(1, 'location', PbFieldType.PM, SourceCodeInfo_Location.$checkItem, Sour ceCodeInfo_Location.create) | 1021 ..pp(1, 'location', PbFieldType.PM, SourceCodeInfo_Location.$checkItem, Sour ceCodeInfo_Location.create) |
1022 ..hasRequiredFields = false | 1022 ..hasRequiredFields = false |
1023 ; | 1023 ; |
1024 | 1024 |
1025 SourceCodeInfo() : super(); | 1025 SourceCodeInfo() : super(); |
1026 SourceCodeInfo.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); | 1026 SourceCodeInfo.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr y.EMPTY]) : super.fromBuffer(i, r); |
1027 SourceCodeInfo.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); | 1027 SourceCodeInfo.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP TY]) : super.fromJson(i, r); |
1028 SourceCodeInfo clone() => new SourceCodeInfo()..mergeFromMessage(this); | 1028 SourceCodeInfo clone() => new SourceCodeInfo()..mergeFromMessage(this); |
1029 BuilderInfo get info_ => _i; | 1029 BuilderInfo get info_ => _i; |
1030 static SourceCodeInfo create() => new SourceCodeInfo(); | 1030 static SourceCodeInfo create() => new SourceCodeInfo(); |
1031 static PbList<SourceCodeInfo> createRepeated() => new PbList<SourceCodeInfo>() ; | 1031 static PbList<SourceCodeInfo> createRepeated() => new PbList<SourceCodeInfo>() ; |
1032 static SourceCodeInfo getDefault() { | 1032 static SourceCodeInfo getDefault() { |
1033 if (_defaultInstance == null) _defaultInstance = new _ReadonlySourceCodeInfo (); | 1033 if (_defaultInstance == null) _defaultInstance = new _ReadonlySourceCodeInfo (); |
1034 return _defaultInstance; | 1034 return _defaultInstance; |
1035 } | 1035 } |
1036 static SourceCodeInfo _defaultInstance; | 1036 static SourceCodeInfo _defaultInstance; |
1037 static void $checkItem(SourceCodeInfo v) { | 1037 static void $checkItem(SourceCodeInfo v) { |
1038 if (v is !SourceCodeInfo) checkItemFailed(v, 'SourceCodeInfo'); | 1038 if (v is !SourceCodeInfo) checkItemFailed(v, 'SourceCodeInfo'); |
1039 } | 1039 } |
1040 | 1040 |
1041 List<SourceCodeInfo_Location> get location => getField(1); | 1041 List<SourceCodeInfo_Location> get location => $_get(0, 1, null) as List<Source CodeInfo_Location>; |
1042 } | 1042 } |
1043 | 1043 |
1044 class _ReadonlySourceCodeInfo extends SourceCodeInfo with ReadonlyMessageMixin { } | 1044 class _ReadonlySourceCodeInfo extends SourceCodeInfo with ReadonlyMessageMixin { } |
1045 | 1045 |
1046 const FileDescriptorSet$json = const { | 1046 const FileDescriptorSet$json = const { |
1047 '1': 'FileDescriptorSet', | 1047 '1': 'FileDescriptorSet', |
1048 '2': const [ | 1048 '2': const [ |
1049 const {'1': 'file', '3': 1, '4': 3, '5': 11, '6': '.proto2.FileDescriptorPro to'}, | 1049 const {'1': 'file', '3': 1, '4': 3, '5': 11, '6': '.proto2.FileDescriptorPro to'}, |
1050 ], | 1050 ], |
1051 }; | 1051 }; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1094 '2': const [ | 1094 '2': const [ |
1095 const {'1': 'name', '3': 1, '4': 1, '5': 9}, | 1095 const {'1': 'name', '3': 1, '4': 1, '5': 9}, |
1096 const {'1': 'number', '3': 3, '4': 1, '5': 5}, | 1096 const {'1': 'number', '3': 3, '4': 1, '5': 5}, |
1097 const {'1': 'label', '3': 4, '4': 1, '5': 14, '6': '.proto2.FieldDescriptorP roto.Label'}, | 1097 const {'1': 'label', '3': 4, '4': 1, '5': 14, '6': '.proto2.FieldDescriptorP roto.Label'}, |
1098 const {'1': 'type', '3': 5, '4': 1, '5': 14, '6': '.proto2.FieldDescriptorPr oto.Type'}, | 1098 const {'1': 'type', '3': 5, '4': 1, '5': 14, '6': '.proto2.FieldDescriptorPr oto.Type'}, |
1099 const {'1': 'type_name', '3': 6, '4': 1, '5': 9}, | 1099 const {'1': 'type_name', '3': 6, '4': 1, '5': 9}, |
1100 const {'1': 'extendee', '3': 2, '4': 1, '5': 9}, | 1100 const {'1': 'extendee', '3': 2, '4': 1, '5': 9}, |
1101 const {'1': 'default_value', '3': 7, '4': 1, '5': 9}, | 1101 const {'1': 'default_value', '3': 7, '4': 1, '5': 9}, |
1102 const {'1': 'options', '3': 8, '4': 1, '5': 11, '6': '.proto2.FieldOptions'} , | 1102 const {'1': 'options', '3': 8, '4': 1, '5': 11, '6': '.proto2.FieldOptions'} , |
1103 ], | 1103 ], |
1104 '4': const [ | 1104 '4': const [FieldDescriptorProto_Type$json, FieldDescriptorProto_Label$json], |
1105 const { | 1105 }; |
1106 '1': 'Type', | 1106 |
1107 '2': const [ | 1107 const FieldDescriptorProto_Type$json = const { |
1108 const {'1': 'TYPE_DOUBLE', '2': 1}, | 1108 '1': 'Type', |
1109 const {'1': 'TYPE_FLOAT', '2': 2}, | 1109 '2': const [ |
1110 const {'1': 'TYPE_INT64', '2': 3}, | 1110 const {'1': 'TYPE_DOUBLE', '2': 1}, |
1111 const {'1': 'TYPE_UINT64', '2': 4}, | 1111 const {'1': 'TYPE_FLOAT', '2': 2}, |
1112 const {'1': 'TYPE_INT32', '2': 5}, | 1112 const {'1': 'TYPE_INT64', '2': 3}, |
1113 const {'1': 'TYPE_FIXED64', '2': 6}, | 1113 const {'1': 'TYPE_UINT64', '2': 4}, |
1114 const {'1': 'TYPE_FIXED32', '2': 7}, | 1114 const {'1': 'TYPE_INT32', '2': 5}, |
1115 const {'1': 'TYPE_BOOL', '2': 8}, | 1115 const {'1': 'TYPE_FIXED64', '2': 6}, |
1116 const {'1': 'TYPE_STRING', '2': 9}, | 1116 const {'1': 'TYPE_FIXED32', '2': 7}, |
1117 const {'1': 'TYPE_GROUP', '2': 10}, | 1117 const {'1': 'TYPE_BOOL', '2': 8}, |
1118 const {'1': 'TYPE_MESSAGE', '2': 11}, | 1118 const {'1': 'TYPE_STRING', '2': 9}, |
1119 const {'1': 'TYPE_BYTES', '2': 12}, | 1119 const {'1': 'TYPE_GROUP', '2': 10}, |
1120 const {'1': 'TYPE_UINT32', '2': 13}, | 1120 const {'1': 'TYPE_MESSAGE', '2': 11}, |
1121 const {'1': 'TYPE_ENUM', '2': 14}, | 1121 const {'1': 'TYPE_BYTES', '2': 12}, |
1122 const {'1': 'TYPE_SFIXED32', '2': 15}, | 1122 const {'1': 'TYPE_UINT32', '2': 13}, |
1123 const {'1': 'TYPE_SFIXED64', '2': 16}, | 1123 const {'1': 'TYPE_ENUM', '2': 14}, |
1124 const {'1': 'TYPE_SINT32', '2': 17}, | 1124 const {'1': 'TYPE_SFIXED32', '2': 15}, |
1125 const {'1': 'TYPE_SINT64', '2': 18}, | 1125 const {'1': 'TYPE_SFIXED64', '2': 16}, |
1126 ], | 1126 const {'1': 'TYPE_SINT32', '2': 17}, |
1127 }, | 1127 const {'1': 'TYPE_SINT64', '2': 18}, |
1128 const { | |
1129 '1': 'Label', | |
1130 '2': const [ | |
1131 const {'1': 'LABEL_OPTIONAL', '2': 1}, | |
1132 const {'1': 'LABEL_REQUIRED', '2': 2}, | |
1133 const {'1': 'LABEL_REPEATED', '2': 3}, | |
1134 ], | |
1135 }, | |
1136 ], | 1128 ], |
1137 }; | 1129 }; |
1138 | 1130 |
1131 const FieldDescriptorProto_Label$json = const { | |
1132 '1': 'Label', | |
1133 '2': const [ | |
1134 const {'1': 'LABEL_OPTIONAL', '2': 1}, | |
1135 const {'1': 'LABEL_REQUIRED', '2': 2}, | |
1136 const {'1': 'LABEL_REPEATED', '2': 3}, | |
1137 ], | |
1138 }; | |
1139 | |
1139 const EnumDescriptorProto$json = const { | 1140 const EnumDescriptorProto$json = const { |
1140 '1': 'EnumDescriptorProto', | 1141 '1': 'EnumDescriptorProto', |
1141 '2': const [ | 1142 '2': const [ |
1142 const {'1': 'name', '3': 1, '4': 1, '5': 9}, | 1143 const {'1': 'name', '3': 1, '4': 1, '5': 9}, |
1143 const {'1': 'value', '3': 2, '4': 3, '5': 11, '6': '.proto2.EnumValueDescrip torProto'}, | 1144 const {'1': 'value', '3': 2, '4': 3, '5': 11, '6': '.proto2.EnumValueDescrip torProto'}, |
1144 const {'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.proto2.EnumOptions'}, | 1145 const {'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.proto2.EnumOptions'}, |
1145 ], | 1146 ], |
1146 }; | 1147 }; |
1147 | 1148 |
1148 const EnumValueDescriptorProto$json = const { | 1149 const EnumValueDescriptorProto$json = const { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1190 const {'1': 'java_package', '3': 1, '4': 1, '5': 9}, | 1191 const {'1': 'java_package', '3': 1, '4': 1, '5': 9}, |
1191 const {'1': 'java_outer_classname', '3': 8, '4': 1, '5': 9}, | 1192 const {'1': 'java_outer_classname', '3': 8, '4': 1, '5': 9}, |
1192 const {'1': 'java_multiple_files', '3': 10, '4': 1, '5': 8, '7': 'false'}, | 1193 const {'1': 'java_multiple_files', '3': 10, '4': 1, '5': 8, '7': 'false'}, |
1193 const {'1': 'java_generate_equals_and_hash', '3': 20, '4': 1, '5': 8, '7': ' false'}, | 1194 const {'1': 'java_generate_equals_and_hash', '3': 20, '4': 1, '5': 8, '7': ' false'}, |
1194 const {'1': 'optimize_for', '3': 9, '4': 1, '5': 14, '6': '.proto2.FileOptio ns.OptimizeMode', '7': 'SPEED'}, | 1195 const {'1': 'optimize_for', '3': 9, '4': 1, '5': 14, '6': '.proto2.FileOptio ns.OptimizeMode', '7': 'SPEED'}, |
1195 const {'1': 'cc_generic_services', '3': 16, '4': 1, '5': 8, '7': 'false'}, | 1196 const {'1': 'cc_generic_services', '3': 16, '4': 1, '5': 8, '7': 'false'}, |
1196 const {'1': 'java_generic_services', '3': 17, '4': 1, '5': 8, '7': 'false'}, | 1197 const {'1': 'java_generic_services', '3': 17, '4': 1, '5': 8, '7': 'false'}, |
1197 const {'1': 'py_generic_services', '3': 18, '4': 1, '5': 8, '7': 'false'}, | 1198 const {'1': 'py_generic_services', '3': 18, '4': 1, '5': 8, '7': 'false'}, |
1198 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, | 1199 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, |
1199 ], | 1200 ], |
1200 '4': const [ | 1201 '4': const [FileOptions_OptimizeMode$json], |
1201 const { | |
1202 '1': 'OptimizeMode', | |
1203 '2': const [ | |
1204 const {'1': 'SPEED', '2': 1}, | |
1205 const {'1': 'CODE_SIZE', '2': 2}, | |
1206 const {'1': 'LITE_RUNTIME', '2': 3}, | |
1207 ], | |
1208 }, | |
1209 ], | |
1210 '5': const [ | 1202 '5': const [ |
1211 const {'1': 1000, '2': 536870912}, | 1203 const {'1': 1000, '2': 536870912}, |
1212 ], | 1204 ], |
1213 }; | 1205 }; |
1214 | 1206 |
1207 const FileOptions_OptimizeMode$json = const { | |
1208 '1': 'OptimizeMode', | |
1209 '2': const [ | |
1210 const {'1': 'SPEED', '2': 1}, | |
1211 const {'1': 'CODE_SIZE', '2': 2}, | |
1212 const {'1': 'LITE_RUNTIME', '2': 3}, | |
1213 ], | |
1214 }; | |
1215 | |
1215 const MessageOptions$json = const { | 1216 const MessageOptions$json = const { |
1216 '1': 'MessageOptions', | 1217 '1': 'MessageOptions', |
1217 '2': const [ | 1218 '2': const [ |
1218 const {'1': 'message_set_wire_format', '3': 1, '4': 1, '5': 8, '7': 'false'} , | 1219 const {'1': 'message_set_wire_format', '3': 1, '4': 1, '5': 8, '7': 'false'} , |
1219 const {'1': 'no_standard_descriptor_accessor', '3': 2, '4': 1, '5': 8, '7': 'false'}, | 1220 const {'1': 'no_standard_descriptor_accessor', '3': 2, '4': 1, '5': 8, '7': 'false'}, |
1220 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, | 1221 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, |
1221 ], | 1222 ], |
1222 '5': const [ | 1223 '5': const [ |
1223 const {'1': 1000, '2': 536870912}, | 1224 const {'1': 1000, '2': 536870912}, |
1224 ], | 1225 ], |
1225 }; | 1226 }; |
1226 | 1227 |
1227 const FieldOptions$json = const { | 1228 const FieldOptions$json = const { |
1228 '1': 'FieldOptions', | 1229 '1': 'FieldOptions', |
1229 '2': const [ | 1230 '2': const [ |
1230 const {'1': 'ctype', '3': 1, '4': 1, '5': 14, '6': '.proto2.FieldOptions.CTy pe', '7': 'STRING'}, | 1231 const {'1': 'ctype', '3': 1, '4': 1, '5': 14, '6': '.proto2.FieldOptions.CTy pe', '7': 'STRING'}, |
1231 const {'1': 'packed', '3': 2, '4': 1, '5': 8}, | 1232 const {'1': 'packed', '3': 2, '4': 1, '5': 8}, |
1232 const {'1': 'lazy', '3': 5, '4': 1, '5': 8, '7': 'false'}, | 1233 const {'1': 'lazy', '3': 5, '4': 1, '5': 8, '7': 'false'}, |
1233 const {'1': 'deprecated', '3': 3, '4': 1, '5': 8, '7': 'false'}, | 1234 const {'1': 'deprecated', '3': 3, '4': 1, '5': 8, '7': 'false'}, |
1234 const {'1': 'experimental_map_key', '3': 9, '4': 1, '5': 9}, | 1235 const {'1': 'experimental_map_key', '3': 9, '4': 1, '5': 9}, |
1235 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, | 1236 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, |
1236 ], | 1237 ], |
1237 '4': const [ | 1238 '4': const [FieldOptions_CType$json], |
1238 const { | |
1239 '1': 'CType', | |
1240 '2': const [ | |
1241 const {'1': 'STRING', '2': 0}, | |
1242 ], | |
1243 }, | |
1244 ], | |
1245 '5': const [ | 1239 '5': const [ |
1246 const {'1': 1000, '2': 536870912}, | 1240 const {'1': 1000, '2': 536870912}, |
1247 ], | 1241 ], |
1248 }; | 1242 }; |
1249 | 1243 |
1244 const FieldOptions_CType$json = const { | |
1245 '1': 'CType', | |
1246 '2': const [ | |
1247 const {'1': 'STRING', '2': 0}, | |
1248 ], | |
1249 }; | |
1250 | |
1250 const EnumOptions$json = const { | 1251 const EnumOptions$json = const { |
1251 '1': 'EnumOptions', | 1252 '1': 'EnumOptions', |
1252 '2': const [ | 1253 '2': const [ |
1253 const {'1': 'allow_alias', '3': 2, '4': 1, '5': 8, '7': 'true'}, | 1254 const {'1': 'allow_alias', '3': 2, '4': 1, '5': 8, '7': 'true'}, |
1254 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, | 1255 const {'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.proto2 .UninterpretedOption'}, |
1255 ], | 1256 ], |
1256 '5': const [ | 1257 '5': const [ |
1257 const {'1': 1000, '2': 536870912}, | 1258 const {'1': 1000, '2': 536870912}, |
1258 ], | 1259 ], |
1259 }; | 1260 }; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1341 const { | 1342 const { |
1342 '1': 'span', | 1343 '1': 'span', |
1343 '3': 2, | 1344 '3': 2, |
1344 '4': 3, | 1345 '4': 3, |
1345 '5': 5, | 1346 '5': 5, |
1346 '8': const {'2': true}, | 1347 '8': const {'2': true}, |
1347 }, | 1348 }, |
1348 ], | 1349 ], |
1349 }; | 1350 }; |
1350 | 1351 |
OLD | NEW |