Skip to main content

Class: RespondActivityTaskFailedRequest

workflowservice.v1.RespondActivityTaskFailedRequest

Represents a RespondActivityTaskFailedRequest.

Implements

Constructors

constructor

new RespondActivityTaskFailedRequest(properties?): RespondActivityTaskFailedRequest

Constructs a new RespondActivityTaskFailedRequest.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedRequestProperties to set

Returns

RespondActivityTaskFailedRequest

Properties

failure

Optional failure: null | IFailure

Detailed failure information

Implementation of

IRespondActivityTaskFailedRequest.failure


identity

identity: string

The identity of the worker/client

Implementation of

IRespondActivityTaskFailedRequest.identity


lastHeartbeatDetails

Optional lastHeartbeatDetails: null | IPayloads

Additional details to be stored as last activity heartbeat

Implementation of

IRespondActivityTaskFailedRequest.lastHeartbeatDetails


namespace

namespace: string

RespondActivityTaskFailedRequest namespace.

Implementation of

IRespondActivityTaskFailedRequest.namespace


taskToken

taskToken: Uint8Array

The task token as received in PollActivityTaskQueueResponse

Implementation of

IRespondActivityTaskFailedRequest.taskToken


workerVersion

Optional workerVersion: null | IWorkerVersionStamp

Version info of the worker who processed this task. This message's build_id field should always be set by SDKs. Workers opting into versioning will also set the use_versioning field to true. See message docstrings for more.

Implementation of

IRespondActivityTaskFailedRequest.workerVersion

Methods

toJSON

toJSON(): Object

Converts this RespondActivityTaskFailedRequest to JSON.

Returns

Object

JSON object


create

create(properties?): RespondActivityTaskFailedRequest

Creates a new RespondActivityTaskFailedRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedRequestProperties to set

Returns

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest instance


decode

decode(reader, length?): RespondActivityTaskFailedRequest

Decodes a RespondActivityTaskFailedRequest message from the specified reader or buffer.

Parameters

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

Returns

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): RespondActivityTaskFailedRequest

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest

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 RespondActivityTaskFailedRequest message. Does not implicitly temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): RespondActivityTaskFailedRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RespondActivityTaskFailedRequest

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

Parameters

NameTypeDescription
messageRespondActivityTaskFailedRequestRespondActivityTaskFailedRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object