Skip to main content

Class: ActivityTaskFailedEventAttributes

history.v1.ActivityTaskFailedEventAttributes

Represents an ActivityTaskFailedEventAttributes.

Implements#

Constructors#

constructor#

new ActivityTaskFailedEventAttributes(properties?)

Constructs a new ActivityTaskFailedEventAttributes.

Parameters#

NameType
properties?IActivityTaskFailedEventAttributes

Properties#

failure#

Optional failure: null | IFailure

ActivityTaskFailedEventAttributes failure.

Implementation of#

IActivityTaskFailedEventAttributes.failure


identity#

identity: string

ActivityTaskFailedEventAttributes identity.

Implementation of#

IActivityTaskFailedEventAttributes.identity


retryState#

retryState: RetryState

ActivityTaskFailedEventAttributes retryState.

Implementation of#

IActivityTaskFailedEventAttributes.retryState


scheduledEventId#

scheduledEventId: Long

ActivityTaskFailedEventAttributes scheduledEventId.

Implementation of#

IActivityTaskFailedEventAttributes.scheduledEventId


startedEventId#

startedEventId: Long

ActivityTaskFailedEventAttributes startedEventId.

Implementation of#

IActivityTaskFailedEventAttributes.startedEventId

Methods#

toJSON#

toJSON(): Object

Converts this ActivityTaskFailedEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ActivityTaskFailedEventAttributes

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

ActivityTaskFailedEventAttributes

ActivityTaskFailedEventAttributes


decodeDelimited#

Static decodeDelimited(reader): ActivityTaskFailedEventAttributes

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

ActivityTaskFailedEventAttributes

ActivityTaskFailedEventAttributes


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ActivityTaskFailedEventAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ActivityTaskFailedEventAttributes

ActivityTaskFailedEventAttributes


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageActivityTaskFailedEventAttributesActivityTaskFailedEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object