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 proto 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
Constants
- infinity → const String
-
Constant string value of
double.infinity.toString()
and the infinity value recognized bydouble.parse(..)
.'Infinity'
- nan → const String
-
Constant string value of
double.nan.toString()
and the NaN (not a number) value recognized bydouble.parse(..)
.'NaN'
- negativeInfinity → const String
-
Constant string value of
double.negativeInfinity.toString()
and the negative infinity value recognized bydouble.parse(..)
.'-Infinity'
- 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 ofinstance
is described bytypeUrl
. -
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 -
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
intoinstance
.
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)