BuilderInfo class

Per-message type setup.

Constructors

BuilderInfo(String messageName, { PackageName package: const PackageName('') })

Properties

byIndex → List<FieldInfo>
final
byName → Map<String, FieldInfo>
final
byTagAsString → Map<String, FieldInfo>
final
fieldInfo → Map<int, FieldInfo>
final
hasExtensions ↔ bool
read / write
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
sortedByTag → List<FieldInfo>
The FieldInfo for each field in tag number order.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

a<T>(int tagNumber, String name, int fieldType, [ dynamic defaultOrMaker, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues ]) → void
add<T>(int tagNumber, String name, int fieldType, dynamic defaultOrMaker, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues) → void
addMapField<K, V>(int tagNumber, String name, int keyFieldType, int valueFieldType, CreateBuilderFunc valueCreator, ValueOfFunc valueOf, List<ProtobufEnum> enumValues) → void
addRepeated<T>(int tagNumber, String name, int fieldType, CheckFunc<T> check, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues) → void
aInt64(int tagNumber, String name) → void
Adds Int64 field with Int64.ZERO default.
aOB(int tagNumber, String name) → void
Adds a boolean with no default value.
aOS(int tagNumber, String name) → void
Adds PbFieldType.OS String with no default value to reduce generated code size.
aQS(int tagNumber, String name) → 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) → void
fieldName(int tagNumber) → String
fieldType(int tagNumber) → int
m<K, V>(int tagNumber, String name, int keyFieldType, int valueFieldType, [ CreateBuilderFunc valueCreator, ValueOfFunc valueOf, List<ProtobufEnum> enumValues ]) → void
makeDefault(int tagNumber) MakeDefaultFunc
oo(int oneofIndex, List<int> tags) → void
p<T>(int tagNumber, String name, int fieldType) → void
pp<T>(int tagNumber, String name, int fieldType, CheckFunc<T> check, [ CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues ]) → void
pPS(int tagNumber, String name) → void
Adds PbFieldType.PS String with no default value.
subBuilder(int tagNumber) CreateBuilderFunc
tagNumber(String fieldName) → int
valueOfFunc(int tagNumber) ValueOfFunc
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited