Skip to main content

Class: ActivityTaskStartedEventAttributes

history.v1.ActivityTaskStartedEventAttributes

Represents an ActivityTaskStartedEventAttributes.

Implements#

Constructors#

constructor#

new ActivityTaskStartedEventAttributes(properties?)

Constructs a new ActivityTaskStartedEventAttributes.

Parameters#

NameType
properties?IActivityTaskStartedEventAttributes

Properties#

attempt#

attempt: number

ActivityTaskStartedEventAttributes attempt.

Implementation of#

IActivityTaskStartedEventAttributes.attempt


identity#

identity: string

ActivityTaskStartedEventAttributes identity.

Implementation of#

IActivityTaskStartedEventAttributes.identity


lastFailure#

Optional lastFailure: null | IFailure

ActivityTaskStartedEventAttributes lastFailure.

Implementation of#

IActivityTaskStartedEventAttributes.lastFailure


requestId#

requestId: string

ActivityTaskStartedEventAttributes requestId.

Implementation of#

IActivityTaskStartedEventAttributes.requestId


scheduledEventId#

scheduledEventId: Long

ActivityTaskStartedEventAttributes scheduledEventId.

Implementation of#

IActivityTaskStartedEventAttributes.scheduledEventId

Methods#

toJSON#

toJSON(): Object

Converts this ActivityTaskStartedEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ActivityTaskStartedEventAttributes

Decodes an ActivityTaskStartedEventAttributes 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#

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes


decodeDelimited#

Static decodeDelimited(reader): ActivityTaskStartedEventAttributes

Decodes an ActivityTaskStartedEventAttributes 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#

ActivityTaskStartedEventAttributes

ActivityTaskStartedEventAttributes


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static 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


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageActivityTaskStartedEventAttributesActivityTaskStartedEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object