Skip to main content

Class: Acceptance

An Update protocol message indicating that a Workflow Update has been accepted (i.e. passed the worker-side validation phase).

Properties​

acceptedRequest?​

optional acceptedRequest?: $Properties | null

Acceptance acceptedRequest.


acceptedRequestMessageId​

acceptedRequestMessageId: string

Acceptance acceptedRequestMessageId.


acceptedRequestSequencingEventId​

acceptedRequestSequencingEventId: Long

Acceptance acceptedRequestSequencingEventId.

Methods​

toJSON()​

toJSON(): object

Converts this Acceptance to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): Acceptance & $Shape

Creates a new Acceptance instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

Acceptance & $Shape

Acceptance instance

Call Signature​

static create(properties?): Acceptance

Creates a new Acceptance instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

Acceptance

Acceptance instance


decode()​

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

Decodes an Acceptance 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​

Acceptance & $Shape

Acceptance

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): Acceptance & $Shape

Decodes an Acceptance message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

Acceptance & $Shape

Acceptance

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

Parameters​

message​

$Properties

Acceptance message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

Acceptance message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): Acceptance

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

Parameters​

object​

Plain object

Returns​

Acceptance

Acceptance


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

Acceptance

Acceptance

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object