Class: ActivityTaskCompletedEventAttributes
history.v1.ActivityTaskCompletedEventAttributes
Represents an ActivityTaskCompletedEventAttributes.
Implements
Constructors
constructor
• new ActivityTaskCompletedEventAttributes(properties?): ActivityTaskCompletedEventAttributes
Constructs a new ActivityTaskCompletedEventAttributes.
Parameters
| Name | Type | Description | 
|---|---|---|
| properties? | IActivityTaskCompletedEventAttributes | Properties to set | 
Returns
ActivityTaskCompletedEventAttributes
Properties
identity
• identity: string
id of the worker that completed this task
Implementation of
IActivityTaskCompletedEventAttributes.identity
result
• Optional result: null | IPayloads
Serialized results of the activity. IE: The return value of the activity function
Implementation of
IActivityTaskCompletedEventAttributes.result
scheduledEventId
• scheduledEventId: Long
The id of the ACTIVITY_TASK_SCHEDULED event this completion corresponds to
Implementation of
IActivityTaskCompletedEventAttributes.scheduledEventId
startedEventId
• startedEventId: Long
The id of the ACTIVITY_TASK_STARTED event this completion corresponds to
Implementation of
IActivityTaskCompletedEventAttributes.startedEventId
workerVersion
• Optional workerVersion: null | IWorkerVersionStamp
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]
Implementation of
IActivityTaskCompletedEventAttributes.workerVersion
Methods
toJSON
▸ toJSON(): Object
Converts this ActivityTaskCompletedEventAttributes to JSON.
Returns
Object
JSON object
create
▸ create(properties?): ActivityTaskCompletedEventAttributes
Creates a new ActivityTaskCompletedEventAttributes instance using the specified properties.
Parameters
| Name | Type | Description | 
|---|---|---|
| properties? | IActivityTaskCompletedEventAttributes | Properties to set | 
Returns
ActivityTaskCompletedEventAttributes
ActivityTaskCompletedEventAttributes instance
decode
▸ decode(reader, length?): ActivityTaskCompletedEventAttributes
Decodes an ActivityTaskCompletedEventAttributes 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
ActivityTaskCompletedEventAttributes
ActivityTaskCompletedEventAttributes
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): ActivityTaskCompletedEventAttributes
Decodes an ActivityTaskCompletedEventAttributes message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description | 
|---|---|---|
| reader | Uint8Array|Reader | Reader or buffer to decode from | 
Returns
ActivityTaskCompletedEventAttributes
ActivityTaskCompletedEventAttributes
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 ActivityTaskCompletedEventAttributes message. Does not implicitly temporal.api.history.v1.ActivityTaskCompletedEventAttributes.verify|verify messages.
Parameters
| Name | Type | Description | 
|---|---|---|
| message | IActivityTaskCompletedEventAttributes | ActivityTaskCompletedEventAttributes message or plain object to encode | 
| writer? | Writer | Writer to encode to | 
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified ActivityTaskCompletedEventAttributes message, length delimited. Does not implicitly temporal.api.history.v1.ActivityTaskCompletedEventAttributes.verify|verify messages.
Parameters
| Name | Type | Description | 
|---|---|---|
| message | IActivityTaskCompletedEventAttributes | ActivityTaskCompletedEventAttributes message or plain object to encode | 
| writer? | Writer | Writer to encode to | 
Returns
Writer
Writer
fromObject
▸ fromObject(object): ActivityTaskCompletedEventAttributes
Creates an ActivityTaskCompletedEventAttributes message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description | 
|---|---|---|
| object | Object | Plain object | 
Returns
ActivityTaskCompletedEventAttributes
ActivityTaskCompletedEventAttributes
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for ActivityTaskCompletedEventAttributes
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 ActivityTaskCompletedEventAttributes message. Also converts values to other types if specified.
Parameters
| Name | Type | Description | 
|---|---|---|
| message | ActivityTaskCompletedEventAttributes | ActivityTaskCompletedEventAttributes | 
| options? | IConversionOptions | Conversion options | 
Returns
Object
Plain object