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 @ProtoMessage class, <Message>ProtoCodec, with an INSTANCE.
  • 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.