Skip to main content

Class: RespondWorkflowTaskFailedRequest

workflowservice.v1.RespondWorkflowTaskFailedRequest

Represents a RespondWorkflowTaskFailedRequest.

Implements

Constructors

constructor

new RespondWorkflowTaskFailedRequest(properties?)

Constructs a new RespondWorkflowTaskFailedRequest.

Parameters

NameTypeDescription
properties?IRespondWorkflowTaskFailedRequestProperties to set

Properties

binaryChecksum

binaryChecksum: string

RespondWorkflowTaskFailedRequest binaryChecksum.

Implementation of

IRespondWorkflowTaskFailedRequest.binaryChecksum


cause

cause: WorkflowTaskFailedCause

RespondWorkflowTaskFailedRequest cause.

Implementation of

IRespondWorkflowTaskFailedRequest.cause


failure

Optional failure: null | IFailure

RespondWorkflowTaskFailedRequest failure.

Implementation of

IRespondWorkflowTaskFailedRequest.failure


identity

identity: string

RespondWorkflowTaskFailedRequest identity.

Implementation of

IRespondWorkflowTaskFailedRequest.identity


namespace

namespace: string

RespondWorkflowTaskFailedRequest namespace.

Implementation of

IRespondWorkflowTaskFailedRequest.namespace


taskToken

taskToken: Uint8Array

RespondWorkflowTaskFailedRequest taskToken.

Implementation of

IRespondWorkflowTaskFailedRequest.taskToken

Methods

toJSON

toJSON(): Object

Converts this RespondWorkflowTaskFailedRequest to JSON.

Returns

Object

JSON object


create

Static create(properties?): RespondWorkflowTaskFailedRequest

Creates a new RespondWorkflowTaskFailedRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondWorkflowTaskFailedRequestProperties to set

Returns

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest instance


decode

Static decode(reader, length?): RespondWorkflowTaskFailedRequest

Decodes a RespondWorkflowTaskFailedRequest 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

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest


decodeDelimited

Static decodeDelimited(reader): RespondWorkflowTaskFailedRequest

Decodes a RespondWorkflowTaskFailedRequest 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

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest


encode

Static encode(message, writer?): Writer

Encodes the specified RespondWorkflowTaskFailedRequest message. Does not implicitly temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIRespondWorkflowTaskFailedRequestRespondWorkflowTaskFailedRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

Static encodeDelimited(message, writer?): Writer

Encodes the specified RespondWorkflowTaskFailedRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIRespondWorkflowTaskFailedRequestRespondWorkflowTaskFailedRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

Static fromObject(object): RespondWorkflowTaskFailedRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RespondWorkflowTaskFailedRequest

RespondWorkflowTaskFailedRequest


getTypeUrl

Static getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RespondWorkflowTaskFailedRequest

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

Parameters

NameTypeDescription
messageRespondWorkflowTaskFailedRequestRespondWorkflowTaskFailedRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object