Skip to main content

Class: ActivityTaskStartedEventAttributes

history.v1.ActivityTaskStartedEventAttributes

Represents an ActivityTaskStartedEventAttributes.

Implements

Constructors

constructor

new ActivityTaskStartedEventAttributes(properties?): ActivityTaskStartedEventAttributes

Constructs a new ActivityTaskStartedEventAttributes.

Parameters

NameTypeDescription
properties?IActivityTaskStartedEventAttributesProperties to set

Returns

ActivityTaskStartedEventAttributes

Properties

attempt

attempt: number

Starting at 1, the number of times this task has been attempted

Implementation of

IActivityTaskStartedEventAttributes.attempt


buildIdRedirectCounter

buildIdRedirectCounter: Long

Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events.

Implementation of

IActivityTaskStartedEventAttributes.buildIdRedirectCounter


identity

identity: string

id of the worker that picked up this task

Implementation of

IActivityTaskStartedEventAttributes.identity


lastFailure

Optional lastFailure: null | IFailure

Will be set to the most recent failure details, if this task has previously failed and then been retried.

Implementation of

IActivityTaskStartedEventAttributes.lastFailure


requestId

requestId: string

TODO ??

Implementation of

IActivityTaskStartedEventAttributes.requestId


scheduledEventId

scheduledEventId: Long

The id of the ACTIVITY_TASK_SCHEDULED event this task corresponds to

Implementation of

IActivityTaskStartedEventAttributes.scheduledEventId


workerVersion

Optional workerVersion: null | IWorkerVersionStamp

Version info of the worker to whom this task was dispatched.

Implementation of

IActivityTaskStartedEventAttributes.workerVersion

Methods

toJSON

toJSON(): Object

Converts this ActivityTaskStartedEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): ActivityTaskStartedEventAttributes

Creates a new ActivityTaskStartedEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IActivityTaskStartedEventAttributesProperties to set

Returns

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes instance


decode

decode(reader, length?): ActivityTaskStartedEventAttributes

Decodes an ActivityTaskStartedEventAttributes message from the specified reader or buffer.

Parameters

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

Returns

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ActivityTaskStartedEventAttributes

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes

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

Parameters

NameTypeDescription
messageIActivityTaskStartedEventAttributesActivityTaskStartedEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIActivityTaskStartedEventAttributesActivityTaskStartedEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): ActivityTaskStartedEventAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for ActivityTaskStartedEventAttributes

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

Parameters

NameTypeDescription
messageActivityTaskStartedEventAttributesActivityTaskStartedEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object