EnumGenerator class

Inheritance

Constructors

EnumGenerator.nested(EnumDescriptorProto descriptor, ProtobufContainer parent, Set<String> usedClassNames, int repeatedFieldIndex)
EnumGenerator.topLevel(EnumDescriptorProto descriptor, ProtobufContainer parent, Set<String> usedClassNames, int repeatedFieldIndex)

Properties

binaryDescriptorName String
no setterinherited
classname String
final
dartNames Map<String, String>
Maps the name of an enum value to the Dart name we will use for it.
final
dottedName String
The fully qualified name with a leading '.'.
no setterinherited
fieldPath List<int>
The field path contains the field IDs and indices (for repeated fields) that lead to the proto member corresponding to a piece of generated code. Repeated fields in the descriptor are further identified by the index of the message in question. For more information see https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto#L728
no setteroverride
fileGen FileGenerator?
The generator of the .pb.dart file defining this entity.
no setteroverride
fileImportPrefix String
no setterinherited
fullName String
final
hashCode int
The hash code for this object.
no setterinherited
package String
no setteroverride
parent ProtobufContainer
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toplevelParent ProtobufContainer?
The top-level parent of this entity, or itself if it is a top-level entity.
no setterinherited

Methods

generate(IndentingWriter out) → void
generateConstants(IndentingWriter out) → void
Writes a Dart constant containing the JSON for the EnumProtoDescriptor.
getJsonConstant(FileGenerator usage) String
Returns a const expression that evaluates to the JSON for this message. usage represents the .pb.dart file where the expression will be used.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(GenerationContext ctx) → void
Make this enum available as a field type.
toString() String
A string representation of this object.
inherited

Operators

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