Skip to main content

Class: ExternalWorkflowExecutionCancelRequestedEventAttributes

history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes

Represents an ExternalWorkflowExecutionCancelRequestedEventAttributes.

Implements#

Constructors#

constructor#

new ExternalWorkflowExecutionCancelRequestedEventAttributes(properties?)

Constructs a new ExternalWorkflowExecutionCancelRequestedEventAttributes.

Parameters#

NameType
properties?IExternalWorkflowExecutionCancelRequestedEventAttributes

Properties#

initiatedEventId#

initiatedEventId: Long

ExternalWorkflowExecutionCancelRequestedEventAttributes initiatedEventId.

Implementation of#

IExternalWorkflowExecutionCancelRequestedEventAttributes.initiatedEventId


namespace#

namespace: string

ExternalWorkflowExecutionCancelRequestedEventAttributes namespace.

Implementation of#

IExternalWorkflowExecutionCancelRequestedEventAttributes.namespace


workflowExecution#

Optional workflowExecution: null | IWorkflowExecution

ExternalWorkflowExecutionCancelRequestedEventAttributes workflowExecution.

Implementation of#

IExternalWorkflowExecutionCancelRequestedEventAttributes.workflowExecution

Methods#

toJSON#

toJSON(): Object

Converts this ExternalWorkflowExecutionCancelRequestedEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ExternalWorkflowExecutionCancelRequestedEventAttributes

Decodes an ExternalWorkflowExecutionCancelRequestedEventAttributes 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#

ExternalWorkflowExecutionCancelRequestedEventAttributes

ExternalWorkflowExecutionCancelRequestedEventAttributes


decodeDelimited#

Static decodeDelimited(reader): ExternalWorkflowExecutionCancelRequestedEventAttributes

Decodes an ExternalWorkflowExecutionCancelRequestedEventAttributes 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#

ExternalWorkflowExecutionCancelRequestedEventAttributes

ExternalWorkflowExecutionCancelRequestedEventAttributes


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ExternalWorkflowExecutionCancelRequestedEventAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ExternalWorkflowExecutionCancelRequestedEventAttributes

ExternalWorkflowExecutionCancelRequestedEventAttributes


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageExternalWorkflowExecutionCancelRequestedEventAttributesExternalWorkflowExecutionCancelRequestedEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object