package decoders
- Alphabetic
- Public
- All
Type Members
-
trait
AutoDecoder[A] extends Decoder[A]
A type class that decode a value of type
A
from aCodedInputSteam
.A type class that decode a value of type
A
from aCodedInputSteam
. Each parameters ofA
is associated to an incremental index (starting from 1) representing the protobuf field index.The decoder is implicitly transformed into an IncrementalDecoder[A, Nat._1] after the first induction step.
- Annotations
- @implicitNotFound( ... ) @inductive()
-
trait
CustomMappingDecoder[A, L <: HList] extends Decoder[A]
A type class that decode a value of type
A
from aCodedInputSteam
.A type class that decode a value of type
A
from aCodedInputSteam
. Each parameter ofA
is associated with an index defined in theL
HList.The first parameter of
A
is associated with the firstNat
inL
, the second parameter ofA
with the secondNat
inL
, etc.This allows to decode protobuf message with non successive fields number.
- Annotations
- @implicitNotFound( ... ) @inductive()
-
trait
IncrementalDecoder[A, N <: Nat] extends Decoder[A]
A type class that decode a value of type
A
from aCodedInputSteam
.A type class that decode a value of type
A
from aCodedInputSteam
.Each parameters of
A
is associated to an incremental index (starting fromN
) representing the protobuf field index.- Annotations
- @implicitNotFound( ... ) @inductive()
Value Members
-
object
AutoDecoder extends Serializable
Utilities for AutoDecoder
-
object
CustomMappingDecoder extends Serializable
Utilities for CustomMappingDecoder
-
object
IncrementalDecoder extends Serializable
Utilities for IncrementalDecoder
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.