Skip to main content

Class: WorkflowExecutionTerminatedEventAttributes

history.v1.WorkflowExecutionTerminatedEventAttributes

Represents a WorkflowExecutionTerminatedEventAttributes.

Implements#

Constructors#

constructor#

new WorkflowExecutionTerminatedEventAttributes(properties?)

Constructs a new WorkflowExecutionTerminatedEventAttributes.

Parameters#

NameType
properties?IWorkflowExecutionTerminatedEventAttributes

Properties#

details#

Optional details: null | IPayloads

WorkflowExecutionTerminatedEventAttributes details.

Implementation of#

IWorkflowExecutionTerminatedEventAttributes.details


identity#

identity: string

WorkflowExecutionTerminatedEventAttributes identity.

Implementation of#

IWorkflowExecutionTerminatedEventAttributes.identity


reason#

reason: string

WorkflowExecutionTerminatedEventAttributes reason.

Implementation of#

IWorkflowExecutionTerminatedEventAttributes.reason

Methods#

toJSON#

toJSON(): Object

Converts this WorkflowExecutionTerminatedEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): WorkflowExecutionTerminatedEventAttributes

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

WorkflowExecutionTerminatedEventAttributes

WorkflowExecutionTerminatedEventAttributes


decodeDelimited#

Static decodeDelimited(reader): WorkflowExecutionTerminatedEventAttributes

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

WorkflowExecutionTerminatedEventAttributes

WorkflowExecutionTerminatedEventAttributes


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): WorkflowExecutionTerminatedEventAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

WorkflowExecutionTerminatedEventAttributes

WorkflowExecutionTerminatedEventAttributes


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageWorkflowExecutionTerminatedEventAttributesWorkflowExecutionTerminatedEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object