FieldResponse class

A single field of a message type.

Constructors

FieldResponse({required Input<String> cardinality, required Input<String> defaultValue, required Input<String> jsonName, required Input<String> kind, required Input<String> name, required Input<int> number, required Input<int> oneofIndex, required Input<List<OptionResponse>> options, required Input<bool> packed, required Input<String> typeUrl})
Creates a new FieldResponse. cardinality The field cardinality. defaultValue The string value of the default value of this field. Proto2 syntax only. jsonName The field JSON name. kind The field type. name The field name. number The field number. oneofIndex 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. options The protocol buffer options. packed Whether to use alternative packed wire representation. typeUrl The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".
const
FieldResponse.fromMap(Map<String, dynamic> map)
factory

Properties

cardinality → Input<String>
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<String>
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<OptionResponse>>
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