Skip to main content

Class: RespondWorkflowTaskFailedResponse

workflowservice.v1.RespondWorkflowTaskFailedResponse

Represents a RespondWorkflowTaskFailedResponse.

Implements#

Constructors#

constructor#

new RespondWorkflowTaskFailedResponse(properties?)

Constructs a new RespondWorkflowTaskFailedResponse.

Parameters#

NameType
properties?IRespondWorkflowTaskFailedResponse

Methods#

toJSON#

toJSON(): Object

Converts this RespondWorkflowTaskFailedResponse to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): RespondWorkflowTaskFailedResponse

Decodes a RespondWorkflowTaskFailedResponse message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

RespondWorkflowTaskFailedResponse

RespondWorkflowTaskFailedResponse


decodeDelimited#

Static decodeDelimited(reader): RespondWorkflowTaskFailedResponse

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

RespondWorkflowTaskFailedResponse

RespondWorkflowTaskFailedResponse


encode#

Static encode(message, writer?): Writer

Encodes the specified RespondWorkflowTaskFailedResponse message. Does not implicitly {@link temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse.verify|verify} messages.

Parameters#

NameTypeDescription
messageIRespondWorkflowTaskFailedResponseRespondWorkflowTaskFailedResponse message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified RespondWorkflowTaskFailedResponse message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse.verify|verify} messages.

Parameters#

NameTypeDescription
messageIRespondWorkflowTaskFailedResponseRespondWorkflowTaskFailedResponse message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): RespondWorkflowTaskFailedResponse

Creates a RespondWorkflowTaskFailedResponse message from a plain object. Also converts values to their respective internal types.

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

RespondWorkflowTaskFailedResponse

RespondWorkflowTaskFailedResponse


toObject#

Static toObject(message, options?): Object

Creates a plain object from a RespondWorkflowTaskFailedResponse message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageRespondWorkflowTaskFailedResponseRespondWorkflowTaskFailedResponse
options?IConversionOptions-

Returns#

Object

Plain object