Skip to main content

Class: WillCompleteAsync

coresdk.activity_result.WillCompleteAsync

Used in ActivityExecutionResult to notify Core that this Activity will complete asynchronously. Core will forget about this Activity and free up resources used to track this Activity.

Implements

Constructors

constructor

new WillCompleteAsync(properties?): WillCompleteAsync

Constructs a new WillCompleteAsync.

Parameters

NameTypeDescription
properties?IWillCompleteAsyncProperties to set

Returns

WillCompleteAsync

Methods

toJSON

toJSON(): Object

Converts this WillCompleteAsync to JSON.

Returns

Object

JSON object


create

create(properties?): WillCompleteAsync

Creates a new WillCompleteAsync instance using the specified properties.

Parameters

NameTypeDescription
properties?IWillCompleteAsyncProperties to set

Returns

WillCompleteAsync

WillCompleteAsync instance


decode

decode(reader, length?): WillCompleteAsync

Decodes a WillCompleteAsync message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

WillCompleteAsync

WillCompleteAsync

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WillCompleteAsync

Decodes a WillCompleteAsync message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WillCompleteAsync

WillCompleteAsync

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 WillCompleteAsync message. Does not implicitly coresdk.activity_result.WillCompleteAsync.verify|verify messages.

Parameters

NameTypeDescription
messageIWillCompleteAsyncWillCompleteAsync message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WillCompleteAsync message, length delimited. Does not implicitly coresdk.activity_result.WillCompleteAsync.verify|verify messages.

Parameters

NameTypeDescription
messageIWillCompleteAsyncWillCompleteAsync message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WillCompleteAsync

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WillCompleteAsync

WillCompleteAsync


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WillCompleteAsync

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageWillCompleteAsyncWillCompleteAsync
options?IConversionOptionsConversion options

Returns

Object

Plain object