Class: ActivityTaskFailedEventAttributes
history.v1.ActivityTaskFailedEventAttributes
Represents an ActivityTaskFailedEventAttributes.
Implements
Constructors
constructor
• new ActivityTaskFailedEventAttributes(properties?
): ActivityTaskFailedEventAttributes
Constructs a new ActivityTaskFailedEventAttributes.
Parameters
Name | Type | Description |
---|---|---|
properties? | IActivityTaskFailedEventAttributes | Properties to set |
Returns
ActivityTaskFailedEventAttributes
Properties
failure
• Optional
failure: null
| IFailure
Failure details
Implementation of
IActivityTaskFailedEventAttributes.failure
identity
• identity: string
id of the worker that failed this task
Implementation of
IActivityTaskFailedEventAttributes.identity
retryState
• retryState: RetryState
ActivityTaskFailedEventAttributes retryState.
Implementation of
IActivityTaskFailedEventAttributes.retryState
scheduledEventId
• scheduledEventId: Long
The id of the ACTIVITY_TASK_SCHEDULED
event this failure corresponds to
Implementation of
IActivityTaskFailedEventAttributes.scheduledEventId
startedEventId
• startedEventId: Long
The id of the ACTIVITY_TASK_STARTED
event this failure corresponds to
Implementation of
IActivityTaskFailedEventAttributes.startedEventId
workerVersion
• Optional
workerVersion: null
| IWorkerVersionStamp
Version info of the worker who processed this workflow task. Deprecated. Use the info inside the corresponding ActivityTaskStartedEvent
Implementation of
IActivityTaskFailedEventAttributes.workerVersion
Methods
toJSON
▸ toJSON(): Object
Converts this ActivityTaskFailedEventAttributes to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): ActivityTaskFailedEventAttributes
Creates a new ActivityTaskFailedEventAttributes instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IActivityTaskFailedEventAttributes | Properties to set |
Returns
ActivityTaskFailedEventAttributes
ActivityTaskFailedEventAttributes instance
decode
▸ decode(reader
, length?
): ActivityTaskFailedEventAttributes
Decodes an ActivityTaskFailedEventAttributes message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
ActivityTaskFailedEventAttributes
ActivityTaskFailedEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): ActivityTaskFailedEventAttributes
Decodes an ActivityTaskFailedEventAttributes message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
ActivityTaskFailedEventAttributes
ActivityTaskFailedEventAttributes
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 ActivityTaskFailedEventAttributes message. Does not implicitly temporal.api.history.v1.ActivityTaskFailedEventAttributes.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IActivityTaskFailedEventAttributes | ActivityTaskFailedEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified ActivityTaskFailedEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.ActivityTaskFailedEventAttributes.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IActivityTaskFailedEventAttributes | ActivityTaskFailedEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): ActivityTaskFailedEventAttributes
Creates an ActivityTaskFailedEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
ActivityTaskFailedEventAttributes
ActivityTaskFailedEventAttributes
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for ActivityTaskFailedEventAttributes
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from an ActivityTaskFailedEventAttributes message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | ActivityTaskFailedEventAttributes | ActivityTaskFailedEventAttributes |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object