ProtoType

zio.temporal.protobuf.ProtoType
See theProtoType companion object
trait ProtoType[A]

Typeclass allowing conversion to protocol buffers supported type

Type parameters

A

value type

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EnumProtoType[P, E]

Members list

Type members

Types

type Repr

Protocol buffers representation of this type

Protocol buffers representation of this type

Attributes

Value members

Abstract methods

def fromRepr(repr: Repr): A

Creates a value of this type from its protocol buffers representation

Creates a value of this type from its protocol buffers representation

Value parameters

repr

value protocol buffers representation

Attributes

Returns

value of this type

def repr(value: A): Repr

Converts a value of this type to its protocol buffers representation

Converts a value of this type to its protocol buffers representation

Value parameters

value

input value

Attributes

Returns

value protocol buffers representation

Concrete methods

final def convertTo[B](f: A => B)(g: B => A): Of[B, Repr]

Creates a new protocol buffers type based on this representation. via InvariantFunctor.imap

Creates a new protocol buffers type based on this representation. via InvariantFunctor.imap

Type parameters

B

new value type

Value parameters

f

function projecting this type into the given one

g

reverse projection function

Attributes

Returns

new protocol buffers type