Skip to main content

Class: EventReference

Link.WorkflowEvent.EventReference

Represents an EventReference.

Implements

Constructors

constructor

new EventReference(properties?): EventReference

Constructs a new EventReference.

Parameters

NameTypeDescription
properties?IEventReferenceProperties to set

Returns

EventReference

Properties

eventId

eventId: Long

EventReference eventId.

Implementation of

IEventReference.eventId


eventType

eventType: EventType

EventReference eventType.

Implementation of

IEventReference.eventType

Methods

toJSON

toJSON(): Object

Converts this EventReference to JSON.

Returns

Object

JSON object


create

create(properties?): EventReference

Creates a new EventReference instance using the specified properties.

Parameters

NameTypeDescription
properties?IEventReferenceProperties to set

Returns

EventReference

EventReference instance


decode

decode(reader, length?): EventReference

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

EventReference

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): EventReference

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

EventReference

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
messageIEventReferenceEventReference 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
messageIEventReferenceEventReference 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for EventReference

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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