Class: RespondWorkflowTaskCompletedResponse
workflowservice.v1.RespondWorkflowTaskCompletedResponse
Represents a RespondWorkflowTaskCompletedResponse.
Implements
Constructors
constructor
• new RespondWorkflowTaskCompletedResponse(properties?
): RespondWorkflowTaskCompletedResponse
Constructs a new RespondWorkflowTaskCompletedResponse.
Parameters
Name | Type | Description |
---|---|---|
properties? | IRespondWorkflowTaskCompletedResponse | Properties to set |
Returns
RespondWorkflowTaskCompletedResponse
Properties
activityTasks
• activityTasks: IPollActivityTaskQueueResponse
[]
See ScheduleActivityTaskCommandAttributes::request_eager_execution
Implementation of
IRespondWorkflowTaskCompletedResponse.activityTasks
resetHistoryEventId
• resetHistoryEventId: Long
If non zero, indicates the server has discarded the workflow task that was being responded to. Will be the event ID of the last workflow task started event in the history before the new workflow task. Server is only expected to discard a workflow task if it could not have modified the workflow state.
Implementation of
IRespondWorkflowTaskCompletedResponse.resetHistoryEventId
workflowTask
• Optional
workflowTask: null
| IPollWorkflowTaskQueueResponse
See RespondWorkflowTaskCompletedResponse::return_new_workflow_task
Implementation of
IRespondWorkflowTaskCompletedResponse.workflowTask
Methods
toJSON
▸ toJSON(): Object
Converts this RespondWorkflowTaskCompletedResponse to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): RespondWorkflowTaskCompletedResponse
Creates a new RespondWorkflowTaskCompletedResponse instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IRespondWorkflowTaskCompletedResponse | Properties to set |
Returns
RespondWorkflowTaskCompletedResponse
RespondWorkflowTaskCompletedResponse instance
decode
▸ decode(reader
, length?
): RespondWorkflowTaskCompletedResponse
Decodes a RespondWorkflowTaskCompletedResponse 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
RespondWorkflowTaskCompletedResponse
RespondWorkflowTaskCompletedResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): RespondWorkflowTaskCompletedResponse
Decodes a RespondWorkflowTaskCompletedResponse message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
RespondWorkflowTaskCompletedResponse
RespondWorkflowTaskCompletedResponse
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 RespondWorkflowTaskCompletedResponse message. Does not implicitly temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IRespondWorkflowTaskCompletedResponse | RespondWorkflowTaskCompletedResponse message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified RespondWorkflowTaskCompletedResponse message, length delimited. Does not implicitly temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IRespondWorkflowTaskCompletedResponse | RespondWorkflowTaskCompletedResponse message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): RespondWorkflowTaskCompletedResponse
Creates a RespondWorkflowTaskCompletedResponse message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
RespondWorkflowTaskCompletedResponse
RespondWorkflowTaskCompletedResponse
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for RespondWorkflowTaskCompletedResponse
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from a RespondWorkflowTaskCompletedResponse message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | RespondWorkflowTaskCompletedResponse | RespondWorkflowTaskCompletedResponse |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object