Skip to main content

Class: ActivityTaskTimedOutEventAttributes

history.v1.ActivityTaskTimedOutEventAttributes

Represents an ActivityTaskTimedOutEventAttributes.

Properties​

failure​

• Optional failure: null | $Properties

If this activity had failed, was retried, and then timed out, that failure is stored as the cause in here.


retryState​

• retryState: RetryState

ActivityTaskTimedOutEventAttributes retryState.


scheduledEventId​

• scheduledEventId: Long

The id of the ACTIVITY_TASK_SCHEDULED event this timeout corresponds to


startedEventId​

• startedEventId: Long

The id of the ACTIVITY_TASK_STARTED event this timeout corresponds to

Methods​

toJSON​

▸ toJSON(): Object

Converts this ActivityTaskTimedOutEventAttributes to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ActivityTaskTimedOutEventAttributes & $Shape

Creates a new ActivityTaskTimedOutEventAttributes instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

ActivityTaskTimedOutEventAttributes & $Shape

ActivityTaskTimedOutEventAttributes instance

▸ create(properties?): ActivityTaskTimedOutEventAttributes

Parameters​

NameType
properties?$Properties

Returns​

ActivityTaskTimedOutEventAttributes


decode​

▸ decode(reader, length?): ActivityTaskTimedOutEventAttributes & $Shape

Decodes an ActivityTaskTimedOutEventAttributes message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

ActivityTaskTimedOutEventAttributes & $Shape

ActivityTaskTimedOutEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ActivityTaskTimedOutEventAttributes & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ActivityTaskTimedOutEventAttributes & $Shape

ActivityTaskTimedOutEventAttributes

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 ActivityTaskTimedOutEventAttributes message. Does not implicitly temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified ActivityTaskTimedOutEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ActivityTaskTimedOutEventAttributes

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ActivityTaskTimedOutEventAttributes

ActivityTaskTimedOutEventAttributes


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageActivityTaskTimedOutEventAttributesActivityTaskTimedOutEventAttributes
options?IConversionOptionsConversion options

Returns​

Object

Plain object