Class: UnpauseActivityRequest
workflowservice.v1.UnpauseActivityRequest
Deprecated. Use UnpauseActivityExecutionRequest.
Properties
activity
• Optional activity: "id" | "type" | "unpauseAll"
either activity id or activity type must be provided
execution
• Optional execution: null | $Properties
Execution info of the workflow which scheduled this activity
id
• Optional id: null | string
Only the activity with this ID will be unpaused.
identity
• identity: string
The identity of the client who initiated this request.
jitter
• Optional jitter: null | $Properties
If set, the activity will start at a random time within the specified jitter duration.
namespace
• namespace: string
Namespace of the workflow which scheduled this activity.
resetAttempts
• resetAttempts: boolean
Providing this flag will also reset the number of attempts.
resetHeartbeat
• resetHeartbeat: boolean
Providing this flag will also reset the heartbeat details.
type
• Optional type: null | string
Unpause all running activities with of this type.
unpauseAll
• Optional unpauseAll: null | boolean
Unpause all running activities.
Methods
toJSON
▸ toJSON(): Object
Converts this UnpauseActivityRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?): UnpauseActivityRequest & $Shape
Creates a new UnpauseActivityRequest instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
UnpauseActivityRequest & $Shape
UnpauseActivityRequest instance
▸ create(properties?): UnpauseActivityRequest
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): UnpauseActivityRequest & $Shape
Decodes an UnpauseActivityRequest 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
UnpauseActivityRequest & $Shape
UnpauseActivityRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): UnpauseActivityRequest & $Shape
Decodes an UnpauseActivityRequest message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
UnpauseActivityRequest & $Shape
UnpauseActivityRequest
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 UnpauseActivityRequest message. Does not implicitly temporal.api.workflowservice.v1.UnpauseActivityRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UnpauseActivityRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified UnpauseActivityRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UnpauseActivityRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UnpauseActivityRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): UnpauseActivityRequest
Creates an UnpauseActivityRequest message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
UnpauseActivityRequest
toObject
▸ toObject(message, options?): Object
Creates a plain object from an UnpauseActivityRequest message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | UnpauseActivityRequest | UnpauseActivityRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object