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, ProtobufEnum defaultEnumValue, String protoName})
FieldInfo.dummy(int index)
FieldInfo.repeated(String name, int tagNumber, int index, int type, CheckFunc<T> check, CreateBuilderFunc subBuilder, {ValueOfFunc valueOf, List<ProtobufEnum> enumValues, ProtobufEnum defaultEnumValue, String protoName})

Properties

check CheckFunc<T>
final
defaultEnumValue ProtobufEnum
final
enumValues List<ProtobufEnum>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
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
Name of this field as the json_name reported by protoc. [...]
final
protoName String
The name of this field as written in the proto-definition. [...]
final
readonlyDefault → dynamic
Returns a read-only default value for a field. (Unlike getField, doesn't create a repeated field.)
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subBuilder CreateBuilderFunc
final
tagNumber int
final
type int
final
valueOf ValueOfFunc
final

Methods

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

Operators

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

Static Methods

findMakeDefault(int type, dynamic defaultOrMaker) MakeDefaultFunc