Skip to main content

Class: ActivityFailureInfo

failure.v1.ActivityFailureInfo

Represents an ActivityFailureInfo.

Implements#

Constructors#

constructor#

new ActivityFailureInfo(properties?)

Constructs a new ActivityFailureInfo.

Parameters#

NameType
properties?IActivityFailureInfo

Properties#

activityId#

activityId: string

ActivityFailureInfo activityId.

Implementation of#

IActivityFailureInfo.activityId


activityType#

Optional activityType: null | IActivityType

ActivityFailureInfo activityType.

Implementation of#

IActivityFailureInfo.activityType


identity#

identity: string

ActivityFailureInfo identity.

Implementation of#

IActivityFailureInfo.identity


retryState#

retryState: RetryState

ActivityFailureInfo retryState.

Implementation of#

IActivityFailureInfo.retryState


scheduledEventId#

scheduledEventId: Long

ActivityFailureInfo scheduledEventId.

Implementation of#

IActivityFailureInfo.scheduledEventId


startedEventId#

startedEventId: Long

ActivityFailureInfo startedEventId.

Implementation of#

IActivityFailureInfo.startedEventId

Methods#

toJSON#

toJSON(): Object

Converts this ActivityFailureInfo to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ActivityFailureInfo

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

ActivityFailureInfo

ActivityFailureInfo


decodeDelimited#

Static decodeDelimited(reader): ActivityFailureInfo

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

ActivityFailureInfo

ActivityFailureInfo


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ActivityFailureInfo

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ActivityFailureInfo

ActivityFailureInfo


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageActivityFailureInfoActivityFailureInfo
options?IConversionOptions-

Returns#

Object

Plain object