package messages
- Alphabetic
- Public
- All
Type Members
-
trait
Decoder[A] extends Serializable
Interface for all Decoder implementations.
Interface for all Decoder implementations.
Allows to decode protobuf3 serialized message in type
A
. If the message is not compatible withA
, return a io.protoless.error.DecodingFailure.Decoding can be done with
Automatic
strategy with decoders.AutoDecoder, or by specifying a custom protobuf mapping with decoders.CustomMappingDecoder.- Annotations
- @implicitNotFound( "No Decoder found for type ${A}." )
-
trait
Encoder[A] extends Serializable
Interface for all Encoder implementations.
Interface for all Encoder implementations.
Allows to encode instances of
A
as protobuf3 serialized message.Encoding can be done with
Automatic
strategy with encoders.AutoEncoder, or by specifying a custom protobuf mapping with encoders.CustomMappingEncoder.- Annotations
- @implicitNotFound( "No Encoder found for type ${A}." )
Value Members
-
object
Decoder extends Serializable
Utilities for Decoder
-
object
Encoder extends Serializable
Utilities for Encoder.
This is the API documentation for Protoless, a Protobuf library for Scala.
The main entry point to use protoless is the io.protoless.generic package object, which allow to derive encoders and decoders for your case classes.
The library is split in several modules:
Please see the guide for more information on how to use protoless.