Class: ActivityTaskCanceledEventAttributes
Represents an ActivityTaskCanceledEventAttributes.
Properties
details?
optionaldetails?:$Properties|null
Additional information that the activity reported upon confirming cancellation
identity
identity:
string
id of the worker who canceled this activity
latestCancelRequestedEventId
latestCancelRequestedEventId:
Long
id of the most recent ACTIVITY_TASK_CANCEL_REQUESTED event which refers to the same
activity
scheduledEventId
scheduledEventId:
Long
The id of the ACTIVITY_TASK_SCHEDULED event this cancel confirmation corresponds to
startedEventId
startedEventId:
Long
The id of the ACTIVITY_TASK_STARTED event this cancel confirmation corresponds to
workerVersion?
optionalworkerVersion?:$Properties|null
Version info of the worker who processed this workflow task. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
Methods
toJSON()
toJSON():
object
Converts this ActivityTaskCanceledEventAttributes to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ActivityTaskCanceledEventAttributes&$Properties
Creates a new ActivityTaskCanceledEventAttributes instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityTaskCanceledEventAttributes & $Properties
ActivityTaskCanceledEventAttributes instance
Call Signature
staticcreate(properties?):ActivityTaskCanceledEventAttributes
Creates a new ActivityTaskCanceledEventAttributes instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActivityTaskCanceledEventAttributes
ActivityTaskCanceledEventAttributes instance
decode()
staticdecode(reader,length?):ActivityTaskCanceledEventAttributes&$Properties
Decodes an ActivityTaskCanceledEventAttributes 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
ActivityTaskCanceledEventAttributes & $Properties
ActivityTaskCanceledEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ActivityTaskCanceledEventAttributes&$Properties
Decodes an ActivityTaskCanceledEventAttributes message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ActivityTaskCanceledEventAttributes & $Properties
ActivityTaskCanceledEventAttributes
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 ActivityTaskCanceledEventAttributes message. Does not implicitly temporal.api.history.v1.ActivityTaskCanceledEventAttributes.verify|verify messages.
Parameters
message
ActivityTaskCanceledEventAttributes message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ActivityTaskCanceledEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.ActivityTaskCanceledEventAttributes.verify|verify messages.
Parameters
message
ActivityTaskCanceledEventAttributes message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ActivityTaskCanceledEventAttributes
Creates an ActivityTaskCanceledEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ActivityTaskCanceledEventAttributes
ActivityTaskCanceledEventAttributes
toObject()
statictoObject(message,options?):object
Creates a plain object from an ActivityTaskCanceledEventAttributes message. Also converts values to other types if specified.
Parameters
message
ActivityTaskCanceledEventAttributes
ActivityTaskCanceledEventAttributes
options?
IConversionOptions
Conversion options
Returns
object
Plain object