Skip to main content

Class: ActivityTaskCompletion

proto.coresdk.ActivityTaskCompletion

Represents an ActivityTaskCompletion.

Implements#

Constructors#

constructor#

new ActivityTaskCompletion(properties?)

Constructs a new ActivityTaskCompletion.

Parameters#

NameType
properties?IActivityTaskCompletion

Properties#

result#

Optional result: null | IActivityResult

ActivityTaskCompletion result.

Implementation of#

IActivityTaskCompletion.result


taskQueue#

taskQueue: string

ActivityTaskCompletion taskQueue.

Implementation of#

IActivityTaskCompletion.taskQueue


taskToken#

taskToken: Uint8Array

ActivityTaskCompletion taskToken.

Implementation of#

IActivityTaskCompletion.taskToken

Methods#

toJSON#

toJSON(): Object

Converts this ActivityTaskCompletion to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ActivityTaskCompletion

Decodes an ActivityTaskCompletion message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

ActivityTaskCompletion

ActivityTaskCompletion


decodeDelimited#

Static decodeDelimited(reader): ActivityTaskCompletion

Decodes an ActivityTaskCompletion message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

ActivityTaskCompletion

ActivityTaskCompletion


encode#

Static encode(message, writer?): Writer

Encodes the specified ActivityTaskCompletion message. Does not implicitly {@link coresdk.ActivityTaskCompletion.verify|verify} messages.

Parameters#

NameTypeDescription
messageIActivityTaskCompletionActivityTaskCompletion message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified ActivityTaskCompletion message, length delimited. Does not implicitly {@link coresdk.ActivityTaskCompletion.verify|verify} messages.

Parameters#

NameTypeDescription
messageIActivityTaskCompletionActivityTaskCompletion message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ActivityTaskCompletion

Creates an ActivityTaskCompletion message from a plain object. Also converts values to their respective internal types.

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ActivityTaskCompletion

ActivityTaskCompletion


toObject#

Static toObject(message, options?): Object

Creates a plain object from an ActivityTaskCompletion message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageActivityTaskCompletionActivityTaskCompletion
options?IConversionOptions-

Returns#

Object

Plain object