Skip to main content

Class: RequestCancelLocalActivity

Represents a RequestCancelLocalActivity.

Properties​

seq​

seq: number

Lang's incremental sequence number as passed to ScheduleLocalActivity

Methods​

toJSON()​

toJSON(): object

Converts this RequestCancelLocalActivity to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): RequestCancelLocalActivity & $Properties

Creates a new RequestCancelLocalActivity instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

RequestCancelLocalActivity & $Properties

RequestCancelLocalActivity instance

Call Signature​

static create(properties?): RequestCancelLocalActivity

Creates a new RequestCancelLocalActivity instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

RequestCancelLocalActivity

RequestCancelLocalActivity instance


decode()​

static decode(reader, length?): RequestCancelLocalActivity & $Properties

Decodes a RequestCancelLocalActivity 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​

RequestCancelLocalActivity & $Properties

RequestCancelLocalActivity

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): RequestCancelLocalActivity & $Properties

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

RequestCancelLocalActivity & $Properties

RequestCancelLocalActivity

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified RequestCancelLocalActivity message. Does not implicitly coresdk.workflow_commands.RequestCancelLocalActivity.verify|verify messages.

Parameters​

message​

$Properties

RequestCancelLocalActivity message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified RequestCancelLocalActivity message, length delimited. Does not implicitly coresdk.workflow_commands.RequestCancelLocalActivity.verify|verify messages.

Parameters​

message​

$Properties

RequestCancelLocalActivity message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): RequestCancelLocalActivity

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

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

RequestCancelLocalActivity

RequestCancelLocalActivity


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

RequestCancelLocalActivity

RequestCancelLocalActivity

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object