Class: WorkflowExecutionUpdateRejectedEventAttributes
history.v1.WorkflowExecutionUpdateRejectedEventAttributes
Represents a WorkflowExecutionUpdateRejectedEventAttributes.
Properties
failure
• Optional failure: null | $Properties
The cause of rejection.
protocolInstanceId
• protocolInstanceId: string
The instance ID of the update protocol that generated this event.
rejectedRequest
• Optional rejectedRequest: null | $Properties
The message payload of the original request message that initiated this update.
rejectedRequestMessageId
• rejectedRequestMessageId: string
The message ID of the original request message that initiated this update. Needed so that the worker can recreate and deliver that same message as part of replay.
rejectedRequestSequencingEventId
• rejectedRequestSequencingEventId: Long
The event ID used to sequence the original request message.
Methods
toJSON
▸ toJSON(): Object
Converts this WorkflowExecutionUpdateRejectedEventAttributes to JSON.
Returns
Object
JSON object
create
▸ create(properties?): WorkflowExecutionUpdateRejectedEventAttributes & $Shape
Creates a new WorkflowExecutionUpdateRejectedEventAttributes instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
WorkflowExecutionUpdateRejectedEventAttributes & $Shape
WorkflowExecutionUpdateRejectedEventAttributes instance
▸ create(properties?): WorkflowExecutionUpdateRejectedEventAttributes
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
WorkflowExecutionUpdateRejectedEventAttributes
decode
▸ decode(reader, length?): WorkflowExecutionUpdateRejectedEventAttributes & $Shape
Decodes a WorkflowExecutionUpdateRejectedEventAttributes 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
WorkflowExecutionUpdateRejectedEventAttributes & $Shape
WorkflowExecutionUpdateRejectedEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): WorkflowExecutionUpdateRejectedEventAttributes & $Shape
Decodes a WorkflowExecutionUpdateRejectedEventAttributes message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
WorkflowExecutionUpdateRejectedEventAttributes & $Shape
WorkflowExecutionUpdateRejectedEventAttributes
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 WorkflowExecutionUpdateRejectedEventAttributes message. Does not implicitly temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | WorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified WorkflowExecutionUpdateRejectedEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | WorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): WorkflowExecutionUpdateRejectedEventAttributes
Creates a WorkflowExecutionUpdateRejectedEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
WorkflowExecutionUpdateRejectedEventAttributes
WorkflowExecutionUpdateRejectedEventAttributes
toObject
▸ toObject(message, options?): Object
Creates a plain object from a WorkflowExecutionUpdateRejectedEventAttributes message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | WorkflowExecutionUpdateRejectedEventAttributes | WorkflowExecutionUpdateRejectedEventAttributes |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object