BuilderInfo class

Per-message type setup.

Constructors

BuilderInfo(String messageName, {PackageName package = const PackageName(''), CreateBuilderFunc createEmptyInstance, Object toProto3Json(GeneratedMessage message, TypeRegistry typeRegistry), dynamic fromProto3Json(GeneratedMessage targetMessage, Object json, TypeRegistry typeRegistry, JsonParsingContext context)})

Properties

byIndex List<FieldInfo>
final
byName Map<String, FieldInfo>
final
byTagAsString Map<String, FieldInfo>
final
createEmptyInstance CreateBuilderFunc
final
fieldInfo Map<int, FieldInfo>
final
fromProto3Json → dynamic Function(GeneratedMessage targetMessage, Object json, TypeRegistry typeRegistry, JsonParsingContext context)
final
hasExtensions bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasRequiredFields bool
read / write
messageName String
The message name. Also see qualifiedMessageName.
read-only
oneofs Map<int, int>
final
qualifiedMessageName String
The fully qualified name of this message.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sortedByTag List<FieldInfo>
The FieldInfo for each field in tag number order.
read-only
toProto3Json Object Function(GeneratedMessage message, TypeRegistry typeRegistry)
final

Methods

a<T>(int tagNumber, String name, int fieldType, {dynamic defaultOrMaker, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, String protoName}) → void
add<T>(int tagNumber, String name, int fieldType, dynamic defaultOrMaker, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, {String protoName}) → void
addMapField<K, V>(int tagNumber, String name, int keyFieldType, int valueFieldType, BuilderInfo mapEntryBuilderInfo, CreateBuilderFunc valueCreator, {ProtobufEnum defaultEnumValue, String protoName}) → void
addRepeated<T>(int tagNumber, String name, int fieldType, CheckFunc<T> check, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, {ProtobufEnum defaultEnumValue, String protoName}) → void
aInt64(int tagNumber, String name, {String protoName}) → void
Adds Int64 field with Int64.ZERO default.
aOB(int tagNumber, String name, {String protoName}) → void
Adds a boolean with no default value.
aOM<T extends GeneratedMessage>(int tagNumber, String name, {T subBuilder(), String protoName}) → void
aOS(int tagNumber, String name, {String protoName}) → void
Adds PbFieldType.OS String with no default value to reduce generated code size.
aQM<T extends GeneratedMessage>(int tagNumber, String name, {T subBuilder(), String protoName}) → void
aQS(int tagNumber, String name, {String protoName}) → void
Adds PbFieldType.QS String with no default value.
containsTagNumber(int tagNumber) bool
defaultValue(int tagNumber) → dynamic
e<T>(int tagNumber, String name, int fieldType, {dynamic defaultOrMaker, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, String protoName}) → void
fieldName(int tagNumber) String
fieldType(int tagNumber) int
m<K, V>(int tagNumber, String name, {String entryClassName, int keyFieldType, int valueFieldType, CreateBuilderFunc valueCreator, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, ProtobufEnum defaultEnumValue, PackageName packageName = const PackageName(''), String protoName}) → void
makeDefault(int tagNumber) MakeDefaultFunc
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
oo(int oneofIndex, List<int> tags) → void
p<T>(int tagNumber, String name, int fieldType, {String protoName}) → void
pc<T>(int tagNumber, String name, int fieldType, {CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues, ProtobufEnum defaultEnumValue, String protoName}) → void
pPS(int tagNumber, String name, {String protoName}) → void
Adds PbFieldType.PS String with no default value.
subBuilder(int tagNumber) CreateBuilderFunc
tagNumber(String fieldName) int
toString() String
A string representation of this object. [...]
inherited
valueOfFunc(int tagNumber) ValueOfFunc

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited