MapFieldInfo<K, V> class

A FieldInfo subclass for protobuf map fields.

Inheritance

Constructors

MapFieldInfo(String name, int tagNumber, int index, int type, int keyFieldType, int valueFieldType, BuilderInfo mapEntryBuilderInfo, CreateBuilderFunc? valueCreator, {ProtobufEnum? defaultEnumValue, String? protoName})

Properties

check CheckFunc<PbMap<K, V>?>?
Function to verify items when adding to a repeated field.
finalinherited
defaultEnumValue ProtobufEnum?
Default enum value.
finalinherited
enumValues List<ProtobufEnum>?
List of all enum values.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
index int?
Index of the field in _FieldSet._values list of this field's message.
finalinherited
isEnum bool
no setterinherited
isGroupOrMessage bool
no setterinherited
isMapField bool
no setterinherited
isRepeated bool
no setterinherited
isRequired bool
no setterinherited
keyFieldType int
Key type of the map. Per proto2 and proto3 specs, this needs to be an integer type or string, and the type cannot be repeated.
final
makeDefault MakeDefaultFunc?
Constructs the default value of a field.
finalinherited
mapEntryBuilderInfo BuilderInfo
final
name String
Name of this field as the json_name reported by protoc.
finalinherited
protoName String
Name of this field as written in the proto definition.
no setterinherited
readonlyDefault → dynamic
Returns a read-only default value for a field. Unlike GeneratedMessage.getField, doesn't create a repeated field.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subBuilder CreateBuilderFunc?
Creates an empty message or group when decoding a message.
finalinherited
tagNumber int
Field number as specified in the proto definition.
finalinherited
type int
Type of this field. See PbFieldType.
finalinherited
valueCreator CreateBuilderFunc?
Creates a new empty instance of the value type.
final
valueFieldInfo FieldInfo
no setter
valueFieldType int
Value type of the map. Per proto2 and proto3 specs, this can be any type other than map, and the type cannot be repeated.
final
valueOf ValueOfFunc?
Mapping from enum integer values to enum values.
finalinherited

Methods

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

Operators

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