Package com.codename1.io.grpc
package com.codename1.io.grpc
The protobuf wire format a server shares with the client: the same encoder, decoder and codec contract the application's gRPC client runs, so a message encoded on a device decodes on a server byte for byte.
ProtoWriter/ProtoReader-- the protobuf wire format: varints, zigzag integers, fixed-width numbers, length-delimited strings, bytes and nested messages, and packed repeated fields.ProtoCodec-- encodes and decodes one message class. The build writes one per@ProtoMessageclass,<Message>ProtoCodec, with anINSTANCE.ProtoCodecs-- the registry of those codecs by class.
The gRPC transport of a server is not here: calls, streaming, status codes,
metadata and the client channel are in com.codename1.backend.grpc, and a
service is served by a @GrpcService bean.
-
ClassDescriptionProtoCodec<T>Per-class encoder / decoder for a
@ProtoMessagetype.Runtime registry that wires@ProtoMessageclasses to their build-time-generatedProtoCodecs.Low-level protobuf wire-format reader used by generatedProtoCodecimplementations.Strategy hook forProtoReader.readPacked(List, ProtoReader.PackedReader).Low-level protobuf wire-format writer used by generatedProtoCodecimplementations.