OLD | NEW |
(Empty) | |
| 1 /// |
| 2 // Generated code. Do not modify. |
| 3 /// |
| 4 class GoogleProtobuf_FileDescriptorSet extends GeneratedMessage { |
| 5 static GoogleProtobuf_FileDescriptorSet _d; |
| 6 static GoogleProtobuf_FileDescriptorSet_Builder newBuilder() => new GoogleProt
obuf_FileDescriptorSet_Builder(); |
| 7 static GoogleProtobuf_FileDescriptorSet get defaultInstance() => null == _d ?
(_d = newBuilder().buildPartial()) : _d; |
| 8 static GoogleProtobuf_FileDescriptorSet parseFromBuffer(List<int> i, [Extensio
nRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 9 static Future<GoogleProtobuf_FileDescriptorSet> parseFromStream(InputStream i,
[ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 10 static GoogleProtobuf_FileDescriptorSet parseFromJson(String i, [ExtensionRegi
stry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 11 GoogleProtobuf_FileDescriptorSet._fromBuilder(GoogleProtobuf_FileDescriptorSet
_Builder b) : super(b); |
| 12 GoogleProtobuf_FileDescriptorSet_Builder toBuilder() => newBuilder().mergeFrom
Message(this); |
| 13 |
| 14 // repeated google.protobuf.FileDescriptorProto file = 1; |
| 15 List<GoogleProtobuf_FileDescriptorProto> get file() => g_(1); |
| 16 } |
| 17 |
| 18 class GoogleProtobuf_FileDescriptorSet_Builder extends Builder { |
| 19 static BuilderInfo _i; |
| 20 |
| 21 void initialize_() { |
| 22 if (null == _i) { |
| 23 _i = new BuilderInfo(this, "GoogleProtobuf_FileDescriptorSet"); |
| 24 _i.m(1, 'file', () => new GoogleProtobuf_FileDescriptorProto_Builder(), ()
=> new PbList<GoogleProtobuf_FileDescriptorProto>(this)); |
| 25 } |
| 26 } |
| 27 |
| 28 GoogleProtobuf_FileDescriptorSet build() => super.build(); |
| 29 GoogleProtobuf_FileDescriptorSet buildPartial() => partial(new GoogleProtobuf_
FileDescriptorSet._fromBuilder(this)); |
| 30 BuilderInfo get info_() => _i; |
| 31 |
| 32 List<GoogleProtobuf_FileDescriptorProto> get file() => g_(1); |
| 33 } |
| 34 |
| 35 class GoogleProtobuf_FileDescriptorProto extends GeneratedMessage { |
| 36 static GoogleProtobuf_FileDescriptorProto _d; |
| 37 static GoogleProtobuf_FileDescriptorProto_Builder newBuilder() => new GooglePr
otobuf_FileDescriptorProto_Builder(); |
| 38 static GoogleProtobuf_FileDescriptorProto get defaultInstance() => null == _d
? (_d = newBuilder().buildPartial()) : _d; |
| 39 static GoogleProtobuf_FileDescriptorProto parseFromBuffer(List<int> i, [Extens
ionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 40 static Future<GoogleProtobuf_FileDescriptorProto> parseFromStream(InputStream
i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 41 static GoogleProtobuf_FileDescriptorProto parseFromJson(String i, [ExtensionRe
gistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 42 GoogleProtobuf_FileDescriptorProto._fromBuilder(GoogleProtobuf_FileDescriptorP
roto_Builder b) : super(b); |
| 43 GoogleProtobuf_FileDescriptorProto_Builder toBuilder() => newBuilder().mergeFr
omMessage(this); |
| 44 |
| 45 // optional string name = 1; |
| 46 String get name() => g_(1); |
| 47 bool hasName() => h_(1); |
| 48 |
| 49 // optional string package = 2; |
| 50 String get package() => g_(2); |
| 51 bool hasPackage() => h_(2); |
| 52 |
| 53 // repeated string dependency = 3; |
| 54 List<String> get dependency() => g_(3); |
| 55 |
| 56 // repeated google.protobuf.DescriptorProto message_type = 4; |
| 57 List<GoogleProtobuf_DescriptorProto> get messageType() => g_(4); |
| 58 |
| 59 // repeated google.protobuf.EnumDescriptorProto enum_type = 5; |
| 60 List<GoogleProtobuf_EnumDescriptorProto> get enumType() => g_(5); |
| 61 |
| 62 // repeated google.protobuf.ServiceDescriptorProto service = 6; |
| 63 List<GoogleProtobuf_ServiceDescriptorProto> get service() => g_(6); |
| 64 |
| 65 // repeated google.protobuf.FieldDescriptorProto extension = 7; |
| 66 List<GoogleProtobuf_FieldDescriptorProto> get extension() => g_(7); |
| 67 |
| 68 // optional google.protobuf.FileOptions options = 8; |
| 69 GoogleProtobuf_FileOptions get options() => g_(8); |
| 70 bool hasOptions() => h_(8); |
| 71 |
| 72 // optional google.protobuf.SourceCodeInfo source_code_info = 9; |
| 73 GoogleProtobuf_SourceCodeInfo get sourceCodeInfo() => g_(9); |
| 74 bool hasSourceCodeInfo() => h_(9); |
| 75 } |
| 76 |
| 77 class GoogleProtobuf_FileDescriptorProto_Builder extends Builder { |
| 78 static BuilderInfo _i; |
| 79 |
| 80 void initialize_() { |
| 81 if (null == _i) { |
| 82 _i = new BuilderInfo(this, "GoogleProtobuf_FileDescriptorProto"); |
| 83 _i.a(1, 'name', Builder.OS); |
| 84 _i.a(2, 'package', Builder.OS); |
| 85 _i.p(3, 'dependency', Builder.PS); |
| 86 _i.m(4, 'messageType', () => new GoogleProtobuf_DescriptorProto_Builder(),
() => new PbList<GoogleProtobuf_DescriptorProto>(this)); |
| 87 _i.m(5, 'enumType', () => new GoogleProtobuf_EnumDescriptorProto_Builder()
, () => new PbList<GoogleProtobuf_EnumDescriptorProto>(this)); |
| 88 _i.m(6, 'service', () => new GoogleProtobuf_ServiceDescriptorProto_Builder
(), () => new PbList<GoogleProtobuf_ServiceDescriptorProto>(this)); |
| 89 _i.m(7, 'extension', () => new GoogleProtobuf_FieldDescriptorProto_Builder
(), () => new PbList<GoogleProtobuf_FieldDescriptorProto>(this)); |
| 90 _i.a(8, 'options', Builder.OM, () => GoogleProtobuf_FileOptions.defaultIns
tance, () => new GoogleProtobuf_FileOptions_Builder()); |
| 91 _i.a(9, 'sourceCodeInfo', Builder.OM, () => GoogleProtobuf_SourceCodeInfo.
defaultInstance, () => new GoogleProtobuf_SourceCodeInfo_Builder()); |
| 92 } |
| 93 } |
| 94 |
| 95 GoogleProtobuf_FileDescriptorProto build() => super.build(); |
| 96 GoogleProtobuf_FileDescriptorProto buildPartial() => partial(new GoogleProtobu
f_FileDescriptorProto._fromBuilder(this)); |
| 97 BuilderInfo get info_() => _i; |
| 98 |
| 99 String get name() => g_(1); |
| 100 void set name(String v) { s_(1, v); } |
| 101 bool hasName() => h_(1); |
| 102 void clearName() => c_(1); |
| 103 |
| 104 String get package() => g_(2); |
| 105 void set package(String v) { s_(2, v); } |
| 106 bool hasPackage() => h_(2); |
| 107 void clearPackage() => c_(2); |
| 108 |
| 109 List<String> get dependency() => g_(3); |
| 110 |
| 111 List<GoogleProtobuf_DescriptorProto> get messageType() => g_(4); |
| 112 |
| 113 List<GoogleProtobuf_EnumDescriptorProto> get enumType() => g_(5); |
| 114 |
| 115 List<GoogleProtobuf_ServiceDescriptorProto> get service() => g_(6); |
| 116 |
| 117 List<GoogleProtobuf_FieldDescriptorProto> get extension() => g_(7); |
| 118 |
| 119 GoogleProtobuf_FileOptions get options() => g_(8); |
| 120 void set options(GoogleProtobuf_FileOptions v) { s_(8, v); } |
| 121 bool hasOptions() => h_(8); |
| 122 void clearOptions() => c_(8); |
| 123 |
| 124 GoogleProtobuf_SourceCodeInfo get sourceCodeInfo() => g_(9); |
| 125 void set sourceCodeInfo(GoogleProtobuf_SourceCodeInfo v) { s_(9, v); } |
| 126 bool hasSourceCodeInfo() => h_(9); |
| 127 void clearSourceCodeInfo() => c_(9); |
| 128 } |
| 129 |
| 130 class GoogleProtobuf_DescriptorProto_ExtensionRange extends GeneratedMessage { |
| 131 static GoogleProtobuf_DescriptorProto_ExtensionRange _d; |
| 132 static GoogleProtobuf_DescriptorProto_ExtensionRange_Builder newBuilder() => n
ew GoogleProtobuf_DescriptorProto_ExtensionRange_Builder(); |
| 133 static GoogleProtobuf_DescriptorProto_ExtensionRange get defaultInstance() =>
null == _d ? (_d = newBuilder().buildPartial()) : _d; |
| 134 static GoogleProtobuf_DescriptorProto_ExtensionRange parseFromBuffer(List<int>
i, [ExtensionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 135 static Future<GoogleProtobuf_DescriptorProto_ExtensionRange> parseFromStream(I
nputStream i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(
), i, r); |
| 136 static GoogleProtobuf_DescriptorProto_ExtensionRange parseFromJson(String i, [
ExtensionRegistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 137 GoogleProtobuf_DescriptorProto_ExtensionRange._fromBuilder(GoogleProtobuf_Desc
riptorProto_ExtensionRange_Builder b) : super(b); |
| 138 GoogleProtobuf_DescriptorProto_ExtensionRange_Builder toBuilder() => newBuilde
r().mergeFromMessage(this); |
| 139 |
| 140 // optional int32 start = 1; |
| 141 int get start() => g_(1); |
| 142 bool hasStart() => h_(1); |
| 143 |
| 144 // optional int32 end = 2; |
| 145 int get end() => g_(2); |
| 146 bool hasEnd() => h_(2); |
| 147 } |
| 148 |
| 149 class GoogleProtobuf_DescriptorProto_ExtensionRange_Builder extends Builder { |
| 150 static BuilderInfo _i; |
| 151 |
| 152 void initialize_() { |
| 153 if (null == _i) { |
| 154 _i = new BuilderInfo(this, "GoogleProtobuf_DescriptorProto_ExtensionRange"
); |
| 155 _i.a(1, 'start', Builder.O3); |
| 156 _i.a(2, 'end', Builder.O3); |
| 157 _i.hasRequiredFields = false; |
| 158 } |
| 159 } |
| 160 |
| 161 GoogleProtobuf_DescriptorProto_ExtensionRange build() => super.build(); |
| 162 GoogleProtobuf_DescriptorProto_ExtensionRange buildPartial() => partial(new Go
ogleProtobuf_DescriptorProto_ExtensionRange._fromBuilder(this)); |
| 163 BuilderInfo get info_() => _i; |
| 164 |
| 165 int get start() => g_(1); |
| 166 void set start(int v) { s_(1, v); } |
| 167 bool hasStart() => h_(1); |
| 168 void clearStart() => c_(1); |
| 169 |
| 170 int get end() => g_(2); |
| 171 void set end(int v) { s_(2, v); } |
| 172 bool hasEnd() => h_(2); |
| 173 void clearEnd() => c_(2); |
| 174 } |
| 175 |
| 176 class GoogleProtobuf_DescriptorProto extends GeneratedMessage { |
| 177 static GoogleProtobuf_DescriptorProto _d; |
| 178 static GoogleProtobuf_DescriptorProto_Builder newBuilder() => new GoogleProtob
uf_DescriptorProto_Builder(); |
| 179 static GoogleProtobuf_DescriptorProto get defaultInstance() => null == _d ? (_
d = newBuilder().buildPartial()) : _d; |
| 180 static GoogleProtobuf_DescriptorProto parseFromBuffer(List<int> i, [ExtensionR
egistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 181 static Future<GoogleProtobuf_DescriptorProto> parseFromStream(InputStream i, [
ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 182 static GoogleProtobuf_DescriptorProto parseFromJson(String i, [ExtensionRegist
ry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 183 GoogleProtobuf_DescriptorProto._fromBuilder(GoogleProtobuf_DescriptorProto_Bui
lder b) : super(b); |
| 184 GoogleProtobuf_DescriptorProto_Builder toBuilder() => newBuilder().mergeFromMe
ssage(this); |
| 185 |
| 186 // optional string name = 1; |
| 187 String get name() => g_(1); |
| 188 bool hasName() => h_(1); |
| 189 |
| 190 // repeated google.protobuf.FieldDescriptorProto field = 2; |
| 191 List<GoogleProtobuf_FieldDescriptorProto> get field() => g_(2); |
| 192 |
| 193 // repeated google.protobuf.FieldDescriptorProto extension = 6; |
| 194 List<GoogleProtobuf_FieldDescriptorProto> get extension() => g_(6); |
| 195 |
| 196 // repeated google.protobuf.DescriptorProto nested_type = 3; |
| 197 List<GoogleProtobuf_DescriptorProto> get nestedType() => g_(3); |
| 198 |
| 199 // repeated google.protobuf.EnumDescriptorProto enum_type = 4; |
| 200 List<GoogleProtobuf_EnumDescriptorProto> get enumType() => g_(4); |
| 201 |
| 202 // repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5
; |
| 203 List<GoogleProtobuf_DescriptorProto_ExtensionRange> get extensionRange() => g_
(5); |
| 204 |
| 205 // optional google.protobuf.MessageOptions options = 7; |
| 206 GoogleProtobuf_MessageOptions get options() => g_(7); |
| 207 bool hasOptions() => h_(7); |
| 208 } |
| 209 |
| 210 class GoogleProtobuf_DescriptorProto_Builder extends Builder { |
| 211 static BuilderInfo _i; |
| 212 |
| 213 void initialize_() { |
| 214 if (null == _i) { |
| 215 _i = new BuilderInfo(this, "GoogleProtobuf_DescriptorProto"); |
| 216 _i.a(1, 'name', Builder.OS); |
| 217 _i.m(2, 'field', () => new GoogleProtobuf_FieldDescriptorProto_Builder(),
() => new PbList<GoogleProtobuf_FieldDescriptorProto>(this)); |
| 218 _i.m(6, 'extension', () => new GoogleProtobuf_FieldDescriptorProto_Builder
(), () => new PbList<GoogleProtobuf_FieldDescriptorProto>(this)); |
| 219 _i.m(3, 'nestedType', () => new GoogleProtobuf_DescriptorProto_Builder(),
() => new PbList<GoogleProtobuf_DescriptorProto>(this)); |
| 220 _i.m(4, 'enumType', () => new GoogleProtobuf_EnumDescriptorProto_Builder()
, () => new PbList<GoogleProtobuf_EnumDescriptorProto>(this)); |
| 221 _i.m(5, 'extensionRange', () => new GoogleProtobuf_DescriptorProto_Extensi
onRange_Builder(), () => new PbList<GoogleProtobuf_DescriptorProto_ExtensionRang
e>(this)); |
| 222 _i.a(7, 'options', Builder.OM, () => GoogleProtobuf_MessageOptions.default
Instance, () => new GoogleProtobuf_MessageOptions_Builder()); |
| 223 } |
| 224 } |
| 225 |
| 226 GoogleProtobuf_DescriptorProto build() => super.build(); |
| 227 GoogleProtobuf_DescriptorProto buildPartial() => partial(new GoogleProtobuf_De
scriptorProto._fromBuilder(this)); |
| 228 BuilderInfo get info_() => _i; |
| 229 |
| 230 String get name() => g_(1); |
| 231 void set name(String v) { s_(1, v); } |
| 232 bool hasName() => h_(1); |
| 233 void clearName() => c_(1); |
| 234 |
| 235 List<GoogleProtobuf_FieldDescriptorProto> get field() => g_(2); |
| 236 |
| 237 List<GoogleProtobuf_FieldDescriptorProto> get extension() => g_(6); |
| 238 |
| 239 List<GoogleProtobuf_DescriptorProto> get nestedType() => g_(3); |
| 240 |
| 241 List<GoogleProtobuf_EnumDescriptorProto> get enumType() => g_(4); |
| 242 |
| 243 List<GoogleProtobuf_DescriptorProto_ExtensionRange> get extensionRange() => g_
(5); |
| 244 |
| 245 GoogleProtobuf_MessageOptions get options() => g_(7); |
| 246 void set options(GoogleProtobuf_MessageOptions v) { s_(7, v); } |
| 247 bool hasOptions() => h_(7); |
| 248 void clearOptions() => c_(7); |
| 249 } |
| 250 |
| 251 class GoogleProtobuf_FieldDescriptorProto_Type extends ProtobufEnum implements H
ashable { |
| 252 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_DOUBLE() => values[0]
; |
| 253 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_FLOAT() => values[1]; |
| 254 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_INT64() => values[2]; |
| 255 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_UINT64() => values[3]
; |
| 256 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_INT32() => values[4]; |
| 257 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_FIXED64() => values[5
]; |
| 258 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_FIXED32() => values[6
]; |
| 259 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_BOOL() => values[7]; |
| 260 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_STRING() => values[8]
; |
| 261 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_GROUP() => values[9]; |
| 262 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_MESSAGE() => values[1
0]; |
| 263 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_BYTES() => values[11]
; |
| 264 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_UINT32() => values[12
]; |
| 265 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_ENUM() => values[13]; |
| 266 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_SFIXED32() => values[
14]; |
| 267 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_SFIXED64() => values[
15]; |
| 268 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_SINT32() => values[16
]; |
| 269 static GoogleProtobuf_FieldDescriptorProto_Type get TYPE_SINT64() => values[17
]; |
| 270 static List<GoogleProtobuf_FieldDescriptorProto_Type> _byIndex; |
| 271 static Map<int, GoogleProtobuf_FieldDescriptorProto_Type> _byValue; |
| 272 |
| 273 static void _init() { |
| 274 _byIndex = const [ |
| 275 const GoogleProtobuf_FieldDescriptorProto_Type._(0, 1, 'TYPE_DOUBLE'), |
| 276 const GoogleProtobuf_FieldDescriptorProto_Type._(1, 2, 'TYPE_FLOAT'), |
| 277 const GoogleProtobuf_FieldDescriptorProto_Type._(2, 3, 'TYPE_INT64'), |
| 278 const GoogleProtobuf_FieldDescriptorProto_Type._(3, 4, 'TYPE_UINT64'), |
| 279 const GoogleProtobuf_FieldDescriptorProto_Type._(4, 5, 'TYPE_INT32'), |
| 280 const GoogleProtobuf_FieldDescriptorProto_Type._(5, 6, 'TYPE_FIXED64'), |
| 281 const GoogleProtobuf_FieldDescriptorProto_Type._(6, 7, 'TYPE_FIXED32'), |
| 282 const GoogleProtobuf_FieldDescriptorProto_Type._(7, 8, 'TYPE_BOOL'), |
| 283 const GoogleProtobuf_FieldDescriptorProto_Type._(8, 9, 'TYPE_STRING'), |
| 284 const GoogleProtobuf_FieldDescriptorProto_Type._(9, 10, 'TYPE_GROUP'), |
| 285 const GoogleProtobuf_FieldDescriptorProto_Type._(10, 11, 'TYPE_MESSAGE'), |
| 286 const GoogleProtobuf_FieldDescriptorProto_Type._(11, 12, 'TYPE_BYTES'), |
| 287 const GoogleProtobuf_FieldDescriptorProto_Type._(12, 13, 'TYPE_UINT32'), |
| 288 const GoogleProtobuf_FieldDescriptorProto_Type._(13, 14, 'TYPE_ENUM'), |
| 289 const GoogleProtobuf_FieldDescriptorProto_Type._(14, 15, 'TYPE_SFIXED32'), |
| 290 const GoogleProtobuf_FieldDescriptorProto_Type._(15, 16, 'TYPE_SFIXED64'), |
| 291 const GoogleProtobuf_FieldDescriptorProto_Type._(16, 17, 'TYPE_SINT32'), |
| 292 const GoogleProtobuf_FieldDescriptorProto_Type._(17, 18, 'TYPE_SINT64'), |
| 293 ]; |
| 294 _byValue = ProtobufEnum.initByValue(_byIndex); |
| 295 } |
| 296 |
| 297 static List<GoogleProtobuf_FieldDescriptorProto_Type> get values() { |
| 298 if (null == _byIndex) _init(); |
| 299 return _byIndex; |
| 300 } |
| 301 |
| 302 static GoogleProtobuf_FieldDescriptorProto_Type valueOf(int value) { |
| 303 if (null == _byValue) _init(); |
| 304 return _byValue[value]; |
| 305 } |
| 306 |
| 307 bool operator ==(Object o) { |
| 308 if (o is GoogleProtobuf_FieldDescriptorProto_Type) { |
| 309 GoogleProtobuf_FieldDescriptorProto_Type p = o; |
| 310 return value == p.value; |
| 311 } else { |
| 312 return false; |
| 313 } |
| 314 } |
| 315 |
| 316 const GoogleProtobuf_FieldDescriptorProto_Type._(int i, int v, String n) : sup
er(i, v, n); |
| 317 } |
| 318 |
| 319 class GoogleProtobuf_FieldDescriptorProto_Label extends ProtobufEnum implements
Hashable { |
| 320 static GoogleProtobuf_FieldDescriptorProto_Label get LABEL_OPTIONAL() => value
s[0]; |
| 321 static GoogleProtobuf_FieldDescriptorProto_Label get LABEL_REQUIRED() => value
s[1]; |
| 322 static GoogleProtobuf_FieldDescriptorProto_Label get LABEL_REPEATED() => value
s[2]; |
| 323 static List<GoogleProtobuf_FieldDescriptorProto_Label> _byIndex; |
| 324 static Map<int, GoogleProtobuf_FieldDescriptorProto_Label> _byValue; |
| 325 |
| 326 static void _init() { |
| 327 _byIndex = const [ |
| 328 const GoogleProtobuf_FieldDescriptorProto_Label._(0, 1, 'LABEL_OPTIONAL'), |
| 329 const GoogleProtobuf_FieldDescriptorProto_Label._(1, 2, 'LABEL_REQUIRED'), |
| 330 const GoogleProtobuf_FieldDescriptorProto_Label._(2, 3, 'LABEL_REPEATED'), |
| 331 ]; |
| 332 _byValue = ProtobufEnum.initByValue(_byIndex); |
| 333 } |
| 334 |
| 335 static List<GoogleProtobuf_FieldDescriptorProto_Label> get values() { |
| 336 if (null == _byIndex) _init(); |
| 337 return _byIndex; |
| 338 } |
| 339 |
| 340 static GoogleProtobuf_FieldDescriptorProto_Label valueOf(int value) { |
| 341 if (null == _byValue) _init(); |
| 342 return _byValue[value]; |
| 343 } |
| 344 |
| 345 bool operator ==(Object o) { |
| 346 if (o is GoogleProtobuf_FieldDescriptorProto_Label) { |
| 347 GoogleProtobuf_FieldDescriptorProto_Label p = o; |
| 348 return value == p.value; |
| 349 } else { |
| 350 return false; |
| 351 } |
| 352 } |
| 353 |
| 354 const GoogleProtobuf_FieldDescriptorProto_Label._(int i, int v, String n) : su
per(i, v, n); |
| 355 } |
| 356 |
| 357 class GoogleProtobuf_FieldDescriptorProto extends GeneratedMessage { |
| 358 static GoogleProtobuf_FieldDescriptorProto _d; |
| 359 static GoogleProtobuf_FieldDescriptorProto_Builder newBuilder() => new GoogleP
rotobuf_FieldDescriptorProto_Builder(); |
| 360 static GoogleProtobuf_FieldDescriptorProto get defaultInstance() => null == _d
? (_d = newBuilder().buildPartial()) : _d; |
| 361 static GoogleProtobuf_FieldDescriptorProto parseFromBuffer(List<int> i, [Exten
sionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 362 static Future<GoogleProtobuf_FieldDescriptorProto> parseFromStream(InputStream
i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 363 static GoogleProtobuf_FieldDescriptorProto parseFromJson(String i, [ExtensionR
egistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 364 GoogleProtobuf_FieldDescriptorProto._fromBuilder(GoogleProtobuf_FieldDescripto
rProto_Builder b) : super(b); |
| 365 GoogleProtobuf_FieldDescriptorProto_Builder toBuilder() => newBuilder().mergeF
romMessage(this); |
| 366 |
| 367 // optional string name = 1; |
| 368 String get name() => g_(1); |
| 369 bool hasName() => h_(1); |
| 370 |
| 371 // optional int32 number = 3; |
| 372 int get number() => g_(3); |
| 373 bool hasNumber() => h_(3); |
| 374 |
| 375 // optional enum label = 4; |
| 376 GoogleProtobuf_FieldDescriptorProto_Label get label() => g_(4); |
| 377 bool hasLabel() => h_(4); |
| 378 |
| 379 // optional enum type = 5; |
| 380 GoogleProtobuf_FieldDescriptorProto_Type get type() => g_(5); |
| 381 bool hasType() => h_(5); |
| 382 |
| 383 // optional string type_name = 6; |
| 384 String get typeName() => g_(6); |
| 385 bool hasTypeName() => h_(6); |
| 386 |
| 387 // optional string extendee = 2; |
| 388 String get extendee() => g_(2); |
| 389 bool hasExtendee() => h_(2); |
| 390 |
| 391 // optional string default_value = 7; |
| 392 String get defaultValue() => g_(7); |
| 393 bool hasDefaultValue() => h_(7); |
| 394 |
| 395 // optional google.protobuf.FieldOptions options = 8; |
| 396 GoogleProtobuf_FieldOptions get options() => g_(8); |
| 397 bool hasOptions() => h_(8); |
| 398 } |
| 399 |
| 400 class GoogleProtobuf_FieldDescriptorProto_Builder extends Builder { |
| 401 static BuilderInfo _i; |
| 402 |
| 403 void initialize_() { |
| 404 if (null == _i) { |
| 405 _i = new BuilderInfo(this, "GoogleProtobuf_FieldDescriptorProto"); |
| 406 _i.a(1, 'name', Builder.OS); |
| 407 _i.a(3, 'number', Builder.O3); |
| 408 _i.e(4, 'label', Builder.OE, () => GoogleProtobuf_FieldDescriptorProto_Lab
el.LABEL_OPTIONAL, (var v) => GoogleProtobuf_FieldDescriptorProto_Label.valueOf(
v)); |
| 409 _i.e(5, 'type', Builder.OE, () => GoogleProtobuf_FieldDescriptorProto_Type
.TYPE_DOUBLE, (var v) => GoogleProtobuf_FieldDescriptorProto_Type.valueOf(v)); |
| 410 _i.a(6, 'typeName', Builder.OS); |
| 411 _i.a(2, 'extendee', Builder.OS); |
| 412 _i.a(7, 'defaultValue', Builder.OS); |
| 413 _i.a(8, 'options', Builder.OM, () => GoogleProtobuf_FieldOptions.defaultIn
stance, () => new GoogleProtobuf_FieldOptions_Builder()); |
| 414 } |
| 415 } |
| 416 |
| 417 GoogleProtobuf_FieldDescriptorProto build() => super.build(); |
| 418 GoogleProtobuf_FieldDescriptorProto buildPartial() => partial(new GoogleProtob
uf_FieldDescriptorProto._fromBuilder(this)); |
| 419 BuilderInfo get info_() => _i; |
| 420 |
| 421 String get name() => g_(1); |
| 422 void set name(String v) { s_(1, v); } |
| 423 bool hasName() => h_(1); |
| 424 void clearName() => c_(1); |
| 425 |
| 426 int get number() => g_(3); |
| 427 void set number(int v) { s_(3, v); } |
| 428 bool hasNumber() => h_(3); |
| 429 void clearNumber() => c_(3); |
| 430 |
| 431 GoogleProtobuf_FieldDescriptorProto_Label get label() => g_(4); |
| 432 void set label(GoogleProtobuf_FieldDescriptorProto_Label v) { s_(4, v); } |
| 433 bool hasLabel() => h_(4); |
| 434 void clearLabel() => c_(4); |
| 435 |
| 436 GoogleProtobuf_FieldDescriptorProto_Type get type() => g_(5); |
| 437 void set type(GoogleProtobuf_FieldDescriptorProto_Type v) { s_(5, v); } |
| 438 bool hasType() => h_(5); |
| 439 void clearType() => c_(5); |
| 440 |
| 441 String get typeName() => g_(6); |
| 442 void set typeName(String v) { s_(6, v); } |
| 443 bool hasTypeName() => h_(6); |
| 444 void clearTypeName() => c_(6); |
| 445 |
| 446 String get extendee() => g_(2); |
| 447 void set extendee(String v) { s_(2, v); } |
| 448 bool hasExtendee() => h_(2); |
| 449 void clearExtendee() => c_(2); |
| 450 |
| 451 String get defaultValue() => g_(7); |
| 452 void set defaultValue(String v) { s_(7, v); } |
| 453 bool hasDefaultValue() => h_(7); |
| 454 void clearDefaultValue() => c_(7); |
| 455 |
| 456 GoogleProtobuf_FieldOptions get options() => g_(8); |
| 457 void set options(GoogleProtobuf_FieldOptions v) { s_(8, v); } |
| 458 bool hasOptions() => h_(8); |
| 459 void clearOptions() => c_(8); |
| 460 } |
| 461 |
| 462 class GoogleProtobuf_EnumDescriptorProto extends GeneratedMessage { |
| 463 static GoogleProtobuf_EnumDescriptorProto _d; |
| 464 static GoogleProtobuf_EnumDescriptorProto_Builder newBuilder() => new GooglePr
otobuf_EnumDescriptorProto_Builder(); |
| 465 static GoogleProtobuf_EnumDescriptorProto get defaultInstance() => null == _d
? (_d = newBuilder().buildPartial()) : _d; |
| 466 static GoogleProtobuf_EnumDescriptorProto parseFromBuffer(List<int> i, [Extens
ionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 467 static Future<GoogleProtobuf_EnumDescriptorProto> parseFromStream(InputStream
i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 468 static GoogleProtobuf_EnumDescriptorProto parseFromJson(String i, [ExtensionRe
gistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 469 GoogleProtobuf_EnumDescriptorProto._fromBuilder(GoogleProtobuf_EnumDescriptorP
roto_Builder b) : super(b); |
| 470 GoogleProtobuf_EnumDescriptorProto_Builder toBuilder() => newBuilder().mergeFr
omMessage(this); |
| 471 |
| 472 // optional string name = 1; |
| 473 String get name() => g_(1); |
| 474 bool hasName() => h_(1); |
| 475 |
| 476 // repeated google.protobuf.EnumValueDescriptorProto value = 2; |
| 477 List<GoogleProtobuf_EnumValueDescriptorProto> get value() => g_(2); |
| 478 |
| 479 // optional google.protobuf.EnumOptions options = 3; |
| 480 GoogleProtobuf_EnumOptions get options() => g_(3); |
| 481 bool hasOptions() => h_(3); |
| 482 } |
| 483 |
| 484 class GoogleProtobuf_EnumDescriptorProto_Builder extends Builder { |
| 485 static BuilderInfo _i; |
| 486 |
| 487 void initialize_() { |
| 488 if (null == _i) { |
| 489 _i = new BuilderInfo(this, "GoogleProtobuf_EnumDescriptorProto"); |
| 490 _i.a(1, 'name', Builder.OS); |
| 491 _i.m(2, 'value', () => new GoogleProtobuf_EnumValueDescriptorProto_Builder
(), () => new PbList<GoogleProtobuf_EnumValueDescriptorProto>(this)); |
| 492 _i.a(3, 'options', Builder.OM, () => GoogleProtobuf_EnumOptions.defaultIns
tance, () => new GoogleProtobuf_EnumOptions_Builder()); |
| 493 } |
| 494 } |
| 495 |
| 496 GoogleProtobuf_EnumDescriptorProto build() => super.build(); |
| 497 GoogleProtobuf_EnumDescriptorProto buildPartial() => partial(new GoogleProtobu
f_EnumDescriptorProto._fromBuilder(this)); |
| 498 BuilderInfo get info_() => _i; |
| 499 |
| 500 String get name() => g_(1); |
| 501 void set name(String v) { s_(1, v); } |
| 502 bool hasName() => h_(1); |
| 503 void clearName() => c_(1); |
| 504 |
| 505 List<GoogleProtobuf_EnumValueDescriptorProto> get value() => g_(2); |
| 506 |
| 507 GoogleProtobuf_EnumOptions get options() => g_(3); |
| 508 void set options(GoogleProtobuf_EnumOptions v) { s_(3, v); } |
| 509 bool hasOptions() => h_(3); |
| 510 void clearOptions() => c_(3); |
| 511 } |
| 512 |
| 513 class GoogleProtobuf_EnumValueDescriptorProto extends GeneratedMessage { |
| 514 static GoogleProtobuf_EnumValueDescriptorProto _d; |
| 515 static GoogleProtobuf_EnumValueDescriptorProto_Builder newBuilder() => new Goo
gleProtobuf_EnumValueDescriptorProto_Builder(); |
| 516 static GoogleProtobuf_EnumValueDescriptorProto get defaultInstance() => null =
= _d ? (_d = newBuilder().buildPartial()) : _d; |
| 517 static GoogleProtobuf_EnumValueDescriptorProto parseFromBuffer(List<int> i, [E
xtensionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 518 static Future<GoogleProtobuf_EnumValueDescriptorProto> parseFromStream(InputSt
ream i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i,
r); |
| 519 static GoogleProtobuf_EnumValueDescriptorProto parseFromJson(String i, [Extens
ionRegistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 520 GoogleProtobuf_EnumValueDescriptorProto._fromBuilder(GoogleProtobuf_EnumValueD
escriptorProto_Builder b) : super(b); |
| 521 GoogleProtobuf_EnumValueDescriptorProto_Builder toBuilder() => newBuilder().me
rgeFromMessage(this); |
| 522 |
| 523 // optional string name = 1; |
| 524 String get name() => g_(1); |
| 525 bool hasName() => h_(1); |
| 526 |
| 527 // optional int32 number = 2; |
| 528 int get number() => g_(2); |
| 529 bool hasNumber() => h_(2); |
| 530 |
| 531 // optional google.protobuf.EnumValueOptions options = 3; |
| 532 GoogleProtobuf_EnumValueOptions get options() => g_(3); |
| 533 bool hasOptions() => h_(3); |
| 534 } |
| 535 |
| 536 class GoogleProtobuf_EnumValueDescriptorProto_Builder extends Builder { |
| 537 static BuilderInfo _i; |
| 538 |
| 539 void initialize_() { |
| 540 if (null == _i) { |
| 541 _i = new BuilderInfo(this, "GoogleProtobuf_EnumValueDescriptorProto"); |
| 542 _i.a(1, 'name', Builder.OS); |
| 543 _i.a(2, 'number', Builder.O3); |
| 544 _i.a(3, 'options', Builder.OM, () => GoogleProtobuf_EnumValueOptions.defau
ltInstance, () => new GoogleProtobuf_EnumValueOptions_Builder()); |
| 545 } |
| 546 } |
| 547 |
| 548 GoogleProtobuf_EnumValueDescriptorProto build() => super.build(); |
| 549 GoogleProtobuf_EnumValueDescriptorProto buildPartial() => partial(new GooglePr
otobuf_EnumValueDescriptorProto._fromBuilder(this)); |
| 550 BuilderInfo get info_() => _i; |
| 551 |
| 552 String get name() => g_(1); |
| 553 void set name(String v) { s_(1, v); } |
| 554 bool hasName() => h_(1); |
| 555 void clearName() => c_(1); |
| 556 |
| 557 int get number() => g_(2); |
| 558 void set number(int v) { s_(2, v); } |
| 559 bool hasNumber() => h_(2); |
| 560 void clearNumber() => c_(2); |
| 561 |
| 562 GoogleProtobuf_EnumValueOptions get options() => g_(3); |
| 563 void set options(GoogleProtobuf_EnumValueOptions v) { s_(3, v); } |
| 564 bool hasOptions() => h_(3); |
| 565 void clearOptions() => c_(3); |
| 566 } |
| 567 |
| 568 class GoogleProtobuf_ServiceDescriptorProto extends GeneratedMessage { |
| 569 static GoogleProtobuf_ServiceDescriptorProto _d; |
| 570 static GoogleProtobuf_ServiceDescriptorProto_Builder newBuilder() => new Googl
eProtobuf_ServiceDescriptorProto_Builder(); |
| 571 static GoogleProtobuf_ServiceDescriptorProto get defaultInstance() => null ==
_d ? (_d = newBuilder().buildPartial()) : _d; |
| 572 static GoogleProtobuf_ServiceDescriptorProto parseFromBuffer(List<int> i, [Ext
ensionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 573 static Future<GoogleProtobuf_ServiceDescriptorProto> parseFromStream(InputStre
am i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r)
; |
| 574 static GoogleProtobuf_ServiceDescriptorProto parseFromJson(String i, [Extensio
nRegistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 575 GoogleProtobuf_ServiceDescriptorProto._fromBuilder(GoogleProtobuf_ServiceDescr
iptorProto_Builder b) : super(b); |
| 576 GoogleProtobuf_ServiceDescriptorProto_Builder toBuilder() => newBuilder().merg
eFromMessage(this); |
| 577 |
| 578 // optional string name = 1; |
| 579 String get name() => g_(1); |
| 580 bool hasName() => h_(1); |
| 581 |
| 582 // repeated google.protobuf.MethodDescriptorProto method = 2; |
| 583 List<GoogleProtobuf_MethodDescriptorProto> get method() => g_(2); |
| 584 |
| 585 // optional google.protobuf.ServiceOptions options = 3; |
| 586 GoogleProtobuf_ServiceOptions get options() => g_(3); |
| 587 bool hasOptions() => h_(3); |
| 588 } |
| 589 |
| 590 class GoogleProtobuf_ServiceDescriptorProto_Builder extends Builder { |
| 591 static BuilderInfo _i; |
| 592 |
| 593 void initialize_() { |
| 594 if (null == _i) { |
| 595 _i = new BuilderInfo(this, "GoogleProtobuf_ServiceDescriptorProto"); |
| 596 _i.a(1, 'name', Builder.OS); |
| 597 _i.m(2, 'method', () => new GoogleProtobuf_MethodDescriptorProto_Builder()
, () => new PbList<GoogleProtobuf_MethodDescriptorProto>(this)); |
| 598 _i.a(3, 'options', Builder.OM, () => GoogleProtobuf_ServiceOptions.default
Instance, () => new GoogleProtobuf_ServiceOptions_Builder()); |
| 599 } |
| 600 } |
| 601 |
| 602 GoogleProtobuf_ServiceDescriptorProto build() => super.build(); |
| 603 GoogleProtobuf_ServiceDescriptorProto buildPartial() => partial(new GoogleProt
obuf_ServiceDescriptorProto._fromBuilder(this)); |
| 604 BuilderInfo get info_() => _i; |
| 605 |
| 606 String get name() => g_(1); |
| 607 void set name(String v) { s_(1, v); } |
| 608 bool hasName() => h_(1); |
| 609 void clearName() => c_(1); |
| 610 |
| 611 List<GoogleProtobuf_MethodDescriptorProto> get method() => g_(2); |
| 612 |
| 613 GoogleProtobuf_ServiceOptions get options() => g_(3); |
| 614 void set options(GoogleProtobuf_ServiceOptions v) { s_(3, v); } |
| 615 bool hasOptions() => h_(3); |
| 616 void clearOptions() => c_(3); |
| 617 } |
| 618 |
| 619 class GoogleProtobuf_MethodDescriptorProto extends GeneratedMessage { |
| 620 static GoogleProtobuf_MethodDescriptorProto _d; |
| 621 static GoogleProtobuf_MethodDescriptorProto_Builder newBuilder() => new Google
Protobuf_MethodDescriptorProto_Builder(); |
| 622 static GoogleProtobuf_MethodDescriptorProto get defaultInstance() => null == _
d ? (_d = newBuilder().buildPartial()) : _d; |
| 623 static GoogleProtobuf_MethodDescriptorProto parseFromBuffer(List<int> i, [Exte
nsionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 624 static Future<GoogleProtobuf_MethodDescriptorProto> parseFromStream(InputStrea
m i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 625 static GoogleProtobuf_MethodDescriptorProto parseFromJson(String i, [Extension
Registry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 626 GoogleProtobuf_MethodDescriptorProto._fromBuilder(GoogleProtobuf_MethodDescrip
torProto_Builder b) : super(b); |
| 627 GoogleProtobuf_MethodDescriptorProto_Builder toBuilder() => newBuilder().merge
FromMessage(this); |
| 628 |
| 629 // optional string name = 1; |
| 630 String get name() => g_(1); |
| 631 bool hasName() => h_(1); |
| 632 |
| 633 // optional string input_type = 2; |
| 634 String get inputType() => g_(2); |
| 635 bool hasInputType() => h_(2); |
| 636 |
| 637 // optional string output_type = 3; |
| 638 String get outputType() => g_(3); |
| 639 bool hasOutputType() => h_(3); |
| 640 |
| 641 // optional google.protobuf.MethodOptions options = 4; |
| 642 GoogleProtobuf_MethodOptions get options() => g_(4); |
| 643 bool hasOptions() => h_(4); |
| 644 } |
| 645 |
| 646 class GoogleProtobuf_MethodDescriptorProto_Builder extends Builder { |
| 647 static BuilderInfo _i; |
| 648 |
| 649 void initialize_() { |
| 650 if (null == _i) { |
| 651 _i = new BuilderInfo(this, "GoogleProtobuf_MethodDescriptorProto"); |
| 652 _i.a(1, 'name', Builder.OS); |
| 653 _i.a(2, 'inputType', Builder.OS); |
| 654 _i.a(3, 'outputType', Builder.OS); |
| 655 _i.a(4, 'options', Builder.OM, () => GoogleProtobuf_MethodOptions.defaultI
nstance, () => new GoogleProtobuf_MethodOptions_Builder()); |
| 656 } |
| 657 } |
| 658 |
| 659 GoogleProtobuf_MethodDescriptorProto build() => super.build(); |
| 660 GoogleProtobuf_MethodDescriptorProto buildPartial() => partial(new GoogleProto
buf_MethodDescriptorProto._fromBuilder(this)); |
| 661 BuilderInfo get info_() => _i; |
| 662 |
| 663 String get name() => g_(1); |
| 664 void set name(String v) { s_(1, v); } |
| 665 bool hasName() => h_(1); |
| 666 void clearName() => c_(1); |
| 667 |
| 668 String get inputType() => g_(2); |
| 669 void set inputType(String v) { s_(2, v); } |
| 670 bool hasInputType() => h_(2); |
| 671 void clearInputType() => c_(2); |
| 672 |
| 673 String get outputType() => g_(3); |
| 674 void set outputType(String v) { s_(3, v); } |
| 675 bool hasOutputType() => h_(3); |
| 676 void clearOutputType() => c_(3); |
| 677 |
| 678 GoogleProtobuf_MethodOptions get options() => g_(4); |
| 679 void set options(GoogleProtobuf_MethodOptions v) { s_(4, v); } |
| 680 bool hasOptions() => h_(4); |
| 681 void clearOptions() => c_(4); |
| 682 } |
| 683 |
| 684 class GoogleProtobuf_FileOptions_OptimizeMode extends ProtobufEnum implements Ha
shable { |
| 685 static GoogleProtobuf_FileOptions_OptimizeMode get SPEED() => values[0]; |
| 686 static GoogleProtobuf_FileOptions_OptimizeMode get CODE_SIZE() => values[1]; |
| 687 static GoogleProtobuf_FileOptions_OptimizeMode get LITE_RUNTIME() => values[2]
; |
| 688 static List<GoogleProtobuf_FileOptions_OptimizeMode> _byIndex; |
| 689 static Map<int, GoogleProtobuf_FileOptions_OptimizeMode> _byValue; |
| 690 |
| 691 static void _init() { |
| 692 _byIndex = const [ |
| 693 const GoogleProtobuf_FileOptions_OptimizeMode._(0, 1, 'SPEED'), |
| 694 const GoogleProtobuf_FileOptions_OptimizeMode._(1, 2, 'CODE_SIZE'), |
| 695 const GoogleProtobuf_FileOptions_OptimizeMode._(2, 3, 'LITE_RUNTIME'), |
| 696 ]; |
| 697 _byValue = ProtobufEnum.initByValue(_byIndex); |
| 698 } |
| 699 |
| 700 static List<GoogleProtobuf_FileOptions_OptimizeMode> get values() { |
| 701 if (null == _byIndex) _init(); |
| 702 return _byIndex; |
| 703 } |
| 704 |
| 705 static GoogleProtobuf_FileOptions_OptimizeMode valueOf(int value) { |
| 706 if (null == _byValue) _init(); |
| 707 return _byValue[value]; |
| 708 } |
| 709 |
| 710 bool operator ==(Object o) { |
| 711 if (o is GoogleProtobuf_FileOptions_OptimizeMode) { |
| 712 GoogleProtobuf_FileOptions_OptimizeMode p = o; |
| 713 return value == p.value; |
| 714 } else { |
| 715 return false; |
| 716 } |
| 717 } |
| 718 |
| 719 const GoogleProtobuf_FileOptions_OptimizeMode._(int i, int v, String n) : supe
r(i, v, n); |
| 720 } |
| 721 |
| 722 class GoogleProtobuf_FileOptions extends GeneratedMessage { |
| 723 static GoogleProtobuf_FileOptions _d; |
| 724 static GoogleProtobuf_FileOptions_Builder newBuilder() => new GoogleProtobuf_F
ileOptions_Builder(); |
| 725 static GoogleProtobuf_FileOptions get defaultInstance() => null == _d ? (_d =
newBuilder().buildPartial()) : _d; |
| 726 static GoogleProtobuf_FileOptions parseFromBuffer(List<int> i, [ExtensionRegis
try r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 727 static Future<GoogleProtobuf_FileOptions> parseFromStream(InputStream i, [Exte
nsionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 728 static GoogleProtobuf_FileOptions parseFromJson(String i, [ExtensionRegistry r
]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 729 GoogleProtobuf_FileOptions._fromBuilder(GoogleProtobuf_FileOptions_Builder b)
: super(b); |
| 730 GoogleProtobuf_FileOptions_Builder toBuilder() => newBuilder().mergeFromMessag
e(this); |
| 731 |
| 732 // optional string java_package = 1; |
| 733 String get javaPackage() => g_(1); |
| 734 bool hasJavaPackage() => h_(1); |
| 735 |
| 736 // optional string java_outer_classname = 8; |
| 737 String get javaOuterClassname() => g_(8); |
| 738 bool hasJavaOuterClassname() => h_(8); |
| 739 |
| 740 // optional bool java_multiple_files = 10; |
| 741 bool get javaMultipleFiles() => g_(10); |
| 742 bool hasJavaMultipleFiles() => h_(10); |
| 743 |
| 744 // optional bool java_generate_equals_and_hash = 20; |
| 745 bool get javaGenerateEqualsAndHash() => g_(20); |
| 746 bool hasJavaGenerateEqualsAndHash() => h_(20); |
| 747 |
| 748 // optional enum optimize_for = 9; |
| 749 GoogleProtobuf_FileOptions_OptimizeMode get optimizeFor() => g_(9); |
| 750 bool hasOptimizeFor() => h_(9); |
| 751 |
| 752 // optional bool cc_generic_services = 16; |
| 753 bool get ccGenericServices() => g_(16); |
| 754 bool hasCcGenericServices() => h_(16); |
| 755 |
| 756 // optional bool java_generic_services = 17; |
| 757 bool get javaGenericServices() => g_(17); |
| 758 bool hasJavaGenericServices() => h_(17); |
| 759 |
| 760 // optional bool py_generic_services = 18; |
| 761 bool get pyGenericServices() => g_(18); |
| 762 bool hasPyGenericServices() => h_(18); |
| 763 |
| 764 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 765 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 766 } |
| 767 |
| 768 class GoogleProtobuf_FileOptions_Builder extends Builder { |
| 769 static BuilderInfo _i; |
| 770 |
| 771 void initialize_() { |
| 772 if (null == _i) { |
| 773 _i = new BuilderInfo(this, "GoogleProtobuf_FileOptions"); |
| 774 _i.a(1, 'javaPackage', Builder.OS); |
| 775 _i.a(8, 'javaOuterClassname', Builder.OS); |
| 776 _i.a(10, 'javaMultipleFiles', Builder.OB); |
| 777 _i.a(20, 'javaGenerateEqualsAndHash', Builder.OB); |
| 778 _i.e(9, 'optimizeFor', Builder.OE, () => GoogleProtobuf_FileOptions_Optimi
zeMode.SPEED, (var v) => GoogleProtobuf_FileOptions_OptimizeMode.valueOf(v)); |
| 779 _i.a(16, 'ccGenericServices', Builder.OB); |
| 780 _i.a(17, 'javaGenericServices', Builder.OB); |
| 781 _i.a(18, 'pyGenericServices', Builder.OB); |
| 782 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 783 _i.hasExtensions = true; |
| 784 } |
| 785 } |
| 786 |
| 787 GoogleProtobuf_FileOptions build() => super.build(); |
| 788 GoogleProtobuf_FileOptions buildPartial() => partial(new GoogleProtobuf_FileOp
tions._fromBuilder(this)); |
| 789 BuilderInfo get info_() => _i; |
| 790 |
| 791 String get javaPackage() => g_(1); |
| 792 void set javaPackage(String v) { s_(1, v); } |
| 793 bool hasJavaPackage() => h_(1); |
| 794 void clearJavaPackage() => c_(1); |
| 795 |
| 796 String get javaOuterClassname() => g_(8); |
| 797 void set javaOuterClassname(String v) { s_(8, v); } |
| 798 bool hasJavaOuterClassname() => h_(8); |
| 799 void clearJavaOuterClassname() => c_(8); |
| 800 |
| 801 bool get javaMultipleFiles() => g_(10); |
| 802 void set javaMultipleFiles(bool v) { s_(10, v); } |
| 803 bool hasJavaMultipleFiles() => h_(10); |
| 804 void clearJavaMultipleFiles() => c_(10); |
| 805 |
| 806 bool get javaGenerateEqualsAndHash() => g_(20); |
| 807 void set javaGenerateEqualsAndHash(bool v) { s_(20, v); } |
| 808 bool hasJavaGenerateEqualsAndHash() => h_(20); |
| 809 void clearJavaGenerateEqualsAndHash() => c_(20); |
| 810 |
| 811 GoogleProtobuf_FileOptions_OptimizeMode get optimizeFor() => g_(9); |
| 812 void set optimizeFor(GoogleProtobuf_FileOptions_OptimizeMode v) { s_(9, v); } |
| 813 bool hasOptimizeFor() => h_(9); |
| 814 void clearOptimizeFor() => c_(9); |
| 815 |
| 816 bool get ccGenericServices() => g_(16); |
| 817 void set ccGenericServices(bool v) { s_(16, v); } |
| 818 bool hasCcGenericServices() => h_(16); |
| 819 void clearCcGenericServices() => c_(16); |
| 820 |
| 821 bool get javaGenericServices() => g_(17); |
| 822 void set javaGenericServices(bool v) { s_(17, v); } |
| 823 bool hasJavaGenericServices() => h_(17); |
| 824 void clearJavaGenericServices() => c_(17); |
| 825 |
| 826 bool get pyGenericServices() => g_(18); |
| 827 void set pyGenericServices(bool v) { s_(18, v); } |
| 828 bool hasPyGenericServices() => h_(18); |
| 829 void clearPyGenericServices() => c_(18); |
| 830 |
| 831 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 832 } |
| 833 |
| 834 class GoogleProtobuf_MessageOptions extends GeneratedMessage { |
| 835 static GoogleProtobuf_MessageOptions _d; |
| 836 static GoogleProtobuf_MessageOptions_Builder newBuilder() => new GoogleProtobu
f_MessageOptions_Builder(); |
| 837 static GoogleProtobuf_MessageOptions get defaultInstance() => null == _d ? (_d
= newBuilder().buildPartial()) : _d; |
| 838 static GoogleProtobuf_MessageOptions parseFromBuffer(List<int> i, [ExtensionRe
gistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 839 static Future<GoogleProtobuf_MessageOptions> parseFromStream(InputStream i, [E
xtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 840 static GoogleProtobuf_MessageOptions parseFromJson(String i, [ExtensionRegistr
y r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 841 GoogleProtobuf_MessageOptions._fromBuilder(GoogleProtobuf_MessageOptions_Build
er b) : super(b); |
| 842 GoogleProtobuf_MessageOptions_Builder toBuilder() => newBuilder().mergeFromMes
sage(this); |
| 843 |
| 844 // optional bool message_set_wire_format = 1; |
| 845 bool get messageSetWireFormat() => g_(1); |
| 846 bool hasMessageSetWireFormat() => h_(1); |
| 847 |
| 848 // optional bool no_standard_descriptor_accessor = 2; |
| 849 bool get noStandardDescriptorAccessor() => g_(2); |
| 850 bool hasNoStandardDescriptorAccessor() => h_(2); |
| 851 |
| 852 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 853 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 854 } |
| 855 |
| 856 class GoogleProtobuf_MessageOptions_Builder extends Builder { |
| 857 static BuilderInfo _i; |
| 858 |
| 859 void initialize_() { |
| 860 if (null == _i) { |
| 861 _i = new BuilderInfo(this, "GoogleProtobuf_MessageOptions"); |
| 862 _i.a(1, 'messageSetWireFormat', Builder.OB); |
| 863 _i.a(2, 'noStandardDescriptorAccessor', Builder.OB); |
| 864 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 865 _i.hasExtensions = true; |
| 866 } |
| 867 } |
| 868 |
| 869 GoogleProtobuf_MessageOptions build() => super.build(); |
| 870 GoogleProtobuf_MessageOptions buildPartial() => partial(new GoogleProtobuf_Mes
sageOptions._fromBuilder(this)); |
| 871 BuilderInfo get info_() => _i; |
| 872 |
| 873 bool get messageSetWireFormat() => g_(1); |
| 874 void set messageSetWireFormat(bool v) { s_(1, v); } |
| 875 bool hasMessageSetWireFormat() => h_(1); |
| 876 void clearMessageSetWireFormat() => c_(1); |
| 877 |
| 878 bool get noStandardDescriptorAccessor() => g_(2); |
| 879 void set noStandardDescriptorAccessor(bool v) { s_(2, v); } |
| 880 bool hasNoStandardDescriptorAccessor() => h_(2); |
| 881 void clearNoStandardDescriptorAccessor() => c_(2); |
| 882 |
| 883 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 884 } |
| 885 |
| 886 class GoogleProtobuf_FieldOptions_CType extends ProtobufEnum implements Hashable
{ |
| 887 static GoogleProtobuf_FieldOptions_CType get STRING() => values[0]; |
| 888 static GoogleProtobuf_FieldOptions_CType get CORD() => values[1]; |
| 889 static GoogleProtobuf_FieldOptions_CType get STRING_PIECE() => values[2]; |
| 890 static List<GoogleProtobuf_FieldOptions_CType> _byIndex; |
| 891 static Map<int, GoogleProtobuf_FieldOptions_CType> _byValue; |
| 892 |
| 893 static void _init() { |
| 894 _byIndex = const [ |
| 895 const GoogleProtobuf_FieldOptions_CType._(0, 0, 'STRING'), |
| 896 const GoogleProtobuf_FieldOptions_CType._(1, 1, 'CORD'), |
| 897 const GoogleProtobuf_FieldOptions_CType._(2, 2, 'STRING_PIECE'), |
| 898 ]; |
| 899 _byValue = ProtobufEnum.initByValue(_byIndex); |
| 900 } |
| 901 |
| 902 static List<GoogleProtobuf_FieldOptions_CType> get values() { |
| 903 if (null == _byIndex) _init(); |
| 904 return _byIndex; |
| 905 } |
| 906 |
| 907 static GoogleProtobuf_FieldOptions_CType valueOf(int value) { |
| 908 if (null == _byValue) _init(); |
| 909 return _byValue[value]; |
| 910 } |
| 911 |
| 912 bool operator ==(Object o) { |
| 913 if (o is GoogleProtobuf_FieldOptions_CType) { |
| 914 GoogleProtobuf_FieldOptions_CType p = o; |
| 915 return value == p.value; |
| 916 } else { |
| 917 return false; |
| 918 } |
| 919 } |
| 920 |
| 921 const GoogleProtobuf_FieldOptions_CType._(int i, int v, String n) : super(i, v
, n); |
| 922 } |
| 923 |
| 924 class GoogleProtobuf_FieldOptions extends GeneratedMessage { |
| 925 static GoogleProtobuf_FieldOptions _d; |
| 926 static GoogleProtobuf_FieldOptions_Builder newBuilder() => new GoogleProtobuf_
FieldOptions_Builder(); |
| 927 static GoogleProtobuf_FieldOptions get defaultInstance() => null == _d ? (_d =
newBuilder().buildPartial()) : _d; |
| 928 static GoogleProtobuf_FieldOptions parseFromBuffer(List<int> i, [ExtensionRegi
stry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 929 static Future<GoogleProtobuf_FieldOptions> parseFromStream(InputStream i, [Ext
ensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 930 static GoogleProtobuf_FieldOptions parseFromJson(String i, [ExtensionRegistry
r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 931 GoogleProtobuf_FieldOptions._fromBuilder(GoogleProtobuf_FieldOptions_Builder b
) : super(b); |
| 932 GoogleProtobuf_FieldOptions_Builder toBuilder() => newBuilder().mergeFromMessa
ge(this); |
| 933 |
| 934 // optional enum ctype = 1; |
| 935 GoogleProtobuf_FieldOptions_CType get ctype() => g_(1); |
| 936 bool hasCtype() => h_(1); |
| 937 |
| 938 // optional bool packed = 2; |
| 939 bool get packed() => g_(2); |
| 940 bool hasPacked() => h_(2); |
| 941 |
| 942 // optional bool deprecated = 3; |
| 943 bool get deprecated() => g_(3); |
| 944 bool hasDeprecated() => h_(3); |
| 945 |
| 946 // optional string experimental_map_key = 9; |
| 947 String get experimentalMapKey() => g_(9); |
| 948 bool hasExperimentalMapKey() => h_(9); |
| 949 |
| 950 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 951 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 952 } |
| 953 |
| 954 class GoogleProtobuf_FieldOptions_Builder extends Builder { |
| 955 static BuilderInfo _i; |
| 956 |
| 957 void initialize_() { |
| 958 if (null == _i) { |
| 959 _i = new BuilderInfo(this, "GoogleProtobuf_FieldOptions"); |
| 960 _i.e(1, 'ctype', Builder.OE, () => GoogleProtobuf_FieldOptions_CType.STRIN
G, (var v) => GoogleProtobuf_FieldOptions_CType.valueOf(v)); |
| 961 _i.a(2, 'packed', Builder.OB); |
| 962 _i.a(3, 'deprecated', Builder.OB); |
| 963 _i.a(9, 'experimentalMapKey', Builder.OS); |
| 964 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 965 _i.hasExtensions = true; |
| 966 } |
| 967 } |
| 968 |
| 969 GoogleProtobuf_FieldOptions build() => super.build(); |
| 970 GoogleProtobuf_FieldOptions buildPartial() => partial(new GoogleProtobuf_Field
Options._fromBuilder(this)); |
| 971 BuilderInfo get info_() => _i; |
| 972 |
| 973 GoogleProtobuf_FieldOptions_CType get ctype() => g_(1); |
| 974 void set ctype(GoogleProtobuf_FieldOptions_CType v) { s_(1, v); } |
| 975 bool hasCtype() => h_(1); |
| 976 void clearCtype() => c_(1); |
| 977 |
| 978 bool get packed() => g_(2); |
| 979 void set packed(bool v) { s_(2, v); } |
| 980 bool hasPacked() => h_(2); |
| 981 void clearPacked() => c_(2); |
| 982 |
| 983 bool get deprecated() => g_(3); |
| 984 void set deprecated(bool v) { s_(3, v); } |
| 985 bool hasDeprecated() => h_(3); |
| 986 void clearDeprecated() => c_(3); |
| 987 |
| 988 String get experimentalMapKey() => g_(9); |
| 989 void set experimentalMapKey(String v) { s_(9, v); } |
| 990 bool hasExperimentalMapKey() => h_(9); |
| 991 void clearExperimentalMapKey() => c_(9); |
| 992 |
| 993 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 994 } |
| 995 |
| 996 class GoogleProtobuf_EnumOptions extends GeneratedMessage { |
| 997 static GoogleProtobuf_EnumOptions _d; |
| 998 static GoogleProtobuf_EnumOptions_Builder newBuilder() => new GoogleProtobuf_E
numOptions_Builder(); |
| 999 static GoogleProtobuf_EnumOptions get defaultInstance() => null == _d ? (_d =
newBuilder().buildPartial()) : _d; |
| 1000 static GoogleProtobuf_EnumOptions parseFromBuffer(List<int> i, [ExtensionRegis
try r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1001 static Future<GoogleProtobuf_EnumOptions> parseFromStream(InputStream i, [Exte
nsionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1002 static GoogleProtobuf_EnumOptions parseFromJson(String i, [ExtensionRegistry r
]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1003 GoogleProtobuf_EnumOptions._fromBuilder(GoogleProtobuf_EnumOptions_Builder b)
: super(b); |
| 1004 GoogleProtobuf_EnumOptions_Builder toBuilder() => newBuilder().mergeFromMessag
e(this); |
| 1005 |
| 1006 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1007 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1008 } |
| 1009 |
| 1010 class GoogleProtobuf_EnumOptions_Builder extends Builder { |
| 1011 static BuilderInfo _i; |
| 1012 |
| 1013 void initialize_() { |
| 1014 if (null == _i) { |
| 1015 _i = new BuilderInfo(this, "GoogleProtobuf_EnumOptions"); |
| 1016 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 1017 _i.hasExtensions = true; |
| 1018 } |
| 1019 } |
| 1020 |
| 1021 GoogleProtobuf_EnumOptions build() => super.build(); |
| 1022 GoogleProtobuf_EnumOptions buildPartial() => partial(new GoogleProtobuf_EnumOp
tions._fromBuilder(this)); |
| 1023 BuilderInfo get info_() => _i; |
| 1024 |
| 1025 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1026 } |
| 1027 |
| 1028 class GoogleProtobuf_EnumValueOptions extends GeneratedMessage { |
| 1029 static GoogleProtobuf_EnumValueOptions _d; |
| 1030 static GoogleProtobuf_EnumValueOptions_Builder newBuilder() => new GoogleProto
buf_EnumValueOptions_Builder(); |
| 1031 static GoogleProtobuf_EnumValueOptions get defaultInstance() => null == _d ? (
_d = newBuilder().buildPartial()) : _d; |
| 1032 static GoogleProtobuf_EnumValueOptions parseFromBuffer(List<int> i, [Extension
Registry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1033 static Future<GoogleProtobuf_EnumValueOptions> parseFromStream(InputStream i,
[ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1034 static GoogleProtobuf_EnumValueOptions parseFromJson(String i, [ExtensionRegis
try r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1035 GoogleProtobuf_EnumValueOptions._fromBuilder(GoogleProtobuf_EnumValueOptions_B
uilder b) : super(b); |
| 1036 GoogleProtobuf_EnumValueOptions_Builder toBuilder() => newBuilder().mergeFromM
essage(this); |
| 1037 |
| 1038 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1039 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1040 } |
| 1041 |
| 1042 class GoogleProtobuf_EnumValueOptions_Builder extends Builder { |
| 1043 static BuilderInfo _i; |
| 1044 |
| 1045 void initialize_() { |
| 1046 if (null == _i) { |
| 1047 _i = new BuilderInfo(this, "GoogleProtobuf_EnumValueOptions"); |
| 1048 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 1049 _i.hasExtensions = true; |
| 1050 } |
| 1051 } |
| 1052 |
| 1053 GoogleProtobuf_EnumValueOptions build() => super.build(); |
| 1054 GoogleProtobuf_EnumValueOptions buildPartial() => partial(new GoogleProtobuf_E
numValueOptions._fromBuilder(this)); |
| 1055 BuilderInfo get info_() => _i; |
| 1056 |
| 1057 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1058 } |
| 1059 |
| 1060 class GoogleProtobuf_ServiceOptions extends GeneratedMessage { |
| 1061 static GoogleProtobuf_ServiceOptions _d; |
| 1062 static GoogleProtobuf_ServiceOptions_Builder newBuilder() => new GoogleProtobu
f_ServiceOptions_Builder(); |
| 1063 static GoogleProtobuf_ServiceOptions get defaultInstance() => null == _d ? (_d
= newBuilder().buildPartial()) : _d; |
| 1064 static GoogleProtobuf_ServiceOptions parseFromBuffer(List<int> i, [ExtensionRe
gistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1065 static Future<GoogleProtobuf_ServiceOptions> parseFromStream(InputStream i, [E
xtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1066 static GoogleProtobuf_ServiceOptions parseFromJson(String i, [ExtensionRegistr
y r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1067 GoogleProtobuf_ServiceOptions._fromBuilder(GoogleProtobuf_ServiceOptions_Build
er b) : super(b); |
| 1068 GoogleProtobuf_ServiceOptions_Builder toBuilder() => newBuilder().mergeFromMes
sage(this); |
| 1069 |
| 1070 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1071 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1072 } |
| 1073 |
| 1074 class GoogleProtobuf_ServiceOptions_Builder extends Builder { |
| 1075 static BuilderInfo _i; |
| 1076 |
| 1077 void initialize_() { |
| 1078 if (null == _i) { |
| 1079 _i = new BuilderInfo(this, "GoogleProtobuf_ServiceOptions"); |
| 1080 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 1081 _i.hasExtensions = true; |
| 1082 } |
| 1083 } |
| 1084 |
| 1085 GoogleProtobuf_ServiceOptions build() => super.build(); |
| 1086 GoogleProtobuf_ServiceOptions buildPartial() => partial(new GoogleProtobuf_Ser
viceOptions._fromBuilder(this)); |
| 1087 BuilderInfo get info_() => _i; |
| 1088 |
| 1089 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1090 } |
| 1091 |
| 1092 class GoogleProtobuf_MethodOptions extends GeneratedMessage { |
| 1093 static GoogleProtobuf_MethodOptions _d; |
| 1094 static GoogleProtobuf_MethodOptions_Builder newBuilder() => new GoogleProtobuf
_MethodOptions_Builder(); |
| 1095 static GoogleProtobuf_MethodOptions get defaultInstance() => null == _d ? (_d
= newBuilder().buildPartial()) : _d; |
| 1096 static GoogleProtobuf_MethodOptions parseFromBuffer(List<int> i, [ExtensionReg
istry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1097 static Future<GoogleProtobuf_MethodOptions> parseFromStream(InputStream i, [Ex
tensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1098 static GoogleProtobuf_MethodOptions parseFromJson(String i, [ExtensionRegistry
r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1099 GoogleProtobuf_MethodOptions._fromBuilder(GoogleProtobuf_MethodOptions_Builder
b) : super(b); |
| 1100 GoogleProtobuf_MethodOptions_Builder toBuilder() => newBuilder().mergeFromMess
age(this); |
| 1101 |
| 1102 // repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1103 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1104 } |
| 1105 |
| 1106 class GoogleProtobuf_MethodOptions_Builder extends Builder { |
| 1107 static BuilderInfo _i; |
| 1108 |
| 1109 void initialize_() { |
| 1110 if (null == _i) { |
| 1111 _i = new BuilderInfo(this, "GoogleProtobuf_MethodOptions"); |
| 1112 _i.m(999, 'uninterpretedOption', () => new GoogleProtobuf_UninterpretedOpt
ion_Builder(), () => new PbList<GoogleProtobuf_UninterpretedOption>(this)); |
| 1113 _i.hasExtensions = true; |
| 1114 } |
| 1115 } |
| 1116 |
| 1117 GoogleProtobuf_MethodOptions build() => super.build(); |
| 1118 GoogleProtobuf_MethodOptions buildPartial() => partial(new GoogleProtobuf_Meth
odOptions._fromBuilder(this)); |
| 1119 BuilderInfo get info_() => _i; |
| 1120 |
| 1121 List<GoogleProtobuf_UninterpretedOption> get uninterpretedOption() => g_(999); |
| 1122 } |
| 1123 |
| 1124 class GoogleProtobuf_UninterpretedOption_NamePart extends GeneratedMessage { |
| 1125 static GoogleProtobuf_UninterpretedOption_NamePart _d; |
| 1126 static GoogleProtobuf_UninterpretedOption_NamePart_Builder newBuilder() => new
GoogleProtobuf_UninterpretedOption_NamePart_Builder(); |
| 1127 static GoogleProtobuf_UninterpretedOption_NamePart get defaultInstance() => nu
ll == _d ? (_d = newBuilder().buildPartial()) : _d; |
| 1128 static GoogleProtobuf_UninterpretedOption_NamePart parseFromBuffer(List<int> i
, [ExtensionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1129 static Future<GoogleProtobuf_UninterpretedOption_NamePart> parseFromStream(Inp
utStream i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(),
i, r); |
| 1130 static GoogleProtobuf_UninterpretedOption_NamePart parseFromJson(String i, [Ex
tensionRegistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1131 GoogleProtobuf_UninterpretedOption_NamePart._fromBuilder(GoogleProtobuf_Uninte
rpretedOption_NamePart_Builder b) : super(b); |
| 1132 GoogleProtobuf_UninterpretedOption_NamePart_Builder toBuilder() => newBuilder(
).mergeFromMessage(this); |
| 1133 |
| 1134 // required string name_part = 1; |
| 1135 String get namePart() => g_(1); |
| 1136 bool hasNamePart() => h_(1); |
| 1137 |
| 1138 // required bool is_extension = 2; |
| 1139 bool get isExtension() => g_(2); |
| 1140 bool hasIsExtension() => h_(2); |
| 1141 } |
| 1142 |
| 1143 class GoogleProtobuf_UninterpretedOption_NamePart_Builder extends Builder { |
| 1144 static BuilderInfo _i; |
| 1145 |
| 1146 void initialize_() { |
| 1147 if (null == _i) { |
| 1148 _i = new BuilderInfo(this, "GoogleProtobuf_UninterpretedOption_NamePart"); |
| 1149 _i.a(1, 'namePart', Builder.QS); |
| 1150 _i.a(2, 'isExtension', Builder.QB); |
| 1151 } |
| 1152 } |
| 1153 |
| 1154 GoogleProtobuf_UninterpretedOption_NamePart build() => super.build(); |
| 1155 GoogleProtobuf_UninterpretedOption_NamePart buildPartial() => partial(new Goog
leProtobuf_UninterpretedOption_NamePart._fromBuilder(this)); |
| 1156 BuilderInfo get info_() => _i; |
| 1157 |
| 1158 String get namePart() => g_(1); |
| 1159 void set namePart(String v) { s_(1, v); } |
| 1160 bool hasNamePart() => h_(1); |
| 1161 void clearNamePart() => c_(1); |
| 1162 |
| 1163 bool get isExtension() => g_(2); |
| 1164 void set isExtension(bool v) { s_(2, v); } |
| 1165 bool hasIsExtension() => h_(2); |
| 1166 void clearIsExtension() => c_(2); |
| 1167 } |
| 1168 |
| 1169 class GoogleProtobuf_UninterpretedOption extends GeneratedMessage { |
| 1170 static GoogleProtobuf_UninterpretedOption _d; |
| 1171 static GoogleProtobuf_UninterpretedOption_Builder newBuilder() => new GooglePr
otobuf_UninterpretedOption_Builder(); |
| 1172 static GoogleProtobuf_UninterpretedOption get defaultInstance() => null == _d
? (_d = newBuilder().buildPartial()) : _d; |
| 1173 static GoogleProtobuf_UninterpretedOption parseFromBuffer(List<int> i, [Extens
ionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1174 static Future<GoogleProtobuf_UninterpretedOption> parseFromStream(InputStream
i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1175 static GoogleProtobuf_UninterpretedOption parseFromJson(String i, [ExtensionRe
gistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1176 GoogleProtobuf_UninterpretedOption._fromBuilder(GoogleProtobuf_UninterpretedOp
tion_Builder b) : super(b); |
| 1177 GoogleProtobuf_UninterpretedOption_Builder toBuilder() => newBuilder().mergeFr
omMessage(this); |
| 1178 |
| 1179 // repeated google.protobuf.UninterpretedOption.NamePart name = 2; |
| 1180 List<GoogleProtobuf_UninterpretedOption_NamePart> get name() => g_(2); |
| 1181 |
| 1182 // optional string identifier_value = 3; |
| 1183 String get identifierValue() => g_(3); |
| 1184 bool hasIdentifierValue() => h_(3); |
| 1185 |
| 1186 // optional uint64 positive_int_value = 4; |
| 1187 int get positiveIntValue() => g_(4); |
| 1188 bool hasPositiveIntValue() => h_(4); |
| 1189 |
| 1190 // optional int64 negative_int_value = 5; |
| 1191 int get negativeIntValue() => g_(5); |
| 1192 bool hasNegativeIntValue() => h_(5); |
| 1193 |
| 1194 // optional double double_value = 6; |
| 1195 double get doubleValue() => g_(6); |
| 1196 bool hasDoubleValue() => h_(6); |
| 1197 |
| 1198 // optional bytes string_value = 7; |
| 1199 List<int> get stringValue() => g_(7); |
| 1200 bool hasStringValue() => h_(7); |
| 1201 |
| 1202 // optional string aggregate_value = 8; |
| 1203 String get aggregateValue() => g_(8); |
| 1204 bool hasAggregateValue() => h_(8); |
| 1205 } |
| 1206 |
| 1207 class GoogleProtobuf_UninterpretedOption_Builder extends Builder { |
| 1208 static BuilderInfo _i; |
| 1209 |
| 1210 void initialize_() { |
| 1211 if (null == _i) { |
| 1212 _i = new BuilderInfo(this, "GoogleProtobuf_UninterpretedOption"); |
| 1213 _i.m(2, 'name', () => new GoogleProtobuf_UninterpretedOption_NamePart_Buil
der(), () => new PbList<GoogleProtobuf_UninterpretedOption_NamePart>(this)); |
| 1214 _i.a(3, 'identifierValue', Builder.OS); |
| 1215 _i.a(4, 'positiveIntValue', Builder.OU6); |
| 1216 _i.a(5, 'negativeIntValue', Builder.O6); |
| 1217 _i.a(6, 'doubleValue', Builder.OD); |
| 1218 _i.a(7, 'stringValue', Builder.OY); |
| 1219 _i.a(8, 'aggregateValue', Builder.OS); |
| 1220 } |
| 1221 } |
| 1222 |
| 1223 GoogleProtobuf_UninterpretedOption build() => super.build(); |
| 1224 GoogleProtobuf_UninterpretedOption buildPartial() => partial(new GoogleProtobu
f_UninterpretedOption._fromBuilder(this)); |
| 1225 BuilderInfo get info_() => _i; |
| 1226 |
| 1227 List<GoogleProtobuf_UninterpretedOption_NamePart> get name() => g_(2); |
| 1228 |
| 1229 String get identifierValue() => g_(3); |
| 1230 void set identifierValue(String v) { s_(3, v); } |
| 1231 bool hasIdentifierValue() => h_(3); |
| 1232 void clearIdentifierValue() => c_(3); |
| 1233 |
| 1234 int get positiveIntValue() => g_(4); |
| 1235 void set positiveIntValue(int v) { s_(4, v); } |
| 1236 bool hasPositiveIntValue() => h_(4); |
| 1237 void clearPositiveIntValue() => c_(4); |
| 1238 |
| 1239 int get negativeIntValue() => g_(5); |
| 1240 void set negativeIntValue(int v) { s_(5, v); } |
| 1241 bool hasNegativeIntValue() => h_(5); |
| 1242 void clearNegativeIntValue() => c_(5); |
| 1243 |
| 1244 double get doubleValue() => g_(6); |
| 1245 void set doubleValue(double v) { s_(6, v); } |
| 1246 bool hasDoubleValue() => h_(6); |
| 1247 void clearDoubleValue() => c_(6); |
| 1248 |
| 1249 List<int> get stringValue() => g_(7); |
| 1250 void set stringValue(List<int> v) { s_(7, v); } |
| 1251 bool hasStringValue() => h_(7); |
| 1252 void clearStringValue() => c_(7); |
| 1253 |
| 1254 String get aggregateValue() => g_(8); |
| 1255 void set aggregateValue(String v) { s_(8, v); } |
| 1256 bool hasAggregateValue() => h_(8); |
| 1257 void clearAggregateValue() => c_(8); |
| 1258 } |
| 1259 |
| 1260 class GoogleProtobuf_SourceCodeInfo_Location extends GeneratedMessage { |
| 1261 static GoogleProtobuf_SourceCodeInfo_Location _d; |
| 1262 static GoogleProtobuf_SourceCodeInfo_Location_Builder newBuilder() => new Goog
leProtobuf_SourceCodeInfo_Location_Builder(); |
| 1263 static GoogleProtobuf_SourceCodeInfo_Location get defaultInstance() => null ==
_d ? (_d = newBuilder().buildPartial()) : _d; |
| 1264 static GoogleProtobuf_SourceCodeInfo_Location parseFromBuffer(List<int> i, [Ex
tensionRegistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1265 static Future<GoogleProtobuf_SourceCodeInfo_Location> parseFromStream(InputStr
eam i, [ExtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r
); |
| 1266 static GoogleProtobuf_SourceCodeInfo_Location parseFromJson(String i, [Extensi
onRegistry r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1267 GoogleProtobuf_SourceCodeInfo_Location._fromBuilder(GoogleProtobuf_SourceCodeI
nfo_Location_Builder b) : super(b); |
| 1268 GoogleProtobuf_SourceCodeInfo_Location_Builder toBuilder() => newBuilder().mer
geFromMessage(this); |
| 1269 |
| 1270 // repeated int32 path = 1 [packed=true]; |
| 1271 List<int> get path() => g_(1); |
| 1272 |
| 1273 // repeated int32 span = 2 [packed=true]; |
| 1274 List<int> get span() => g_(2); |
| 1275 } |
| 1276 |
| 1277 class GoogleProtobuf_SourceCodeInfo_Location_Builder extends Builder { |
| 1278 static BuilderInfo _i; |
| 1279 |
| 1280 void initialize_() { |
| 1281 if (null == _i) { |
| 1282 _i = new BuilderInfo(this, "GoogleProtobuf_SourceCodeInfo_Location"); |
| 1283 _i.a(1, 'path', Builder.K3, () => new PbList(this)); |
| 1284 _i.a(2, 'span', Builder.K3, () => new PbList(this)); |
| 1285 _i.hasRequiredFields = false; |
| 1286 } |
| 1287 } |
| 1288 |
| 1289 GoogleProtobuf_SourceCodeInfo_Location build() => super.build(); |
| 1290 GoogleProtobuf_SourceCodeInfo_Location buildPartial() => partial(new GooglePro
tobuf_SourceCodeInfo_Location._fromBuilder(this)); |
| 1291 BuilderInfo get info_() => _i; |
| 1292 |
| 1293 List<int> get path() => g_(1); |
| 1294 |
| 1295 List<int> get span() => g_(2); |
| 1296 } |
| 1297 |
| 1298 class GoogleProtobuf_SourceCodeInfo extends GeneratedMessage { |
| 1299 static GoogleProtobuf_SourceCodeInfo _d; |
| 1300 static GoogleProtobuf_SourceCodeInfo_Builder newBuilder() => new GoogleProtobu
f_SourceCodeInfo_Builder(); |
| 1301 static GoogleProtobuf_SourceCodeInfo get defaultInstance() => null == _d ? (_d
= newBuilder().buildPartial()) : _d; |
| 1302 static GoogleProtobuf_SourceCodeInfo parseFromBuffer(List<int> i, [ExtensionRe
gistry r]) => GeneratedMessage.parseBuffer(newBuilder(), i, r); |
| 1303 static Future<GoogleProtobuf_SourceCodeInfo> parseFromStream(InputStream i, [E
xtensionRegistry r]) => GeneratedMessage.parseStream(newBuilder(), i, r); |
| 1304 static GoogleProtobuf_SourceCodeInfo parseFromJson(String i, [ExtensionRegistr
y r]) => GeneratedMessage.parseJson(newBuilder(), i, r); |
| 1305 GoogleProtobuf_SourceCodeInfo._fromBuilder(GoogleProtobuf_SourceCodeInfo_Build
er b) : super(b); |
| 1306 GoogleProtobuf_SourceCodeInfo_Builder toBuilder() => newBuilder().mergeFromMes
sage(this); |
| 1307 |
| 1308 // repeated google.protobuf.SourceCodeInfo.Location location = 1; |
| 1309 List<GoogleProtobuf_SourceCodeInfo_Location> get location() => g_(1); |
| 1310 } |
| 1311 |
| 1312 class GoogleProtobuf_SourceCodeInfo_Builder extends Builder { |
| 1313 static BuilderInfo _i; |
| 1314 |
| 1315 void initialize_() { |
| 1316 if (null == _i) { |
| 1317 _i = new BuilderInfo(this, "GoogleProtobuf_SourceCodeInfo"); |
| 1318 _i.m(1, 'location', () => new GoogleProtobuf_SourceCodeInfo_Location_Build
er(), () => new PbList<GoogleProtobuf_SourceCodeInfo_Location>(this)); |
| 1319 _i.hasRequiredFields = false; |
| 1320 } |
| 1321 } |
| 1322 |
| 1323 GoogleProtobuf_SourceCodeInfo build() => super.build(); |
| 1324 GoogleProtobuf_SourceCodeInfo buildPartial() => partial(new GoogleProtobuf_Sou
rceCodeInfo._fromBuilder(this)); |
| 1325 BuilderInfo get info_() => _i; |
| 1326 |
| 1327 List<GoogleProtobuf_SourceCodeInfo_Location> get location() => g_(1); |
| 1328 } |
| 1329 |
OLD | NEW |