protobuf library

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

Constants

TAG_TYPE_BITS → const int
TAG_TYPE_MASK → const int
WIRETYPE_END_GROUP → const int
WIRETYPE_FIXED32 → const int
WIRETYPE_FIXED64 → const int
WIRETYPE_LENGTH_DELIMITED → const int
WIRETYPE_START_GROUP → const int
WIRETYPE_VARINT → const int

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