create Event
Creates an event for the passed event message.
The message passed is validated according to the constraints set in its Protobuf definition. If the message is invalid, an exception is thrown.
In the message is an instance of Any
, it is unpacked for validation.
Parameters
message
the message of the event
version
the version of the entity which produces the event
Throws
Validation Exception
if the passed message does not satisfy the constraints set for it in its Protobuf definition