Skip to main content

Class: PauseInfo

v1.PendingActivityInfo.PauseInfo

Represents a PauseInfo.

Implements

Constructors

constructor

new PauseInfo(properties?): PauseInfo

Constructs a new PauseInfo.

Parameters

NameTypeDescription
properties?IPauseInfoProperties to set

Returns

PauseInfo

Properties

manual

Optional manual: null | IManual

activity was paused by the manual intervention

Implementation of

IPauseInfo.manual


pauseTime

Optional pauseTime: null | ITimestamp

The time when the activity was paused.

Implementation of

IPauseInfo.pauseTime


pausedBy

Optional pausedBy: "manual" | "rule"

PauseInfo pausedBy.


rule

Optional rule: null | IRule

activity was paused by the rule

Implementation of

IPauseInfo.rule

Methods

toJSON

toJSON(): Object

Converts this PauseInfo to JSON.

Returns

Object

JSON object


create

create(properties?): PauseInfo

Creates a new PauseInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?IPauseInfoProperties to set

Returns

PauseInfo

PauseInfo instance


decode

decode(reader, length?): PauseInfo

Decodes a PauseInfo message from the specified reader or buffer.

Parameters

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

Returns

PauseInfo

PauseInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): PauseInfo

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PauseInfo

PauseInfo

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 PauseInfo message. Does not implicitly temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified PauseInfo message, length delimited. Does not implicitly temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): PauseInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PauseInfo

PauseInfo


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for PauseInfo

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

Parameters

NameTypeDescription
messagePauseInfoPauseInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object