Skip to main content

Class: FailWorkflowExecutionCommandAttributes

command.v1.FailWorkflowExecutionCommandAttributes

Represents a FailWorkflowExecutionCommandAttributes.

Implements#

Constructors#

constructor#

new FailWorkflowExecutionCommandAttributes(properties?)

Constructs a new FailWorkflowExecutionCommandAttributes.

Parameters#

NameType
properties?IFailWorkflowExecutionCommandAttributes

Properties#

failure#

Optional failure: null | IFailure

FailWorkflowExecutionCommandAttributes failure.

Implementation of#

IFailWorkflowExecutionCommandAttributes.failure

Methods#

toJSON#

toJSON(): Object

Converts this FailWorkflowExecutionCommandAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): FailWorkflowExecutionCommandAttributes

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

FailWorkflowExecutionCommandAttributes

FailWorkflowExecutionCommandAttributes


decodeDelimited#

Static decodeDelimited(reader): FailWorkflowExecutionCommandAttributes

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

FailWorkflowExecutionCommandAttributes

FailWorkflowExecutionCommandAttributes


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): FailWorkflowExecutionCommandAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

FailWorkflowExecutionCommandAttributes

FailWorkflowExecutionCommandAttributes


toObject#

Static toObject(message, options?): Object

Creates a plain object from a FailWorkflowExecutionCommandAttributes message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageFailWorkflowExecutionCommandAttributesFailWorkflowExecutionCommandAttributes
options?IConversionOptions-

Returns#

Object

Plain object