FieldNames class

The Dart member names in a GeneratedMessage subclass for one protobuf field.

Constructors

FieldNames(FieldDescriptorProto descriptor, int? index, int? sourcePosition, String fieldName, {String? hasMethodName, String? clearMethodName, String? ensureMethodName})

Properties

clearMethodName String?
Identifier for the generated clearX() method, without braces.
final
descriptor → FieldDescriptorProto
The descriptor of the field these member names apply to.
final
ensureMethodName String?
final
fieldName String
Identifier for generated getters/setters.
final
hashCode int
The hash code for this object.
no setterinherited
hasMethodName String?
Identifier for the generated hasX() method, without braces.
final
index int?
The index of this field in MessageGenerator.fieldList. The same index will be stored in FieldInfo.index.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourcePosition int?
The position of this field as it appeared in the original DescriptorProto. Used to construct metadata.
final

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