Class: EventReference
EventReference is a direct reference to a history event through the event ID.
Properties
eventId
eventId:
Long
EventReference eventId.
eventType
eventType:
EventType
EventReference eventType.
Methods
toJSON()
toJSON():
object
Converts this EventReference to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):EventReference&$Properties
Creates a new EventReference instance using the specified properties.
Parameters
properties?
Properties to set
Returns
EventReference & $Properties
EventReference instance
Call Signature
staticcreate(properties?):EventReference
Creates a new EventReference instance using the specified properties.
Parameters
properties?
Properties to set
Returns
EventReference
EventReference instance
decode()
staticdecode(reader,length?):EventReference&$Properties
Decodes an EventReference message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
EventReference & $Properties
EventReference
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):EventReference&$Properties
Decodes an EventReference message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
EventReference & $Properties
EventReference
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified EventReference message. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.EventReference.verify|verify messages.
Parameters
message
EventReference message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified EventReference message, length delimited. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.EventReference.verify|verify messages.
Parameters
message
EventReference message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):EventReference
Creates an EventReference message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
EventReference
EventReference
toObject()
statictoObject(message,options?):object
Creates a plain object from an EventReference message. Also converts values to other types if specified.
Parameters
message
EventReference
EventReference
options?
IConversionOptions
Conversion options
Returns
object
Plain object