Class: ActivityTaskTimedOutEventAttributes
history.v1.ActivityTaskTimedOutEventAttributes
Represents an ActivityTaskTimedOutEventAttributes.
Implements
Constructors
constructor
• new ActivityTaskTimedOutEventAttributes(properties?
): ActivityTaskTimedOutEventAttributes
Constructs a new ActivityTaskTimedOutEventAttributes.
Parameters
Name | Type | Description |
---|---|---|
properties? | IActivityTaskTimedOutEventAttributes | Properties to set |
Returns
ActivityTaskTimedOutEventAttributes
Properties
failure
• Optional
failure: null
| IFailure
If this activity had failed, was retried, and then timed out, that failure is stored as the
cause
in here.
Implementation of
IActivityTaskTimedOutEventAttributes.failure
retryState
• retryState: RetryState
ActivityTaskTimedOutEventAttributes retryState.
Implementation of
IActivityTaskTimedOutEventAttributes.retryState
scheduledEventId
• scheduledEventId: Long
The id of the ACTIVITY_TASK_SCHEDULED
event this timeout corresponds to
Implementation of
IActivityTaskTimedOutEventAttributes.scheduledEventId
startedEventId
• startedEventId: Long
The id of the ACTIVITY_TASK_STARTED
event this timeout corresponds to
Implementation of
IActivityTaskTimedOutEventAttributes.startedEventId
Methods
toJSON
▸ toJSON(): Object
Converts this ActivityTaskTimedOutEventAttributes to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): ActivityTaskTimedOutEventAttributes
Creates a new ActivityTaskTimedOutEventAttributes instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IActivityTaskTimedOutEventAttributes | Properties to set |
Returns
ActivityTaskTimedOutEventAttributes
ActivityTaskTimedOutEventAttributes instance
decode
▸ decode(reader
, length?
): ActivityTaskTimedOutEventAttributes
Decodes an ActivityTaskTimedOutEventAttributes 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
ActivityTaskTimedOutEventAttributes
ActivityTaskTimedOutEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): ActivityTaskTimedOutEventAttributes
Decodes an ActivityTaskTimedOutEventAttributes message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
ActivityTaskTimedOutEventAttributes
ActivityTaskTimedOutEventAttributes
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 ActivityTaskTimedOutEventAttributes message. Does not implicitly temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IActivityTaskTimedOutEventAttributes | ActivityTaskTimedOutEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified ActivityTaskTimedOutEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.ActivityTaskTimedOutEventAttributes.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IActivityTaskTimedOutEventAttributes | ActivityTaskTimedOutEventAttributes message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): ActivityTaskTimedOutEventAttributes
Creates an ActivityTaskTimedOutEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
ActivityTaskTimedOutEventAttributes
ActivityTaskTimedOutEventAttributes
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for ActivityTaskTimedOutEventAttributes
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 ActivityTaskTimedOutEventAttributes message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | ActivityTaskTimedOutEventAttributes | ActivityTaskTimedOutEventAttributes |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object