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

Side by Side Diff: lib/src/descriptor.pbenum.dart

Issue 2103743002: Rename mixin protos and add a check for undefined mixin name (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 ///
2 // Generated code. Do not modify.
3 ///
4 library proto2_descriptor_pbenum;
5
6 import 'package:protobuf/protobuf.dart';
7
8 class FieldDescriptorProto_Type extends ProtobufEnum {
9 static const FieldDescriptorProto_Type TYPE_DOUBLE = const FieldDescriptorProt o_Type._(1, 'TYPE_DOUBLE');
10 static const FieldDescriptorProto_Type TYPE_FLOAT = const FieldDescriptorProto _Type._(2, 'TYPE_FLOAT');
11 static const FieldDescriptorProto_Type TYPE_INT64 = const FieldDescriptorProto _Type._(3, 'TYPE_INT64');
12 static const FieldDescriptorProto_Type TYPE_UINT64 = const FieldDescriptorProt o_Type._(4, 'TYPE_UINT64');
13 static const FieldDescriptorProto_Type TYPE_INT32 = const FieldDescriptorProto _Type._(5, 'TYPE_INT32');
14 static const FieldDescriptorProto_Type TYPE_FIXED64 = const FieldDescriptorPro to_Type._(6, 'TYPE_FIXED64');
15 static const FieldDescriptorProto_Type TYPE_FIXED32 = const FieldDescriptorPro to_Type._(7, 'TYPE_FIXED32');
16 static const FieldDescriptorProto_Type TYPE_BOOL = const FieldDescriptorProto_ Type._(8, 'TYPE_BOOL');
17 static const FieldDescriptorProto_Type TYPE_STRING = const FieldDescriptorProt o_Type._(9, 'TYPE_STRING');
18 static const FieldDescriptorProto_Type TYPE_GROUP = const FieldDescriptorProto _Type._(10, 'TYPE_GROUP');
19 static const FieldDescriptorProto_Type TYPE_MESSAGE = const FieldDescriptorPro to_Type._(11, 'TYPE_MESSAGE');
20 static const FieldDescriptorProto_Type TYPE_BYTES = const FieldDescriptorProto _Type._(12, 'TYPE_BYTES');
21 static const FieldDescriptorProto_Type TYPE_UINT32 = const FieldDescriptorProt o_Type._(13, 'TYPE_UINT32');
22 static const FieldDescriptorProto_Type TYPE_ENUM = const FieldDescriptorProto_ Type._(14, 'TYPE_ENUM');
23 static const FieldDescriptorProto_Type TYPE_SFIXED32 = const FieldDescriptorPr oto_Type._(15, 'TYPE_SFIXED32');
24 static const FieldDescriptorProto_Type TYPE_SFIXED64 = const FieldDescriptorPr oto_Type._(16, 'TYPE_SFIXED64');
25 static const FieldDescriptorProto_Type TYPE_SINT32 = const FieldDescriptorProt o_Type._(17, 'TYPE_SINT32');
26 static const FieldDescriptorProto_Type TYPE_SINT64 = const FieldDescriptorProt o_Type._(18, 'TYPE_SINT64');
27
28 static const List<FieldDescriptorProto_Type> values = const <FieldDescriptorPr oto_Type> [
29 TYPE_DOUBLE,
30 TYPE_FLOAT,
31 TYPE_INT64,
32 TYPE_UINT64,
33 TYPE_INT32,
34 TYPE_FIXED64,
35 TYPE_FIXED32,
36 TYPE_BOOL,
37 TYPE_STRING,
38 TYPE_GROUP,
39 TYPE_MESSAGE,
40 TYPE_BYTES,
41 TYPE_UINT32,
42 TYPE_ENUM,
43 TYPE_SFIXED32,
44 TYPE_SFIXED64,
45 TYPE_SINT32,
46 TYPE_SINT64,
47 ];
48
49 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values);
50 static FieldDescriptorProto_Type valueOf(int value) => _byValue[value] as Fiel dDescriptorProto_Type;
51 static void $checkItem(FieldDescriptorProto_Type v) {
52 if (v is !FieldDescriptorProto_Type) checkItemFailed(v, 'FieldDescriptorProt o_Type');
53 }
54
55 const FieldDescriptorProto_Type._(int v, String n) : super(v, n);
56 }
57
58 class FieldDescriptorProto_Label extends ProtobufEnum {
59 static const FieldDescriptorProto_Label LABEL_OPTIONAL = const FieldDescriptor Proto_Label._(1, 'LABEL_OPTIONAL');
60 static const FieldDescriptorProto_Label LABEL_REQUIRED = const FieldDescriptor Proto_Label._(2, 'LABEL_REQUIRED');
61 static const FieldDescriptorProto_Label LABEL_REPEATED = const FieldDescriptor Proto_Label._(3, 'LABEL_REPEATED');
62
63 static const List<FieldDescriptorProto_Label> values = const <FieldDescriptorP roto_Label> [
64 LABEL_OPTIONAL,
65 LABEL_REQUIRED,
66 LABEL_REPEATED,
67 ];
68
69 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values);
70 static FieldDescriptorProto_Label valueOf(int value) => _byValue[value] as Fie ldDescriptorProto_Label;
71 static void $checkItem(FieldDescriptorProto_Label v) {
72 if (v is !FieldDescriptorProto_Label) checkItemFailed(v, 'FieldDescriptorPro to_Label');
73 }
74
75 const FieldDescriptorProto_Label._(int v, String n) : super(v, n);
76 }
77
78 class FileOptions_OptimizeMode extends ProtobufEnum {
79 static const FileOptions_OptimizeMode SPEED = const FileOptions_OptimizeMode._ (1, 'SPEED');
80 static const FileOptions_OptimizeMode CODE_SIZE = const FileOptions_OptimizeMo de._(2, 'CODE_SIZE');
81 static const FileOptions_OptimizeMode LITE_RUNTIME = const FileOptions_Optimiz eMode._(3, 'LITE_RUNTIME');
82
83 static const List<FileOptions_OptimizeMode> values = const <FileOptions_Optimi zeMode> [
84 SPEED,
85 CODE_SIZE,
86 LITE_RUNTIME,
87 ];
88
89 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values);
90 static FileOptions_OptimizeMode valueOf(int value) => _byValue[value] as FileO ptions_OptimizeMode;
91 static void $checkItem(FileOptions_OptimizeMode v) {
92 if (v is !FileOptions_OptimizeMode) checkItemFailed(v, 'FileOptions_Optimize Mode');
93 }
94
95 const FileOptions_OptimizeMode._(int v, String n) : super(v, n);
96 }
97
98 class FieldOptions_CType extends ProtobufEnum {
99 static const FieldOptions_CType STRING = const FieldOptions_CType._(0, 'STRING ');
100
101 static const List<FieldOptions_CType> values = const <FieldOptions_CType> [
102 STRING,
103 ];
104
105 static final Map<int, dynamic> _byValue = ProtobufEnum.initByValue(values);
106 static FieldOptions_CType valueOf(int value) => _byValue[value] as FieldOption s_CType;
107 static void $checkItem(FieldOptions_CType v) {
108 if (v is !FieldOptions_CType) checkItemFailed(v, 'FieldOptions_CType');
109 }
110
111 const FieldOptions_CType._(int v, String n) : super(v, n);
112 }
113
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698