Packages

object FieldDecoder extends MidPriorityFieldDecoder with Serializable

Utilities and instances for FieldDecoder.

Source
FieldDecoder.scala
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. FieldDecoder
  2. Serializable
  3. Serializable
  4. MidPriorityFieldDecoder
  5. LowPriorityFieldDecoder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class FieldTag extends Product with Serializable
    Attributes
    protected[io.protoless]
    Definition Classes
    LowPriorityFieldDecoder

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply[A](implicit instance: FieldDecoder[A]): FieldDecoder[A]

    Return a FieldDecoder instance for a given type A.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def const[A](a: A): FieldDecoder[A]

    Generate a FieldDecoder that always return a single value.

  8. implicit final def decodeArray[A](implicit dec: RepeatableFieldDecoder[A], cbf: CanBuildFrom[Nothing, A, Seq[A]], tp: ClassTag[A]): RepeatableFieldDecoder[Array[A]]

    Decode a repeating field of type A into an Array.

    Decode a repeating field of type A into an Array.

    TODO: Improve performance by not depending on decodeTraversable

    Definition Classes
    LowPriorityFieldDecoder
  9. implicit final val decodeBigDecimal: RepeatableFieldDecoder[BigDecimal]

  10. implicit final val decodeBigInt: RepeatableFieldDecoder[BigInt]

  11. implicit final val decodeBoolean: RepeatableFieldDecoder[Boolean]

  12. implicit final val decodeByteString: RepeatableFieldDecoder[ByteString]

  13. implicit final val decodeChar: RepeatableFieldDecoder[Char]

  14. implicit final val decodeDouble: RepeatableFieldDecoder[Double]

  15. final def decodeEnum[E <: Enumeration](enum: E): RepeatableFieldDecoder[FieldDecoder.decodeEnum.E.Value]

    Generate a FieldDecoder allowing to parse Enumerations.

    Generate a FieldDecoder allowing to parse Enumerations.

    object WeekDay extends Enumeration { ... }
    implicit val weekDayDecoder: RepeatableFieldDecoder[WeekDay.Value] = FieldDecoder.decodeEnum(WeekDay)
  16. implicit final val decodeFInt: RepeatableFieldDecoder[@@[Int, Fixed]]

  17. implicit final val decodeFLong: RepeatableFieldDecoder[@@[Long, Fixed]]

  18. implicit final val decodeFloat: RepeatableFieldDecoder[Float]

  19. implicit final val decodeInt: RepeatableFieldDecoder[Int]

  20. implicit final val decodeLong: RepeatableFieldDecoder[Long]

  21. implicit final def decodeNestedMessage[A](implicit dec: Decoder[A]): RepeatableFieldDecoder[A]

    Allow to decode a message A as a nested field if we have a Decoder[A].

    Allow to decode a message A as a nested field if we have a Decoder[A].

    Definition Classes
    MidPriorityFieldDecoder
  22. implicit final def decodeNonEmptyList[A](implicit dec: FieldDecoder[List[A]]): FieldDecoder[NonEmptyList[A]]

  23. implicit final def decodeOption[A](implicit dec: RepeatableFieldDecoder[A]): RepeatableFieldDecoder[Option[A]]

  24. implicit final val decodeSFInt: RepeatableFieldDecoder[@@[Int, Signed with Fixed]]

  25. implicit final val decodeSFLong: RepeatableFieldDecoder[@@[Long, Signed with Fixed]]

  26. implicit final val decodeSInt: RepeatableFieldDecoder[@@[Int, Signed]]

  27. implicit final val decodeSLong: RepeatableFieldDecoder[@@[Long, Signed]]

  28. implicit final val decodeShort: RepeatableFieldDecoder[Short]

  29. implicit final val decodeString: RepeatableFieldDecoder[String]

  30. implicit final def decodeTraversable[A, C[A] <: Traversable[A]](implicit dec: RepeatableFieldDecoder[A], cbf: CanBuildFrom[Nothing, A, C[A]]): RepeatableFieldDecoder[C[A]]

    Decode a repeating field of type A into a Traversable collection C.

    Decode a repeating field of type A into a Traversable collection C.

    Definition Classes
    LowPriorityFieldDecoder
  31. implicit final val decodeUInt: RepeatableFieldDecoder[@@[Int, Unsigned]]

  32. implicit final val decodeULong: RepeatableFieldDecoder[@@[Long, Unsigned]]

  33. implicit final val decodeUUID: FieldDecoder[UUID]

    Decode an UUID from a repeated sint64 field, containing the mostSignificantBits and LeastSignificantBits of the 128 bits UUID.

  34. implicit final def decodeValueClass[A, R](implicit ev: <:<[A, AnyVal], unwrapped: Aux[A, R], dec: FieldDecoder[R]): FieldDecoder[A]

    Automatically decode a value wrapped in a value class

  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  37. final def failed[A](failure: String): FieldDecoder[A]

    Generate a FieldDecoder that always return a single failure.

  38. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def readTag(input: CodedInputStream, currentIndex: Int): FieldTag

    Read the next field tag and extract the FieldNumber / WireType.

    Read the next field tag and extract the FieldNumber / WireType.

    Detect if the tag has already been read by checking the lastTag in priority. If the field number read from the lastTag is different that the currentIndex, so read the next tag from the stream.

    Attributes
    protected[io.protoless]
    Definition Classes
    LowPriorityFieldDecoder
  46. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  51. object FieldTag extends Serializable
    Attributes
    protected[io.protoless]
    Definition Classes
    LowPriorityFieldDecoder

Inherited from Serializable

Inherited from Serializable

Inherited from MidPriorityFieldDecoder

Inherited from LowPriorityFieldDecoder

Inherited from AnyRef

Inherited from Any

Collection

Decoding

DecodingNative

Utilities

Ungrouped