final case class TraceableAny(typeUrl: String = "", value: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, traceParent: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[TraceableAny] with Product with Serializable
To read/write state in the the journal as an com.google.protobuf.Any
with a trace parent. Developed for Event Sourced Entities.
To read/write state in the durable store as an com.google.protobuf.Any
with a trace parent. Developed for Value Entities.
This is an alternative to just store .protobuf.Any
.
It's used when tracing is enabled so a View or an Action can retrieve the trace parent after an Entity has persisted its state in DB,
This is the type one will get when exporting the data from the durable store if tracing has been previously enabled. Because it has the common fields with .protobuf.Any
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/any.proto
TraceableAny
can be deserialized also into a .protobuf.Any
out of the box.
- typeUrl
same as
type_url
incom.google.protobuf.any.Any
- value
same as
value
incom.google.protobuf.any.Any
- traceParent
The id that can be picked to generate a span to link it to with a previous span.
- Annotations
- @SerialVersionUID()
- Source
- TraceableAny.scala
- Alphabetic
- By Inheritance
- TraceableAny
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TraceableAny(typeUrl: String = "", value: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, traceParent: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- typeUrl
same as
type_url
incom.google.protobuf.any.Any
- value
same as
value
incom.google.protobuf.any.Any
- traceParent
The id that can be picked to generate a span to link it to with a previous span.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from TraceableAny toany2stringadd[TraceableAny] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (TraceableAny, B)
- Implicit
- This member is added by an implicit conversion from TraceableAny toArrowAssoc[TraceableAny] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: TraceableAny.type
- Definition Classes
- TraceableAny → GeneratedMessage
- def discardUnknownFields: TraceableAny
- def ensuring(cond: (TraceableAny) => Boolean, msg: => Any): TraceableAny
- Implicit
- This member is added by an implicit conversion from TraceableAny toEnsuring[TraceableAny] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (TraceableAny) => Boolean): TraceableAny
- Implicit
- This member is added by an implicit conversion from TraceableAny toEnsuring[TraceableAny] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): TraceableAny
- Implicit
- This member is added by an implicit conversion from TraceableAny toEnsuring[TraceableAny] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): TraceableAny
- Implicit
- This member is added by an implicit conversion from TraceableAny toEnsuring[TraceableAny] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- TraceableAny → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- TraceableAny → GeneratedMessage
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- TraceableAny → GeneratedMessage
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- TraceableAny → GeneratedMessage
- val traceParent: String
- val typeUrl: String
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[TraceableAny, TraceableAny]) => Mutation[TraceableAny]*): TraceableAny
- Definition Classes
- Updatable
- val value: ByteString
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withTraceParent(__v: String): TraceableAny
- def withTypeUrl(__v: String): TraceableAny
- def withUnknownFields(__v: UnknownFieldSet): TraceableAny
- def withValue(__v: ByteString): TraceableAny
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- TraceableAny → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TraceableAny toStringFormat[TraceableAny] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (TraceableAny, B)
- Implicit
- This member is added by an implicit conversion from TraceableAny toArrowAssoc[TraceableAny] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.