Class: UpdateWorkflowExecutionResponse
workflowservice.v1.UpdateWorkflowExecutionResponse
Represents an UpdateWorkflowExecutionResponse.
Properties
link
• Optional link: null | $Properties
Link to the update event. May be null if the update has not yet been accepted.
outcome
• Optional outcome: null | $Properties
The outcome of the Update if and only if the Workflow Update has completed. If this response is being returned before the Update has completed then this field will not be set.
stage
• stage: UpdateWorkflowExecutionLifecycleStage
The most advanced lifecycle stage that the Update is known to have reached, where lifecycle stages are ordered UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED < UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED < UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED < UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED. UNSPECIFIED will be returned if and only if the server's maximum wait time was reached before the Update reached the stage specified in the request WaitPolicy, and before the context deadline expired; clients may may then retry the call as needed.
updateRef
• Optional updateRef: null | $Properties
Enough information for subsequent poll calls if needed. Never null.
Methods
toJSON
▸ toJSON(): Object
Converts this UpdateWorkflowExecutionResponse to JSON.
Returns
Object
JSON object
create
▸ create(properties?): UpdateWorkflowExecutionResponse & $Shape
Creates a new UpdateWorkflowExecutionResponse instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
UpdateWorkflowExecutionResponse & $Shape
UpdateWorkflowExecutionResponse instance
▸ create(properties?): UpdateWorkflowExecutionResponse
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
UpdateWorkflowExecutionResponse
decode
▸ decode(reader, length?): UpdateWorkflowExecutionResponse & $Shape
Decodes an UpdateWorkflowExecutionResponse message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
UpdateWorkflowExecutionResponse & $Shape
UpdateWorkflowExecutionResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): UpdateWorkflowExecutionResponse & $Shape
Decodes an UpdateWorkflowExecutionResponse message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
UpdateWorkflowExecutionResponse & $Shape
UpdateWorkflowExecutionResponse
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 UpdateWorkflowExecutionResponse message. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UpdateWorkflowExecutionResponse message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified UpdateWorkflowExecutionResponse message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UpdateWorkflowExecutionResponse message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): UpdateWorkflowExecutionResponse
Creates an UpdateWorkflowExecutionResponse message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
UpdateWorkflowExecutionResponse
UpdateWorkflowExecutionResponse
toObject
▸ toObject(message, options?): Object
Creates a plain object from an UpdateWorkflowExecutionResponse message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | UpdateWorkflowExecutionResponse | UpdateWorkflowExecutionResponse |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object