@@ -73,7 +73,7 @@ class BuilderInfo {
73
73
{ProtobufEnum ? defaultEnumValue,
74
74
String ? protoName}) {
75
75
var index = byIndex.length;
76
- _addField (MapFieldInfo <K , V >(name, tagNumber, index, const FieldType .MAP (),
76
+ _addField (MapFieldInfo <K , V >(name, tagNumber, index, FieldType .map (),
77
77
keyFieldType, valueFieldType, mapEntryBuilderInfo, valueCreator,
78
78
defaultEnumValue: defaultEnumValue, protoName: protoName));
79
79
}
@@ -124,36 +124,36 @@ class BuilderInfo {
124
124
/// Adds PbFieldType.OS String with no default value to reduce generated
125
125
/// code size.
126
126
void aOS (int tagNumber, String name, {String ? protoName}) {
127
- add <String >(tagNumber, name, const FieldType . OPTIONAL_STRING (), null , null ,
128
- null , null ,
127
+ add <String >(
128
+ tagNumber, name, FieldType . optional_string (), null , null , null , null ,
129
129
protoName: protoName);
130
130
}
131
131
132
132
/// Adds PbFieldType.PS String with no default value.
133
133
void pPS (int tagNumber, String name, {String ? protoName}) {
134
- addRepeated <String >(tagNumber, name, const FieldType .REPEATED_STRING (),
135
- getCheckFunction (const FieldType .REPEATED_STRING ()), null , null , null ,
134
+ addRepeated <String >(tagNumber, name, FieldType .repeated_string (),
135
+ getCheckFunction (FieldType .repeated_string ()), null , null , null ,
136
136
protoName: protoName);
137
137
}
138
138
139
139
/// Adds PbFieldType.QS String with no default value.
140
140
void aQS (int tagNumber, String name, {String ? protoName}) {
141
- add <String >(tagNumber, name, const FieldType . REQUIRED_STRING (), null , null ,
142
- null , null ,
141
+ add <String >(
142
+ tagNumber, name, FieldType . required_string (), null , null , null , null ,
143
143
protoName: protoName);
144
144
}
145
145
146
146
/// Adds Int64 field with Int64.ZERO default.
147
147
void aInt64 (int tagNumber, String name, {String ? protoName}) {
148
- add <Int64 >(tagNumber, name, const FieldType . OPTIONAL_I64 (), Int64 . ZERO ,
149
- null , null , null ,
148
+ add <Int64 >(
149
+ tagNumber, name, FieldType . optional_i64 (), Int64 . ZERO , null , null , null ,
150
150
protoName: protoName);
151
151
}
152
152
153
153
/// Adds a boolean with no default value.
154
154
void aOB (int tagNumber, String name, {String ? protoName}) {
155
- add <bool >(tagNumber, name, const FieldType . OPTIONAL_BOOL (), null , null ,
156
- null , null ,
155
+ add <bool >(
156
+ tagNumber, name, FieldType . optional_bool (), null , null , null , null ,
157
157
protoName: protoName);
158
158
}
159
159
@@ -195,7 +195,7 @@ class BuilderInfo {
195
195
add <T >(
196
196
tagNumber,
197
197
name,
198
- const FieldType .OPTIONAL_MESSAGE (),
198
+ FieldType .optional_message (),
199
199
GeneratedMessage ._defaultMakerFor <T >(subBuilder),
200
200
subBuilder,
201
201
null ,
@@ -208,7 +208,7 @@ class BuilderInfo {
208
208
add <T >(
209
209
tagNumber,
210
210
name,
211
- const FieldType .REQUIRED_MESSAGE (),
211
+ FieldType .required_message (),
212
212
GeneratedMessage ._defaultMakerFor <T >(subBuilder),
213
213
subBuilder,
214
214
null ,
0 commit comments