Skip to main content

Class: RespondActivityTaskFailedResponse

workflowservice.v1.RespondActivityTaskFailedResponse

Represents a RespondActivityTaskFailedResponse.

Implements

Constructors

constructor

new RespondActivityTaskFailedResponse(properties?)

Constructs a new RespondActivityTaskFailedResponse.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedResponseProperties to set

Properties

failures

failures: IFailure[]

RespondActivityTaskFailedResponse failures.

Implementation of

IRespondActivityTaskFailedResponse.failures

Methods

toJSON

toJSON(): Object

Converts this RespondActivityTaskFailedResponse to JSON.

Returns

Object

JSON object


create

Static create(properties?): RespondActivityTaskFailedResponse

Creates a new RespondActivityTaskFailedResponse instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondActivityTaskFailedResponseProperties to set

Returns

RespondActivityTaskFailedResponse

RespondActivityTaskFailedResponse instance


decode

Static decode(reader, length?): RespondActivityTaskFailedResponse

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

RespondActivityTaskFailedResponse

RespondActivityTaskFailedResponse


decodeDelimited

Static decodeDelimited(reader): RespondActivityTaskFailedResponse

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

RespondActivityTaskFailedResponse

RespondActivityTaskFailedResponse


encode

Static encode(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

Static encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

Static fromObject(object): RespondActivityTaskFailedResponse

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RespondActivityTaskFailedResponse

RespondActivityTaskFailedResponse


getTypeUrl

Static getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RespondActivityTaskFailedResponse

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

Parameters

NameTypeDescription
messageRespondActivityTaskFailedResponseRespondActivityTaskFailedResponse
options?IConversionOptionsConversion options

Returns

Object

Plain object