Skip to main content

Class: RequestCancelActivity

coresdk.workflow_commands.RequestCancelActivity

Represents a RequestCancelActivity.

Implements#

Constructors#

constructor#

new RequestCancelActivity(properties?)

Constructs a new RequestCancelActivity.

Parameters#

NameType
properties?IRequestCancelActivity

Properties#

seq#

seq: number

Lang's incremental sequence number as passed to ScheduleActivity

Implementation of#

IRequestCancelActivity.seq

Methods#

toJSON#

toJSON(): Object

Converts this RequestCancelActivity to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): RequestCancelActivity

Decodes a RequestCancelActivity 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#

RequestCancelActivity

RequestCancelActivity


decodeDelimited#

Static decodeDelimited(reader): RequestCancelActivity

Decodes a RequestCancelActivity 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#

RequestCancelActivity

RequestCancelActivity


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): RequestCancelActivity

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

RequestCancelActivity

RequestCancelActivity


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageRequestCancelActivityRequestCancelActivity
options?IConversionOptions-

Returns#

Object

Plain object