Skip to main content

Class: WorkflowExecutionUpdateRejectedEventAttributes

history.v1.WorkflowExecutionUpdateRejectedEventAttributes

Represents a WorkflowExecutionUpdateRejectedEventAttributes.

Implements

Constructors

constructor

new WorkflowExecutionUpdateRejectedEventAttributes(properties?): WorkflowExecutionUpdateRejectedEventAttributes

Constructs a new WorkflowExecutionUpdateRejectedEventAttributes.

Parameters

NameTypeDescription
properties?IWorkflowExecutionUpdateRejectedEventAttributesProperties to set

Returns

WorkflowExecutionUpdateRejectedEventAttributes

Properties

failure

Optional failure: null | IFailure

The cause of rejection.

Implementation of

IWorkflowExecutionUpdateRejectedEventAttributes.failure


protocolInstanceId

protocolInstanceId: string

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

Implementation of

IWorkflowExecutionUpdateRejectedEventAttributes.protocolInstanceId


rejectedRequest

Optional rejectedRequest: null | IRequest

The message payload of the original request message that initiated this update.

Implementation of

IWorkflowExecutionUpdateRejectedEventAttributes.rejectedRequest


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.

Implementation of

IWorkflowExecutionUpdateRejectedEventAttributes.rejectedRequestMessageId


rejectedRequestSequencingEventId

rejectedRequestSequencingEventId: Long

The event ID used to sequence the original request message.

Implementation of

IWorkflowExecutionUpdateRejectedEventAttributes.rejectedRequestSequencingEventId

Methods

toJSON

toJSON(): Object

Converts this WorkflowExecutionUpdateRejectedEventAttributes to JSON.

Returns

Object

JSON object


create

create(properties?): WorkflowExecutionUpdateRejectedEventAttributes

Creates a new WorkflowExecutionUpdateRejectedEventAttributes instance using the specified properties.

Parameters

NameTypeDescription
properties?IWorkflowExecutionUpdateRejectedEventAttributesProperties to set

Returns

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes instance


decode

decode(reader, length?): WorkflowExecutionUpdateRejectedEventAttributes

Decodes a WorkflowExecutionUpdateRejectedEventAttributes message from the specified reader or buffer.

Parameters

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

Returns

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkflowExecutionUpdateRejectedEventAttributes

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkflowExecutionUpdateRejectedEventAttributes

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

NameTypeDescription
messageIWorkflowExecutionUpdateRejectedEventAttributesWorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
messageIWorkflowExecutionUpdateRejectedEventAttributesWorkflowExecutionUpdateRejectedEventAttributes message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
objectObjectPlain object

Returns

WorkflowExecutionUpdateRejectedEventAttributes

WorkflowExecutionUpdateRejectedEventAttributes


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WorkflowExecutionUpdateRejectedEventAttributes

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

Parameters

NameTypeDescription
messageWorkflowExecutionUpdateRejectedEventAttributesWorkflowExecutionUpdateRejectedEventAttributes
options?IConversionOptionsConversion options

Returns

Object

Plain object