protobuf library Null safety

Classes

BuilderInfo
Per-message type setup.
ClientContext
Client side context.
CodedBufferReader
CodedBufferWriter
Writer used for converting GeneratedMessages into binary representation. [...]
EventPlugin
An EventPlugin receives callbacks when the fields of a GeneratedMessage change. [...]
Extension<T>
An object representing an extension field.
ExtensionRegistry
A collection of Extension objects, organized by the message type they extend.
FieldInfo<T>
An object representing a protobuf message field.
FrozenPbList<E>
GeneratedMessage
The base class for all protobuf message types. [...]
GeneratedService
The implementation of a Service API. [...]
MapFieldInfo<K, V>
PackageName
The package name of a protobuf message.
PbFieldType
Defines constants and functions for dealing with fieldType bits.
PbList<E>
PbListBase<E>
PbMap<K, V>
ProtobufEnum
A base class for all Protocol Buffer enum types. [...]
ReadonlyMessageMixin
Modifies a GeneratedMessage so that it's read-only.
RpcClient
Client-side transport for making calls to a service. [...]
ServerContext
Server side context.
TagNumber
Annotation for marking accessors that belong together.
TypeRegistry
A TypeRegistry is used to resolve Any messages in the proto3 JSON conversion. [...]
UnknownFieldSet
UnknownFieldSetField

Extensions

GeneratedMessageGenericExtensions

Constants

TAG_TYPE_BITS → const int
3
TAG_TYPE_MASK → const int
(1 << TAG_TYPE_BITS) - 1
WIRETYPE_END_GROUP → const int
4
WIRETYPE_FIXED32 → const int
5
WIRETYPE_FIXED64 → const int
1
WIRETYPE_LENGTH_DELIMITED → const int
2
WIRETYPE_START_GROUP → const int
3
WIRETYPE_VARINT → const int
0

Properties

frozenMessageModificationHandler FrozenMessageErrorHandler
read / write

Functions

canUnpackIntoHelper(GeneratedMessage instance, String typeUrl) bool
Returns true if the type of instance is described by typeUrl. [...]
checkItemFailed(dynamic val, String className) → void
defaultFrozenMessageModificationHandler(String messageName, [String? methodName]) → void
getCheckFunction(int fieldType) CheckFunc
Returns a function for validating items in a repeated field. [...]
getTagFieldNumber(int tag) int
getTagWireType(int tag) int
makeLongInt(int n) Int64
makeTag(int fieldNumber, int tag) int
parseLongInt(String text) Int64
sorted<T>(Iterable<T> list) List<T>
@Deprecated('This function was not intended to be public. ' 'It will be removed from the public api in next major version. ')
unpackIntoHelper<T extends GeneratedMessage>(List<int> value, T instance, String typeUrl, {ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY}) → void
Unpacks the message in value into instance. [...]

Typedefs

CheckFunc<E> = void Function(E? x)
CreateBuilderFunc = GeneratedMessage Function()
FrozenMessageErrorHandler = void Function(String messageName, [String? methodName])
MakeDefaultFunc = dynamic Function()
ValueOfFunc = ProtobufEnum? Function(int value)

Exceptions / Errors

InvalidProtocolBufferException