GenericMessage class

A message as field number -> list of values (descriptor order).

Generic values: varint family -> int/bool, string -> String, bytes/message -> Uint8List / GenericMessage, fixed/float -> int / double.

Fields not in the model are retained as raw encoded chunks in unknown (protobuf unknown-field retention): a decode -> encode round trip re-emits them after the known fields, so intermediate hops do not strip newer fields.

Constructors

GenericMessage([MessageModel? model])

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → MessageModel?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unknown → List<Uint8List>
final
values → Map<int, List<Object?>>
final

Methods

add(int number, Object? value) → GenericMessage
get(int number) → Object?
getInt(int number) → int
getString(int number) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(int number, Object? value) → GenericMessage
toString() → String
A string representation of this object.
override

Operators

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