Skip to main content

Class: TimerStartedEventAttributes

history.v1.TimerStartedEventAttributes

Represents a TimerStartedEventAttributes.

Implements#

Constructors#

constructor#

new TimerStartedEventAttributes(properties?)

Constructs a new TimerStartedEventAttributes.

Parameters#

NameType
properties?ITimerStartedEventAttributes

Properties#

startToFireTimeout#

Optional startToFireTimeout: null | IDuration

TimerStartedEventAttributes startToFireTimeout.

Implementation of#

ITimerStartedEventAttributes.startToFireTimeout


timerId#

timerId: string

TimerStartedEventAttributes timerId.

Implementation of#

ITimerStartedEventAttributes.timerId


workflowTaskCompletedEventId#

workflowTaskCompletedEventId: Long

TimerStartedEventAttributes workflowTaskCompletedEventId.

Implementation of#

ITimerStartedEventAttributes.workflowTaskCompletedEventId

Methods#

toJSON#

toJSON(): Object

Converts this TimerStartedEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): TimerStartedEventAttributes

Decodes a TimerStartedEventAttributes message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

TimerStartedEventAttributes

TimerStartedEventAttributes


decodeDelimited#

Static decodeDelimited(reader): TimerStartedEventAttributes

Decodes a TimerStartedEventAttributes message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

TimerStartedEventAttributes

TimerStartedEventAttributes


encode#

Static encode(message, writer?): Writer

Encodes the specified TimerStartedEventAttributes message. Does not implicitly {@link temporal.api.history.v1.TimerStartedEventAttributes.verify|verify} messages.

Parameters#

NameTypeDescription
messageITimerStartedEventAttributesTimerStartedEventAttributes message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified TimerStartedEventAttributes message, length delimited. Does not implicitly {@link temporal.api.history.v1.TimerStartedEventAttributes.verify|verify} messages.

Parameters#

NameTypeDescription
messageITimerStartedEventAttributesTimerStartedEventAttributes message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): TimerStartedEventAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

TimerStartedEventAttributes

TimerStartedEventAttributes


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageTimerStartedEventAttributesTimerStartedEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object