ExtensionRegistry class

A collection of Extension objects, organized by the message type they extend.

Constructors

ExtensionRegistry()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Extension extension) → void
Stores an extension in the registry.
addAll(Iterable<Extension> extensions) → void
Stores all extensions in the registry.
getExtension(String messageName, int tagNumber) Extension?
Retrieves an extension from the registry that adds tag number tagNumber to the messageName message type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reparseMessage<T extends GeneratedMessage>(T message) → T
Creates a shallow copy of message, with all extensions in this parsed from the unknown fields of message and of every nested submessage.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

EMPTY → const ExtensionRegistry