Skip to main content

Class: RequestCancelExternalWorkflowExecutionCommandAttributes

command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes

Represents a RequestCancelExternalWorkflowExecutionCommandAttributes.

Implements

Constructors

constructor

new RequestCancelExternalWorkflowExecutionCommandAttributes(properties?): RequestCancelExternalWorkflowExecutionCommandAttributes

Constructs a new RequestCancelExternalWorkflowExecutionCommandAttributes.

Parameters

NameTypeDescription
properties?IRequestCancelExternalWorkflowExecutionCommandAttributesProperties to set

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

Properties

childWorkflowOnly

childWorkflowOnly: boolean

Set this to true if the workflow being cancelled is a child of the workflow originating this command. The request will be rejected if it is set to true and the target workflow is not a child of the requesting workflow.

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.childWorkflowOnly


control

control: string

Deprecated.

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.control


namespace

namespace: string

RequestCancelExternalWorkflowExecutionCommandAttributes namespace.

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.namespace


reason

reason: string

Reason for requesting the cancellation

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.reason


runId

runId: string

RequestCancelExternalWorkflowExecutionCommandAttributes runId.

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.runId


workflowId

workflowId: string

RequestCancelExternalWorkflowExecutionCommandAttributes workflowId.

Implementation of

IRequestCancelExternalWorkflowExecutionCommandAttributes.workflowId

Methods

toJSON

toJSON(): Object

Converts this RequestCancelExternalWorkflowExecutionCommandAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): RequestCancelExternalWorkflowExecutionCommandAttributes

Creates a new RequestCancelExternalWorkflowExecutionCommandAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IRequestCancelExternalWorkflowExecutionCommandAttributesProperties to set

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

RequestCancelExternalWorkflowExecutionCommandAttributes instance


decode

decode(reader, length?): RequestCancelExternalWorkflowExecutionCommandAttributes

Decodes a RequestCancelExternalWorkflowExecutionCommandAttributes message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

RequestCancelExternalWorkflowExecutionCommandAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): RequestCancelExternalWorkflowExecutionCommandAttributes

Decodes a RequestCancelExternalWorkflowExecutionCommandAttributes message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

RequestCancelExternalWorkflowExecutionCommandAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified RequestCancelExternalWorkflowExecutionCommandAttributes message. Does not implicitly temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): RequestCancelExternalWorkflowExecutionCommandAttributes

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RequestCancelExternalWorkflowExecutionCommandAttributes

RequestCancelExternalWorkflowExecutionCommandAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RequestCancelExternalWorkflowExecutionCommandAttributes

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageRequestCancelExternalWorkflowExecutionCommandAttributesRequestCancelExternalWorkflowExecutionCommandAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object