Class: Activity
A link to an activity.
Properties
activityId
activityId:
string
Activity activityId.
namespace
namespace:
string
Activity namespace.
runId
runId:
string
Activity runId.
Methods
toJSON()
toJSON():
object
Converts this Activity to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Activity&$Properties
Creates a new Activity instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Activity & $Properties
Activity instance
Call Signature
staticcreate(properties?):Activity
Creates a new Activity instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Activity
Activity instance
decode()
staticdecode(reader,length?):Activity&$Properties
Decodes an Activity 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
Activity & $Properties
Activity
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Activity&$Properties
Decodes an Activity message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Activity & $Properties
Activity
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 Activity message. Does not implicitly temporal.api.common.v1.Link.Activity.verify|verify messages.
Parameters
message
Activity message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Activity message, length delimited. Does not implicitly temporal.api.common.v1.Link.Activity.verify|verify messages.
Parameters
message
Activity message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Activity
Creates an Activity message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
Activity
Activity
toObject()
statictoObject(message,options?):object
Creates a plain object from an Activity message. Also converts values to other types if specified.
Parameters
message
Activity
Activity
options?
IConversionOptions
Conversion options
Returns
object
Plain object