Skip to main content

Class: RespondWorkflowTaskCompletedResponse

workflowservice.v1.RespondWorkflowTaskCompletedResponse

Represents a RespondWorkflowTaskCompletedResponse.

Implements

Constructors

constructor

new RespondWorkflowTaskCompletedResponse(properties?)

Constructs a new RespondWorkflowTaskCompletedResponse.

Parameters

NameTypeDescription
properties?IRespondWorkflowTaskCompletedResponseProperties to set

Properties

activityTasks

activityTasks: IPollActivityTaskQueueResponse[]

RespondWorkflowTaskCompletedResponse activityTasks.

Implementation of

IRespondWorkflowTaskCompletedResponse.activityTasks


workflowTask

Optional workflowTask: null | IPollWorkflowTaskQueueResponse

RespondWorkflowTaskCompletedResponse workflowTask.

Implementation of

IRespondWorkflowTaskCompletedResponse.workflowTask

Methods

toJSON

toJSON(): Object

Converts this RespondWorkflowTaskCompletedResponse to JSON.

Returns

Object

JSON object


create

Static create(properties?): RespondWorkflowTaskCompletedResponse

Creates a new RespondWorkflowTaskCompletedResponse instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondWorkflowTaskCompletedResponseProperties to set

Returns

RespondWorkflowTaskCompletedResponse

RespondWorkflowTaskCompletedResponse instance


decode

Static decode(reader, length?): RespondWorkflowTaskCompletedResponse

Decodes a RespondWorkflowTaskCompletedResponse message from the specified reader or buffer.

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

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

Returns

RespondWorkflowTaskCompletedResponse

RespondWorkflowTaskCompletedResponse


decodeDelimited

Static decodeDelimited(reader): RespondWorkflowTaskCompletedResponse

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

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RespondWorkflowTaskCompletedResponse

RespondWorkflowTaskCompletedResponse


encode

Static 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

Static 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

Static 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

Static 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

Static 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