Skip to main content

Class: RespondActivityTaskFailedRequest

workflowservice.v1.RespondActivityTaskFailedRequest

Represents a RespondActivityTaskFailedRequest.

Implements

Constructors

constructor

new RespondActivityTaskFailedRequest(properties?)

Constructs a new RespondActivityTaskFailedRequest.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedRequestProperties to set

Properties

failure

Optional failure: null | IFailure

RespondActivityTaskFailedRequest failure.

Implementation of

IRespondActivityTaskFailedRequest.failure


identity

identity: string

RespondActivityTaskFailedRequest identity.

Implementation of

IRespondActivityTaskFailedRequest.identity


lastHeartbeatDetails

Optional lastHeartbeatDetails: null | IPayloads

RespondActivityTaskFailedRequest lastHeartbeatDetails.

Implementation of

IRespondActivityTaskFailedRequest.lastHeartbeatDetails


namespace

namespace: string

RespondActivityTaskFailedRequest namespace.

Implementation of

IRespondActivityTaskFailedRequest.namespace


taskToken

taskToken: Uint8Array

RespondActivityTaskFailedRequest taskToken.

Implementation of

IRespondActivityTaskFailedRequest.taskToken

Methods

toJSON

toJSON(): Object

Converts this RespondActivityTaskFailedRequest to JSON.

Returns

Object

JSON object


create

Static create(properties?): RespondActivityTaskFailedRequest

Creates a new RespondActivityTaskFailedRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedRequestProperties to set

Returns

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest instance


decode

Static decode(reader, length?): RespondActivityTaskFailedRequest

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

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest


decodeDelimited

Static decodeDelimited(reader): RespondActivityTaskFailedRequest

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

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest


encode

Static 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

Static 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

Static 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

Static 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

Static 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