Skip to main content

Class: Rejection

update.v1.Rejection

An Update protocol message indicating that a Workflow Update has been rejected.

Properties​

failure​

• Optional failure: null | $Properties

Rejection failure.


rejectedRequest​

• Optional rejectedRequest: null | $Properties

Rejection rejectedRequest.


rejectedRequestMessageId​

• rejectedRequestMessageId: string

Rejection rejectedRequestMessageId.


rejectedRequestSequencingEventId​

• rejectedRequestSequencingEventId: Long

Rejection rejectedRequestSequencingEventId.

Methods​

toJSON​

▸ toJSON(): Object

Converts this Rejection to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): Rejection & $Shape

Creates a new Rejection instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

Rejection & $Shape

Rejection instance

▸ create(properties?): Rejection

Parameters​

NameType
properties?$Properties

Returns​

Rejection


decode​

▸ decode(reader, length?): Rejection & $Shape

Decodes a Rejection message from the specified reader or buffer.

Parameters​

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

Returns​

Rejection & $Shape

Rejection

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): Rejection & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

Rejection & $Shape

Rejection

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 Rejection message. Does not implicitly temporal.api.update.v1.Rejection.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesRejection message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesRejection message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): Rejection

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

Rejection

Rejection


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageRejectionRejection
options?IConversionOptionsConversion options

Returns​

Object

Plain object