final case class EventSourcedReply(commandId: Long = 0L, clientAction: Option[ClientAction] = _root_.scala.None, sideEffects: Seq[SideEffect] = _root_.scala.Seq.empty, events: Seq[Any] = _root_.scala.Seq.empty, snapshot: Option[Any] = _root_.scala.None, delete: Option[Duration] = _root_.scala.None, eventsMetadata: Seq[Metadata] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[EventSourcedReply] with Product with Serializable

A reply to a command.

commandId

The id of the command being replied to. Must match the input command.

clientAction

The action to take

sideEffects

Any side effects to perform

events

A list of events to persist - these will be persisted before the reply is sent.

snapshot

An optional snapshot to persist. It is assumed that this snapshot will have the state of any events in the events field applied to it. It is illegal to send a snapshot without sending any events.

delete

Mark the entity for deletion. Events and snapshots will be deleted later to give downstream consumers time to process all prior events, including any final deleted event. The EventSourcedReply may optionally also include events and snapshot.

eventsMetadata

The metadata to persist together with the events. Either no metadata elements, or it must be same number of elements as in events. Use empty (defaultInstance) when no metadata is associated with the event.

Annotations
@SerialVersionUID()
Source
EventSourcedReply.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventSourcedReply
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EventSourcedReply(commandId: Long = 0L, clientAction: Option[ClientAction] = _root_.scala.None, sideEffects: Seq[SideEffect] = _root_.scala.Seq.empty, events: Seq[Any] = _root_.scala.Seq.empty, snapshot: Option[Any] = _root_.scala.None, delete: Option[Duration] = _root_.scala.None, eventsMetadata: Seq[Metadata] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    commandId

    The id of the command being replied to. Must match the input command.

    clientAction

    The action to take

    sideEffects

    Any side effects to perform

    events

    A list of events to persist - these will be persisted before the reply is sent.

    snapshot

    An optional snapshot to persist. It is assumed that this snapshot will have the state of any events in the events field applied to it. It is illegal to send a snapshot without sending any events.

    delete

    Mark the entity for deletion. Events and snapshots will be deleted later to give downstream consumers time to process all prior events, including any final deleted event. The EventSourcedReply may optionally also include events and snapshot.

    eventsMetadata

    The metadata to persist together with the events. Either no metadata elements, or it must be same number of elements as in events. Use empty (defaultInstance) when no metadata is associated with the event.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toany2stringadd[EventSourcedReply] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EventSourcedReply, B)
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toArrowAssoc[EventSourcedReply] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addAllEvents(__vs: Iterable[Any]): EventSourcedReply
  7. def addAllEventsMetadata(__vs: Iterable[Metadata]): EventSourcedReply
  8. def addAllSideEffects(__vs: Iterable[SideEffect]): EventSourcedReply
  9. def addEvents(__vs: Any*): EventSourcedReply
  10. def addEventsMetadata(__vs: Metadata*): EventSourcedReply
  11. def addSideEffects(__vs: SideEffect*): EventSourcedReply
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clearClientAction: EventSourcedReply
  14. def clearDelete: EventSourcedReply
  15. def clearEvents: EventSourcedReply
  16. def clearEventsMetadata: EventSourcedReply
  17. def clearSideEffects: EventSourcedReply
  18. def clearSnapshot: EventSourcedReply
  19. val clientAction: Option[ClientAction]
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  21. val commandId: Long
  22. def companion: EventSourcedReply.type
    Definition Classes
    EventSourcedReply → GeneratedMessage
  23. val delete: Option[Duration]
  24. def discardUnknownFields: EventSourcedReply
  25. def ensuring(cond: (EventSourcedReply) => Boolean, msg: => Any): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: (EventSourcedReply) => Boolean): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean, msg: => Any): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. val events: Seq[Any]
  31. val eventsMetadata: Seq[Metadata]
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def getClientAction: ClientAction
  34. def getDelete: Duration
  35. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    EventSourcedReply → GeneratedMessage
  36. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    EventSourcedReply → GeneratedMessage
  37. def getSnapshot: Any
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. def serializedSize: Int
    Definition Classes
    EventSourcedReply → GeneratedMessage
  44. val sideEffects: Seq[SideEffect]
  45. val snapshot: Option[Any]
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  48. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  49. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  50. def toProtoString: String
    Definition Classes
    EventSourcedReply → GeneratedMessage
  51. val unknownFields: UnknownFieldSet
  52. def update(ms: (Lens[EventSourcedReply, EventSourcedReply]) => Mutation[EventSourcedReply]*): EventSourcedReply
    Definition Classes
    Updatable
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  56. def withClientAction(__v: ClientAction): EventSourcedReply
  57. def withCommandId(__v: Long): EventSourcedReply
  58. def withDelete(__v: Duration): EventSourcedReply
  59. def withEvents(__v: Seq[Any]): EventSourcedReply
  60. def withEventsMetadata(__v: Seq[Metadata]): EventSourcedReply
  61. def withSideEffects(__v: Seq[SideEffect]): EventSourcedReply
  62. def withSnapshot(__v: Any): EventSourcedReply
  63. def withUnknownFields(__v: UnknownFieldSet): EventSourcedReply
  64. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  65. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    EventSourcedReply → GeneratedMessage
  66. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toStringFormat[EventSourcedReply] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (EventSourcedReply, B)
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toArrowAssoc[EventSourcedReply] 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.

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromEventSourcedReply to any2stringadd[EventSourcedReply]

Inherited by implicit conversion StringFormat fromEventSourcedReply to StringFormat[EventSourcedReply]

Inherited by implicit conversion Ensuring fromEventSourcedReply to Ensuring[EventSourcedReply]

Inherited by implicit conversion ArrowAssoc fromEventSourcedReply to ArrowAssoc[EventSourcedReply]

Ungrouped