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) extends GeneratedMessage with Message[EventSourcedReply] 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.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- EventSourcedReply
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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)
- 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.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllEvents(__vs: Iterable[Any]): EventSourcedReply
- def addAllSideEffects(__vs: Iterable[SideEffect]): EventSourcedReply
- def addEvents(__vs: Any*): EventSourcedReply
- def addSideEffects(__vs: SideEffect*): EventSourcedReply
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearClientAction: EventSourcedReply
- def clearEvents: EventSourcedReply
- def clearSideEffects: EventSourcedReply
- def clearSnapshot: EventSourcedReply
- val clientAction: Option[ClientAction]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val commandId: Long
-
def
companion: EventSourcedReply.type
- Definition Classes
- EventSourcedReply → GeneratedMessage
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val events: Seq[Any]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getClientAction: ClientAction
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- EventSourcedReply → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- EventSourcedReply → GeneratedMessage
- def getSnapshot: Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mergeFrom(_input__: CodedInputStream): EventSourcedReply
- Definition Classes
- EventSourcedReply → Message
-
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()
-
final
def
serializedSize: Int
- Definition Classes
- EventSourcedReply → GeneratedMessage
- val sideEffects: Seq[SideEffect]
- val snapshot: Option[Any]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- EventSourcedReply → GeneratedMessage
-
def
update(ms: (Lens[EventSourcedReply, EventSourcedReply]) ⇒ Mutation[EventSourcedReply]*): EventSourcedReply
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withClientAction(__v: ClientAction): EventSourcedReply
- def withCommandId(__v: Long): EventSourcedReply
- def withEvents(__v: Seq[Any]): EventSourcedReply
- def withSideEffects(__v: Seq[SideEffect]): EventSourcedReply
- def withSnapshot(__v: Any): EventSourcedReply
-
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- EventSourcedReply → GeneratedMessage
-
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
getAllFields: Map[FieldDescriptor, Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
def
getField(field: FieldDescriptor): Any
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue