Skip to main content

Class: RespondWorkflowTaskCompletedResponse

workflowservice.v1.RespondWorkflowTaskCompletedResponse

Represents a RespondWorkflowTaskCompletedResponse.

Implements

Constructors

constructor

new RespondWorkflowTaskCompletedResponse(properties?): RespondWorkflowTaskCompletedResponse

Constructs a new RespondWorkflowTaskCompletedResponse.

Parameters

NameTypeDescription
properties?IRespondWorkflowTaskCompletedResponseProperties to set

Returns

RespondWorkflowTaskCompletedResponse

Properties

activityTasks

activityTasks: IPollActivityTaskQueueResponse[]

See ScheduleActivityTaskCommandAttributes::request_start

Implementation of

IRespondWorkflowTaskCompletedResponse.activityTasks


resetHistoryEventId

resetHistoryEventId: Long

RespondWorkflowTaskCompletedResponse resetHistoryEventId.

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

NameTypeDescription
properties?IRespondWorkflowTaskCompletedResponseProperties to set

Returns

RespondWorkflowTaskCompletedResponse

RespondWorkflowTaskCompletedResponse instance


decode

decode(reader, length?): RespondWorkflowTaskCompletedResponse

Decodes a RespondWorkflowTaskCompletedResponse message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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

NameTypeDescription
readerUint8Array | ReaderReader 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

NameTypeDescription
messageIRespondWorkflowTaskCompletedResponseRespondWorkflowTaskCompletedResponse message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
messageIRespondWorkflowTaskCompletedResponseRespondWorkflowTaskCompletedResponse message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
objectObjectPlain object

Returns

RespondWorkflowTaskCompletedResponse

RespondWorkflowTaskCompletedResponse


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RespondWorkflowTaskCompletedResponse

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

Parameters

NameTypeDescription
messageRespondWorkflowTaskCompletedResponseRespondWorkflowTaskCompletedResponse
options?IConversionOptionsConversion options

Returns

Object

Plain object