Skip to main content

Class: ActivityTaskTimedOutEventAttributes

Represents an ActivityTaskTimedOutEventAttributes.

Properties​

failure?​

optional failure?: $Properties | null

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()​

Call Signature​

static create(properties?): ActivityTaskTimedOutEventAttributes & $Shape

Creates a new ActivityTaskTimedOutEventAttributes instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

ActivityTaskTimedOutEventAttributes & $Shape

ActivityTaskTimedOutEventAttributes instance

Call Signature​

static create(properties?): ActivityTaskTimedOutEventAttributes

Creates a new ActivityTaskTimedOutEventAttributes instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ActivityTaskTimedOutEventAttributes

ActivityTaskTimedOutEventAttributes instance


decode()​

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

Decodes an ActivityTaskTimedOutEventAttributes 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​

ActivityTaskTimedOutEventAttributes & $Shape

ActivityTaskTimedOutEventAttributes

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ActivityTaskTimedOutEventAttributes & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader 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()​

static encode(message, writer?): Writer

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

Parameters​

message​

$Properties

ActivityTaskTimedOutEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

ActivityTaskTimedOutEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ActivityTaskTimedOutEventAttributes

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

Parameters​

object​

Plain object

Returns​

ActivityTaskTimedOutEventAttributes

ActivityTaskTimedOutEventAttributes


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

ActivityTaskTimedOutEventAttributes

ActivityTaskTimedOutEventAttributes

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object