Skip to content

Commit 006d3aa

Browse files
authored
Update protoc_plugin pre-generated protos (#982)
1 parent 4abee01 commit 006d3aa

File tree

5 files changed

+82
-54
lines changed

5 files changed

+82
-54
lines changed

protoc_plugin/lib/src/generated/dart_options.pb.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Generated code. Do not modify.
33
// source: dart_options.proto
44
//
5-
// @dart = 2.12
5+
// @dart = 3.3
66

77
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
88
// ignore_for_file: constant_identifier_names, library_prefixes
@@ -13,6 +13,8 @@ import 'dart:core' as $core;
1313

1414
import 'package:protobuf/protobuf.dart' as $pb;
1515

16+
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
17+
1618
/// A mixin that can be used in the 'with' clause of the generated Dart class
1719
/// for a proto message.
1820
class DartMixin extends $pb.GeneratedMessage {
@@ -171,7 +173,7 @@ class Imports extends $pb.GeneratedMessage {
171173
/// so the generated code may contain errors. Therefore, running dartanalyzer
172174
/// on the generated file is a good idea.
173175
@$pb.TagNumber(1)
174-
$core.List<DartMixin> get mixins => $_getList(0);
176+
$pb.PbList<DartMixin> get mixins => $_getList(0);
175177
}
176178

177179
class Dart_options {

protoc_plugin/lib/src/generated/descriptor.pb.dart

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Generated code. Do not modify.
33
// source: descriptor.proto
44
//
5-
// @dart = 2.12
5+
// @dart = 3.3
66

77
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
88
// ignore_for_file: constant_identifier_names, library_prefixes
@@ -16,6 +16,8 @@ import 'package:protobuf/protobuf.dart' as $pb;
1616

1717
import 'descriptor.pbenum.dart';
1818

19+
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
20+
1921
export 'descriptor.pbenum.dart';
2022

2123
/// The protocol compiler can output a FileDescriptorSet containing the .proto
@@ -71,7 +73,7 @@ class FileDescriptorSet extends $pb.GeneratedMessage {
7173
static FileDescriptorSet? _defaultInstance;
7274

7375
@$pb.TagNumber(1)
74-
$core.List<FileDescriptorProto> get file => $_getList(0);
76+
$pb.PbList<FileDescriptorProto> get file => $_getList(0);
7577
}
7678

7779
/// Describes a complete .proto file.
@@ -216,20 +218,20 @@ class FileDescriptorProto extends $pb.GeneratedMessage {
216218

217219
/// Names of files imported by this file.
218220
@$pb.TagNumber(3)
219-
$core.List<$core.String> get dependency => $_getList(2);
221+
$pb.PbList<$core.String> get dependency => $_getList(2);
220222

221223
/// All top-level definitions in this file.
222224
@$pb.TagNumber(4)
223-
$core.List<DescriptorProto> get messageType => $_getList(3);
225+
$pb.PbList<DescriptorProto> get messageType => $_getList(3);
224226

225227
@$pb.TagNumber(5)
226-
$core.List<EnumDescriptorProto> get enumType => $_getList(4);
228+
$pb.PbList<EnumDescriptorProto> get enumType => $_getList(4);
227229

228230
@$pb.TagNumber(6)
229-
$core.List<ServiceDescriptorProto> get service => $_getList(5);
231+
$pb.PbList<ServiceDescriptorProto> get service => $_getList(5);
230232

231233
@$pb.TagNumber(7)
232-
$core.List<FieldDescriptorProto> get extension => $_getList(6);
234+
$pb.PbList<FieldDescriptorProto> get extension => $_getList(6);
233235

234236
@$pb.TagNumber(8)
235237
FileOptions get options => $_getN(7);
@@ -265,12 +267,12 @@ class FileDescriptorProto extends $pb.GeneratedMessage {
265267

266268
/// Indexes of the public imported files in the dependency list above.
267269
@$pb.TagNumber(10)
268-
$core.List<$core.int> get publicDependency => $_getList(9);
270+
$pb.PbList<$core.int> get publicDependency => $_getList(9);
269271

270272
/// Indexes of the weak imported files in the dependency list.
271273
/// For Google-internal migration only. Do not use.
272274
@$pb.TagNumber(11)
273-
$core.List<$core.int> get weakDependency => $_getList(10);
275+
$pb.PbList<$core.int> get weakDependency => $_getList(10);
274276

275277
/// The syntax of the proto file.
276278
/// The supported values are "proto2" and "proto3".
@@ -597,19 +599,19 @@ class DescriptorProto extends $pb.GeneratedMessage {
597599
void clearName() => $_clearField(1);
598600

599601
@$pb.TagNumber(2)
600-
$core.List<FieldDescriptorProto> get field => $_getList(1);
602+
$pb.PbList<FieldDescriptorProto> get field => $_getList(1);
601603

602604
@$pb.TagNumber(3)
603-
$core.List<DescriptorProto> get nestedType => $_getList(2);
605+
$pb.PbList<DescriptorProto> get nestedType => $_getList(2);
604606

605607
@$pb.TagNumber(4)
606-
$core.List<EnumDescriptorProto> get enumType => $_getList(3);
608+
$pb.PbList<EnumDescriptorProto> get enumType => $_getList(3);
607609

608610
@$pb.TagNumber(5)
609-
$core.List<DescriptorProto_ExtensionRange> get extensionRange => $_getList(4);
611+
$pb.PbList<DescriptorProto_ExtensionRange> get extensionRange => $_getList(4);
610612

611613
@$pb.TagNumber(6)
612-
$core.List<FieldDescriptorProto> get extension => $_getList(5);
614+
$pb.PbList<FieldDescriptorProto> get extension => $_getList(5);
613615

614616
@$pb.TagNumber(7)
615617
MessageOptions get options => $_getN(6);
@@ -626,15 +628,15 @@ class DescriptorProto extends $pb.GeneratedMessage {
626628
MessageOptions ensureOptions() => $_ensure(6);
627629

628630
@$pb.TagNumber(8)
629-
$core.List<OneofDescriptorProto> get oneofDecl => $_getList(7);
631+
$pb.PbList<OneofDescriptorProto> get oneofDecl => $_getList(7);
630632

631633
@$pb.TagNumber(9)
632-
$core.List<DescriptorProto_ReservedRange> get reservedRange => $_getList(8);
634+
$pb.PbList<DescriptorProto_ReservedRange> get reservedRange => $_getList(8);
633635

634636
/// Reserved field names, which may not be used by fields in the same message.
635637
/// A given name may only be reserved once.
636638
@$pb.TagNumber(10)
637-
$core.List<$core.String> get reservedName => $_getList(9);
639+
$pb.PbList<$core.String> get reservedName => $_getList(9);
638640
}
639641

640642
class ExtensionRangeOptions extends $pb.GeneratedMessage {
@@ -692,7 +694,7 @@ class ExtensionRangeOptions extends $pb.GeneratedMessage {
692694

693695
/// The parser stores options it doesn't recognize here. See above.
694696
@$pb.TagNumber(999)
695-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(0);
697+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(0);
696698
}
697699

698700
/// Describes a field within a message.
@@ -1241,7 +1243,7 @@ class EnumDescriptorProto extends $pb.GeneratedMessage {
12411243
void clearName() => $_clearField(1);
12421244

12431245
@$pb.TagNumber(2)
1244-
$core.List<EnumValueDescriptorProto> get value => $_getList(1);
1246+
$pb.PbList<EnumValueDescriptorProto> get value => $_getList(1);
12451247

12461248
@$pb.TagNumber(3)
12471249
EnumOptions get options => $_getN(2);
@@ -1261,13 +1263,13 @@ class EnumDescriptorProto extends $pb.GeneratedMessage {
12611263
/// by enum values in the same enum declaration. Reserved ranges may not
12621264
/// overlap.
12631265
@$pb.TagNumber(4)
1264-
$core.List<EnumDescriptorProto_EnumReservedRange> get reservedRange =>
1266+
$pb.PbList<EnumDescriptorProto_EnumReservedRange> get reservedRange =>
12651267
$_getList(3);
12661268

12671269
/// Reserved enum value names, which may not be reused. A given name may only
12681270
/// be reserved once.
12691271
@$pb.TagNumber(5)
1270-
$core.List<$core.String> get reservedName => $_getList(4);
1272+
$pb.PbList<$core.String> get reservedName => $_getList(4);
12711273
}
12721274

12731275
/// Describes a value within an enum.
@@ -1448,7 +1450,7 @@ class ServiceDescriptorProto extends $pb.GeneratedMessage {
14481450
void clearName() => $_clearField(1);
14491451

14501452
@$pb.TagNumber(2)
1451-
$core.List<MethodDescriptorProto> get method => $_getList(1);
1453+
$pb.PbList<MethodDescriptorProto> get method => $_getList(1);
14521454

14531455
@$pb.TagNumber(3)
14541456
ServiceOptions get options => $_getN(2);
@@ -2087,7 +2089,7 @@ class FileOptions extends $pb.GeneratedMessage {
20872089
/// The parser stores options it doesn't recognize here.
20882090
/// See the documentation for the "Options" section above.
20892091
@$pb.TagNumber(999)
2090-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(20);
2092+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(20);
20912093
}
20922094

20932095
class MessageOptions extends $pb.GeneratedMessage {
@@ -2257,7 +2259,7 @@ class MessageOptions extends $pb.GeneratedMessage {
22572259

22582260
/// The parser stores options it doesn't recognize here. See above.
22592261
@$pb.TagNumber(999)
2260-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(4);
2262+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(4);
22612263
}
22622264

22632265
class FieldOptions extends $pb.GeneratedMessage {
@@ -2476,7 +2478,7 @@ class FieldOptions extends $pb.GeneratedMessage {
24762478

24772479
/// The parser stores options it doesn't recognize here. See above.
24782480
@$pb.TagNumber(999)
2479-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(6);
2481+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(6);
24802482
}
24812483

24822484
class OneofOptions extends $pb.GeneratedMessage {
@@ -2532,7 +2534,7 @@ class OneofOptions extends $pb.GeneratedMessage {
25322534

25332535
/// The parser stores options it doesn't recognize here. See above.
25342536
@$pb.TagNumber(999)
2535-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(0);
2537+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(0);
25362538
}
25372539

25382540
class EnumOptions extends $pb.GeneratedMessage {
@@ -2627,7 +2629,7 @@ class EnumOptions extends $pb.GeneratedMessage {
26272629

26282630
/// The parser stores options it doesn't recognize here. See above.
26292631
@$pb.TagNumber(999)
2630-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(2);
2632+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(2);
26312633
}
26322634

26332635
class EnumValueOptions extends $pb.GeneratedMessage {
@@ -2704,7 +2706,7 @@ class EnumValueOptions extends $pb.GeneratedMessage {
27042706

27052707
/// The parser stores options it doesn't recognize here. See above.
27062708
@$pb.TagNumber(999)
2707-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(1);
2709+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(1);
27082710
}
27092711

27102712
class ServiceOptions extends $pb.GeneratedMessage {
@@ -2781,7 +2783,7 @@ class ServiceOptions extends $pb.GeneratedMessage {
27812783

27822784
/// The parser stores options it doesn't recognize here. See above.
27832785
@$pb.TagNumber(999)
2784-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(1);
2786+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(1);
27852787
}
27862788

27872789
class MethodOptions extends $pb.GeneratedMessage {
@@ -2879,7 +2881,7 @@ class MethodOptions extends $pb.GeneratedMessage {
28792881

28802882
/// The parser stores options it doesn't recognize here. See above.
28812883
@$pb.TagNumber(999)
2882-
$core.List<UninterpretedOption> get uninterpretedOption => $_getList(2);
2884+
$pb.PbList<UninterpretedOption> get uninterpretedOption => $_getList(2);
28832885
}
28842886

28852887
/// The name of the uninterpreted option. Each string represents a segment in
@@ -3061,7 +3063,7 @@ class UninterpretedOption extends $pb.GeneratedMessage {
30613063
static UninterpretedOption? _defaultInstance;
30623064

30633065
@$pb.TagNumber(2)
3064-
$core.List<UninterpretedOption_NamePart> get name => $_getList(0);
3066+
$pb.PbList<UninterpretedOption_NamePart> get name => $_getList(0);
30653067

30663068
/// The value of the uninterpreted option, in whatever type the tokenizer
30673069
/// identified it as during parsing. Exactly one of these should be set.
@@ -3233,15 +3235,15 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage {
32333235
/// this path refers to the whole field declaration (from the beginning
32343236
/// of the label to the terminating semicolon).
32353237
@$pb.TagNumber(1)
3236-
$core.List<$core.int> get path => $_getList(0);
3238+
$pb.PbList<$core.int> get path => $_getList(0);
32373239

32383240
/// Always has exactly three or four elements: start line, start column,
32393241
/// end line (optional, otherwise assumed same as start line), end column.
32403242
/// These are packed into a single field for efficiency. Note that line
32413243
/// and column numbers are zero-based -- typically you will want to add
32423244
/// 1 to each before displaying to a user.
32433245
@$pb.TagNumber(2)
3244-
$core.List<$core.int> get span => $_getList(1);
3246+
$pb.PbList<$core.int> get span => $_getList(1);
32453247

32463248
/// If this SourceCodeInfo represents a complete declaration, these are any
32473249
/// comments appearing before and after the declaration which appear to be
@@ -3315,7 +3317,7 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage {
33153317
void clearTrailingComments() => $_clearField(4);
33163318

33173319
@$pb.TagNumber(6)
3318-
$core.List<$core.String> get leadingDetachedComments => $_getList(4);
3320+
$pb.PbList<$core.String> get leadingDetachedComments => $_getList(4);
33193321
}
33203322

33213323
/// Encapsulates information about the original source file from which a
@@ -3415,7 +3417,7 @@ class SourceCodeInfo extends $pb.GeneratedMessage {
34153417
/// ignore those that it doesn't understand, as more types of locations could
34163418
/// be recorded in the future.
34173419
@$pb.TagNumber(1)
3418-
$core.List<SourceCodeInfo_Location> get location => $_getList(0);
3420+
$pb.PbList<SourceCodeInfo_Location> get location => $_getList(0);
34193421
}
34203422

34213423
class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage {
@@ -3489,7 +3491,7 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage {
34893491
/// Identifies the element in the original source .proto file. This field
34903492
/// is formatted the same as SourceCodeInfo.Location.path.
34913493
@$pb.TagNumber(1)
3492-
$core.List<$core.int> get path => $_getList(0);
3494+
$pb.PbList<$core.int> get path => $_getList(0);
34933495

34943496
/// Identifies the filesystem path to the original source .proto.
34953497
@$pb.TagNumber(2)
@@ -3591,7 +3593,7 @@ class GeneratedCodeInfo extends $pb.GeneratedMessage {
35913593
/// An Annotation connects some span of text in generated code to an element
35923594
/// of its generating .proto file.
35933595
@$pb.TagNumber(1)
3594-
$core.List<GeneratedCodeInfo_Annotation> get annotation => $_getList(0);
3596+
$pb.PbList<GeneratedCodeInfo_Annotation> get annotation => $_getList(0);
35953597
}
35963598

35973599
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');

0 commit comments

Comments
 (0)