Skip to main content

Class: RespondActivityTaskFailedRequest

workflowservice.v1.RespondActivityTaskFailedRequest

Represents a RespondActivityTaskFailedRequest.

Implements#

Constructors#

constructor#

new RespondActivityTaskFailedRequest(properties?)

Constructs a new RespondActivityTaskFailedRequest.

Parameters#

NameType
properties?IRespondActivityTaskFailedRequest

Properties#

failure#

Optional failure: null | IFailure

RespondActivityTaskFailedRequest failure.

Implementation of#

IRespondActivityTaskFailedRequest.failure


identity#

identity: string

RespondActivityTaskFailedRequest identity.

Implementation of#

IRespondActivityTaskFailedRequest.identity


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


decode#

Static decode(reader, length?): RespondActivityTaskFailedRequest

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

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest


decodeDelimited#

Static decodeDelimited(reader): RespondActivityTaskFailedRequest

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

RespondActivityTaskFailedRequest

RespondActivityTaskFailedRequest


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

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


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?IConversionOptions-

Returns#

Object

Plain object