Skip to main content

Class: PendingNexusOperationInfo

workflow.v1.PendingNexusOperationInfo

PendingNexusOperationInfo contains the state of a pending Nexus operation.

Implements

Constructors

constructor

new PendingNexusOperationInfo(properties?): PendingNexusOperationInfo

Constructs a new PendingNexusOperationInfo.

Parameters

NameTypeDescription
properties?IPendingNexusOperationInfoProperties to set

Returns

PendingNexusOperationInfo

Properties

attempt

attempt: number

The number of attempts made to deliver the start operation request. This number represents a minimum bound since the attempt is incremented after the request completes.

Implementation of

IPendingNexusOperationInfo.attempt


cancellationInfo

Optional cancellationInfo: null | INexusOperationCancellationInfo

PendingNexusOperationInfo cancellationInfo.

Implementation of

IPendingNexusOperationInfo.cancellationInfo


endpoint

endpoint: string

Endpoint name. Resolved to a URL via the cluster's endpoint registry.

Implementation of

IPendingNexusOperationInfo.endpoint


lastAttemptCompleteTime

Optional lastAttemptCompleteTime: null | ITimestamp

The time when the last attempt completed.

Implementation of

IPendingNexusOperationInfo.lastAttemptCompleteTime


lastAttemptFailure

Optional lastAttemptFailure: null | IFailure

The last attempt's failure, if any.

Implementation of

IPendingNexusOperationInfo.lastAttemptFailure


nextAttemptScheduleTime

Optional nextAttemptScheduleTime: null | ITimestamp

The time when the next attempt is scheduled.

Implementation of

IPendingNexusOperationInfo.nextAttemptScheduleTime


operation

operation: string

Operation name.

Implementation of

IPendingNexusOperationInfo.operation


operationId

operationId: string

Operation ID. Only set for asynchronous operations after a successful StartOperation call.

Implementation of

IPendingNexusOperationInfo.operationId


scheduleToCloseTimeout

Optional scheduleToCloseTimeout: null | IDuration

Schedule-to-close timeout for this operation. This is the only timeout settable by a workflow. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --)

Implementation of

IPendingNexusOperationInfo.scheduleToCloseTimeout


scheduledTime

Optional scheduledTime: null | ITimestamp

The time when the operation was scheduled.

Implementation of

IPendingNexusOperationInfo.scheduledTime


service

service: string

Service name.

Implementation of

IPendingNexusOperationInfo.service


state

state: PendingNexusOperationState

PendingNexusOperationInfo state.

Implementation of

IPendingNexusOperationInfo.state

Methods

toJSON

toJSON(): Object

Converts this PendingNexusOperationInfo to JSON.

Returns

Object

JSON object


create

create(properties?): PendingNexusOperationInfo

Creates a new PendingNexusOperationInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?IPendingNexusOperationInfoProperties to set

Returns

PendingNexusOperationInfo

PendingNexusOperationInfo instance


decode

decode(reader, length?): PendingNexusOperationInfo

Decodes a PendingNexusOperationInfo message from the specified reader or buffer.

Parameters

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

Returns

PendingNexusOperationInfo

PendingNexusOperationInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): PendingNexusOperationInfo

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PendingNexusOperationInfo

PendingNexusOperationInfo

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): PendingNexusOperationInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PendingNexusOperationInfo

PendingNexusOperationInfo


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for PendingNexusOperationInfo

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

Parameters

NameTypeDescription
messagePendingNexusOperationInfoPendingNexusOperationInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object