Client and backend. Every class listed here is shared: the same code is compiled into your app and into your server. The package's page in the client API lists all of it, including any classes that exist only in the app.
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.
Types
interface ProtoCodec | Per-class encoder / decoder for a @ProtoMessage type. |
class ProtoCodecs | Runtime registry that wires @ProtoMessage classes to their build-time-generated ProtoCodecs. |
class ProtoReader | Low-level protobuf wire-format reader used by generated ProtoCodec implementations. |
class ProtoWriter | Low-level protobuf wire-format writer used by generated ProtoCodec implementations. |