Field class

A single field of a message type.


Field.fromJson(Map _json)


cardinality ↔ String
The field cardinality. Possible string values are: [...]
read / write
defaultValue ↔ String
The string value of the default value of this field. Proto2 syntax only.
read / write
jsonName ↔ String
The field JSON name.
read / write
kind ↔ String
The field type. Possible string values are: [...]
read / write
name ↔ String
The field name.
read / write
number ↔ int
The field number.
read / write
oneofIndex ↔ int
The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.
read / write
options ↔ List<Option>
The protocol buffer options.
read / write
packed ↔ bool
Whether to use alternative packed wire representation.
read / write
typeUrl ↔ String
The field type URL, without the scheme, for message or enumeration types. Example: "".
read / write
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


toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


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