Field class
A single field of a message type.
Constructors
-
Field({Input<
FieldCardinality> ? cardinality, Input<String> ? defaultValue, Input<String> ? jsonName, Input<FieldKind> ? kind, Input<String> ? name, Input<int> ? number, Input<int> ? oneofIndex, Input<List< ? options, Input<Option> >bool> ? packed, Input<String> ? typeUrl}) -
Creates a new Field.
cardinalityThe field cardinality.defaultValueThe string value of the default value of this field. Proto2 syntax only.jsonNameThe field JSON name.kindThe field type.nameThe field name.numberThe field number.oneofIndexThe index of the field type inType.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.optionsThe protocol buffer options.packedWhether to use alternative packed wire representation.typeUrlThe field type URL, without the scheme, for message or enumeration types. Example:"type.googleapis.com/google.protobuf.Timestamp".const -
Field.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
cardinality
→ Input<
FieldCardinality> ? -
The field cardinality.
final
-
defaultValue
→ Input<
String> ? -
The string value of the default value of this field. Proto2 syntax only.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonName
→ Input<
String> ? -
The field JSON name.
final
-
kind
→ Input<
FieldKind> ? -
The field type.
final
-
name
→ Input<
String> ? -
The field name.
final
-
number
→ Input<
int> ? -
The field number.
final
-
oneofIndex
→ Input<
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.final -
options
→ Input<
List< ?Option> > -
The protocol buffer options.
final
-
packed
→ Input<
bool> ? -
Whether to use alternative packed wire representation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeUrl
→ Input<
String> ? -
The field type URL, without the scheme, for message or enumeration types. Example:
"type.googleapis.com/google.protobuf.Timestamp".final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited