Skip to main content

Class: WorkflowExecutionUpdateRejectedEventAttributes

Represents a WorkflowExecutionUpdateRejectedEventAttributes.

Properties​

failure?​

optional failure?: $Properties | null

The cause of rejection.


protocolInstanceId​

protocolInstanceId: string

The instance ID of the update protocol that generated this event.


rejectedRequest?​

optional rejectedRequest?: $Properties | null

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()​

Call Signature​

static create(properties?): WorkflowExecutionUpdateRejectedEventAttributes & $Shape

Creates a new WorkflowExecutionUpdateRejectedEventAttributes instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

WorkflowExecutionUpdateRejectedEventAttributes & $Shape

WorkflowExecutionUpdateRejectedEventAttributes instance

Call Signature​

static create(properties?): WorkflowExecutionUpdateRejectedEventAttributes

Creates a new WorkflowExecutionUpdateRejectedEventAttributes instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes instance


decode()​

static decode(reader, length?): WorkflowExecutionUpdateRejectedEventAttributes & $Shape

Decodes a WorkflowExecutionUpdateRejectedEventAttributes message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | 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()​

static decodeDelimited(reader): WorkflowExecutionUpdateRejectedEventAttributes & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | 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()​

static encode(message, writer?): Writer

Encodes the specified WorkflowExecutionUpdateRejectedEventAttributes message. Does not implicitly temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.verify|verify messages.

Parameters​

message​

$Properties

WorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

WorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): WorkflowExecutionUpdateRejectedEventAttributes

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

Parameters​

object​

Plain object

Returns​

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes


toObject()​

static toObject(message, options?): object

Creates a plain object from a WorkflowExecutionUpdateRejectedEventAttributes message. Also converts values to other types if specified.

Parameters​

message​

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object