Skip to main content

Class: PendingWorkflowTaskInfo

workflow.v1.PendingWorkflowTaskInfo

Represents a PendingWorkflowTaskInfo.

Implements

Constructors

constructor

new PendingWorkflowTaskInfo(properties?)

Constructs a new PendingWorkflowTaskInfo.

Parameters

NameTypeDescription
properties?IPendingWorkflowTaskInfoProperties to set

Properties

attempt

attempt: number

PendingWorkflowTaskInfo attempt.

Implementation of

IPendingWorkflowTaskInfo.attempt


originalScheduledTime

Optional originalScheduledTime: null | ITimestamp

PendingWorkflowTaskInfo originalScheduledTime.

Implementation of

IPendingWorkflowTaskInfo.originalScheduledTime


scheduledTime

Optional scheduledTime: null | ITimestamp

PendingWorkflowTaskInfo scheduledTime.

Implementation of

IPendingWorkflowTaskInfo.scheduledTime


startedTime

Optional startedTime: null | ITimestamp

PendingWorkflowTaskInfo startedTime.

Implementation of

IPendingWorkflowTaskInfo.startedTime


state

state: PendingWorkflowTaskState

PendingWorkflowTaskInfo state.

Implementation of

IPendingWorkflowTaskInfo.state

Methods

toJSON

toJSON(): Object

Converts this PendingWorkflowTaskInfo to JSON.

Returns

Object

JSON object


create

Static create(properties?): PendingWorkflowTaskInfo

Creates a new PendingWorkflowTaskInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?IPendingWorkflowTaskInfoProperties to set

Returns

PendingWorkflowTaskInfo

PendingWorkflowTaskInfo instance


decode

Static decode(reader, length?): PendingWorkflowTaskInfo

Decodes a PendingWorkflowTaskInfo message from the specified reader or buffer.

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

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

Returns

PendingWorkflowTaskInfo

PendingWorkflowTaskInfo


decodeDelimited

Static decodeDelimited(reader): PendingWorkflowTaskInfo

Decodes a PendingWorkflowTaskInfo message from the specified reader or buffer, length delimited.

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PendingWorkflowTaskInfo

PendingWorkflowTaskInfo


encode

Static encode(message, writer?): Writer

Encodes the specified PendingWorkflowTaskInfo message. Does not implicitly temporal.api.workflow.v1.PendingWorkflowTaskInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

Static encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

Static fromObject(object): PendingWorkflowTaskInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PendingWorkflowTaskInfo

PendingWorkflowTaskInfo


getTypeUrl

Static getTypeUrl(typeUrlPrefix?): string

Gets the default type url for PendingWorkflowTaskInfo

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

Static toObject(message, options?): Object

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

Parameters

NameTypeDescription
messagePendingWorkflowTaskInfoPendingWorkflowTaskInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object