| OLD | NEW |
| 1 /// | 1 /// |
| 2 // Generated code. Do not modify. | 2 // Generated code. Do not modify. |
| 3 /// | 3 /// |
| 4 library proto2.compiler_plugin; | 4 library proto2.compiler_plugin; |
| 5 | 5 |
| 6 import 'package:protobuf/protobuf.dart'; | 6 import 'package:protobuf/protobuf.dart'; |
| 7 |
| 7 import 'descriptor.pb.dart' as proto2; | 8 import 'descriptor.pb.dart' as proto2; |
| 8 | 9 |
| 9 class CodeGeneratorRequest extends GeneratedMessage { | 10 class CodeGeneratorRequest extends GeneratedMessage { |
| 10 static final BuilderInfo _i = new BuilderInfo('CodeGeneratorRequest') | 11 static final BuilderInfo _i = new BuilderInfo('CodeGeneratorRequest') |
| 11 ..p/*<String>*/(1, 'fileToGenerate', PbFieldType.PS) | 12 ..p/*<String>*/(1, 'fileToGenerate', PbFieldType.PS) |
| 12 ..a/*<String>*/(2, 'parameter', PbFieldType.OS) | 13 ..a/*<String>*/(2, 'parameter', PbFieldType.OS) |
| 13 ..pp/*<proto2.FileDescriptorProto>*/(15, 'protoFile', PbFieldType.PM, proto2
.FileDescriptorProto.$checkItem, proto2.FileDescriptorProto.create) | 14 ..pp/*<proto2.FileDescriptorProto>*/(15, 'protoFile', PbFieldType.PM, proto2
.FileDescriptorProto.$checkItem, proto2.FileDescriptorProto.create) |
| 14 ; | 15 ; |
| 15 | 16 |
| 16 CodeGeneratorRequest() : super(); | 17 CodeGeneratorRequest() : super(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 String get error => $_get(0, 1, ''); | 110 String get error => $_get(0, 1, ''); |
| 110 void set error(String v) { $_setString(0, 1, v); } | 111 void set error(String v) { $_setString(0, 1, v); } |
| 111 bool hasError() => $_has(0, 1); | 112 bool hasError() => $_has(0, 1); |
| 112 void clearError() => clearField(1); | 113 void clearError() => clearField(1); |
| 113 | 114 |
| 114 List<CodeGeneratorResponse_File> get file => $_get(1, 15, null); | 115 List<CodeGeneratorResponse_File> get file => $_get(1, 15, null); |
| 115 } | 116 } |
| 116 | 117 |
| 117 class _ReadonlyCodeGeneratorResponse extends CodeGeneratorResponse with Readonly
MessageMixin {} | 118 class _ReadonlyCodeGeneratorResponse extends CodeGeneratorResponse with Readonly
MessageMixin {} |
| 118 | 119 |
| 119 const CodeGeneratorRequest$json = const { | |
| 120 '1': 'CodeGeneratorRequest', | |
| 121 '2': const [ | |
| 122 const {'1': 'file_to_generate', '3': 1, '4': 3, '5': 9}, | |
| 123 const {'1': 'parameter', '3': 2, '4': 1, '5': 9}, | |
| 124 const {'1': 'proto_file', '3': 15, '4': 3, '5': 11, '6': '.proto2.FileDescri
ptorProto'}, | |
| 125 ], | |
| 126 }; | |
| 127 | |
| 128 const CodeGeneratorResponse$json = const { | |
| 129 '1': 'CodeGeneratorResponse', | |
| 130 '2': const [ | |
| 131 const {'1': 'error', '3': 1, '4': 1, '5': 9}, | |
| 132 const {'1': 'file', '3': 15, '4': 3, '5': 11, '6': '.proto2.compiler.CodeGen
eratorResponse.File'}, | |
| 133 ], | |
| 134 '3': const [CodeGeneratorResponse_File$json], | |
| 135 }; | |
| 136 | |
| 137 const CodeGeneratorResponse_File$json = const { | |
| 138 '1': 'File', | |
| 139 '2': const [ | |
| 140 const {'1': 'name', '3': 1, '4': 1, '5': 9}, | |
| 141 const {'1': 'insertion_point', '3': 2, '4': 1, '5': 9}, | |
| 142 const {'1': 'content', '3': 15, '4': 1, '5': 9}, | |
| 143 ], | |
| 144 }; | |
| 145 | |
| OLD | NEW |