Class: PollNexusOperationExecutionResponse
Represents a PollNexusOperationExecutionResponse.
Properties
failure?
optionalfailure?:$Properties|null
The failure if the operation completed unsuccessfully.
operationToken
operationToken:
string
Operation token. Only populated for asynchronous operations after a successful StartOperation call.
outcome?
optionaloutcome?:"failure"|"result"
The operation outcome, available if the operation is in a closed state.
propagatedNexusSerializationContext?
optionalpropagatedNexusSerializationContext?:$Properties|null
Serialization context for this operation's payloads, derived from its stored target. For a reused operation, this is the original execution's context.
result?
optionalresult?:$Properties|null
The result if the operation completed successfully.
runId
runId:
string
The run ID of the operation, useful when run_id was not specified in the request.
waitStage
waitStage:
NexusOperationWaitStage
The current stage of the operation. May be more advanced than the stage requested in the poll.
Methods
toJSON()
toJSON():
object
Converts this PollNexusOperationExecutionResponse to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PollNexusOperationExecutionResponse&$Shape
Creates a new PollNexusOperationExecutionResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollNexusOperationExecutionResponse & $Shape
PollNexusOperationExecutionResponse instance
Call Signature
staticcreate(properties?):PollNexusOperationExecutionResponse
Creates a new PollNexusOperationExecutionResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollNexusOperationExecutionResponse
PollNexusOperationExecutionResponse instance
decode()
staticdecode(reader,length?):PollNexusOperationExecutionResponse&$Shape
Decodes a PollNexusOperationExecutionResponse message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
PollNexusOperationExecutionResponse & $Shape
PollNexusOperationExecutionResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PollNexusOperationExecutionResponse&$Shape
Decodes a PollNexusOperationExecutionResponse message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PollNexusOperationExecutionResponse & $Shape
PollNexusOperationExecutionResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified PollNexusOperationExecutionResponse message. Does not implicitly temporal.api.workflowservice.v1.PollNexusOperationExecutionResponse.verify|verify messages.
Parameters
message
PollNexusOperationExecutionResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PollNexusOperationExecutionResponse message, length delimited. Does not implicitly temporal.api.workflowservice.v1.PollNexusOperationExecutionResponse.verify|verify messages.
Parameters
message
PollNexusOperationExecutionResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PollNexusOperationExecutionResponse
Creates a PollNexusOperationExecutionResponse message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PollNexusOperationExecutionResponse
PollNexusOperationExecutionResponse
toObject()
statictoObject(message,options?):object
Creates a plain object from a PollNexusOperationExecutionResponse message. Also converts values to other types if specified.
Parameters
message
PollNexusOperationExecutionResponse
PollNexusOperationExecutionResponse
options?
IConversionOptions
Conversion options
Returns
object
Plain object