Skip to main content

Class: NexusOperationStartedEventAttributes

history.v1.NexusOperationStartedEventAttributes

Event marking an asynchronous operation was started by the responding Nexus handler. If the operation completes synchronously, this event is not generated. In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate this event upon receiving the operation completion via callback.

Properties

operationId

operationId: string

The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation.

Deprecated: Renamed to operation_token.


operationToken

operationToken: string

The operation token returned by the Nexus handler in the response to the StartOperation request. This token is used when canceling the operation.


requestId

requestId: string

The request ID allocated at schedule time.


scheduledEventId

scheduledEventId: Long

The ID of the NEXUS_OPERATION_SCHEDULED event this task corresponds to.

Methods

toJSON

toJSON(): Object

Converts this NexusOperationStartedEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): NexusOperationStartedEventAttributes & $Properties

Creates a new NexusOperationStartedEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

NexusOperationStartedEventAttributes & $Properties

NexusOperationStartedEventAttributes instance

create(properties?): NexusOperationStartedEventAttributes

Parameters

NameType
properties?$Properties

Returns

NexusOperationStartedEventAttributes


decode

decode(reader, length?): NexusOperationStartedEventAttributes & $Properties

Decodes a NexusOperationStartedEventAttributes message from the specified reader or buffer.

Parameters

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

Returns

NexusOperationStartedEventAttributes & $Properties

NexusOperationStartedEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NexusOperationStartedEventAttributes & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NexusOperationStartedEventAttributes & $Properties

NexusOperationStartedEventAttributes

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

Parameters

NameTypeDescription
message$PropertiesNexusOperationStartedEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
message$PropertiesNexusOperationStartedEventAttributes message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): NexusOperationStartedEventAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NexusOperationStartedEventAttributes

NexusOperationStartedEventAttributes


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageNexusOperationStartedEventAttributesNexusOperationStartedEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object