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
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