Class: Acceptance
An Update protocol message indicating that a Workflow Update has been accepted (i.e. passed the worker-side validation phase).
Properties
acceptedRequest?
optionalacceptedRequest?:$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
staticcreate(properties?):Acceptance&$Shape
Creates a new Acceptance instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Acceptance & $Shape
Acceptance instance
Call Signature
staticcreate(properties?):Acceptance
Creates a new Acceptance instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Acceptance
Acceptance instance
decode()
staticdecode(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()
staticdecodeDelimited(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()
staticencode(message,writer?):Writer
Encodes the specified Acceptance message. Does not implicitly temporal.api.update.v1.Acceptance.verify|verify messages.
Parameters
message
Acceptance message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Acceptance message, length delimited. Does not implicitly temporal.api.update.v1.Acceptance.verify|verify messages.
Parameters
message
Acceptance message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(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()
statictoObject(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