Skip to main content

Class: ActivityTaskTimedOutEventAttributes

history.v1.ActivityTaskTimedOutEventAttributes

Represents an ActivityTaskTimedOutEventAttributes.

Implements

Constructors

constructor

new ActivityTaskTimedOutEventAttributes(properties?): ActivityTaskTimedOutEventAttributes

Constructs a new ActivityTaskTimedOutEventAttributes.

Parameters

NameTypeDescription
properties?IActivityTaskTimedOutEventAttributesProperties to set

Returns

ActivityTaskTimedOutEventAttributes

Properties

failure

Optional failure: null | IFailure

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

Implementation of

IActivityTaskTimedOutEventAttributes.failure


retryState

retryState: RetryState

ActivityTaskTimedOutEventAttributes retryState.

Implementation of

IActivityTaskTimedOutEventAttributes.retryState


scheduledEventId

scheduledEventId: Long

The id of the ACTIVITY_TASK_SCHEDULED event this timeout corresponds to

Implementation of

IActivityTaskTimedOutEventAttributes.scheduledEventId


startedEventId

startedEventId: Long

The id of the ACTIVITY_TASK_STARTED event this timeout corresponds to

Implementation of

IActivityTaskTimedOutEventAttributes.startedEventId

Methods

toJSON

toJSON(): Object

Converts this ActivityTaskTimedOutEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): ActivityTaskTimedOutEventAttributes

Creates a new ActivityTaskTimedOutEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IActivityTaskTimedOutEventAttributesProperties to set

Returns

ActivityTaskTimedOutEventAttributes

ActivityTaskTimedOutEventAttributes instance


decode

decode(reader, length?): ActivityTaskTimedOutEventAttributes

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

ActivityTaskTimedOutEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ActivityTaskTimedOutEventAttributes

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ActivityTaskTimedOutEventAttributes

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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for ActivityTaskTimedOutEventAttributes

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 ActivityTaskTimedOutEventAttributes message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageActivityTaskTimedOutEventAttributesActivityTaskTimedOutEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object