EnumProtoType

zio.temporal.protobuf.EnumProtoType
See theEnumProtoType companion object
final class EnumProtoType[P <: GeneratedEnum, E <: Enum](companion: GeneratedEnumCompanion[P], enumMeta: Scala3EnumMeta[E]) extends ProtoType[E]

Attributes

Companion
object
Graph
Supertypes
trait ProtoType[E]
class Object
trait Matchable
class Any

Members list

Type members

Types

override type Repr = P

Protocol buffers representation of this type

Protocol buffers representation of this type

Attributes

Value members

Concrete methods

override def fromRepr(repr: P): E

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

Definition Classes
override def repr(value: E): P

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

Definition Classes

Inherited methods

final def convertTo[B](f: E => B)(g: B => E): 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

Inherited from:
ProtoType