Skip to main content

Class: EventReference

Link.WorkflowEvent.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

create(properties?): EventReference & $Properties

Creates a new EventReference instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

EventReference & $Properties

EventReference instance

create(properties?): EventReference

Parameters

NameType
properties?$Properties

Returns

EventReference


decode

decode(reader, length?): EventReference & $Properties

Decodes an EventReference message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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

decodeDelimited(reader): EventReference & $Properties

Decodes an EventReference message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader 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

encode(message, writer?): Writer

Encodes the specified EventReference message. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.EventReference.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesEventReference message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified EventReference message, length delimited. Does not implicitly temporal.api.common.v1.Link.WorkflowEvent.EventReference.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesEventReference message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): EventReference

Creates an EventReference message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

EventReference

EventReference


toObject

toObject(message, options?): Object

Creates a plain object from an EventReference message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageEventReferenceEventReference
options?IConversionOptionsConversion options

Returns

Object

Plain object