Skip to main content

Class: PauseWorkflowExecutionRequest

workflowservice.v1.PauseWorkflowExecutionRequest

Request to pause a workflow execution.

Implements

Constructors

constructor

new PauseWorkflowExecutionRequest(properties?): PauseWorkflowExecutionRequest

Constructs a new PauseWorkflowExecutionRequest.

Parameters

NameTypeDescription
properties?IPauseWorkflowExecutionRequestProperties to set

Returns

PauseWorkflowExecutionRequest

Properties

identity

identity: string

The identity of the client who initiated this request.

Implementation of

IPauseWorkflowExecutionRequest.identity


namespace

namespace: string

Namespace of the workflow to pause.

Implementation of

IPauseWorkflowExecutionRequest.namespace


reason

reason: string

Reason to pause the workflow execution.

Implementation of

IPauseWorkflowExecutionRequest.reason


requestId

requestId: string

A unique identifier for this pause request for idempotence. Typically UUIDv4.

Implementation of

IPauseWorkflowExecutionRequest.requestId


runId

runId: string

Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.

Implementation of

IPauseWorkflowExecutionRequest.runId


workflowId

workflowId: string

ID of the workflow execution to be paused. Required.

Implementation of

IPauseWorkflowExecutionRequest.workflowId

Methods

toJSON

toJSON(): Object

Converts this PauseWorkflowExecutionRequest to JSON.

Returns

Object

JSON object


create

create(properties?): PauseWorkflowExecutionRequest

Creates a new PauseWorkflowExecutionRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IPauseWorkflowExecutionRequestProperties to set

Returns

PauseWorkflowExecutionRequest

PauseWorkflowExecutionRequest instance


decode

decode(reader, length?): PauseWorkflowExecutionRequest

Decodes a PauseWorkflowExecutionRequest message from the specified reader or buffer.

Parameters

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

Returns

PauseWorkflowExecutionRequest

PauseWorkflowExecutionRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): PauseWorkflowExecutionRequest

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PauseWorkflowExecutionRequest

PauseWorkflowExecutionRequest

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 PauseWorkflowExecutionRequest message. Does not implicitly temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): PauseWorkflowExecutionRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PauseWorkflowExecutionRequest

PauseWorkflowExecutionRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for PauseWorkflowExecutionRequest

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

Parameters

NameTypeDescription
messagePauseWorkflowExecutionRequestPauseWorkflowExecutionRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object