FieldInfo<T> class

An object representing a protobuf message field.

Implementers

Constructors

FieldInfo(String name, int tagNumber, int index, int type, [ dynamic defaultOrMaker, CreateBuilderFunc subBuilder, ValueOfFunc valueOf, List<ProtobufEnum> enumValues ])
FieldInfo.repeated(String name, int tagNumber, int index, int type, CheckFunc<T> check, CreateBuilderFunc subBuilder, [ ValueOfFunc valueOf, List<ProtobufEnum> enumValues ])

Properties

check CheckFunc<T>
final
enumValues → List<ProtobufEnum>
final
index → int
final
isEnum → bool
read-only
isGroupOrMessage → bool
read-only
isMapField → bool
read-only
isRepeated → bool
read-only
isRequired → bool
read-only
makeDefault MakeDefaultFunc
final
name → String
final
readonlyDefault → dynamic
Returns a read-only default value for a field. (Unlike getField, doesn't create a repeated field.)
read-only
subBuilder CreateBuilderFunc
final
tagNumber → int
final
type → int
final
valueOf ValueOfFunc
final
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

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

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

Static Methods

findMakeDefault(int type, dynamic defaultOrMaker) MakeDefaultFunc