Class: PauseInfo
v1.PendingActivityInfo.PauseInfo
Represents a PauseInfo.
Implements
Constructors
constructor
• new PauseInfo(properties?): PauseInfo
Constructs a new PauseInfo.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IPauseInfo | Properties to set |
Returns
Properties
manual
• Optional manual: null | IManual
activity was paused by the manual intervention
Implementation of
pauseTime
• Optional pauseTime: null | ITimestamp
The time when the activity was paused.
Implementation of
pausedBy
• Optional pausedBy: "manual" | "rule"
PauseInfo pausedBy.
rule
• Optional rule: null | IRule
activity was paused by the rule
Implementation of
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
| Name | Type | Description |
|---|---|---|
properties? | IPauseInfo | Properties to set |
Returns
PauseInfo instance
decode
▸ decode(reader, length?): PauseInfo
Decodes a PauseInfo message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | IPauseInfo | PauseInfo message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | IPauseInfo | PauseInfo message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
PauseInfo
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for PauseInfo
Parameters
| Name | Type | Description |
|---|---|---|
typeUrlPrefix? | string | your 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
| Name | Type | Description |
|---|---|---|
message | PauseInfo | PauseInfo |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object